Orders

Place a new order

Creates a new order with EIP-712 signature for on-chain settlement. Supports limit, market, and conditional orders with various execution policies. GTT orders' exp_ts must be at most 30 days in the future.

Requires authentication.

POST
/orders

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

PlaceOrderRequest creates a new order.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json