Skip to main content
GET
TypeScript

Authorizations

Authorization
string
header
required

The Trading API key (trdrs_sk_…), for market data, orders and account state on the accounts its owner holds. Use it server-to-server, and keep it on your server. Its scope is named trading in the API.

Query Parameters

provider
string

The provider the account is at, such as rithmic or paper. Omit it to use your default provider. An unknown value is refused with 400, never replaced with another provider.

account
string

The account number at that provider. It must be one of your own accounts, or the call is refused with 400.

instrument
string

The instrument to check. Omit it for the verdicts across the whole account.

Response

One verdict per action. The checks run in this order: the routing match, the judgment GET /api/trading/match answers (for open with the market's entry gates, for reduce without them, so a reduction is never refused because a market is closed to new entries), whether live trading is switched on (feature_disabled), the account's holds (risk_locked), the account's settings at its provider, and the paper book's product rules. close and protect check only the asset classes the provider may trade instead of the match, so a held position can always be closed and protected. Anything that depends on the order itself or the moment, such as its size, a venue limit or whether the price is fresh, is checked only when you send the order, and a cancel is never refused by a standing rule. On an account bound to a risk policy, open shows what the account's risk check refuses an addition for, on the instrument you name or across the account: a stale price (market_data_stale), a price feed that is down (market_data_unavailable), or a book it cannot value (risk_locked with risk_uncovered). While the risk check is only processing the account's latest change, open shows no refusal, because an order sent then waits for it, at most 5 seconds. No hold refuses protect: a protective stop or target cannot add exposure.

What the account may do right now, as one verdict per action. Each verdict is the answer the route that carries the action would give. Without an instrument, open, reduce, close and protect say what stops them on every instrument, and flatten says what stops flattening the whole account. On the paper book, flattening the account closes every position it can, and each position's own verdict says which one it can't. A feature the provider doesn't support at all is stated in the account's capabilities, not here.

instrument
string | null
required

The instrument the verdicts are for, as you requested it, or null for the account-wide verdicts.

actions
object
required

One verdict per action. Live trading can be switched off, and then every order through POST /api/trading/order is refused, so open and reduce both follow that switch. A risk hold (risk_locked) or a reconciliation hold (reconciliation_hold) refuses an entry. A reduce-only order passes both holds where the provider enforces reduce-only, so reduce follows the holds only where it doesn't. On an account a venue issued, the venue lets a reduction through every entry check. The close route is not stopped by the switch. Under a hold, a close passes only where the provider enforces it as reduce-only, so close follows the hold elsewhere, while flatten and cancel stay available.

checkedAt
integer
required

When the verdicts were worked out, in epoch seconds.