LotsSize field in ProtoOASymbol
LotsSize field in ProtoOASymbol
07 Jun 2023, 07:29
I have a quick question regarding the lot size value returned by the ProtoOASymbol.
From the OpenAPI documentation;
- lotSize int64 Optional Lot size of the Symbol (in cents).
The ctrader web application (for Pepperstone broker) displays lot size as follows;
- 1 indices for UK100
- 100,000 EUR for EURJPY.
The ProtoOASymbol returns lotSize values as follows;
- 100 for the UK100
- 10,000,000 for EURJPY
- Please can you explain why the lotSize returned in the ProtoOASymbol is (x100) different from what is displayed in the cTrader web client for lotSize in symbol details?
- How can I calculate the lotSize correctly for an asset from the ProtoOASymbol lotSize? (in order to then calculate the correct quantity to place a trade)
- When the documentation refers to LotSize in cents - what currency is this? Is this documentation incorrect?
- Where are the lotSize units (indices, EUR) that are displayed with lotSize in the ctrader web returned in the ProtoOASymbol?
Many Thanks
ac
Replies
ac@arconomy.digital
07 Jun 2023, 11:23
RE:
Hi Panagiotis,
Why 100? Is the same for all assets for all brokers on cTrader?
I think this maybe the number of contracts (CFD's) in the lot - but is it always guaranteed to be 100 for all assets?
Is there any way of getting the units for the Lot Size? ("Indices" for UK100 or "EUR" for EURJPY)
Many Thanks
ac
PanagiotisChar said:
Hi there,
To make it simple, just divide everything by 100.
Need help? Join us on Telegram
Need premium support? Trade with us
@ac@arconomy.digital
PanagiotisChar
07 Jun 2023, 11:29
Hi there,
It's a technical decision taken by the team so that they do not have to deal with numbers with decimals and its the same for all symbols.
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar
ac@arconomy.digital
07 Jun 2023, 11:37
RE:
ok - great thanks. So ctrader is just storing the lot size an INT on cTrader side.
And the other bit? Is there any way of getting the units for the Lot Size? ("Indices" for UK100 or "EUR" for EURJPY)
Many thanks
ac
PanagiotisChar said:
Hi there,
It's a technical decision taken by the team so that they do not have to deal with numbers with decimals and its the same for all symbols.
@ac@arconomy.digital
PanagiotisChar
07 Jun 2023, 13:57
Hi again,
And the other bit? Is there any way of getting the units for the Lot Size? ("Indices" for UK100 or "EUR" for EURJPY
Just divide the lotSize by 100.
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar
ac@arconomy.digital
07 Jun 2023, 14:23
RE:
Hi Panagiotis,
Thanks again - I understand how to calculate the LotSize value now.
Is there a field that returns the name of the units.
For example..
For UK100:
lotSizeName: '"indices"
For EURJPY:
LotSizeName: "EUR"
Many Thanks
Ac
PanagiotisChar said:
Hi again,
And the other bit? Is there any way of getting the units for the Lot Size? ("Indices" for UK100 or "EUR" for EURJPY
Just divide the lotSize by 100.
@ac@arconomy.digital
PanagiotisChar
07 Jun 2023, 08:25
Hi there,
To make it simple, just divide everything by 100.
Aieden Technologies
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar