real minimum trade volume calculation

Created at 10 May 2022, 14:58
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
MR

mr.Gekko

Joined 17.01.2022

real minimum trade volume calculation
10 May 2022, 14:58


Hi All,

I am trying to figure out how to calculate the minimum trade volume using MinVolume property properly and I am stuck. This is what I have succecfully pulled from OpenApi:

(US30 - TopFX)

SymbolId:1132

Digits:2

ProtoOASymbol.MinVolume(InCents):1

ProtoOASymbol.stepVolume (in cents).1

ProtoOASymbol.lotSize (in cents):100

 

Since the minVolume in cents is 1, I thought the minVolume in lots is 0.01. Unfortunately if I open the platform I can see that the minimum trade volume is 1.

How can I calculate the real minimum trade volume in lots?


@mr.Gekko
Replies

amusleh
11 May 2022, 10:43 ( Updated at: 21 Dec 2023, 09:22 )

Hi,

Open API returns Symbol min/max/step volumes in cents, you have to divide it by 100 to get the volume in symbol quote asset unit.

The US 30 minimum volume is 0.01 contracts on my TopFX demo account:

Not 1 contract, maybe you are using two different accounts for Open API and cTrader desktop.

 


@amusleh

mr.Gekko
11 May 2022, 13:09

RE:

Thanks for looking into this. You were right. I had exported the data from the demo account before I opened my live account so I was comparing demo to live. It seems that there is a difference between demo and live contract specifications.


@mr.Gekko