Network: Mainnet▼
Order Management
Retrieve and manage order history and individual order details.
Get Orders History
Retrieve order history for an account.
GET /v1/orders
Query Parameters
curl -X GET \
"https://api.o2.app/v1/orders" \
-H "Accept: application/json"Parameters: Provide either account OR contract (not both).
Pagination: Use both start_timestamp and start_order_id together for pagination (both or neither must be provided).
Source: packages/api/src/app/routes/v1/orders.rs:get_orders_handler
Get Single Order
Get details of a specific order.
GET /v1/order
Query Parameters
curl -X GET \
"https://api.o2.app/v1/order" \
-H "Accept: application/json"Source: packages/api/src/app/routes/v1/orders.rs:get_order_handler