Create orders in batches up to 20 orders at a time. Currently only support for same symbol
- Weight 5
- Upper Limit: 20 orders/ batch
Request Parameters
Note
api/v1/spot/order request parameters
PARAMETER | TYPE | Req'd | DESCRIPTION |
---|---|---|---|
symbol | STRING | Y | Name of instrument |
side | ENUM | Y | BUY or SELL |
type | ENUM | Y | Currently offer 3 order types: |
quantity | DECIMAL | Y | Order amount in units of the instrument. |
price | DECIMAL | C | Required for LIMIT and LIMIT_MAKER order |
newClientOrderId | STRING | An ID defined by the client for the order, it will be automatically generated if it is not sent in the request. | |
timeInForce | ENUM | -"GTC" for Limit order & Limit maker order | |
recvWindow | LONG | Recv Window. Default 5000 | |
timestamp | LONG | Y | Timestamp |
stpMode | ENUM | C | Self Trade Prevention Mode.
|
Note
api/v1.1/spot/order request parameters
PARAMETER | TYPE | Req'd | DESCRIPTION |
---|---|---|---|
symbol | STRING | Y | Name of instrument |
side | ENUM | Y | BUY or SELL |
type | ENUM | Y | Currently offer 3 order types: |
quantity | DECIMAL | Y | Order amount in units of the instrument. |
amount | DECIMAL | C | Cash amount in the units of quote currency. Market order only |
price | DECIMAL | C | Required for LIMIT and LIMIT_MAKER order |
newClientOrderId | STRING | An ID defined by the client for the order, it will be automatically generated if it is not sent in the request. | |
timeInForce | ENUM | -"GTC" for Limit order & Limit maker order | |
recvWindow | LONG | Recv Window. Default 5000 | |
timestamp | LONG | Y | Timestamp |
stpMode | ENUM | C | Self Trade Prevention Mode.
|
Response Content
PARAMETER | TYPE | Example values | DESCRIPTION |
---|---|---|---|
code | INTEGER | 0 | Error code |
result | Object Array | Batch order result | |
-code | INTEGER | 0 | Error code of an order |
-msg | STRING | "Create order failed" | Error code |
-order | Object Array | Order response data | |
order.accountId | LONG | 1467298646903017216 | Account Number |
order.symbol | STRING | BTCUSD | Trading pair |
order.symbolName | STRING | BTCUSD | Trading pair name |
order.clientOrderId | STRING | 123433 | An ID defined by the client for the order, it will be automatically generated if it is not sent in the request |
order.orderId | LONG | 1470929631548869632 | System generated order ID. A maximum of 20 characters. |
order.transactTime | LONG | 1690084476357 | Millisecond timestamp |
order.price | DECIMAL | 28000 | Price |
order.origQty | DECIMAL | 0.01 | Quantity |
order.executedQty | DECIMAL | 0 | Traded Volume |
order.status | ENUM | FILLED | Order status. See Enumeration definition for more details |
order.timeInForce | ENUM | GTC | Duration of the order before expiring |
order.type | ENUM | LIMIT | Order type. See Enumeration definition for more details |
order.side | ENUM | SELL | BUY or SELL |
order.reqAmount | STRING | 0 | Requested Cash amount |
concentration | STRING | Concentration reminder message |