ejtraderLabs / ejtraderCT

The best Python Ctrader FIX API Perfect for HFT
MIT License
59 stars 20 forks source link

Lot size Doesn't match #29

Open OmerCP opened 9 months ago

OmerCP commented 9 months ago

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.

github-actions[bot] commented 9 months ago

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!

OmerCP commented 9 months ago

1 2

traderpedroso commented 8 months ago

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.