Quote data for index giving symbol not found error

When requesting for the quote data of NSE:NIFTYBANK-INDEX

        banknifty_data = {"symbols": "NSE:NIFTYBANK-INDEX"}

        response = fyers.quotes(data=banknifty_data)
        print(response)

Output

{'s': 'error', 'code': -300, 'message': 'Please provide a valid symbol'}

1
2 replies