Skip to main content
POST
Create Order

Body

application/json

Schema for creating a new order.

order_type
enum<string>
required

Order type: 'LIMIT' or 'MARKET'

Available options:
LIMIT,
MARKET
time_in_force
enum<string>
required

Time in force: 'FOK', 'GTC', 'GTD', or 'IOC'

Available options:
FOK,
GTC,
GTD,
IOC
qty
number
required

Order quantity (number of contracts)

buy_flag
boolean
required

Order direction: true=buy, false=sell

subaccount_id
string<uuid>
required

Subaccount to place the order under

price
number | null

Limit price between 0 and 1. Required for LIMIT orders.

Required range: 0 < x < 1
centos_id
integer | null

Instrument ID. Mutually exclusive with custom_asset_id.

custom_asset_id
string<uuid> | null

Custom asset basket UUID. Mutually exclusive with centos_id.

expiry_ts_utc
string<date-time> | null

Expiry timestamp in UTC(ISO 8601). Required for GTD orders. i.e '2023-11-07T05:31:56Z'

conditional_orders_params
ConditionalOrderCreate · object[] | null

Optional list of conditional orders (TP/SL) to attach to this order.

Response

Successful Response

Schema for order create response.

centos_order_id
string<uuid>
required

Unique order identifier

complex_orders
Complex Orders · object
required

List of complex centos orders id