POST
/
v1
/
algo
/
order
curl --request POST \
  --url https://api-evm.orderly.network/v1/algo/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": "<string>",
  "algo_type": "<string>",
  "client_order_id": "<string>",
  "type": "<string>",
  "price": 123,
  "quantity": 123,
  "trigger_price_type": "<string>",
  "trigger_price": 123,
  "reduce_only": true,
  "visible_quantity": true,
  "side": "<string>",
  "order_tag": "<string>",
  "child_orders": [
    {
      "symbol": "<string>",
      "algo_type": "<string>",
      "side": "<string>",
      "type": "<string>",
      "trigger_price": 123,
      "price": 123,
      "reduce_only": "<string>",
      "trigger_price_type": "<string>",
      "child_orders": [
        {}
      ]
    }
  ]
}'
{
  "success": true,
  "timestamp": 1702989203989,
  "data": {
    "order_id": 13,
    "client_order_id": "testclientid",
    "algo_type": "STOP",
    "quantity": 100.12
  }
}

Headers

orderly-timestamp
string
required
orderly-account-id
string
required
orderly-key
string
required
orderly-signature
string
required

Body

application/json
symbol
string
required
algo_type
string

STOP/TP_SL/POSITIONAL_TP_SL

client_order_id
string

36 length, default: null

type
string

LIMIT / MARKET, required if algo_type = STOP

price
number

Optional for TP_SL and POSTIONAL_TP_SL

quantity
number

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

trigger_price_type
string

Only MARK_PRICE is available for now.

trigger_price
number
reduce_only
boolean
visible_quantity
boolean

Default false

side
string

SELL/BUY, required if STOP type

order_tag
string
child_orders
object[]

Array of CreateAlgoOrderChildRequest

Response

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