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.

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 or null
Unix timestamp in milliseconds when block expires
block_idstring or null

Backend-generated unique identifier

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

Parent block ID (if offer-based)

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

Current signatures on this block (for signature verification)

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

Errors