Get trades for a specific account and symbol.
Weight(IP): 5
Security Type: USER_DATA
Notes:
startTime and endTime are both not sent, then the last 7 days' data will be returned.startTime and endTime cannot be longer than 7 days.fromId cannot be sent with startTime or endTime.Request parameters.
Get all account orders; active, canceled, or filled.
CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current timeWeight(IP): 5
Security Type: USER_DATA
Notes:
orderId is set, it will get orders >= that orderId. Otherwise most recent orders are returned.Request parameters.
Cancel all open orders of the specified symbol at the end of the specified countdown.
The endpoint should be called repeatedly as heartbeats so that the existing countdown time can be canceled and replaced by a new one.
Example usage:
Call this endpoint at 30s intervals with an countdownTime of 120000 (120s). If this endpoint is not called within 120 seconds, all your orders of the specified symbol will be automatically canceled. If this endpoint is called with an countdownTime of 0, the countdown timer will be stopped.
The system will check all countdowns approximately every 10 milliseconds, so please note that sufficient redundancy should be considered when using this function. We do not recommend setting the countdown time to be too precise or too small.
Weight(IP): 10
Security Type: TRADE
Request parameters.
Cancel an active algo (conditional) order, including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.
Weight(IP): 1
Security Type: TRADE
Notes:
algoId or clientAlgoId must be sent.OptionalrequestParameters: DerivativesTradingUsdsFuturesRestAPI.CancelAlgoOrderRequestRequest parameters.
Cancel all open algo (conditional) orders on a symbol, including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel All Open Orders
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel Multiple Orders
Weight(IP): 1
Security Type: TRADE
Notes:
orderIdList or origClientOrderIdList must be sent.Request parameters.
Cancel an active order.
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Change user's initial leverage of specific symbol market.
Weight(IP): 1
Security Type: TRADE
Request parameters.
Change symbol level margin type
Weight(IP): 1
Security Type: TRADE
Request parameters.
Change user's Multi-Assets mode (Multi-Assets Mode or Single-Asset Mode) on Every symbol
Weight(IP): 1
Security Type: TRADE
Request parameters.
Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol.
After CM migration*, UM and CM share the same dualSidePosition setting. Calling this endpoint flips both UM and CM at once. If either side has any open order or open position, the change is rejected:
-4067 (open orders exist)-4068 (open position exists)Weight(IP): 1
Security Type: TRADE
Request parameters.
Get all open algo (conditional) orders on a symbol, including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.
Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
Careful* when accessing this with no symbol.
Security Type: USER_DATA
Notes:
OptionalrequestParameters: CurrentAllAlgoOpenOrdersRequestRequest parameters.
Get all open orders on a symbol.
Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
Careful* when accessing this with no symbol.
Security Type: USER_DATA
Notes:
OptionalrequestParameters: DerivativesTradingUsdsFuturesRestAPI.CurrentAllOpenOrdersRequestRequest parameters.
Sign TradFi-Perps agreement contract
Weight(IP): 50
Security Type: USER_DATA
OptionalrequestParameters: DerivativesTradingUsdsFuturesRestAPI.FuturesTradfiPerpsContractRequestRequest parameters.
Get order modification history
Weight(IP): 1
Security Type: USER_DATA
Notes:
Either orderId or origClientOrderId must be sent, and the
orderId will prevail if both are sent.
Order modify history longer than 3 month is not avaliable
Request parameters.
Get Position Margin Change History
Weight(IP): 1
Security Type: TRADE
Notes:
startTime and endTimecan't be more than 30 daysRequest parameters.
Modify Isolated Position Margin
Weight(IP): 1
Security Type: TRADE
Notes:
Request parameters.
Modify Multiple Orders (TRADE)
Weight: 5 on 10s order rate limit(X-MBX-ORDER-COUNT-10S); 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M); 5 on IP rate limit(x-mbx-used-weight-1m);
Security Type: TRADE
Notes:
Modify OrderRequest parameters.
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
Weight: 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)
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent, and the orderId will prevail if both are sent.quantity and price must be sent, which is different from dapi modify order endpoint.quantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.quantity <= executedQtyGTX and the new price will cause it to be executed immediatelyRequest parameters.
Send in a new algo (conditional) order. Use this endpoint to place TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures. Supported order types under algoType=CONDITIONAL are STOP_MARKET, TAKE_PROFIT_MARKET, STOP, TAKE_PROFIT, and TRAILING_STOP_MARKET.
Weight: 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)
Security Type: TRADE
Notes:
STOP, parameter timeInForce can be sent (default GTC).TAKE_PROFIT, parameter timeInForce can be sent ( default GTC).priceProtectis sent as true:triggerPrice ,the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbolGET /fapi/v1/exchangeInfoSTOP, STOP_MARKET:triggerPriceTAKE_PROFIT, TAKE_PROFIT_MARKET:triggerPriceTRAILING_STOP_MARKET:callbackRate)activatePrice, and the latest priceTRAILING_STOP_MARKET, if you got such error code. > {"code": -2021, "msg": "Order would immediately trigger."} > means that the parameters you send do not meet the following requirements:activatePrice should be smaller than latest price.activatePrice should be larger than latest price.STOP_MARKET, TAKE_PROFIT_MARKET with closePosition=true:SELL) or current short position( if BUY).quantity paremeterreduceOnly parameterBUY orders in LONG position side. and cannot be used with SELL orders in SHORT position sideselfTradePreventionMode is only effective when timeInForce set to IOC or GTC or GTD.Request parameters.
Send in a new order.
Weight: 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)
Security Type: TRADE
Notes:
Additional mandatory parameters based on type:
| Type | Additional mandatory parameters |
|---|---|
LIMIT |
timeInForce, quantity, price |
MARKET |
quantity |
newOrderRespType is sent as RESULT:MARKET order: the final FILLED result of the order will be returned directly.LIMIT order with special timeInForce: the final status result of the order (FILLED or EXPIRED) will be returned directly.selfTradePreventionMode is only effective when timeInForce is set to IOC, GTC, or GTD.timeInForce GTD order auto-cancel time might be delayed compared to goodTillDate.Request parameters.
Place Multiple Orders
Weight: 5 on 10s order rate limit(X-MBX-ORDER-COUNT-10S); 1 on 1min order rate limit(X-MBX-ORDER-COUNT-1M); 5 on IP rate limit(x-mbx-used-weight-1m);
Security Type: TRADE
Notes:
New OrderRequest parameters.
Position ADL Quantile Estimation
Values update every 30s. Values 0, 1, 2, 3, 4 shows the queue position and possibility of ADL from low to high. For positions of the symbol are in One-way Mode or isolated margined in Hedge Mode, "LONG", "SHORT", and "BOTH" will be returned to show the positions' adl quantiles of different position sides. If the positions of the symbol are crossed margined in Hedge Mode: "HEDGE" as a sign will be returned instead of "BOTH"; A same value caculated on unrealized pnls on long and short sides' positions will be shown for "LONG" and "SHORT" when there are positions in both of long and short sides.
Weight(IP): 5
Security Type: USER_DATA
OptionalrequestParameters: DerivativesTradingUsdsFuturesRestAPI.PositionAdlQuantileEstimationRequestRequest parameters.
Get current position information.
Weight(IP): 5
Security Type: USER_DATA
Notes:
ACCOUNT_UPDATE to meet your timeliness and accuracy needs.OptionalrequestParameters: DerivativesTradingUsdsFuturesRestAPI.PositionInformationV2RequestRequest parameters.
Get current position information(only symbol that has position or open orders will be returned).
Weight(IP): 5
Security Type: USER_DATA
Notes:
ACCOUNT_UPDATE to meet your timeliness and accuracy needs.OptionalrequestParameters: PositionInformationV3RequestRequest parameters.
Check the status of an algo (conditional) order, such as TP/SL (Take Profit / Stop Loss) or trailing stop orders on USD-M Futures.
These orders will not be found:
order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
order create time + 90 days < current time
Weight(IP): 1
Security Type: USER_DATA
Notes:
algoId or clientAlgoId must be sent.algoId is self-increment for each specific symbolOptionalrequestParameters: QueryAlgoOrderRequestRequest parameters.
Get all algo (conditional) orders — active, CANCELED, TRIGGERED, or FINISHED — including TP/SL (Take Profit / Stop Loss) and trailing stop orders on USD-M Futures.
These orders will not be found:
order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
order create time + 90 days < current time
Weight(IP): 5
Security Type: USER_DATA
Notes:
algoId is set, it will get orders >= that algoId. Otherwise most recent orders are returned.Request parameters.
Query open order
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sentRequest parameters.
Check an order's status.
These orders will not be found:
order status is CANCELED or EXPIRED AND order has NO filled trade AND created time + 3 days < current time
order create time + 90 days < current time
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.orderId is self-increment for each specific symbolRequest parameters.
Testing order request, this order will not be submitted to matching engine
Security Type: TRADE
Notes:
Additional mandatory parameters based on type:
| Type | Additional mandatory parameters |
|---|---|
LIMIT |
timeInForce, quantity, price |
MARKET |
quantity |
STOP/TAKE_PROFIT |
quantity, price, stopPrice |
STOP_MARKET/TAKE_PROFIT_MARKET |
stopPrice |
TRAILING_STOP_MARKET |
callbackRate |
STOP, parameter timeInForce can be sent ( default GTC).TAKE_PROFIT, parameter timeInForce can be sent (default GTC).priceProtectis sent as true:stopPrice ,the difference rate between "MARK_PRICE" and "CONTRACT_PRICE" cannot be larger than the "triggerProtect" of the symbolGET /fapi/v1/exchangeInfoSTOP, STOP_MARKET:stopPriceTAKE_PROFIT, TAKE_PROFIT_MARKET:stopPriceTRAILING_STOP_MARKET:callbackRate)activationPrice, and the latest priceTRAILING_STOP_MARKET, if you got such error code. > {"code": -2021, "msg": "Order would immediately trigger."} > means that the parameters you send do not meet the following requirements:activationPrice should be smaller than latest price.activationPrice should be larger than latest price.newOrderRespType is sent as RESULT :MARKET order: the final FILLED result of the order will be return directly.LIMIT order with special timeInForce: the final status result of the order(FILLED or EXPIRED) will be returned directly.STOP_MARKET, TAKE_PROFIT_MARKET with closePosition=true:SELL) or current short position( if BUY).quantity paremeterreduceOnly parameterBUY orders in LONG position side. and cannot be used with SELL orders in SHORT position sideselfTradePreventionMode is only effective when timeInForce set to IOC or GTC or GTD.GTD order auto cancel time might be delayed comparing to goodTillDateRequest parameters.
Query user's Force Orders
Weight: 20 with symbol, 50 without symbol
Security Type: USER_DATA
Notes:
OptionalrequestParameters: DerivativesTradingUsdsFuturesRestAPI.UsersForceOrdersRequestRequest parameters.
TradeApi - interface TradeApi