When you reach a limit
We refuse these requests before we store or send anything.
Retry-After is the only rate limit header we send today.
See what’s left
GET /v1/limits returns each limit, what you’ve used of it and what’s left, counted exactly as the limit counts it. For the two daily limits, resets_at says when the count starts again. remaining is what one more request can use at that moment: another of your requests can use it first.
How order value is counted
Each order counts when you place it, at its quantity times a price per share:
How much of an order still counts depends on its state:
How allocations are counted
Every allocation created that day counts, exceptrejected and refused ones, whose amounts return to your wallet.
Fixed limits
These are the same for every partner.How long a request can take
A request with no answer by then has timed out. For a request that takes an
Idempotency-Key, send it again with the same key.
Reads that ask the broker
Balances, positions, trades, contract notes and the reference lists are read from the broker each time you ask. Each partner can have 2 of these reads in progress at once, and at most 4 run at once across all partners, so other partners’ reads can delay yours. A read that can’t start and finish within 20 seconds returns503 exchange_unavailable. Nothing was changed. Send the request again, backing off between attempts.
Avoid reading the broker each time a customer opens your app. Keep your own copy of each account’s balance and positions, refresh it when an event changes the account, such as a fill or a booked allocation, and read the broker when you need the latest figure, such as before a sell.