Skip to main content

Submit order

POST

/az/spot/order

Remark​

Create a BUY order based on market price, quantity must be null, quoteQty required; Create a SELL order based on market price, quoteQty must be null, quantity required.

Limit Flow Rules​

20/s/apikey

Parameters​

ParameterTypeMandatoryDefaultDescriptionRanges
symbolstringtrue
clientOrderIdstringfalsePattern: ^[a-zA-Z0-9_]{4,32}$
sidestringtrueBUY,SELL
typestringtrueorder type:LIMIT,MARKET
timeInForcestringtrueeffective way:GTC, FOK, IOC, GTX, GTX_SELF_CANCEL
bizTypestringtrueSPOT, PREDICTION
pricenumberfalseprice. Required if it is the LIMIT price; blank if it is the MARKET price
quantitynumberfalsequantity. Required if it is the LIMIT price or the order is placed at the market price by quantity
quoteQtynumberfalseamount. Required if it is the LIMIT price or the order is the market price when placing an order by amount
outcomenumberfalseoutcome. Required if it is the PREDICTION bizType; [1=YES;2=NO]
slippagenumberfalseRFQ slippage. Example: 0.01

Response

{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": {
"orderId": "6216559590087220004", // order id
"clientOrderId": "16559590087220001" // client order id
}
}