I’m facing an issue with the Kite Connect API (v3) where the /quote endpoint for NSE:BANKNIFTY returns an empty response ({}) despite a 200 OK status, even during market hours. Other endpoints (e.g., option chain quotes) work fine. Hoping someone can shed light on this!
Details:
Endpoint: GET /quote?i=NSE:BANKNIFTY Timestamp: April 7, 2025, 10:11:41 AM IST (Monday, within 9:15 AM–3:30 PM IST) Response:
{"status": "success", "data": {"NSE:BANKNIFTY": {"last_price": , ...}}} Setup: Using kiteconnect Python library, latest version. Fresh access_token generated at 10:11 AM IST via /session/token. Observation: A simultaneous GET /quote for BANKNIFTY option tokens (e.g., 19192322, 19194882) returns full data (e.g., 51,500 CE at 415.50), confirming API access works. Steps Tried:
DEBUG:urllib3.connectionpool: https://api.kite.trade:443 "GET /quote?i=NSE%3ABANKNIFTY HTTP/1.1" 200 30 DEBUG:root: Raw API response for NSE:BANKNIFTY: {} ERROR:root: Error fetching live price: Invalid response: Empty or missing 'status': {} Impact: Can’t fetch live BANKNIFTY spot price; currently estimating from option chain as a workaround.
Is this a known issue with index quotes? Could it be a server-side glitch or a subscription limitation? Any help or pointers would be awesome—happy to provide more logs if needed!
NIFTY BANK