Skip to main content
POST
Create algo order

Headers

orderly-timestamp
string
required

Timestamp of the signed request in milliseconds.

orderly-account-id
string
required

Account ID of the authenticated account.

orderly-key
string
required

Public orderly key used to sign the request.

orderly-signature
string
required

Signature of the request payload generated with the orderly key.

x-recv-window
number

Use this parameter to control the timeout threshold for placing order, unit in miliseconds

Body

application/json
symbol
string
required
algo_type
string
required

STOP/TP_SL/POSITIONAL_TP_SL/BRACKET/BRACKET + TP_SL/TRAILING_STOP

type
string
required

LIMIT / MARKET, required if algo_type = STOP

quantity
number
required

For MARKET/ASK/BID order, if order_amount is given, it is not required. Not required if type is POSITIONAL_TP_SL.

side
string
required

SELL/BUY, required if STOP type

child_orders
object[]
required
client_order_id
string

36 length, accepts hyphen but cannot be the first character, default: null

price
number

Optional for TP_SL and POSTIONAL_TP_SL

trigger_price_type
string

Only MARK_PRICE is available for now.

trigger_price
number
reduce_only
boolean
visible_quantity
boolean

Default false

order_tag
string

Optional tag for the order. Supports two formats:

  • Referral code: plain string (e.g., REFERRAL2026) - overrides referral relationship
  • Order tag fee config: enum:<enum_id> (e.g., enum:STRATEGY_DCA) - adds fee on top of existing fees, preserves referral Max length: 36 characters. Cannot be modified after order placement.
activatedPrice
string

Activated price for algoType=TRAILING_STOP

callbackRate
string

Callback rate, only for algoType=TRAILING_STOP, i.e. the value = 0.1 represent to 10%.

callbackValue
string

Callback value, only for algoType=TRAILING_STOP, i.e. the value = 100

margin_mode
enum<string>

Margin mode for the order. Default: the symbol's current default margin mode.

Available options:
CROSS,
ISOLATED

Response

200 - application/json

OK

success
boolean
required

Indicates whether the request was successful.

Example:

true

data
object
required
timestamp
integer

Server timestamp in milliseconds.

Example:

1702989203989