Lot size Doesn't match
when i enter the lot size at volume = 0.1 it return error (ERROR:root:Order volume 10000.00 is bigger than maxVolume=50.00.)
so when i edit the volume to : volume = 0.00001
its create the position with 1 Lot.
any help to how can i configure this please?
by the way the symbol i trade is ETHUSD his fix api id is 22397 i have edited the Symbol.py list and added it to there like the others.
45: {'id': 22397, 'pip_position': 4, 'name': 'ETHUSD', 'bid_volume': 0, 'ask_volume': 0},
this line. i want to configure the lot size so when i enter 0.1 Lot at volume will open position with 0.1 Lot
help please.
We're glad you've opened your first issue. Please provide all the necessary details and any relevant code or screenshots to help us understand the problem better. Our team will review your issue and provide assistance as soon as possible. Thank you for contributing!
when i enter the lot size at volume = 0.1 it return error (ERROR:root:Order volume 10000.00 is bigger than maxVolume=50.00.)
so when i edit the volume to : volume = 0.00001
its create the position with 1 Lot.
any help to how can i configure this please?
by the way the symbol i trade is ETHUSD his fix api id is 22397 i have edited the Symbol.py list and added it to there like the others.
45: {'id': 22397, 'pip_position': 4, 'name': 'ETHUSD', 'bid_volume': 0, 'ask_volume': 0},
this line. i want to configure the lot size so when i enter 0.1 Lot at volume will open position with 0.1 Lot
help please.
Sorry, the symbol list is simply for asset quotation, not for placing orders, and unfortunately, there's nothing to be done. You have to multiply by the digits of your asset as the contract size varies according to the symbol.
Hey @traderpedroso ,
I'm encountering a similar issue when trying to create a 0.01 lot order.
Looking through your code, I noticed that the lot size is being converted to an integer here: https://github.com/ejtraderLabs/ejtraderCT/blob/2358ca90bad156a9d82e38a06ff21c7d57d50b8c/ejtraderCT/api/ctrader.py#L102
Given that the calculation involves multiplying by 100,000, even if we pass 0.0000001, the result will be 0.01, which then gets converted to 0 when cast to an integer.
Would there be a way to modify this behavior to preserve fractional lot sizes? Does the fix_order_to_ctrader method support using float values for size instead of casting to int?
Thanks in advance for your help!