Create a single order request to Exchange

📘

When submitting "MARKET" order, the default for "BUY" is cash amount and for "SELL" it's quantity.

📘

If you would like to submit "BUY" in quantity, please change endpoint to "/api/v1.1/spot/order"

Weight: 1

Certain parameters are mandatory depending on the order type:

TypeMandatory parameters
LIMITquantity, price
MARKETquantity
LIMIT_MAKERquantity, price

Request Parameters

📘

api/v1/spot/order request parameters


PARAMETERTYPEReq'dDESCRIPTION
symbolSTRINGYName of instrument
e.g. "BTCUSD", "ETHUSD"
sideENUMYBUY or SELL
typeENUMYCurrently offer 3 order types:

- LIMIT - Limit order
- MARKET - Market order
- LIMIT_MAKER - Maker Limit order
quantityDECIMALYOrder amount in units of the instrument. Commonly known as "orderQty"
priceDECIMALCRequired for LIMIT and LIMIT_MAKER order
newClientOrderIdSTRINGAn ID defined by the client for the order, it will be automatically generated if it is not sent in the request.
timeInForceENUMGTC for Limit order, Limit maker order and IOC for Market order
recvWindowLONGRecv Window. Default 5000
timestampLONGYTimestamp

📘

api/v1.1/spot/order request parameters

PARAMETERTYPEReq'dDESCRIPTION
symbolSTRINGYName of instrument
e.g. "BTCUSD", "ETHUSD"
sideENUMYBUY or SELL
typeENUMYCurrently offer 3 order types:

- LIMIT - Limit order
- MARKET - Market order
- LIMIT_MAKER - Maker Limit order
quantityDECIMALC"Order amount in units of the instrument. Commonly known as "orderQty"

*Required if the order type is "MARKET"
amountDECIMALC"Cash amount in the units of quote currency. Market order only

*Required if the order type is "MARKET"
priceDECIMALCRequired for LIMIT and LIMIT_MAKER order
newClientOrderIdSTRINGAn ID defined by the client for the order, it will be automatically generated if it is not sent in the request
timeInForceENUMGTC for Limit order, Limit maker order and IOC for Market order
recvWindowLONGRecv Window. Default 5000
timestampLONGYTimestamp

Response Content


PARAMETERTYPEExample valuesDESCRIPTION
accountIdLONG1467298646903017216Account number
symbolSTRINGBTCUSDTrading pair
symbolNameSTRINGBTCUSDTrading pair name
clientOrderIdSTRING1690084460710352An ID defined by the client for the order, it will be automatically generated if it is not sent in the request
orderIdLONG1470929500342690304System generated order ID. A maximum of 20 characters.
transactTimeLONG1690084460716Millisecond timestamp
priceDECIMAL28000Price
origQtyDECIMAL0.01Quantity
executedQtyDECIMAL0Traded Volume
statusENUMNEWOrder status. See Enumeration definition for more details
timeInForceENUMGTCDuration of the order before expiring
typeENUMLIMITOrder type. See enumeration definition for more details
sideENUMBUYBUY or SELL
reqAmountSTRING0Requested Cash amount
concentrationSTRINGConcentration reminder message
Language
Authorization
Header
Click Try It! to start a request and see the response here!