I am getting an error KeyError: candles, My code looks like this. Please help
try:
hist_data = fyers.history(data)
except Exception as e:
raise e
df = pd.DataFrame(hist_data[“candles”], columns=[‘date’, ‘open’, ‘high’, ‘low’, ‘close’, ‘volume’])
Hi can you tell me what data you are receiving in hist_data when you encounter this exception?
print(hist_data) is printing all the historical data till a point after which it’s showing api limit is exceeded per min and then Keyerror:candles is coming again
vikram, this is happening again now…whats wrong with it/ randomly works for few mins and then goes into this error intraday.