Policy limits
The API applies these limits automatically:
If a requested deadline exceeds the max, the server may clamp the returned order deadline. Always sign the deadline in the built order response — see place orders.
Error format
Errors are returned as:
On
401, re-run the authentication flow and retry with a fresh JWT.
Production checklist
Before placing sustained mainnet flow, confirm your client can:- re-authenticate after
401responses - reconnect WebSockets with backoff
- rebuild local books from snapshot plus buffered diffs
- treat cancellation
202responses as acknowledgements, not final states - keep all
uint256values as strings through signing and saving - use the order book token decimals when converting raw amounts for display or order sizing
- store JWTs and private keys only in server-side secret storage
- monitor open order count, deadlines, and rate-limit responses
- reconcile user events with
GET /orders/:orderId/historyafter reconnects
Next steps
Authentication
Handle JWT expiry and
401 renewals with the challenge and verify flow.WebSockets
Implement reconnects, backoff, and snapshot-plus-diff book rebuilds.
Orders
Review deadline handling, batch caps, and cancellation finality in context.
Orderbook API overview
Return to the integration flow and the full endpoint summary.