BTC-USD
) and the portfolio ID must be specified. The portfolio ID determines which trading balance will be used for debits and credits, and can be obtained from List Portfolios or from the URL of the Prime web UI.
Any order algorithm supported in the Prime UI is also available through the Create Order API. Prime supports specifying orders in both base units (e.g., “10 ETH”) and quote units (e.g., “100,000 USD of ETH”).
PENDING
- The order has been accepted by Prime but has not yet been placed on the order bookOPEN
- The order is active on the order book and available for execution. All order types, including market orders, start in this state before any fills occur. The order remains open until it reaches a terminal state (filled, cancelled, failed, or expired)FILLED
- The order has been completely executed for the full requested quantityCANCELLED
- The order has been cancelled either by client request or by the system. System cancellations may occur when market orders with Immediate or Cancel (IMMEDIATE_OR_CANCEL
) instructions cannot be fully executedFAILED
- The order could not be executed and was rejected by the system. This typically occurs with Fill or Kill (FILL_OR_KILL
) orders that cannot be immediately filled in their entiretyEXPIRED
- The order was not fully executed before reaching its specified expiration time. This applies to time-limited orders, including Good Until Datetime (GOOD_UNTIL_DATE_TIME
) limit orders and algorithmic orders such as TWAP/VWAP.