exchange.load_markets()
while 1:
try:
bars = exchange.fetch_ohlcv(ETH/USDT, timeframe='5m', limit=5)
df = pd.DataFrame(bars[:], columns=['timestamp', 'open', 'high', 'low', 'close', 'volume'])
df['timestamp'] = pd.to_datetime(df['timestamp'], unit='ms')
except ccxt.BaseError as Error:
print("[ERROR] ", Error)
continue
Hello, I am doing algotrade with Python in Binance. I am using ccxt. I am running above code and i am not getting any error message regarding to request usage. However, after i am running 2nd trade bot in same IP with same code i am getting "more than 1200 request usage" error. How can i calculate how many request i am creating in a minute? If i can calculate it, i will schedule to download ohlvc data in 2 or 3 seconds, or how many seconds it needs. Thank you.