Create block trade
Create a parent block trade for multi-party execution.
Block trades coordinate execution across multiple parties. The initiator creates a parent block trade specifying trade details and required signers, who must submit offers before execution.
Requirements:
- Required signers must have active onboarding and block trade functionality
- Valid StarkNet signature with expiration timestamp
- Each trade specifies market, size, price, and order details
Workflow:
- Initiator creates parent block trade
- Required signers submit offers
- Initiator executes with selected offers
- All trades processed together
Request
Block trade content
block_expiration
Unix timestamp in milliseconds when block expires
nonce
Unique nonce for this block trade request
required_signers
List of accounts that can participate in the block trade
signatures
Map of account addresses to their signatures. Can be empty or partial.
trades
Map of market symbol to trade info (one per market)
Response
Created
block_expiration
Unix timestamp in milliseconds when block expires
block_id
Backend-generated unique identifier
block_type
Block type
Allowed values:
created_at
When block was created
initiator
Account that initiated this block trade
last_updated_at
When block was last updated
nonce
Original block nonce
parent_block_id
Parent block ID (if offer-based)
required_signers
List of accounts that can participate in the block trade
signatures
Current signatures on this block (for signature verification)
status
Current status of the block trade
trades
Map of market to trade details