Skip to main content
Requires authentication.
The Orders resource provides order entry and management capabilities for trading on markets.

Methods


create

Create a new order on a market.

Parameters

Order Intent

Time in Force


list

Get all open orders.

cancel

Cancel a specific order.

cancelAll

Cancel all open orders, optionally filtered by market.

preview

Preview an order before submitting. Returns estimated fills and costs.

closePosition

Close an existing position at market price. This sells your entire position in a single call.

closePosition vs Sell Order

Use closePosition when you want to fully exit a position at market price. Use a sell order (ORDER_INTENT_SELL_LONG or ORDER_INTENT_SELL_SHORT) when you need to sell a specific quantity or set a limit price.

Slippage Tolerance

For market orders and close position, you can specify slippage tolerance:

Order States

Orders progress through these states:
For real-time order updates, use the WebSocket with SUBSCRIPTION_TYPE_ORDER instead of polling.