Skip to main content
POST
Create 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
Example:

"PERP_ETH_USDC"

order_type
string
required

LIMIT/MARKET/IOC/FOK/POST_ONLY/ASK/BID

side
string
required

SELL/BUY

client_order_id
string

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

order_price
number

If order_type is MARKET/ASK/BID, then is not required, otherwise this parameter is required.

order_quantity
number
order_amount
number

For MARKET/ASK/BID order, the order size in terms of quote currency

visible_quantity
number

The order quantity shown on orderbook. (default: equal to order_quantity) Visible quantity is not supported for post-only orders.

reduce_only
boolean

Default false

slippage
number

MARKET orders beyond this slippage will not be executed

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.
level
number

Integer value from 0 to 4. This parameter controls wether to present the price of bid0 to bid4 or ask0 to ask4. Only allowed when order_type is BID or ASK.

post_only_adjust
boolean

If set to true, then price will be adjusted to 1 tick close to current best price. Only supported for POST_ONLY type orders

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