Request
| Field | Type | Need | Description | Example |
|---|---|---|---|---|
”id” | Full UUID string | required | Client-defined request ID | 660065de-8f32-46ad-ba1e-83c93d3e3966 |
”actions” | array | required | List of order actions to perform Each action has a “type” field and action-specific “data” | See next two rows |
”type” | string | required | Specifies type of action. This is DIFFERENT to the “type” used in signature headers |
|
“data” | object | required | Contains signed request payloads of individual actions. Fields are identical to the corresponding standalone endpoints: create limit order, create market order, cancel order, edit order, create position TP/SL, and cancel stop order. | See code block below. Messages and corresponding fields are identical to create and cancel requests. |
Response
- Status 200: Batch operations processed successfully
results corresponds positionally to an action in the request actions array, and has the following fields:
| Field | Type | Description |
|---|---|---|
'success' | boolean | Whether the individual action succeeded |
'order_id' | integer or null | Resulting order ID (null for cancels or failed actions) |
'error' | string or null | Error message if the action failed, otherwise null |
rl (rate-limit) object: r = credits remaining, q = quota, t = reset-in (ms).
- Status 400: Bad request
- Status 500: Internal server error
Notes on Batch Ordering
Speed Bump (Latency Protection)
Batch orders are subject to a conditional randomized ~200ms (190-210ms) delay to protect liquidity providers from adverse selection:Speed bump is applied if the batch contains:
- Market orders (CreateMarket)
- Limit orders with TIF = GTC or IOC
- Add Liquidity Only orders (TIF = ALO)
- Top of Book orders (TIF = TOB)
- Cancel operations
- TP/SL operations
Signature Requirements
- Each action in the batch must be individually signed
- All signatures must be valid for the batch to process
Execution Behavior and Limits
- Maximum 10 actions per batch request
- Actions are executed atomically in the order provided
- If one action fails, subsequent actions are still attempted