Request parameters.
Query account information
Weight(IP): 20
Security Type: USER_DATA
Request parameters.
Transfer BNB in and out of UM
Weight(IP): 750
Security Type: TRADE
Notes:
Request parameters.
Cancel All CM Open Conditional Orders
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel all active LIMIT orders on specific symbol
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel All UM Algo Open Orders
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel All UM Open Conditional Orders
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel all active LIMIT orders on specific symbol
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel CM Conditional Order
Weight(IP): 1
Security Type: TRADE
Notes:
strategyId or newClientStrategyId must be sent.Request parameters.
Cancel an active LIMIT order
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Cancel Margin Account All Open Orders on a Symbol
Weight(IP): 5
Security Type: TRADE
Request parameters.
Cancel Margin Account OCO Orders
Weight(IP): 2
Security Type: TRADE
Notes:
Request parameters.
Cancel Margin Account Order
Weight(IP): 2
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Cancel an active UM algo order
Weight(IP): 1
Security Type: TRADE
Notes:
algoId or clientAlgoId must be sent.Request parameters.
Cancel UM Conditional Order
Weight(IP): 1
Security Type: TRADE
Notes:
strategyId or newClientStrategyId must be sent.Request parameters.
Cancel an active UM LIMIT order
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Change Auto-repay-futures Status
Weight(IP): 750
Security Type: TRADE
Request parameters.
Change user's initial leverage of specific symbol in CM.
Weight(IP): 1
Security Type: TRADE
Request parameters.
Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
Weight(IP): 1
Security Type: TRADE
Request parameters.
Change user's initial leverage of specific symbol in UM.
Weight(IP): 1
Security Type: TRADE
Request parameters.
Change user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
Weight(IP): 1
Security Type: TRADE
Request parameters.
Close out a user data stream.
Weight(IP): 1
Security Type: USER_STREAM
Get trades for a specific account and CM symbol.
Weight: - 20 with symbol
pairSecurity Type: USER_DATA
Notes:
symbol or pair must be sentsymbol and pair cannot be sent togetherpair and fromId cannot be sent togetherOrderId can only be sent together with symbolpair is sent, tickers for all symbols of the pair will be returnedfromId cannot be sent with startTime or endTimestartTime and endTime are both not sent, then the last '24 hours' data will be returned.startTime and endTime cannot be longer than 24 hours.Request parameters.
Query CM notional and leverage brackets
Weight(IP): 1
Security Type: USER_DATA
Request parameters.
Query CM 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
Request parameters.
Fund collection for Portfolio Margin
Weight(IP): 750
Security Type: TRADE
Notes:
Request parameters.
Transfers specific asset from Futures Account to Margin account
Weight(IP): 30
Security Type: TRADE
Notes:
Request parameters.
Sign TradFi-Perps agreement contract
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Query Auto-repay-futures Status
Weight(IP): 30
Security Type: USER_DATA
Request parameters.
Get current CM account asset and position information.
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in CM
Weight(IP): 30
Security Type: USER_DATA
Request parameters.
Get CM Income History.
Weight(IP): 30
Security Type: USER_DATA
Notes:
incomeType is not sent, all kinds of flow will be returnedstartTime and endTime can not exceed 200 days:startTime and endTime are not sent, the last 200 days will be returnedRequest parameters.
Get download id for UM futures order history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
startTime and endTime can not be longer than 1 yearRequest parameters.
Get download id for UM futures trade history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
startTime and endTime can not be longer than 1 yearRequest parameters.
Get download id for UM futures transaction history
Weight(IP): 1500
Security Type: USER_DATA
Notes:
startTime and endTime can not be longer than 1 yearRequest parameters.
Get Margin Borrow/Loan Interest History
Weight(IP): 1
Security Type: USER_DATA
Notes:
startTime and endTime not sent, return records of the last 7 days by defaultstartTime is sent and endTime is not sent, the records from startTime to the present will be returned; if startTime is more than 30 days ago, the records of the past 30 days will be returned.startTime is not sent and endTime is sent, the records of the 7 days before endTime is returned.PERIODIC interest charged per hourON_BORROW first interest charged on borrowPERIODIC_CONVERTED interest charged per hour converted into BNBON_BORROW_CONVERTED first interest charged on borrow converted into BNBPORTFOLIO Portfolio Margin negative balance daily interestRequest parameters.
Get current UM account asset and position information.
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Get current UM account asset and position information.
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Get user's position mode (Hedge Mode or One-way Mode ) on EVERY symbol in UM
Weight(IP): 30
Security Type: USER_DATA
Request parameters.
Get user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off )
Weight(IP): 30
Security Type: USER_DATA
Request parameters.
Get UM futures order download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
Request parameters.
Get UM futures trade download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
Request parameters.
Get UM futures Transaction download link by Id
Weight(IP): 10
Security Type: USER_DATA
Notes:
Request parameters.
Get UM Income History.
Weight(IP): 30
Security Type: USER_DATA
Notes:
startTime nor endTime is sent, the recent 7-day data will be returned.incomeType is not sent, all kinds of flow will be returnedRequest parameters.
Get User Commission Rate for CM
Weight(IP): 20
Security Type: USER_DATA
Request parameters.
Get User Commission Rate for UM
Weight(IP): 20
Security Type: USER_DATA
Request parameters.
Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
Weight(IP): 1
Security Type: USER_STREAM
Apply for a margin loan.
Weight(IP): 100
Security Type: MARGIN
Request parameters.
Send in a new OCO for a margin account
Weight(IP): 1
Security Type: TRADE
Notes:
SELL: Limit Price > Last Price > Stop PriceBUY: Limit Price * Quantity Restrictions:ICEBERG quantities however do not have to be the same.OCO counts as 2 orders against the order rate limit.Request parameters.
Repay for a margin loan.
Weight(IP): 100
Security Type: MARGIN
Request parameters.
Repay debt for a margin loan.
Weight(IP): 3000
Security Type: TRADE
Notes:
amount is not sent, all the asset loan will be repaid if having enough specific repay assets.amount is sent, only the certain amount of the asset loan will be repaid if having enough specific repay assets.specifyRepayAssetsRequest parameters.
Margin Account Trade List
Weight(IP): 5
Security Type: USER_DATA
Notes:
fromId is set, returns orders with id >= fromId; otherwise returns recent order history.startTime and endTime must be less than 24 hours.Request parameters.
Query margin max borrow
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent, and the orderId will prevail if both are sent.quantity and price must be sentquantity or price doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.quantity * When the order is GTX and the new price will cause it to be executed immediatelyRequest parameters.
Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
Weight(IP): 1
Security Type: TRADE
Notes:
Request parameters.
New CM Conditional Order
Weight(IP): 1
Security Type: TRADE
Notes:
STOP/TAKE_PROFIT, parameter timeInForce can be sent ( default GTC).STOP, STOP_MARKET:stopPricestopPriceTRAILING_STOP_MARKET:callbackRate)activationPrice, and the latest mark price = stopPricestopPriceRequest parameters.
Place new CM order
Weight(IP): 1
Security Type: TRADE
Notes:
type: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.Request parameters.
New Margin Order
Weight(IP): 1
Security Type: TRADE
Request parameters.
Place new UM conditional order
Weight(IP): 1
Security Type: TRADE
Notes:
STOP, parameter timeInForce can be sent (default GTC).TAKE_PROFIT, parameter timeInForce can be sent (default GTC).triggerPrice.STOP, STOP_MARKET: BUY: latest price >= triggerPrice; SELL: latest price <= triggerPrice.TAKE_PROFIT, TAKE_PROFIT_MARKET: BUY: latest price <= triggerPrice; SELL: latest price >= triggerPrice.TRAILING_STOP_MARKET: BUY: lowest price after order placed <= activatePrice, and latest price >= lowest price * (1 + callbackRate); SELL: highest price after order placed >= activatePrice, and latest price <= highest price * (1 - callbackRate).selfTradePreventionMode is only effective when timeInForce set to IOC or GTC or GTD.Request parameters.
Place new UM conditional order
Weight(IP): 1
Security Type: TRADE
Notes:
STOP/TAKE_PROFIT, parameter timeInForce can be sent ( default GTC).STOP, STOP_MARKET:stopPricestopPriceTRAILING_STOP_MARKET:callbackRate)activationPrice, and the latest mark price = stopPricestopPriceselfTradePreventionMode is only effective when timeInForce set to IOC or GTC or GTD.GTD order auto cancel time might be delayed comparing to goodTillDateRequest parameters.
Place new UM order
Weight(IP): 1
Security Type: TRADE
Notes:
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.selfTradePreventionMode is only effective when timeInForce set to IOC or GTC or GTD.GTD order auto cancel time might be delayed comparing to goodTillDateRequest parameters.
Portfolio Margin UM Trading Quantitative Rules Indicators
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Request parameters.
Query All CM Conditional Orders
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Notes:
CANCELED or EXPIRED, ANDRequest parameters.
Get all account CM orders; active, canceled, or filled.
Weight: - 20 with symbol
pairSecurity Type: USER_DATA
Notes:
symbol or pair must be sent.orderId is set, it will get orders >= that orderId. Otherwise most recent orders are returned.CANCELED or EXPIRED, ANDRequest parameters.
Get all open conditional orders on a symbol. Careful when accessing this with no symbol.
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Notes:
Request parameters.
Get all open orders on a symbol.
If the symbol is not sent, orders for all symbols will be returned in an array.
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Request parameters.
Get all UM open algo orders on a symbol. If the symbol is not sent, orders for all symbols will be returned.
Weight(IP): 1
Security Type: USER_DATA
Notes:
Request parameters.
Get all open conditional orders on a symbol.
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Notes:
symbol is not provided, conditional open orders for all symbols are returned.Request parameters.
Get all open orders on a symbol.
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Notes:
Request parameters.
Query All Margin Account Orders
Weight(IP): 100
Security Type: USER_DATA
Notes:
orderId is set, returns orders with id >= orderId; otherwise returns recent order history.cummulativeQuoteQty < 0 means the data is unavailable at this time.Request parameters.
Query All UM Conditional Orders
Weight: - 1 for a single symbol
symbol is omittedSecurity Type: USER_DATA
Notes:
CANCELED or EXPIRED, ANDRequest parameters.
Get all account UM orders; active, canceled, or filled.
Weight(IP): 5
Security Type: USER_DATA
Notes:
orderId is set, it will get orders >= that orderId. Otherwise most recent orders are returned.Request parameters.
Query CM Conditional Order History
Weight(IP): 1
Security Type: USER_DATA
Notes:
strategyId or newClientStrategyId must be sent.NEW orders will not be found.CANCELED or EXPIRED, ANDRequest parameters.
Get order modification history
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent, and the orderId will prevail if both are sent.Request parameters.
Check an CM order's status.
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.CANCELED or EXPIRED, ANDRequest parameters.
Get current CM position information.
Weight(IP): 1
Security Type: USER_DATA
Notes:
marginAsset nor pair is sent, positions of all symbols with TRADING status will be returned.ACCOUNT_UPDATE to meet your timeliness and accuracy needs.Request parameters.
Query Current CM Open Conditional Order
Weight(IP): 1
Security Type: USER_DATA
Notes:
strategyId or newClientStrategyId must be sent.Request parameters.
Query current CM open order
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Query Current Margin Open Order
Weight(IP): 5
Security Type: USER_DATA
Notes:
symbol is not sent, order records for all symbols are returned.Request parameters.
Check an UM algo order's status. Orders will not be found if: status is CANCELED/EXPIRED with no fills and created 3+ days ago; or created 90+ days ago.
Weight(IP): 1
Security Type: USER_DATA
Notes:
algoId or clientAlgoId must be sent. algoId is self-increment for each specific symbol.Request parameters.
Query Current UM Open Conditional Order
Weight(IP): 1
Security Type: USER_DATA
Notes:
strategyId or newClientStrategyId must be sent.CANCELED, TRIGGERED or EXPIRED, the error message "Order does not exist" will be returned.Request parameters.
Query current UM open order
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.Request parameters.
Query Margin Account Order
Weight(IP): 10
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.cummulativeQuoteQty < 0 means the data is unavailable at this time.Request parameters.
Query all OCO for a specific margin account based on provided optional parameters
Weight(IP): 100
Security Type: USER_DATA
Request parameters.
Retrieves a specific OCO based on provided optional parameters
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Query Margin Account's Open OCO
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Query margin loan record
Weight(IP): 10
Security Type: USER_DATA
Notes:
startTime and endTime is 30 days.startTime and endTime not sent, return records of the last 7 days by defaultarchived to true to query data from 6 months agoRequest parameters.
Query Margin Max Withdraw
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Query margin repay record.
Weight(IP): 10
Security Type: USER_DATA
Notes:
startTime and endTime is 30 days.startTime and endTime not sent, return records of the last 7 days by defaultarchived to true to query data from 6 months agoRequest parameters.
Query interest history of negative balance for portfolio margin.
Weight(IP): 50
Security Type: USER_DATA
Notes:
startTime and endTime are omitted, the most recent 7 days are returned by default.startTime is provided but endTime is omitted, records from startTime to now are returned; if that exceeds 30 days, only the most recent 30 days are returned.endTime is provided but startTime is omitted, records from the 7 days before endTime are returned.Request parameters.
Get all algo orders: ACTIVE, CANCELED, TRIGGERED or FINISHED.
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 UM Conditional Order History
Weight(IP): 1
Security Type: USER_DATA
Notes:
strategyId or newClientStrategyId must be sent.NEW orders will not be found.CANCELED or EXPIRED, ANDRequest parameters.
Get order modification history
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or origClientOrderId must be sent, and the orderId will prevail if both are sent.Request parameters.
Check an UM order's status.
Weight(IP): 1
Security Type: USER_DATA
Notes:
orderId or origClientOrderId must be sent.CANCELED or EXPIRED, ANDRequest parameters.
Get current UM position information.
Weight(IP): 5
Security Type: USER_DATA
Notes:
ACCOUNT_UPDATE for timeliness and accuracy.BOTH are shown.BOTH, LONG, and SHORT are shown.Request parameters.
Query user negative balance auto exchange record
Weight(IP): 100
Security Type: USER_DATA
Notes:
startTime and endTime is 3 months.Request parameters.
Query User Rate Limit
Weight(IP): 1
Security Type: USER_DATA
Request parameters.
Query User's CM Force Orders
Weight: - 20 with symbol
symbolSecurity Type: USER_DATA
Notes:
Request parameters.
Query user's margin force orders
Weight(IP): 1
Security Type: USER_DATA
Request parameters.
Query User's UM Force Orders
Weight: - 20 with symbol
symbolSecurity Type: USER_DATA
Notes:
autoCloseType is not sent, orders with both of the types will be returnedstartTime is not sent, data within 7 days before endTime can be queriedRequest parameters.
Repay futures Negative Balance
Weight(IP): 750
Security Type: USER_DATA
Request parameters.
Generic function to send a request.
The API endpoint to call.
HTTP method to use (GET, POST, DELETE, etc.).
Query parameters for the request.
Body parameters for the request.
A promise resolving to the response data object.
Generic function to send a signed request.
The API endpoint to call.
HTTP method to use (GET, POST, DELETE, etc.).
Query parameters for the request.
Body parameters for the request.
A promise resolving to the response data object.
Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active listenKey, that listenKey will be returned and its validity will be extended for 60 minutes.
Weight(IP): 1
Security Type: USER_STREAM
Test connectivity to the Rest API.
Weight(IP): 1
Change user's BNB Fee Discount for UM Futures (Fee Discount On or Fee Discount Off ) on EVERY symbol
Weight(IP): 1
Security Type: TRADE
Notes:
Request parameters.
Get trades for a specific account and UM 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.
Query UM Futures account configuration
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Get current UM account symbol configuration.
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Query UM notional and leverage brackets
Weight(IP): 1
Security Type: USER_DATA
Request parameters.
Query UM 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
Request parameters.
Query account balance
Weight(IP): 20
Security Type: USER_DATA