-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lot size Doesn't match #29
Comments
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! |
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: ejtraderCT/ejtraderCT/api/ctrader.py Line 102 in 2358ca9
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! |
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.
The text was updated successfully, but these errors were encountered: