Create Target Order
Use Case
Create a price-triggered order that fires once the market hits your target_price — the limit-style primitive for the Trading API. side: "buy" fires when the market falls to or below target; side: "sell" fires when the market rises to or above target.
Request Body
Asset to buy or sell (e.g. 'BTC').
Currency the target_price is expressed in.
'buy' or 'sell'.
Amount of base_currency to trade once triggered.
Trigger price in quote_currency units. Buy orders trigger at <= target; sell orders trigger at >= target.
When the order should auto-cancel if never triggered. Empty string when the order has no expiry.
Client-generated identifier for idempotency and tracking.
Response Fields
Flag indicating the target order was created.
Human-readable status message.
The created target order.
Target order identifier.
Company that owns the order.
Asset to buy or sell.
Pricing currency for target_price.
'BUY' or 'SELL' (returned uppercase).
Total base-asset amount requested.
Base-asset amount already filled.
Base-asset amount still pending: quantity - filled_quantity.
Trigger price in quote_currency.
Volume-weighted average price across fills. Empty string until the first fill.
Quote-currency amount escrowed at creation (includes fees). Returned to the wallet on cancel/expiry.
Portion of locked_amount still reserved and not yet consumed by fills.
Currency held in escrow — quote_currency for buys, base_currency for sells.
'active', 'triggered', 'filled', 'cancelled', or 'expired'.
Auto-cancel timestamp. Empty string when the order has no expiry.
Timestamp of the first trigger. Empty until the target price is hit.
Timestamp of the most recent fill. Empty until the first fill.
Timestamp when the order was completely filled. Empty while partial or active.
When the order was created.
When the order was last modified.
Client-supplied idempotency key echoed back. Empty string when not provided.
Unique request identifier for support and tracing.
Server time when the response was generated.
locked_amount is escrowed the moment the order is created — for buys this is quantity × target_price plus fees in quote_currency, and for sells it's quantity of base_currency. This reservation is released back to the wallet if the order is cancelled or expires without fully filling.
List Target Orders
Use Case
Return all target orders under data.orders[]. Each entry is the full target-order record — same shape as Create Target Order's data.order, including the escrow fields (locked_amount, remaining_locked, locked_currency) and state timestamps. Filter by status to surface only what you care about.
Query Parameters
Filter by lifecycle state: 'active', 'triggered', 'filled', 'cancelled', or 'expired'.
Response Fields
Flag indicating the query succeeded.
Human-readable status message.
List of target orders. Each entry is the full Create Target Order shape — see that section for per-field documentation.
Unique request identifier for support and tracing.
Server time when the response was generated.
Get Target Order
Use Case
Retrieve a single target order by ID under data.order. Use this to poll a specific order's lifecycle — it surfaces status, filled_quantity / remaining_quantity, average_fill_price, the escrow fields (locked_amount / remaining_locked / locked_currency), and state timestamps (first_triggered_at, last_fill_at, fully_filled_at).
Path Parameters
Target order identifier.
Response Fields
Flag indicating the order was retrieved.
Human-readable status message.
The target order record. Shape is identical to Create Target Order's data.order — refer to that section for per-field docs.
Unique request identifier for support and tracing.
Server time when the response was generated.
Once the market hits the target, first_triggered_at becomes populated and fills flow in — filled_quantity, average_fill_price, and last_fill_at update per fill. When the order is fully filled, status flips to filled and fully_filled_at is set. remaining_locked tracks unspent escrow and is released back to the wallet on cancel, expiry, or final fill.