On this page
Extra explanations like this one are showing, and some dense technical detail is tucked away. Switch to Developer in the header at any time - nothing is lost either way, and your choice is remembered.
Infinn is the trading platform operated by HKKR Finserv Pvt Ltd. Its API lets a program do the things you would otherwise do by hand in the Infinn terminal: look up prices, place and manage orders, read your positions and holdings, and watch the market move in real time.
This documentation covers the whole of that API - 58 REST endpoints and 10 WebSocket feeds - and it is written for two readers at once: someone who has never called an API before, and someone who writes against them every day.
What you can build with it
What it looks like
Here is a complete, real interaction: asking the API what your account is allowed to trade. This is the first call most people make, it changes nothing, and it is a good test that your credentials work.
POST /NorenWClientAPI/UserDetails HTTP/1.1
Host: api.infinn.in
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: text/plain
jData={"uid":"IN001"}{
"stat": "Ok",
"exarr": ["NSE", "NFO"],
"orarr": ["MKT", "LMT", "SL-LMT", "SL-MKT"],
"prarr": [
{ "prd": "C", "s_prdt_ali": "Delivery" },
{ "prd": "I", "s_prdt_ali": "Intraday" }
],
"actid": "IN001",
"uprev": "INVESTOR"
}On the left, your program says: "Here is who I am (the Authorization line), and here is what I want - the details for this user."
On the right, Infinn answers: "That worked (stat: "Ok"). This account can trade on NSE and NFO, can use these four order types, and has two product types available."
That is the shape of every call on this site. If it still looks like noise, read What is an API? next - it starts further back than this.
How the API is organised
The reference is grouped by what each endpoint is for, rather than by the order the API specification happens to list things in.
| Group | Endpoints | What it covers |
|---|---|---|
| Session | 6 | Obtain, use and destroy an access token. |
| Account | 3 | What the account is allowed to do, and who owns it. |
| Instruments & watchlists | 11 | Find instruments, read their prices, and organise them into lists. |
| Market data | 8 | Option chains, historical candles, movers, indices and exchange messages. |
| Orders & trades | 12 | Place, modify and cancel orders; read the order and trade books; check margin before you commit. |
| Positions & holdings | 5 | What you currently hold, from today's trading and from before. |
| Funds & limits | 5 | Cash, collateral, margin utilisation and withdrawal limits. |
| GTT orders | 6 | Orders that wait for a price condition before firing, and survive past today. |
| Reports | 2 | Order and trade history over a date range -- the only way to see anything older than today. |
On top of those, a single WebSocket connection carries live prices, order updates, position updates and alerts, pushed to you as they happen rather than fetched on a timer.
What is honestly not here
Documentation that only lists what exists is half a document. These are gaps in the Infinn API itself, stated up front so you do not design around something that is not there.
- Sandbox is UAT, not a paper exchange. Sandbox (UAT / Test — NOT live) is
uat.infinn.in. Orders onapi.infinn.inuse real money. The place an order safely guide is the live dry-run. - There are no webhooks or postbacks. Events reach you only over the WebSocket connection, so keep one open, or poll the order book.
- Access is tied to a fixed IP address. Your public IP must be registered on your profile, which makes home broadband and most cloud autoscaling awkward.
- Several endpoints are only partly documented at source. Where that is true, the page says so rather than guessing - look for "Documentation information not available".