Order Status Values
Orders progress through these statuses:- pending - Order created, waiting for balance validation
- validated - Balance validated and locked (
balanceValidatedAttimestamp set) - placed - Order placed on the prediction market (
orderPlacedAttimestamp set) - filled - Order filled on the prediction market (
orderFilledAttimestamp set) - txn_filled - On-chain transaction executed (
txnFilledAttimestamp set,metadata.txHashavailable) - completed - Order fully completed (
isComplete: true,terminationReason: null) - failed - Order failed at any stage (
isComplete: true,terminationReasoncontains error message)
Status Response Fields
The order status response includes:- id - Order ID
- action - Order details (market, side, quantity, price)
- status - Current status string
- createdAt - When order was created
- balanceValidatedAt - When balance was validated (null if not yet)
- orderPlacedAt - When order was placed on the prediction market (null if not yet)
- orderFilledAt - When order was filled on the prediction market (null if not yet)
- txnFilledAt - When on-chain transaction executed (null if not yet)
- isComplete - Whether order has completed
- terminationReason - Error message if failed (null if succeeded)
- metadata - Additional details:
txHash- On-chain transaction hashchainId- Chain where transaction executed
Polling Strategy
Since orders are processed asynchronously, poll the status endpoint periodically to track progress. Typical intervals:- Every 5-10 seconds while order is in progress
- Less frequently once order reaches “completed” or “failed” status
