Developer Portal

Order HistoryGET

Return one page of the account's orders in an inclusive UTC-second range, newest creation time first. There is no maximum range. Pass the returned nextToken back unchanged, with the same from/to, to fetch the next page; it is empty on the last page.

View as Markdown
GET
/accounts/{id}/history/orders

Authorization

Authorization<token>

Bearer access token issued by the admin login flow.

In: header

Path Parameters

idRequiredstring

Query Parameters

fromstring

Inclusive lower bound, truncated to a UTC second. Omit for all history.

Format: "date-time"
tostring

Inclusive upper bound, truncated to a UTC second. Omit to use the current time.

Format: "date-time"
limitinteger

Page size (default: 25, max: 500; larger values are clamped)

Format: "int32"
nextTokenstring

Opaque cursor from the previous response; send it unchanged with the same from/to. Omit for the first page.

curl -X GET "https://example.com/accounts/<string>/history/orders?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z&limit=0&nextToken=%3Cstring%3E" \
  -H "Authorization: <token>"

A successful response.

{
  "orders": [
    {
      "id": "string",
      "accountId": "string",
      "groupId": "string",
      "symbolId": "string",
      "symbolName": "string",
      "positionId": "string",
      "clientOrderId": "string",
      "ipAddress": "string",
      "managerId": "string",
      "parentOrderId": "string",
      "cancelsOrderId": "string",
      "venueId": "string",
      "venueOrderId": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "expirationDate": "2019-08-24T14:15:22Z",
      "qtyOriginal": 0.1,
      "qtyFilled": 0.1,
      "seenPrice": 0.1,
      "limitPrice": 0.1,
      "stopPrice": 0.1,
      "slippage": 0.1,
      "isClosing": true,
      "trailingOffset": "string",
      "trailingStep": "string",
      "stopLossPts": "string",
      "takeProfitPts": "string",
      "stopLossPrice": 0.1,
      "takeProfitPrice": 0.1,
      "status": "ORDER_STATUS_UNSPECIFIED",
      "side": "TRADE_SIDE_UNSPECIFIED",
      "type": "ORDER_TYPE_UNSPECIFIED",
      "timeInForce": "ORDER_TIF_UNSPECIFIED",
      "comment": "string",
      "fillPrice": 0.1,
      "fillPriceRaw": 0.1,
      "unitsOriginal": 0.1,
      "unitsFilled": 0.1,
      "completed": true,
      "initialMargin": 0.1,
      "triggerQuote": {
        "symbolId": "string",
        "bid": 0.1,
        "ask": 0.1,
        "volume": "string",
        "datetime": "2019-08-24T14:15:22Z"
      },
      "md": "string"
    }
  ],
  "nextToken": "string"
}