Order rules
Order types and expiry for Spot Trading API.
These rules apply to both the REST API and the WebSocket commands. Request and open-order limits are on Rate limits, and order error codes on Errors.
Order types
| Type | Behaviour |
|---|---|
market | Executes immediately at the best price available in the order book. The exact price is not guaranteed. |
limit | Buys or sells at the price you set or better, depending on how the market moves. Executes when the market reaches that price. Execution is not guaranteed. |
stop-limit | Takes a stopPrice and a limit price. When the market reaches stopPrice, the order becomes a limit order at price. |
Order lifetime
- Orders expire after 30 days and are cancelled automatically. Partially filled orders are cancelled too, and the unfilled amount is unlocked.
- Cancelled market maker orders with no partial fill are kept for 7 days, then deleted from the system.