Skip to main content
This endpoint returns your orders and your finished order strategies in one list. It sorts the list by creation time, newest first. Each item has a kind and a record. It differs from Get order history in these ways:
  • It includes finished order strategies as "kind": "strategy" records. Open strategies are not included.
  • It leaves out orders that a strategy placed. A strategy sets parent_id on each order that it places. You can find these orders in the strategy record’s owned_orders.
  • It sorts by creation time. Get order history sorts by order ID.
  • has_more is true only when another page exists.

Query Parameters

FieldTypeNeedDescriptionExample
”account”stringrequiredAccount address42trU9A5…
“limit”integeroptionalMaximum number of records to return. Default and maximum are 100. Values outside 1 to 100 are clamped to that range100
”cursor”stringoptionalThe “next_cursor” value from the previous page. Leave it out to get the first pagepxinAJf8…

Response

  • Status 200: Successfully retrieved order history records
FieldTypeDescription
”kind”string”order” or “strategy"
"record”objectAn order record or a strategy record, as set by “kind” (see below)
“next_cursor”stringCursor for the next page. Omitted when “has_more” is false
”has_more”booleantrue if more records exist after this page
To get the next page, send the same request with cursor set to next_cursor. Treat the cursor as an opaque string. It doesn’t work with Get order history. Order Record Fields ("kind": "order") Each order appears once, in its latest state.
FieldTypeDescription
”order_id”integerOrder id assigned to order
”client_order_id”UUIDCLOID of order if assigned by user
”parent_id”UUID or nullAlways null in this endpoint
”symbol”stringTrading pair symbol
”side”stringWhether the order is a bid or an ask
”initial_price”decimal stringInitial (limit) price of the order
”average_filled_price”decimal stringVWAP of price at which the order was filled. “0” if nothing has filled
”amount”decimal stringAmount (in token denomination) of the order placed
”filled_amount”decimal stringAmount (in token denomination) of the order placed that was filled
”order_status”string”open"
"partially_filled"
"filled"
"cancelled"
"rejected"
"order_type”string”limit"
"market"
"stop_limit"
"stop_market"
"take_profit_limit"
"stop_loss_limit"
"take_profit_market"
"stop_loss_market"
"stop_price”decimal stringStop price of a stop order
”stop_parent_order_id”integerParent order id of a stop order
”reduce_only”booleanIf the order is reduce only
”trigger_price_type”stringPrice type used to trigger stop orders (mark_price, last_trade_price, mid_price); defaults to last_trade_price
”reason”stringProvides reason for an order being “cancelled” or “rejected”:
“cancel"
"force_cancel"
"expired"
"post_only_rejected"
"self_trade_prevented"
"instrument_type”string”perpetual” or “spot"
"created_at”integerTimestamp in milliseconds of the first event for this order. The list sorts by this value
”updated_at”integerTimestamp in milliseconds of the latest event for this order
Strategy Record Fields ("kind": "strategy") A strategy record is a finished order strategy. The main fields are below. See Order strategies for the full shape, definition, and state.
FieldTypeDescription
”strategy_id”UUIDStrategy ID
”strategy_type”stringStrategy type, for example “twap"
"lifecycle”string”completed"
"cancelled"
"expired"
"failed"
"terminal_reason”stringWhy the strategy ended, for example “user_cancel” or “insufficient_balance”. Omitted when no reason applies
”owned_orders”arrayOrders that the strategy placed
”created_at_ms”integerTimestamp in milliseconds when the strategy was created. The list sorts by this value
”updated_at_ms”integerTimestamp in milliseconds when the strategy last changed
  • Status 400: Invalid request parameters or invalid cursor
  • Status 500: Internal server error

Code Example (Python)