Annihilate equal amounts of YES and NO tokens to release capital.
The merge_id is deterministically generated from the request fingerprint (cmd_id).
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. Its server-side context has a sliding TTL of one hour, refreshed by every request carrying the key. Reuse with a different payload returns 409 idempotency_key_mismatch. Reuse with an identical payload returns 202 after the command has been accepted; if its outcome cannot be confirmed after the safe retry period, it returns 503 outcome_unknown and the server makes no further delivery attempts.
Maximum length is
64. Format should match the following pattern:^[A-Za-z0-9._~-]{1,64}$.
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}$.
Responses
-
Merge command accepted
-
The broker is not allowed to perform this action in the current market state
-
Idempotency-Key reused with different payload
-
Validation / semantic error
-
The request could not be served.
error_codein the response body gives the reason and determines whether the request may be retried.
curl \
--request POST 'https://api.example.com/v1/trading/accounts/{account_id}/merge' \
--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" \
--data '{
"market_id": "string",
"qty": {
"units": 42,
"nanos": 42
},
"client_ref_id": "string"
}'
# Headers
PRE-ACCESS-KEY: string
PRE-ACCESS-SIGNATURE: string
PRE-ACCESS-TIMESTAMP: 2026-05-04T09:42:00Z
Idempotency-Key: string
# Payload
{
"market_id": "string",
"qty": {
"units": 42,
"nanos": 42
},
"client_ref_id": "string"
}
{
"ref_id": "string",
"client_ref_id": "string"
}
{
"error_code": "string",
"message": "string",
"details": {}
}
{
"error_code": "string",
"message": "string",
"details": {}
}
{
"error_code": "string",
"message": "string",
"details": {}
}
{
"error_code": "string",
"message": "string",
"details": {}
}