On this page
The reference tells you what each endpoint does. These guides show how several of them fit together to accomplish one real task, end to end, with code you can run.
What the guides assume
Each one assumes you have completed getting started: credentials, a registered IP, and an access token. Beyond that they are independent and can be read in any order.
They all share a small amount of groundwork - a request helper that checks both error layers, and a defensive numeric parser. Rather than repeating it in each guide, it is on how responses are shaped, and the guides reference it as call() and num().
There is no test environment. The ordering guide is written specifically to work around that - it uses one share at a price far from the market, so the order rests in the book and can be cancelled without trading. Read it before running anything that writes.
Shorter recipes
Tasks that are small enough to fit on an endpoint page, listed here so they are findable.
| Task | Where |
|---|---|
| Resolve a name to a trading symbol and token | Search Scrips |
| Download and parse the symbol master | Instruments |
| Validate an order's price and quantity locally | Instruments |
| Compute available margin | Margin, MTM and P&L |
| Interpret an Order Margin verdict | Margin, MTM and P&L |
| Build an order form from the account's entitlements | Products and order types |
| Retry safely after a timeout | The two error layers |
| A dual-window rate limiter | Rate limits |
| Parse Infinn's numeric strings defensively | Responses |
| A complete one-file API client | SDKs |
| Diagnose a failing connection | Debugging checklist |