Trading

Get Active Orders

Get currently active (in-flight) orders from exchange connectors.

Fetches real-time order data directly from the connectors' in-flight order tracking. This shows orders that are currently open, pending, or partially filled on the exchanges. Unlike /orders/search which queries historical data, this endpoint provides live order state.

Active orders include those in states: PENDING_CREATE, OPEN, PARTIALLY_FILLED, PENDING_CANCEL. Orders that are fully filled, cancelled, or failed will not appear here (use /orders/search instead).

The response uses cursor-based pagination. Orders are sorted by client_order_id for consistency.

post/trading/orders/active

Request body

limitinteger

Maximum number of items to return per page. Range: 1-1000. Default: 100.

cursorstring nullable

Pagination cursor from a previous response's next_cursor. Omit for the first page. Pass the next_cursor value to fetch the next page.

account_namesstring[] nullable

Filter by account names. If omitted, queries all accounts.

connector_namesstring[] nullable

Filter by connector names (e.g., ['binance', 'binance_perpetual']). If omitted, queries all connectors.

trading_pairsstring[] nullable

Filter by trading pairs (e.g., ['BTC-USDT', 'ETH-USDT']). If omitted, queries all pairs.

Response

Successful Response

dataobject[] required

Array of result items. Structure depends on the specific endpoint.

paginationobject required

Pagination metadata containing: limit (items per page), has_more (boolean, true if more results exist), next_cursor (string, pass to cursor param for next page, null if no more pages), total_count (total items matching the query across all pages).

Example response

{
  "data": [],
  "pagination": {
    "has_more": true,
    "limit": 100,
    "next_cursor": "2024-01-10T12:00:00",
    "total_count": 500
  }
}

Changes