Open Order
Open orders are pending orders that have not yet fully executed.
Access
REST:
GET /orders/openWebSocket:
open-orderschannel (requires address)
What Counts as Open
Only orders with status OPEN or PARTIALLY_FILLED and type TRIGGER, TP, or SL are returned. MARKET orders execute immediately and never appear here. TWAP orders have their own monitoring channel (twap-details).
Response Shape
Each open order contains:
orderIdβ unique order identifierorderTypeβTRIGGER,TP, orSLstatusβOPENorPARTIALLY_FILLEDpositionIdβ linked position (for TP/SL orders)parametersβ order-type-specific config (leverage, USD value, trigger conditions, etc.)longAssets/shortAssetsβ each withasset,weight,size(planned), andfilledSize(executed so far)createdAt/updatedAt
Order Types in Open Orders
TRIGGER
User placed a conditional order waiting for price/ratio/BTC dom/prediction market condition
Oracle condition met
TP
Take profit set on an open position
Position ROI or price reaching threshold
SL
Stop loss set on an open position
Position ROI or price reaching threshold
Lifecycle
OPEN: order created, waiting for trigger conditionPARTIALLY_FILLED: some fills received (e.g., TWAP chunks or partial execution)PROCESSING: trigger condition met, execution in progressEXECUTED: fully filledFAILED: execution error (e.g., insufficient margin, liquidity)CANCELLED: user cancelled or system cancelled
Real-Time Updates
The open-orders channel refreshes automatically after trade execution, position close, or TP/SL changes. No manual polling needed β subscribe once and receive updates.
Last updated