*Sir/ma’am,
As I have told you earlier that, when I am trying to fetch the spot data of “KOTAK MAHINDRA BANK” stock, the api is showing me error and the data is not getting fetched through your upstox api’s
This is example from the error in my terminal:*
“”
**[13/26] Processing: KOTAK MAHINDRA BANK LTD (KOTAKBANK)
Instrument Key: NSE_EQ|INE237A01028
Chunk 1/1: 2026-01-08 to 2026-01-16 Error fetching data for 2026-01-08 to 2026-01-16: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({‘Date’: ‘Sun, 18 Jan 2026 15:29:45 GMT’, ‘Content-Type’: ‘application/json’, ‘Transfer-Encoding’: ‘chunked’, ‘Connection’: ‘keep-alive’, ‘CF-RAY’: ‘9bff21318f8cf806-DEL’, ‘reqid’: ‘c88f69eb-da6d-45ff-8aa6-0263f91b398c’, ‘vary’: ‘Origin, Access-Control-Request-Method, Access-Control-Request-Headers’, ‘message’: ‘request failed’, ‘requestid’: ‘99e1a6d0-a144-4de4-bbba-76d4fc043349’, ‘x-content-type-options’: ‘nosniff’, ‘x-xss-protection’: ‘0’, ‘Cache-Control’: ‘no-cache, no-store, max-age=0, must-revalidate’, ‘pragma’: ‘no-cache’, ‘expires’: ‘0’, ‘strict-transport-security’: ‘max-age=0; includeSubDomains’, ‘x-frame-options’: ‘DENY’, ‘cf-cache-status’: ‘MISS’, ‘Set-Cookie’: ‘__cf_bm=iXIpEocdWRsgZMQgIPNi7Tx2AEKF6n.0aG9BnkfFECw-1768750185-1.0.1.1-TaA3Au3nw0YNTHTbsAJoZQvVsv_q1GkT0ZXKUjn6NZO5M2t0GE8BHXFUwU5ViVCm; path=/; expires=Sun, 18-Jan-26 15:59:45 GMT; domain=.upstox.com; HttpOnly; Secure; SameSite=None, _cfuvid=vf4bsRGSpBIONyH27N_6cvNsmc1y._OgPKFZ5rAEkn0-1768750185249-0.0.1.1-604800000; path=/; domain=.upstox.com; HttpOnly; Secure; SameSite=None’, ‘Server’: ‘cloudflare’, ‘alt-svc’: ‘h3=“:443”; ma=86400’})
HTTP response body: b’{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100011”,“message”:“Invalid Instrument key”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100011”,“property_path”:null,“invalid_value”:null}]}’
- No data
Warning: No data collected for KOTAKBANK**
“”
As you can see this error comes up, why my code tries to fetch the spot data for this particular stock
and I also tried to fetch the spot data from stocks as well, but I am only getting this error in “KOTAK MAHINDRA BANK” stock