For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Logo
Join CommunityStart Trading
HomeOverviewTradingRisk & LiquidationsParadex ChainEcosystemREST APIWebSocket APIAgentic AI HubRelease Notes
HomeOverviewTradingRisk & LiquidationsParadex ChainEcosystemREST APIWebSocket APIAgentic AI HubRelease Notes
  • General Information
    • Server Location
    • Server URLs
    • Quick Start
    • Authentication
    • Rate Limits
    • Benchmarks
    • API Authentication
    • API Best Practices
  • Production API Reference
  • Testnet API Reference
        • GETList block trades
        • POSTCreate block trade
        • GETGet block trade
        • DELCancel block trade
        • POSTExecute block trade
        • GETGet block trade offers
        • POSTCreate block trade offer
        • GETGet specific block trade offer
        • DELCancel block trade offer
        • POSTExecute individual offer
  • Useful Resources
    • Paradex Github
    • Paradex CLI
    • Code Samples
    • Python SDK
    • CCXT Integration
Join CommunityStart Trading
Testnet API ReferenceBlock Trades

Execute block trade

POST
https://api.testnet.paradex.trade/v1/block-trades/:block_trade_id/execute
POST
/v1/block-trades/:block_trade_id/execute
$curl -X POST https://api.testnet.paradex.trade/v1/block-trades/block_trade_id/execute \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "execution_nonce": "execution_001",
> "signatures": {}
>}'
1{
2 "block_expiration": 1640995800000,
3 "block_id": "block_456",
4 "block_type": "OFFER_BASED",
5 "created_at": 1640995200000,
6 "initiator": "0x123...abc",
7 "last_updated_at": 1640995400000,
8 "nonce": "67890",
9 "parent_block_id": "block_123",
10 "required_signers": [
11 "string"
12 ],
13 "signatures": {},
14 "status": "COMPLETED",
15 "trades": {}
16}
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.
Was this page helpful?
Previous

Get block trade offers

Next
Built with

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