Orders

Place TWAP orders

Creates a batch of TWAP sub-orders that execute at scheduled intervals. Each sub-order is individually signed and scheduled. All sub-orders must share the same market, side, price, and size, and must be ordered with strictly increasing nonces.

Schedule constraints (return 400 when violated): sched_ts intervals between consecutive sub-orders must be positive, equal across the batch, and divisible by 60 seconds; the first sched_ts must be at least 10 seconds in the future.

Requires authentication.

POST
/orders/twap

Authorization

ApiKeyAuth ApiSignatureAuth ApiTimestampAuth
x-api-key<token>

API key for authentication

In: header

x-api-signature<token>

HMAC-SHA256 signature: base64(HMAC(timestamp + method + path + body, secret))

In: header

x-api-timestamp<token>

Unix timestamp in seconds

In: header

Request Body

application/json

PlaceTWAPOrdersRequest creates a batch of TWAP sub-orders.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json