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
Query parameters
Trading symbol, e.g. BNBUSDT
Order type
Order time in force
Order quantity
Quote quantity
Order price
Used to uniquely identify this cancel. Automatically generated by default
The value cannot be less than 1000000.
Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
Used with STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, and TAKE_PROFIT_LIMIT orders.
Used with LIMIT, STOP_LOSS_LIMIT, and TAKE_PROFIT_LIMIT to create an iceberg order.
Set the response JSON. MARKET and LIMIT order types default to FULL, all other orders default to ACK.
The allowed enums is dependent on what is configured on the symbol. The possible supported values are EXPIRE_TAKER, EXPIRE_MAKER, EXPIRE_BOTH, NONE.
The value cannot be greater than 60000
UTC timestamp in ms
Signature
Response
Order result
Example response
{
"symbol": "BTCUSDT",
"orderId": 28,
"orderListId": -1,
"clientOrderId": "6gCrw2kRUAF9CvJDGP16IP",
"transactTime": 1507725176595
}Changes
Changed in 5 of the 26 revisions of this API.257
- ○
added the new optional
queryrequest parameterselfTradePreventionModenew-optional-request-parameter
- ○
- ○
added the required property
oneOf[orderResponseFull]/selfTradePreventionModeto the response with the200statusresponse-required-property-added
- ○
added the required property
oneOf[orderResponseFull]/workingTimeto the response with the200statusresponse-required-property-added
- ○
added the required property
oneOf[orderResponseResult]/selfTradePreventionModeto the response with the200statusresponse-required-property-added
- ○
added the required property
oneOf[orderResponseResult]/workingTimeto the response with the200statusresponse-required-property-added
- ○
- ○
added the new optional
queryrequest parameterstrategyIdnew-optional-request-parameter
- ○
added the new optional
queryrequest parameterstrategyTypenew-optional-request-parameter
- ○
added the optional property
oneOf[orderResponseFull]/strategyIdto the response with the200statusresponse-optional-property-added
- ○
added the optional property
oneOf[orderResponseFull]/strategyTypeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
oneOf[orderResponseResult]/strategyIdto the response with the200statusresponse-optional-property-added
- ○
added the optional property
oneOf[orderResponseResult]/strategyTypeto the response with the200statusresponse-optional-property-added
- ○
- ○
added the new optional
queryrequest parametertrailingDeltanew-optional-request-parameter
- ○
- ▲
for the
queryrequest parameterrecvWindow, the type/format was changed frominteger/tointeger/int64request-parameter-type-changed
- ▲
for the
queryrequest parametertimestamp, the type/format was changed frominteger/tointeger/int64request-parameter-type-changed
- ○
for the
queryrequest parametericebergQty, the type/format was generalized fromnumber/floattonumber/doublerequest-parameter-type-generalized
- ○
for the
queryrequest parameterprice, the type/format was generalized fromnumber/floattonumber/doublerequest-parameter-type-generalized
- ○
for the
queryrequest parameterquantity, the type/format was generalized fromnumber/floattonumber/doublerequest-parameter-type-generalized
- ○
for the
queryrequest parameterquoteOrderQty, the type/format was generalized fromnumber/floattonumber/doublerequest-parameter-type-generalized
- ○
for the
queryrequest parameterstopPrice, the type/format was generalized fromnumber/floattonumber/doublerequest-parameter-type-generalized
- ○
the response property
codebecame required for the status400response-property-became-required
- ○
the response property
codebecame required for the status401response-property-became-required
- ○
the response property
msgbecame required for the status400response-property-became-required
- ○
the response property
msgbecame required for the status401response-property-became-required
- ○
the response property
oneOf[orderResponseAck]/clientOrderIdbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseAck]/orderIdbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseAck]/orderListIdbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseAck]/symbolbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseAck]/transactTimebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/clientOrderIdbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/cummulativeQuoteQtybecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/executedQtybecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/fillsbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/fills/items/commissionbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/fills/items/commissionAssetbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/fills/items/pricebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/fills/items/qtybecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/orderIdbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/orderListIdbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/origQtybecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/pricebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/sidebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/statusbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/symbolbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/timeInForcebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/transactTimebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseFull]/typebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/clientOrderIdbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/cummulativeQuoteQtybecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/executedQtybecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/orderIdbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/orderListIdbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/origQtybecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/pricebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/sidebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/statusbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/symbolbecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/timeInForcebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/transactTimebecame required for the status200response-property-became-required
- ○
the response property
oneOf[orderResponseResult]/typebecame required for the status200response-property-became-required
- ▲