Get orders
Limit: 10 requests per 1 second
GET /v1/admin/orders
Note: This endpoint requires trading scope in orderly key.
Supports two query modes:
- Per-user mode: Provide either
user_accountoruser_address.start_tandend_tare optional. - Broker mode: Omit both
user_accountanduser_address. Bothstart_tandend_tare required, and the time range cannot exceed 180 days.
Headers
Timestamp of the signed request in milliseconds.
Account ID of the authenticated account.
Public orderly key used to sign the request.
Signature of the request payload generated with the orderly key.
Query Parameters
Filter results to a specific trading symbol, for example PERP_ETH_USDC.
BUY/SELL
LIMIT/MARKET/IOC/POST_ONLY/FOK/ASK/BID
LIMIT, MARKET, IOC, POST_ONLY, FOK, ASK, BID NEW/CANCELLED/PARTIAL_FILLED/FILLED/REJECTED/INCOMPLETE/COMPLETED
Filter by the full stored order tag, including a current-format enum:<owning_broker_id>:<enum_id> tag.
128Start of the query range as a 13-digit Unix timestamp in milliseconds. Required in broker mode and optional in per-user mode. The broker-mode range cannot exceed 180 days.
End of the query range as a 13-digit Unix timestamp in milliseconds. Required in broker mode and optional in per-user mode. The broker-mode range cannot exceed 180 days.
Filter orders updated at or after this 13-digit Unix timestamp in milliseconds.
Filter orders updated at or before this 13-digit Unix timestamp in milliseconds.
Filter orders by source type: ORDINARY or ALL.
ORDINARY, ALL the page you wish to query. start from 1
the page size you wish to query (max: 500)
If empty:
Descending order by updated_time if user passed update_start_t or update_end_t; descending order by order_id if updated_time are the same;
Otherwise descending order by created_time; descending order by order_id if created_time are the same;
If not empty:
If sort_by == CREATED_TIME_DESC, descending order by created_time. Descending order by order_id if created_time are same;
If sort_by == CREATED_TIME_ASC, ascending order by created_time. Ascending order by order_id if created_time are same;
If sort_by == UPDATED_TIME_DESC, descending order by updated_time. Descending order by order_id if updated_time are same;
If sort_by == UPDATED_TIME_ASC, ascending order by updated_time. Ascending order by order_id if updated_time are same;
Target user account for per-user mode. Provide either user_account or user_address. Omit both to use broker mode, which requires start_t and end_t.
Target user address for per-user mode. Provide either user_address or user_account. Omit both to use broker mode, which requires start_t and end_t.