Common Enums
Orders
NEW means the order request has been accepted and returned. PENDING means the order has entered the pending or open-order state.
Positions
Integration rules
- Treat enum values as case-sensitive wire values.
- Preserve unknown values in logs and fail safely instead of silently mapping them to a known state.
- Do not infer that every non-final order state is safe to retry. Query the order or reconcile it with a private WebSocket event.
- Store both the original API value and the partner-facing display label so new values can be supported without changing historical records.
Order state handling
Related documentation
- Order API: request fields and order lifecycle operations.
- Order Types: product behavior for limit, market, and conditional orders.
- Private User Channel: real-time order and account state.
- Error Codes & Troubleshooting: business codes and diagnostic workflow.