I am unable to get live Market data feed .keys instrument nifty 50 stocks from API. I am able to login and generating tokens code but not esblishing connection with websocket
@SAGARIKA_9664540 Please refer for V3 WebSocket example code.
Please do refer for the V3 Websocket connection and subscription limits as well
Thanks
still not geeting live market data feed. 401 eroor coming
ws.run_forever()
Connecting to V3 WebSocket…
Error: Handshake status 401 Unauthorized -±± {‘date’: ‘Sun, 07 Sep 2025 05:33:00 GMT’, ‘content-type’: ‘application/json’, ‘transfer-encoding’: ‘chunked’, ‘connection’: ‘keep-alive’, ‘reqid’: ‘382ff59a-07c8-49d7-a4a8-af1d86c5f01a’, ‘x-content-type-options’: ‘nosniff’, ‘x-xss-protection’: ‘0’, ‘pragma’: ‘no-cache’, ‘strict-transport-security’: ‘max-age=0; includeSubDomains’, ‘x-frame-options’: ‘DENY’, ‘cache-control’: ‘must-revalidate,no-cache,no-store’, ‘vary’: ‘Access-Control-Request-Headers’, ‘message’: ‘request failed’, ‘cf-cache-status’: ‘DYNAMIC’, ‘set-cookie’: ‘__cf_bm=1p5_y5jEsP5nbgEWuzuqHI6kmepIVS6F3EJBRz1FBo0-1757223180-1.0.1.1-cDTf2t.2q3rOJ7JveZCoPeR9KmMBo6o1CJWxWWuBGIEF5J_ljwuLJrlCAh2olX0n; path=/; expires=Sun, 07-Sep-25 06:03:00 GMT; domain=.upstox.com; HttpOnly; Secure; _cfuvid=8F7rs2mgkMycRIgXfzuOL4.SGzgXIfki0jMYN9iIqD8-1757223180638-0.0.1.1-604800000; path=/; domain=.upstox.com; HttpOnly; Secure; SameSite=None’, ‘server’: ‘cloudflare’, ‘cf-ray’: ‘97b3d42ce9a821dd-CCU’, ‘alt-svc’: ‘h3=“:443”; ma=86400’} -±± None
Connection closed