POST
/
v1
/
order
curl --request POST \
  --url https://api-evm.orderly.org/v1/order \
  --header 'Content-Type: application/json' \
  --header 'orderly-account-id: <orderly-account-id>' \
  --header 'orderly-key: <orderly-key>' \
  --header 'orderly-signature: <orderly-signature>' \
  --header 'orderly-timestamp: <orderly-timestamp>' \
  --data '{
  "symbol": "PERP_ETH_USDC",
  "client_order_id": "<string>",
  "order_type": "<string>",
  "order_price": 123,
  "order_quantity": 123,
  "order_amount": 123,
  "visible_quantity": 123,
  "side": "<string>",
  "reduce_only": true,
  "slippage": 123,
  "order_tag": "<string>",
  "level": 123,
  "post_only_adjust": true
}'
{
  "success": true,
  "timestamp": 1702989203989,
  "data": {
    "order_id": 13,
    "client_order_id": "testclientid",
    "order_type": "LIMIT",
    "order_price": 100.12,
    "order_quantity": 0.987654,
    "order_amount": 0.8,
    "error_message": "none"
  }
}

Headers

orderly-timestamp
string
required
orderly-account-id
string
required
orderly-key
string
required
orderly-signature
string
required
x-recv-window
number

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

Body

application/json
symbol
string
required
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

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

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)

reduce_only
boolean

Default false

slippage
number

MARKET orders beyond this slippage will not be executed

order_tag
string
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

Response

200 - application/json
OK
success
boolean
required
data
object
required
timestamp
integer