v1
latestOpenAPI 3.0.02026-07-26166415635.8 KBRetrieve a List of Orders
Retrieves a list of orders for the account, filtered by the supplied query parameters.
Endpoint defaults to open orders if no parameters are provided.
Query parameters
Order status to be queried. open, closed or all. Defaults to open.
The maximum number of orders in response. Defaults to 50 and max is 500.
A comma-separated list of asset classes, the response will include only orders in the specified asset classes. By specifying us_option as the class, you can query option orders by underlying symbol using the symbols parameter.
The response will include only ones submitted after this timestamp (exclusive)
The response will include only ones submitted until this timestamp (exclusive)
The chronological order of response based on the submission time. asc or desc. Defaults to desc.
If true, the result will roll up multi-leg orders under the legs field of primary order.
A comma-separated list of symbols to filter by.
Response
Retrieves a list of orders for the account, filtered by the supplied query parameters.
Example response
[
{
"asset_id": "61e69015-8549-4bfd-b9c3-01e75843f47d",
"cancel_requested_at": "2021-03-16T18:38:01.942282Z",
"canceled_at": "2021-03-16T18:38:01.942282Z",
"client_order_id": "61e69015-8549-4bfd-b9c3-01e75843f47d",
"commission": "3.14",
"commission_bps": "10",
"commission_type": "qty",
"created_at": "2021-03-16T18:38:01.942282Z",
"expired_at": "2021-03-16T18:38:01.942282Z",
"extended_hours": true,
"failed_at": "2021-03-16T18:38:01.942282Z",
"filled_at": "2021-03-16T18:38:01.942282Z",
"filled_avg_price": "4.2",
"filled_qty": "4.2",
"hwm": "3.14",
"id": "61e69015-8549-4bfd-b9c3-01e75843f47d",
"legs": [
{
"asset_id": "61e69015-8549-4bfd-b9c3-01e75843f47d",
"canceled_at": "2021-03-16T18:38:01.942282Z",
"client_order_id": "61e69015-8549-4bfd-b9c3-01e75843f47d",
"commission": "3.14",
"commission_bps": "10",
"commission_type": "qty",
"created_at": "2021-03-16T18:38:01.942282Z",
"expired_at": "2021-03-16T18:38:01.942282Z",
"extended_hours": true,
"failed_at": "2021-03-16T18:38:01.942282Z",
"filled_at": "2021-03-16T18:38:01.942282Z",
"filled_avg_price": "4.2",
"filled_qty": "4.2",
"hwm": "3.14",
"id": "61e69015-8549-4bfd-b9c3-01e75843f47d",
"limit_price": "3.14",
"notional": "4.2",
"order_type": "market",
"position_intent": "buy_to_open",
"qty": "4.2",
"replaced_at": "2021-03-16T18:38:01.942282Z",
"replaced_by": "61e69015-8549-4bfd-b9c3-01e75843f47d",
"replaces": "61e69015-8549-4bfd-b9c3-01e75843f47d",
"side": "buy",
"status": "filled",
"stop_price": "3.14",
"submitted_at": "2021-03-16T18:38:01.942282Z",
"symbol": "AALP",
"time_in_force": "gtc",
"trail_percent": "5.0",
"trail_price": "3.14",
"type": "market",
"updated_at": "2021-03-16T18:38:01.942282Z"
}
],
"limit_price": "3.14",
"notional": "4.2",
"order_type": "market",
"position_intent": "buy_to_open",
"qty": "4.2",
"replaced_at": "2021-03-16T18:38:01.942282Z",
"replaced_by": "61e69015-8549-4bfd-b9c3-01e75843f47d",
"replaces": "61e69015-8549-4bfd-b9c3-01e75843f47d",
"side": "buy",
"status": "filled",
"stop_price": "3.14",
"submitted_at": "2021-03-16T18:38:01.942282Z",
"symbol": "AALP",
"time_in_force": "gtc",
"trail_percent": "5.0",
"trail_price": "3.14",
"type": "market",
"updated_at": "2021-03-16T18:38:01.942282Z"
}
]