POST
Place an order

Authorizations

Authorization
string
header
required

The authorization field takes the session bearer returned by sign-in, or an API key where the route allows keys. Paste the token itself into the authorization field. When invitation-only access is enabled, private operations require the account's sign-in email to be invited. Sign-in can complete without an invitation, but private HTTP, MCP and FIX operations refuse with access_not_allowlisted (HTTP 403): "Private access is limited to invited accounts. Contact support to request access." Public market data remains available. Invitation changes apply to the next private operation, including existing FIX sessions. Do not retry until support confirms access.

Headers

Idempotency-Key
string
required
Minimum string length: 1

Body

application/json
accountId
string
required
Minimum string length: 1
marketId
string
required
Minimum string length: 1
clientOrderId
string
required

The order's id, chosen by the client: 1 to 256 ASCII letters, digits, periods, underscores, colons or hyphens. Canonical bot-order/v1: identifiers followed by an optional sha256: marker and 64 lowercase hex digits are also accepted. Ids that start with ord_liquidation_ or ord_adl_ are reserved for orders the engine places itself (liquidation closes and auto-deleverage legs); an order using one is rejected with invalid_order_id.

Required string length: 1 - 256
Pattern: ^(?:[A-Za-z0-9._:-]+|bot-order\/v1:(?:sha256:)?[a-f0-9]{64})$
side
enum<string>
required
Available options:
buy,
sell
orderType
string
required
Allowed value: "market"
quantity
string
required
Pattern: ^[0-9]+(?:\.[0-9]+)?$
reduceOnly
boolean
leverageX
integer
Required range: x >= 1
autoClose
object

Optional protection prices in price atoms. For a buy, take profit must be above the admission price and stop loss below it; for a sell, take profit must be below and stop loss above. Equality is rejected with invalid_price. The admission price of a limit order is its submitted limit price. A market order that is not reduce-only is sent to the engine as an IOC limit at the mark plus the market's price protection band for a buy, or minus it for a sell (100 bps on a standard market, 300 bps on a thin one), and that limit price is its admission price: the minimum distance of a buy's take profit is therefore the band above the mark, and of a sell's take profit the band below it. A reduce-only market order is admitted against the best opposite quote (best ask for a buy, best bid for a sell). Once the entry fills, each price arms a trigger that fires when the market's mark price reaches it, at or above a take profit of a long and a stop loss of a short, at or below the other two, and closes the position with a reduce-only market order.

Response

Accepted for processing

version
string
required
Allowed value: "external-order/v1"
orderId
string
required
Minimum string length: 1
accountId
string
required
Minimum string length: 1
marketId
string
required
Minimum string length: 1
status
enum<string>
required
Available options:
open,
partially_filled,
filled,
canceled,
replaced
lastSequence
integer
required
Required range: x >= 0
idempotencyKey
string
required
Minimum string length: 1
cancelReason
enum<string>

Why the order closed. price_protection: a market order that is not reduce-only trades only inside a band around the mark price (1% on most markets, 3% on thin ones); the part that found no liquidity inside the band was cancelled.

Available options:
margin_unbacked,
risk_evidence_incomplete,
market_session_closed,
reduce_only_position_unavailable,
price_protection
quantity
string

The order's base quantity when recorded, also returned when the order closed with part of it unfilled.

Pattern: ^[0-9]+(?:\.[0-9]+)?$
filledQuantity
string

The base quantity that filled when recorded, also returned when the order closed with part of it unfilled.

Pattern: ^[0-9]+(?:\.[0-9]+)?$
side
enum<string>

The accepted order side, when recorded.

Available options:
buy,
sell
orderType
enum<string>

The accepted order type, when recorded.

Available options:
limit,
market
price
string | null

The accepted limit price as a decimal string when recorded. Null for a recorded market order; absent when no order type or decimal limit price is available.

Pattern: ^[0-9]+(?:\.[0-9]+)?$
priceAtoms
string | null

The accepted limit price in price atoms when recorded. Null for a recorded market order; absent when the type or limit price is unavailable.

Pattern: ^[0-9]+$
quantityAtoms
string

The accepted original base quantity in quantity atoms, when recorded.

Pattern: ^[0-9]+$
filledQuantityAtoms
string

The filled base quantity in quantity atoms, when recorded. Absence does not mean zero; use account.fills keyed by orderId for execution updates.

Pattern: ^[0-9]+$
createdJournalSequence
integer

The journal sequence that created the order, when recorded. This is an ordinal, not a timestamp.

Required range: x >= 0
updatedJournalSequence
integer

The journal sequence of the latest lifecycle update, equal to lastSequence. This is an ordinal, not a timestamp.

Required range: x >= 0