I have a bit of code that will download minute to minute data historically from binance, and combine it all into their own CSV. EG: BCHUSDT-1m-data.csv
, BTCUSDT-1m-data.csv
, etc for whatever pairs I want. However, I keep getting a
requests.exceptions.ChunkedEncodingError connectionreset error 10054 (closed by remote host)
.
Is there a better way to go about getting this information than using the client.get_historical_klines(interval)
method? Ideally I would want even more granular data (30s, 15, or even 1s if at all possible historically). Thanks in advance!
Link to API: Python-Binance API