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

check_historic_data() seems not happy when the json return from mt is too big (lots of candles) #42

Closed gaugau3000 closed 4 months ago

gaugau3000 commented 7 months ago

Hi,

when I use the client i got :

dwx_client.py:397 - check_historic_data() -- An error occurred in the check_historic_data thread: Expecting ':' delimiter: line 1 column 40961 (char 40960)

It seems to happen when the dwn client asks more than 1000 candles. This error come from partials data in the JSON response (unable to parse) I write with more than one data feed, meaning that maybe it is related to lock and async of the bridge file.

Many tks for help. I will try to investigate more.

gaugau3000 commented 7 months ago

Ok seems to be an issue in concurrency and locks (if i dumb sleep in my program I have complete JSON).