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().

Every guide touches a live account

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.

TaskWhere
Resolve a name to a trading symbol and tokenSearch Scrips
Download and parse the symbol masterInstruments
Validate an order's price and quantity locallyInstruments
Compute available marginMargin, MTM and P&L
Interpret an Order Margin verdictMargin, MTM and P&L
Build an order form from the account's entitlementsProducts and order types
Retry safely after a timeoutThe two error layers
A dual-window rate limiterRate limits
Parse Infinn's numeric strings defensivelyResponses
A complete one-file API clientSDKs
Diagnose a failing connectionDebugging checklist
Esc
↑↓ navigate↵ openEsc close/ to search