Trade
New Order (TRADE)
Send in a new order.
- LIMIT_MAKER are LIMIT orders that will be rejected if they would immediately match and trade as a taker.
- STOP_LOSS and TAKE_PROFIT will execute a MARKET order when the stopPrice is reached.
- Any LIMIT or LIMIT_MAKER type order can be made an iceberg order by sending an icebergQty.
- Any order with an icebergQty MUST have timeInForce set to GTC.
- MARKET orders using quantity specifies how much a user wants to buy or sell based on the market price.
- MARKET orders using quoteOrderQty specifies the amount the user wants to spend (when buying) or receive (when selling) of the quote asset; the correct quantity will be determined based on the market liquidity and quoteOrderQty.
- MARKET orders using quoteOrderQty will not break LOT_SIZE filter rules; the order will execute a quantity that will have the notional value as close as possible to quoteOrderQty.
- same newClientOrderId can be accepted only when the previous one is filled, otherwise the order will be rejected.
Trigger order price rules against market price for both MARKET and LIMIT versions:
- Price above market price: STOP_LOSS BUY, TAKE_PROFIT SELL
- Price below market price: STOP_LOSS SELL, TAKE_PROFIT BUY
Weight(IP): 1
post/api/v3/order
Query parameters
symbolstring required
Example:BNBUSDT
Trading symbol, e.g. BNBUSDT
side'SELL' | 'BUY' required
Example:SELL
type'LIMIT' | 'MARKET' | 'STOP_LOSS' | 'STOP_LOSS_LIMIT' | 'TAKE_PROFIT' | 'TAKE_PROFIT_LIMIT' | 'LIMIT_MAKER' required
Order type
timeInForce'GTC' | 'IOC' | 'FOK'
Order time in force
quantitynumber double
Order quantity
quoteOrderQtynumber double
Quote quantity
pricenumber double
Order price
newClientOrderIdstring
Used to uniquely identify this cancel. Automatically generated by default
strategyIdinteger
strategyTypeinteger
The value cannot be less than 1000000.
stopPricenumber double
Example:20.01
Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
trailingDeltanumber double
Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
icebergQtynumber double
Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
newOrderRespType'ACK' | 'RESULT' | 'FULL'
Set the response JSON. MARKET and LIMIT order types default to FULL, all other orders default to ACK.
recvWindowinteger
Example:5000
The value cannot be greater than 60000
timestampinteger required
UTC timestamp in ms
signaturestring required
Signature
Response
Order result
Example response
{
"symbol": "BTCUSDT",
"orderId": 28,
"orderListId": -1,
"clientOrderId": "6gCrw2kRUAF9CvJDGP16IP",
"transactTime": 1507725176595
}