# Manual merge YES/NO positions **POST /trading/accounts/{account_id}/merge** Annihilate equal amounts of YES and NO tokens to release capital. The `merge_id` is deterministically generated from the request fingerprint (`cmd_id`). ## Servers - Production: https://api.example.com/v1 (Production) - Sandbox: https://sandbox.api.example.com/v1 (Sandbox) ## Authentication methods - Api key auth ## Parameters ### Headers - **PRE-ACCESS-KEY** (string) Broker access key identifier. - **PRE-ACCESS-SIGNATURE** (string) Keyed BLAKE2b-256 signature (hex lowercase, 64 characters). - **PRE-ACCESS-TIMESTAMP** (string(date-time)) RFC3339 timestamp with milliseconds (e.g., 2025-10-30T06:00:34.075Z). Must be within clock_skew_tolerance (default 5m) of server time. - **Idempotency-Key** (string) Stable idempotency token reused on retries. Reuse with identical payload => 202. Reuse with different payload => 409 idempotency_key_mismatch. ### Path parameters - **account_id** (string) Broker-supplied account identifier; length 1..128; charset [A-Za-z0-9._~-]. ### Body: application/json (object) - **market_id** (string) - **qty** (object) - **client_ref_id** (string) Client-supplied identifier for correlation (client_merge_id). ## Responses ### 202 Merge command accepted #### Body: application/json (object) - **ref_id** (string) System fingerprint of the request (cmd_id). Use for correlation with Accounting Stream. - **client_ref_id** (string) The client-supplied reference ID for correlation. ### 409 Idempotency-Key reused with different payload #### Body: application/json (object) - **error_code** (string) - **message** (string) - **details** (object) ### 422 Validation / semantic error #### Body: application/json (object) - **error_code** (string) - **message** (string) - **details** (object) ### 503 Backpressure / temporary unavailability #### Body: application/json (object) - **error_code** (string) - **message** (string) - **details** (object) [Powered by Bump.sh](https://bump.sh)