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
166 stars 88 forks source link

"get_historic_data" optimization #19

Closed sorul closed 2 years ago

sorul commented 2 years ago

Hello everybody, what would be the most correct way to optimize the response time of the "get_historic_data" function?

Every time I use it to fetch 300 ticks of 1 hour, the handle "on_historic_data" takes several minutes to get the information. If I want to get information for 28 pairs, sometimes it takes more than 1 hour and I'm already out of time.

What ways can I optimise this if possible? Thank you very much :)