All trading operations require Ed25519 signatures. See Transaction Signing for details.
Place Order
Cancel Order
Cancel All Orders
Cancel all orders for a specific symbol or all orders across all symbols.cancelAll: Cancel all order object (part of orders array, uses camelCase)c: Array of symbol strings- To cancel all orders in specific symbols:
["BTC-USD", "ETH-USD"] - To cancel all orders across all symbols:
[](empty array)
cancelled status per order that was cancelled.
Batch Orders
Place multiple orders in a single request for maximum efficiency.Response Format
Response Fields:channel: Always “post” for post responsesid: Request ID (matches theidfrom the request)data: Post response datatype: Always “action”payload: OrderResponse (same format as HTTP/orderendpoint)status: “ok” or “error”response: Response objecttype: Response type (e.g., “order”)data.statuses: Array of order statuses (one per order in batch)
Status Types
| Status | Description | Fields |
|---|---|---|
resting | Order placed and resting on book | {oid: string} |
filled | Order fully filled immediately | {oid: string, totalSz: number, avgPx: number} |
partiallyfilled | Order partially filled | {oid: string, totalSz: number, avgPx: number} |
cancelled | Order cancelled | {oid: string} |
error | Order rejected | {message: string} |
Error Handling
Common errors and solutions:Invalid signature
Invalid signature
Ensure you’re using the correct serialization format. Use official SDKs when possible.
Unauthorized signer
Unauthorized signer
Insufficient margin
Insufficient margin
Check your available balance before placing orders. Consider position size and leverage.
Order rejected
Order rejected
Verify order parameters meet market requirements (min size, tick size, etc).