Cancel Algo Order (TRADE)
Cancel an active algo order.
Cancel Algo Order (TRADE) › Authorization
Cancel Algo Order (TRADE) › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Cancel Algo Order (TRADE) › Request Parameters
idId.
methodWebSocket API method name.
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
apiKeyAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
algoIdAlgo Id.
clientAlgoIdClient Algo Id.
recvWindowRecv Window.
Cancel Algo Order (TRADE) › Responses
Cancel Algo Order
idstatusalgoIdclientAlgoIdcodemsgrateLimitTypeintervalintervalNumlimitcountCancel Order (TRADE)
Cancel an active order.
Cancel Order (TRADE) › Authorization
Cancel Order (TRADE) › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Cancel Order (TRADE) › Request Parameters
idId.
methodWebSocket API method name.
symbolSymbol.
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
apiKeyAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
orderIdOrder Id.
origClientOrderIdOrig Client Order Id.
recvWindowRecv Window.
Cancel Order (TRADE) › Responses
Cancel Order
idstatusclientOrderIdcumQtyexecutedQtyorderIdorigQtyorigTypepricereduceOnlysidepositionSidestatusstopPriceclosePositionsymboltimeInForcetypeactivatePricepriceRateupdateTimeworkingTypepriceProtectpriceMatchselfTradePreventionModegoodTillDaterateLimitTypeintervalintervalNumlimitcountModify Order (TRADE)
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
Modify Order (TRADE) › Authorization
Modify Order (TRADE) › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
1 on 10s order rate limit(X-MBX-ORDER-COUNT-10S); 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M); 0 on IP rate limit(x-mbx-used-weight-1m)
Modify Order (TRADE) › Request Parameters
idId.
methodWebSocket API method name.
symbolSymbol.
sideSELL, BUY
quantityOrder quantity, cannot be sent with closePosition=true
pricePrice.
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
apiKeyAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
orderIdOrder Id.
origClientOrderIdOrig Client Order Id.
priceMatchonly avaliable for LIMIT/STOP/TAKE_PROFIT order; Can't be passed together with price
modifyIdUser-defined modification identifier, returned as-is in the response. Optional; not validated for uniqueness.
recvWindowRecv Window.
Modify Order (TRADE) › Responses
Modify Order
idstatusorderIdsymbolstatusclientOrderIdmodifyIduser-defined modification identifier, only returned if provided in the request
priceorigQtyexecutedQtycumQtytimeInForcetypereduceOnlyclosePositionsidepositionSidestopPriceworkingTypepriceProtectorigTypepriceMatchselfTradePreventionModegoodTillDateupdateTimerateLimitTypeintervalintervalNumlimitcountNew Algo Order (TRADE)
Send in a new algo order.
New Algo Order (TRADE) › Authorization
New Algo Order (TRADE) › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
New Algo Order (TRADE) › Request Parameters
idId.
methodWebSocket API method name.
algoTypeOnly support CONDITIONAL
symbolSymbol.
sideSide.
typeFor CONDITIONAL algoType, STOP_MARKET/TAKE_PROFIT_MARKET/STOP/TAKE_PROFIT/TRAILING_STOP_MARKET as order type
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
apiKeyAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
positionSideDefault BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. It must be sent in Hedge Mode.
timeInForceIOC or GTC or FOK, default GTC
quantityCannot be sent with closePosition=true(Close-All)
pricePrice.
triggerPriceTrigger Price.
workingTypetriggerPrice triggered by: MARK_PRICE, CONTRACT_PRICE. Default CONTRACT_PRICE
priceMatchonly avaliable for LIMIT/STOP/TAKE_PROFIT order; Can't be passed together with price
closePositionClose-All,used with STOP_MARKET or TAKE_PROFIT_MARKET.
priceProtectUsed with STOP_MARKET or TAKE_PROFIT_MARKET order. when price reaches the triggerPrice ,the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the Price Protection Threshold of the symbol.
reduceOnlyCannot be sent in Hedge Mode; cannot be sent with closePosition=true
activatePriceUsed with TRAILING_STOP_MARKET orders, default as the latest price(supporting different workingType)
callbackRateUsed with TRAILING_STOP_MARKET orders
clientAlgoIdA unique id among open orders. Automatically generated if not sent. Can only be string following the rule: ^[\.A-Z\:/a-z0-9_-]{1,36}$
newOrderRespType"ACK", "RESULT", default "ACK"
selfTradePreventionModeEXPIRE_TAKEREXPIRE_MAKEREXPIRE_BOTHNONE
goodTillDateorder cancel time for timeInForce GTD, mandatory when timeInforce set to GTD; order the timestamp only retains second-level precision, ms part will be ignored; The goodTillDate timestamp must be greater than the current time plus 600 seconds and smaller than 253402300799000
recvWindowRecv Window.
New Algo Order (TRADE) › Responses
New Algo Order
idstatusalgoIdclientAlgoIdalgoTypeorderTypesymbolsidepositionSidetimeInForcequantityalgoStatustriggerPricepriceicebergQuantityselfTradePreventionModeworkingTypepriceMatchclosePositionpriceProtectreduceOnlycreateTimeupdateTimetriggerTimegoodTillDaterateLimitTypeintervalintervalNumlimitcountNew Order (TRADE)
Send in a new order.
New Order (TRADE) › Authorization
New Order (TRADE) › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
New Order (TRADE) › Request Parameters
idId.
methodWebSocket API method name.
symbolSymbol.
sideSide.
typetimestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
apiKeyAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
positionSideDefault BOTH for One-way Mode ; LONG or SHORT for Hedge Mode. It must be sent in Hedge Mode.
timeInForceTime In Force.
reduceOnlyCannot be sent in Hedge Mode
quantitypricePrice.
newClientOrderIdA unique id among open orders. Automatically generated if not sent. Can only be string following the rule: ^[\.A-Z\:/a-z0-9_-]{1,36}$
newOrderRespTypepriceMatchonly available for LIMIT order; Can't be passed together with price
selfTradePreventionModeNONEEXPIRE_TAKEREXPIRE_MAKEREXPIRE_BOTHNONE
goodTillDateorder cancel time for timeInForce GTD, mandatory when timeInforce set to GTD; order the timestamp only retains second-level precision, ms part will be ignored; The goodTillDate timestamp must be greater than the current time plus 600 seconds and smaller than 253402300799000
recvWindowRecv Window.
New Order (TRADE) › Responses
New Order
idstatusorderIdsymbolstatusclientOrderIdpriceorigQtyexecutedQtycumQtytimeInForcetypereduceOnlyclosePositionsidepositionSidestopPriceworkingTypepriceProtectorigTypepriceMatchselfTradePreventionModegoodTillDateupdateTimerateLimitTypeintervalintervalNumlimitcountPosition Information (USER_DATA)
Get current position information.
Position Information (USER_DATA) › Authorization
Position Information (USER_DATA) › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Position Information (USER_DATA) › Request Parameters
idId.
methodWebSocket API method name.
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
apiKeyAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
symbolSymbol.
recvWindowRecv Window.
Position Information (USER_DATA) › Responses
Position Information
idstatusentryPricebreakEvenPricemarginTypeisAutoAddMarginisolatedMarginleverageliquidationPricemarkPricemaxNotionalValuepositionAmtnotionalisolatedWalletsymbolunRealizedProfitpositionSideupdateTimerateLimitTypeintervalintervalNumlimitcountPosition Information V2 (USER_DATA)
Get current position information(only symbol that has position or open orders will be returned).
Position Information V2 (USER_DATA) › Authorization
Position Information V2 (USER_DATA) › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Position Information V2 (USER_DATA) › Request Parameters
idId.
methodWebSocket API method name.
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
apiKeyAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
symbolSymbol.
recvWindowRecv Window.
Position Information V2 (USER_DATA) › Responses
Position Information V2
idstatussymbolpositionSidePosition Side
positionAmtentryPricebreakEvenPricemarkPriceunRealizedProfitUnrealized Profit
liquidationPriceisolatedMarginnotionalmarginAssetisolatedWalletinitialMarginInitial Margin
maintMarginMaintainance Margin
positionInitialMarginPosition Initial Margin
openOrderInitialMarginOpen Order Initial Margin
adlbidNotionalaskNotionalupdateTimeUpdate Time
rateLimitTypeintervalintervalNumlimitcountQuery Order (USER_DATA)
Check an order's status.
- These orders will not be found:
- order status is
CANCELEDorEXPIREDAND order has NO filled trade AND created time + 3 days < current time - order create time + 90 days < current time
- order status is
Query Order (USER_DATA) › Authorization
Query Order (USER_DATA) › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Order (USER_DATA) › Request Parameters
idId.
methodWebSocket API method name.
symbolSymbol.
timestampUnix timestamp in milliseconds used to sign the request. The value must reflect the current client time and is validated by the server for signed endpoints.
apiKeyAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
orderIdOrder Id.
origClientOrderIdOrig Client Order Id.
recvWindowRecv Window.
Query Order (USER_DATA) › Responses
Order Status
idstatusavgPriceclientOrderIdcumQuoteexecutedQtyorderIdorigQtyorigTypepricereduceOnlysidepositionSidestatusstopPriceplease ignore when order type is TRAILING_STOP_MARKET
closePositionif Close-All
symboltimeorder time
timeInForcetypeactivatePriceactivation price, only return with TRAILING_STOP_MARKET order
priceRatecallback rate, only return with TRAILING_STOP_MARKET order
updateTimeupdate time
workingTypepriceProtectif conditional order trigger is protected
priceMatchselfTradePreventionModeSelf-trade prevention mode
goodTillDateOrder good till date timestamp