darwinex / dwxconnect

Seamlessly link any Trading Strategy in ANY programming language to Darwinex liquidity via MetaTrader 4 or 5. DWX Connect is your very own, fully customizable Trading API!
BSD 3-Clause "New" or "Revised" License
158 stars 84 forks source link

Error in dwx_client_example.py #28

Closed SaraStemPro closed 1 year ago

SaraStemPro commented 1 year ago

Hi,

I am testing the new version of dwx_client in python but it does not work.

After running the example, I receive the next error: on_bar_data: EURUSD H1 2023-01-24 11:27:07.282436 2023.01.24 12:00 1.08604 1.08664 1.0852 1.08638 ERROR | WRONG_FORMAT_COMMAND | Wrong format for command: 3|SUBSCRIBE_SYMBOLS_BAR_DATA|EURUSD,H1 ERROR | WRONG_FORMAT_COMMAND | Wrong format for command: 1|RESET_COMMAND_IDS| ERROR | WRONG_FORMAT_COMMAND | Wrong format for command: 2|OPEN_ORDER|EURUSD,buy,0.01,0,1.053,0,0,,0 ERROR | WRONG_FORMAT_COMMAND | Wrong format for command: 1|RESET_COMMAND_IDS| ERROR | WRONG_FORMAT_COMMAND | Wrong format for command: 2|OPEN_ORDER|EURUSD,buy,0.01,0,1.053,0,0,,0 ERROR | WRONG_FORMAT_COMMAND | Wrong format for command: 1|RESET_COMMAND_IDS| ERROR | WRONG_FORMAT_COMMAND | Wrong format for command: 2|OPEN_ORDER|EURUSD,buy,0.01,0,1.063,0,0,,0 ERROR | WRONG_FORMAT_COMMAND | Wrong format for command: 1|RESET_COMMAND_IDS| ERROR | WRONG_FORMAT_COMMAND | Wrong format for command: 2|SUBSCRIBE_SYMBOLS|EURUSD,GBPUSD

And does not open any order.

Is there any solution?

Thank you.

SaraStemPro commented 1 year ago

Ok, I had a wrong configuration of the expert. Everything is ok!