Headers
-
Broker access key identifier.
Format should match the following pattern:
^[A-Za-z0-9._~-]{1,64}$. -
Keyed BLAKE2b-256 signature (hex lowercase, 64 characters).
Format should match the following pattern:
^[0-9a-f]{64}$. -
RFC3339 timestamp with milliseconds (e.g., 2025-10-30T06:00:34.075Z). Must be within clock_skew_tolerance (default 5m) of server time.
-
Stable idempotency token reused on retries. Reuse with identical payload => 202. Reuse with different payload => 409 idempotency_key_mismatch.
Maximum length is
64. Format should match the following pattern:^[A-Za-z0-9._~-]{1,64}$. -
Optional UUIDv7 correlation identifier (lowercase). Must match RFC4122 UUIDv7 (version nibble '7', variant 8|9|a|b). If present but invalid → 422 invalid_correlation_id (error_code).
Format should match the following pattern:
^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$.
Path parameters
-
Broker-supplied account identifier; length 1..128; charset [A-Za-z0-9._~-].
Maximum length is
128. Format should match the following pattern:^[A-Za-z0-9._~-]{1,128}$.
Body
Required
-
Values are
BUYorSELL. -
Values are
LIMITorMARKET. -
Values are
GTC,IOC,FOK, orDAY. -
Values are
YESorNO. -
Required for LIMIT orders. Forbidden for MARKET orders.
-
Required for LIMIT and MARKET SELL orders. Forbidden for MARKET BUY.
-
Required for MARKET BUY orders (total budget). Forbidden for MARKET SELL.
-
Client-supplied identifier. Must be unique per broker_id. Reuse of the same ID may lead to unpredictable behavior when using client_order_id for lookups or modifications (e.g., affecting only the latest or an arbitrary order).
Maximum length is
64. Format should match the following pattern:^[A-Za-z0-9._~-]{1,64}$. -
Automatically merge YES and NO tokens for this account if they accumulate after this trade.
Default value is
false.
curl \
--request POST 'https://api.example.com/v1/trading/accounts/{account_id}/orders' \
--header "Content-Type: application/json" \
--header "PRE-ACCESS-KEY: string" \
--header "PRE-ACCESS-SIGNATURE: string" \
--header "PRE-ACCESS-TIMESTAMP: 2026-05-04T09:42:00Z" \
--header "Idempotency-Key: string" \
--header "Correlation-Id: string" \
--data '"{\n \"market_id\": \"btcusdt\",\n \"side\": \"BUY\",\n \"type\": \"LIMIT\",\n \"tif\": \"GTC\",\n \"price\": {\n \"units\": 25000,\n \"nanos\": 0\n },\n \"qty\": {\n \"units\": 1,\n \"nanos\": 0\n },\n \"client_order_id\": \"cli-ord-12345\"\n}"'
{
"market_id": "btcusdt",
"side": "BUY",
"type": "LIMIT",
"tif": "GTC",
"price": {
"units": 25000,
"nanos": 0
},
"qty": {
"units": 1,
"nanos": 0
},
"client_order_id": "cli-ord-12345"
}
{
"order_id": "string",
"client_order_id": "string"
}
{
"order_id": "string",
"client_order_id": "string"
}
{
"order_id": "string",
"client_order_id": "string"
}
{
"order_id": "string",
"client_order_id": "string"
}
{
"error_code": "string",
"message": "string",
"details": {}
}
{
"error_code": "string",
"message": "string",
"details": {}
}
# Headers
Retry-After: 42
# Payload
{
"error_code": "string",
"message": "string",
"details": {}
}
{
"error_code": "string",
"message": "string",
"details": {}
}