Execute block trade

Execute a block trade with selected offers. Executes a parent block trade by selecting specific offers from required signers. **Requirements:** - Called by block trade initiator - All selected offers must have valid, unexpired signatures - Required signers must have submitted offers for all markets - Block trade must be in READY_TO_EXECUTE state **Execution Process:** - All trades processed together - Creates fills and updates balances upon success - Participants receive fill notifications **Returns:** Executed block trade with status (COMPLETED/FAILED), fill details, timestamps, and settlement info.

Authentication

Authorizationstring
API Key authentication via header

Path parameters

block_trade_idstringRequired
Block Trade ID

Request

Block execution parameters
execution_noncestringRequired
Unique nonce for this execution request
signaturesmap from strings to objectsRequired
Map of offer IDs to initiator signatures accepting each offer. Block id if it is a direct block trade.
selected_offerslist of stringsOptional

Array of offer IDs selected for execution (offers are atomic, not partial)

Response

OK
block_expirationinteger
Unix timestamp in milliseconds when block expires
block_idstring

Backend-generated unique identifier

block_typeenum
Block type
Allowed values:
created_atinteger
When block was created
initiatorstring
Account that initiated this block trade
last_updated_atinteger
When block was last updated
noncestring
Original block nonce
parent_block_idstring

Parent block ID (if offer-based)

required_signerslist of strings
List of accounts that can participate in the block trade
signaturesmap from strings to objects

Current signatures on this block (for signature verification)

statusenum
Current status of the block trade
tradesmap from strings to objects
Map of market to trade details

Errors

400
Bad Request Error