Skip to main content

Order Management Endpoints

Access comprehensive order data including open orders, order history, and detailed order information for user accounts.

Get All Orders

Retrieve complete order history for a user address.

Parameters

Response

Response Fields


Get Open Orders

Retrieve only active orders for a user address.

Parameters

Response

Returns the same format as /api/allOrders but only includes orders with status:
  • NEW
  • OPEN
  • PARTIALLY_FILLED

Order Status Types


Order Management Examples

Check Order Status

Calculate Order Fill Rate

Monitor Active Orders


Advanced Queries

Filter by Symbol

Get orders for a specific trading pair:

Pagination

For users with many orders, use pagination:

Real-Time Order Updates

For real-time order status updates, use the WebSocket API:

Error Responses

Rate Limits

Order management endpoints have the following rate limits:
  • All orders: 300 requests per minute per user
  • Open orders: 600 requests per minute per user
Order queries for users with large order histories may take longer to process. Consider using symbol filters and reasonable limits to improve performance.

Best Practices

  1. Use Symbol Filters: When possible, filter by specific trading pairs to reduce response size
  2. Reasonable Limits: Use appropriate limits based on your use case (default 500 is usually sufficient)
  3. Cache Results: Cache order data client-side and refresh periodically rather than polling continuously
  4. WebSocket for Real-Time: Use WebSocket connections for real-time order updates instead of frequent polling
  5. Error Handling: Implement proper error handling for network issues and API errors