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
This is the standard 3-step OAuth flow for individual users logging in interactively (as opposed to a headless/vendor integration — see For Vendors / Partners for that variant). The user authenticates directly on Shoonya's own login page — your application never sees their password.
Step 1 — Redirect to OAuth URL
Send the user's browser to the authorize endpoint with your app's
client_id:Replace
Your_Client_idwith your client id . The user lands on Shoonya's hosted login page and enters their User ID, Password, and OTP/TOTP.Step 2 — Receive the authorization code
After successful login, Shoonya redirects back to your registered redirect URL with an authorization
codeappended as a query parameter. Capture this code — it's short-lived and can only be exchanged once.Step 3 — Exchange code for access token
Call
GenAcsTokwith the authorization code and a checksum, to receive the access token used for all subsequent API calls.POSThttps://api.shoonya.com/NorenWClientAPI/GenAcsToktext/plainjData=<JSON payload>codechecksumSHA256(client_id + secret_key + auth_code)— see calculator below.Response
Use
AccessTokenas theBearertoken in theAuthorizationheader for all subsequent calls — see API Structure.Checksum calculator
This calculator runs entirely in the browser — nothing is sent to a server.
Related
See Python Authentication (Selenium) for automating this flow, and Logout for invalidating the token when done.