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.

limit
integer
default:100

How many trades per page, from 1 to 500. 100 by default.

Required range: 1 <= x <= 500
cursor
string

The previous page's nextCursor, exactly as returned. Treat it as opaque. Omit it for the first page.

Response

One page of closed trades.

One page of the account's closed trades.

roundTrips
object[]
required

The closed trades on this page.

nextCursor
string | null
required

Pass it as cursor to get the next page, or null on the last page.