# Infinn API > API v5.0 (11 Nov 2026). Read-only reference pages include an API playground. Main login: OAuth (see /getting-started/oauth-login/). Rules: /rules/sebi-retail-algo/. Changelog: /changelog/. Postman: /downloads/INFINN_API_v4.3.postman_collection.json > Support: support@infinn.in · Brokerage ₹20 per order (API included); delivery ₹20 or 0.3%, whichever is lower · Orders: up to 20 per second and 200 per minute, registered static IP only. > The REST and WebSocket API of the Infinn trading platform (HKKR Finserv), > for the Indian markets: NSE, BSE and MCX. 58 REST endpoints and 10 > WebSocket feeds. Official documentation by HKKR Finserv Pvt Ltd (INFINN). Updated 5 Nov 2026. ## Read this part first These rules hold for every endpoint. Most of them are unusual, and code written on the usual assumptions will compile, run, and be wrong. 1. METHOD IS ALWAYS POST. Every endpoint is POST, including the ones that only read data. A GET returns 405. 2. THE BODY IS NOT JSON. Send Content-Type: text/plain and a body of the literal form jData= That is a form field named jData whose value is a JSON object serialised to a string. It is not a bare JSON body. Content-Type text/plain or application/json both work. 3. THE HOST IS https://api.infinn.in. One host for everything: api.infinn.in. WebSocket: wss://api.infinn.in/NorenWSTP/ . 4. AUTH IS A BEARER HEADER. Authorization: Bearer on every endpoint except GenAcsTok, which is the call that mints the token. 5. THERE ARE TWO ERROR LAYERS, AND THE SECOND ONE RETURNS 200. Layer 1 is HTTP: 400, 403, 404, 405, 410, 429, 500, 502, 503, 504. A rejected token gets an error with a COMPLETELY EMPTY BODY. Parsing the body before checking the status therefore raises a JSON decode error, which looks like a bug in your code rather than an auth failure. Layer 2 is in the body: HTTP 200 with {"stat": "Not_Ok", "emsg": "..."}. A 200 does not mean success. Always branch on stat. Correct order, every time: check the HTTP status then check that the body is non-empty then parse then check stat 6. SUCCESS IS NOT ALWAYS stat: "Ok". The GTT endpoints return a sentence instead -- "Oi created", "Oi Replacedt" (the typo is in the API), "Oi delete success". They have no stat field. Branch on the documented string for those. 7. RESPONSE SHAPE VARIES. The book and report endpoints return a bare JSON ARRAY on success and a JSON OBJECT on failure. Branch on the type before indexing. 8. FIELDS ARE OMITTED, NOT NULL. Infinn leaves a field out rather than returning null. Check presence. 9. NUMBERS ARE STRINGS. Prices, quantities and timestamps come back as strings. Convert explicitly; do not assume a numeric type. 10. AUTHORISATION IS ALSO BY IP. The account has one or two registered IPv4 addresses. A request from any other address is refused no matter how valid the token is. Static IP whitelisting is mandatory and live. Sandbox (UAT / Test — NOT live) is https://uat.infinn.in. Live trading is https://api.infinn.in. Live endpoints use real money. ## Rate limits 20 orders per second and 200 orders per minute, per account. Exceeding them returns HTTP 429. ## Everything in one file - [llms-full.txt](llms-full.txt): every endpoint, every field, every example, as plain text. Paste the whole file. ## Pages - [Session](reference/session/): Obtain, use and destroy an access token. - [Account](reference/account/): What the account is allowed to do, and who owns it. - [Instruments & watchlists](reference/watchlists/): Find instruments, read their prices, and organise them into lists. - [Market data](reference/market/): Option chains, historical candles, movers, indices and exchange messages. - [Orders & trades](reference/orders/): Place, modify and cancel orders; read the order and trade books; check margin before you commit. - [Positions & holdings](reference/positions/): What you currently hold, from today's trading and from before. - [Funds & limits](reference/funds/): Cash, collateral, margin utilisation and withdrawal limits. - [GTT orders](reference/gtt/): Orders that wait for a price condition before firing, and survive past today. - [Reports](reference/reports/): Order and trade history over a date range -- the only way to see anything older than today. ## Known limitations /faq/ : 71 frequently asked questions, beginner to advanced (General, Getting Started, Segments, Orders and Limits, Market Data and WebSocket, Trading Symbols, Sessions and Multiple Accounts, Third-Party Platform Integration, Troubleshooting, Partner and Platform Integration). Each answer links to the detailed page. /known-limitations/ : every gap in the published API specification (undocumented responses, fields and behaviours) in one table. Each affected page links here. ## Login in 5 minutes (beginners) /getting-started/login-in-5-minutes/ : whitelist your IP (top-right profile icon -> Generate Key -> API Key panel: Client ID = user ID, App Key = API key, Secret Code = API secret, Redirect URL must match, Webhook URL leave blank), build the login link (route_to = sha256(USER_ID|SECRET_KEY)), copy the code after code= quickly, checksum = sha256(API_KEY+SECRET_KEY+code), call GenAcsTok. One-file auto login: /downloads/infinn_quick_login.py (redirect URL http://127.0.0.1:8899/callback). GenAcsTok Not_Ok: check the static IP first. /getting-started/first-trade-30-minutes/ : fresher path in 30 minutes. Prep: active account, TOTP app, API key approved, static IP registered (trade.infinn.in > profile > Generate Key), market open or AMO. Steps: credentials, TOTP, OAuth login > code > checksum > GenAcsTok, UserDetails, 1-share LMT order far below market > OrderBook > CancelOrder. Script: /downloads/infinn_first_trade.py (dry run by default, type YES to send). /guides/place-order-learn-more/ : detailed steps for placing a safe test order (SearchScrip, GetQuotes, validation, GetOrderMargin, PlaceOrder, SingleOrdStatus, CancelOrder) with full code. Short version: /guides/place-order/. - API Key panel item 10 "Applicable for more than 10 orders per second": leave unticked at 10 orders/second or fewer. To go above 10/second tick it, choose exchanges in "Select Exchanges" (MCX, NSE, NFO, BSE, BFO) and fill "Algo ID for " with the exchange-approved algo ID for each, then Update. See getting-started/credentials/#more-than-10-orders ## v4.8 additions - Sandbox / UAT: https://docs.infinn.in/getting-started/sandbox-uat/ - TOTP checker: https://docs.infinn.in/tools/totp/ - Playground default server: Sandbox / UAT (https://uat.infinn.in) - [Python SDK](https://docs.infinn.in/sdks/python/): Sandbox-first package infinn - [Example: Straddle / Strangle](https://docs.infinn.in/examples/straddle-strangle/): educational options example with stoploss, target and safe square-off (Sandbox and dry run by default) - [Strategy Builder](https://docs.infinn.in/examples/strategy-builder/): form that fills the settings of the tested straddle / strangle example (educational; Sandbox and dry run by default) - [FAQ — Examples and Strategy Builder](https://docs.infinn.in/faq/#sec-examples): E1–E10 on the Strategy Builder, the Straddle / Strangle example, underlyings, expiry, stop loss, Sandbox, the disclaimer, SDK 0.1.2, install, and support. The FAQ page has a keyword search box.