Skip to main content
Question
FYERS API
Asked a question 3 months ago

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'])

Join FYERS Community to pick others' brains on Trading/Investing

Hi can you tell me what data you are receiving in hist_data when you encounter this exception?