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
required

The instrument.

Response

The net position. qty is signed, and 0 means flat.

The account's net position in one instrument.

instrument
string
required

The instrument.

qty
number
required

The signed quantity: positive for long, negative for short, and 0 when flat.

avgPrice
number | null
required

The average entry price, or null when there is none or it isn't known.