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.

bucket
string
default:all

Which part of the history to return. Omit it for all.

window
enum<string>

session returns only the current trading session, which opens at 17:00 America/Chicago, and the response gives that open as sinceSec. Omit it for the whole history.

Available options:
session
limit
integer
default:100

How many orders per page, from 1 to 200. 100 by default.

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

The previous page's nextCursor, exactly as returned. Omit it for the first page. A malformed cursor is refused with 400, never treated as the first page.

Response

One page of order history. The provider's raw data is left out of every row.

One page of the account's order history.

orders
object[]
required

The orders on this page.

nextCursor
string | null
required

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

sinceSec
integer | null
required

The time the page starts from, in epoch seconds: the open of the current trading session with window=session, and null otherwise.