POST/NorenWClientAPI/GetSecurityInfo
Security Info
Fetch contract master details for a single instrument — tick size, lot size, price bands, margin percentages, and identifiers — given its exchange and token.
Fetch contract master details for a single instrument — tick size, lot size, price bands, margin percentages, and identifiers — given its exchange and token.
API Endpoint
POSThttps://api.shoonya.com/NorenWClientAPI/GetSecurityInfoapplication/x-www-form-urlencodedjData=<JSON payload>&jKey=<AccessToken>— requires a validAccessTokenfrom Login.Overview
GetSecurityInfo returns the static contract master record for a single
tokenon a givenexch— the same reference data (tick size, lot size, price bands, margin rates) that backs order validation and margin calculation. It's a lookup by token, not by name; resolve a symbol to its token first via Search Scrip or the Symbol Master.Purpose
Use this to validate price/quantity inputs before placing an order (tick size
ti, lot sizels, freeze quantityfrzqty), to read the day's circuit limits (uc/lc), or to pull margin parameters (delmrg,varmrg,elmmrg,hair_cut) for a pre-trade risk check. Because this is per-token reference data rather than a live quote, cache it for the session instead of calling it on every order.Parameters
NSE,NFO,BSE,MCX.Request example
Response example
Error handling
{"stat":"Not_Ok","emsg":"..."}exch— usually a stale or wrong token; re-resolve it via Search Scrip rather than assuming the token is permanent.Best practices
uc/lc(upper/lower circuit) andti/ls(tick/lot size) before submitting an order for that token to avoid a preventable rejection.delmrg,varmrg,elmmrg,hair_cut) are percentages, not absolute values — combine with the current price for an actual margin figure.Python example
Notes
Prefer resolving
tokenfrom Search Scrip or the Symbol Master rather than hardcoding it — tokens are exchange-assigned and can be reused or reassigned across corporate actions over long time horizons, so a token cached from a previous session should be revalidated periodically rather than treated as permanent.