Trading

Get historical order data across all or filtered accounts from the database/registry.

Orders come newest first. pagination.next_cursor is the cursor of the page's last order; pass it back as cursor to get the orders older than it. It is null on the last page. A cursor is a position, not a token: any <created_at ISO>|<order id> pages from that point back, whether or not the order exists. A cursor not in that format is refused with a 400.

Args: filter_request: JSON payload with filtering criteria

Returns: Paginated response with historical order data and pagination metadata

post/trading/orders/search

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/trading/orders/search
  • Auth
    HTTP basic

Request body

limitinteger

Number of items per page

start_timeinteger nullable

Start time as Unix timestamp in milliseconds

end_timeinteger nullable

End time as Unix timestamp in milliseconds

cursorstring nullable

Cursor for next page

account_namesstring[] nullable

List of account names to filter by

connector_namesstring[] nullable

List of connector names to filter by

trading_pairsstring[] nullable

List of trading pairs to filter by

statusstring nullable

Order status filter

Response

Successful Response

dataobject[] required
paginationobject required

Example response

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

Changes