Reg. Address: #1108, Sector 21-B, Chandigarh – 160022
Head Office: Finvasia Tower, C-214, 4th Floor, Phase 8B, Sector 74, Industrial Focal Point, SAS Nagar (Mohali), Punjab – 160055
Corporate Office: Finvasia Securities Private Limited, 23rd Floor, Sunshine Tower, Plot No. 616, Senapati Bapat Marg, Dadar West, Parel, Mumbai, Maharashtra – 400013, India
NSE Clearing Member: M51912, NSE Member Code: 14846, BSE Member Code: 4043, MCX Member ID: 55135.
SEBI Reg: INZ000176037 (Cash, F&O, CDS, Commodity), AMFI ARN: 103331, CDSL DP ID: 12084300, SEBI Regn : IN-DP-317-2017
Research Analyst SEBI Regn. No. INH000011927
Smart Online Dispute Resolution | Grievances Redressal Mechanism
Overview
The WebSocket gateway delivers independent feed types over one connection: live touchline ticks, market depth, and order-status updates. You connect once, then subscribe to each feed type separately.
Purpose
Use the WebSocket for anything that needs to react to price movement or fills in real time — strategy engines, live dashboards, risk monitors. It replaces polling Market Quotes or Order Book in a loop.
Connection flow
wss://api.shoonya.com/NorenWSAPI/.t: "a") withuid,actid,source, andaccesstoken.t: "ak") and checksis"Ok"before subscribing to anything.Connect request (t: 'a')
aWEB/MOB/APIConnect acknowledgment (t: 'ak')
akOk/Not_OkNot_Okmeans an invalid user ID or session/access token — do not proceed to subscribe.t: "ak"is the connect handshake response only. The touchline subscribe acknowledgment is a different message witht: "tk"— see Subscribe to Market Feed. Mixing the two up is a common source of parsing bugs since both arrive as JSON with atfield early in the connection.Request example
Error handling
Best practices
s: "Ok"on the connect ack before subscribing — subscribing on a failed connect silently produces no data.Python example
Notes
See Subscribe to Market Feed and Order Update Feed for the exact frame formats of each subscription type.