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
Every Shoonya API call runs against an authenticated session. Shoonya issues a
Acesstokenafter a successful login, which you attach to every subsequent request. There is no separate long-lived API key model — the token itself is your credential, and it is valid for 24 hours only from the moment it is generated.How to authenticate
OAuth is currently the only supported login flow — there is no TOTP auto-login and no separate token-renewal endpoint. See Manual Authentication (OAuth) for the full authorize URL, redirect handling, and checksum reference.
Session lifetime
An access token is valid for 24 hours only from the time it is generated. Every fresh login must generate a new access token — tokens cannot be extended, refreshed, or reused once they expire. This is a SEBI compliance requirement for retail algo trading.
Since there's no renewal call, build your automation to re-run the full OAuth login flow for every new session rather than assuming a persistent long-running token — see Manual Authentication (OAuth) for how to automate this.
Authorization: Bearer <Acesstoken>.Security notes
client_id,secret_code, or the OAuthcode/checksum in source control — load them from environment variables or a secrets manager.Acesstokenas a bearer credential with the same sensitivity as a password: don't log it, don't put it in error messages sent to third-party monitoring tools.Notes
OAuth-specific security considerations (state parameter, PKCE, redirect URI validation) are covered on Manual Authentication (OAuth).