Orders

Place an order group

Creates a group of related orders that are linked together. Currently supports BRACKET orders (entry order with linked take-profit and stop-loss orders). All orders in the group must trade the same market and be signed individually.

Requires authentication.

POST
/orders/group

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

PlaceOrderGroupRequest creates a group of related orders.

BRACKET group constraints (all enforced server-side, violations return 400):

  • 2-3 orders total: 1 parent + 1-2 children (TP and/or SL).
  • Parent must be LIMIT, MARKET, or STOP and must not be reduce-only.
  • Children must be STOP orders on the opposite side of the parent.
  • Children must be reduce-only with time-in-force IOC.
  • All orders must share the same market and size.
  • TP stop price must be above (long) / below (short) parent entry price.
  • SL stop price must be below (long) / above (short) parent entry price.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json