Skip to main content
POST
Place an order

Authorizations

X-API-KEY
string
header
required

Your API key; see "Signing requests".

X-API-TIMESTAMP
string
header
required

Time of the request in Unix milliseconds; see "Signing requests".

X-API-SIGNATURE
string
header
required

Hex Ed25519 signature of timestamp + API key + receive window + payload; see "Signing requests". X-API-RECV-WINDOW is optional.

Headers

Idempotency-Key
string
required

Your unique key for this order placement, for example a UUID. It only protects against duplicates; it is not stored on the order and does not appear in order events.

  • A repeated request with the same key within 24 hours never creates a second order: it is answered with the orderId of the first one. Retry with the same key after a timeout or a 5xx.
  • Send the same body with the same key. The body of a repeated request is not compared: a reused key returns the first order even if the body differs.
  • A key already used with another account is rejected with 400.
  • After 24 hours the key is forgotten, and a request with it places a new order.
Minimum string length: 1

Body

application/json
accountId
string
required

Id of the exchange account (a UUID), as listed in accountId by /api/v1/trading/account/list. Not the account's title.

Minimum string length: 1
Example:

"4b8e2f6a-91c3-4d57-a0e8-3f1c7b9d2e45"

connectorCode
string
required

Exchange connector the account trades the instrument through, such as binance_spot or binance_usdm, as listed in connectorCodes by /api/v1/trading/account/list. Required in every trading command.

Example:

"binance_usdm"

instrument
object
required

A security as the marketdata part of the API names it. Internal ids and GUIDs are not accepted.

order
object
required

An order: set exactly one of market and limit, and at most one of stop and trailingStop.

label
string

Your tag for the orders of one strategy or script. Cancelling orders in bulk can be narrowed to one label.

Minimum string length: 1
Example:

"grid-btc-1"

Response

The order was accepted for asynchronous processing.

orderId
string
required

TakeProfit id of the order.

requestId
string
required

Id of this request, for support.