Open ylmzgrk opened 4 years ago
i have a similar issue get_historical_klines takes up 2 seconds executing on my usage
same here, I made a function that creates a hashmap, key as coin('BTC') and value as 15m volume, for all coins on Binance. Iterating the exchange info endpoint, the func call get_historical_klines. But it takes 5minutes to function return output.
Same problem, it's close to useless, cant be used for any realtime analysis. I have 200 coins I'd like to track, but impossible without myself using a database for the coins and just updating with shorter/recent klines. We are talking several seconds for each fetch, the larger the fatch the slower it gets, so it's unrelated to "internet delay".
I have a Python code running on Ubuntu server that has 2 functions. First function (getKlines) receives 30min candlestick data from API every 30 minutes, second function (execute) runs an algorithm on the received data. I use apscheduler library for triggering at certain times.
It works perfectly fine for a period time. But after 5-6 days my code crashes. I contacted with the owner of apscheduler library. He said that it is not related with apscheduler, but it might because get_historical_klines function takes too long.
Is there a chance that get_historical_klines function takes longer after a period time?