Request parameters.
Close out a isolated margin user data stream.
Weight: 3000
Request parameters.
Close out a Margin user data stream.
Weight: 3000
Request parameters.
Close out a user data stream.
Weight: 3000
**Binance Margin offers low-latency trading through a special key, available exclusively to users with VIP level 4 or higher. **
If you are VIP level 3 or below, please contact your VIP manager for eligibility criterias.*
We support several types of API keys:
Ed25519 (recommended) HMAC RSA
We recommend to use Ed25519 API keys as it should provide the best performance and security out of all supported key types. We accept PKCS#8 (BEGIN PUBLIC KEY). For how to generate an RSA key pair to send API requests on Binance. Please refer to the document below FAQ .
Read REST API or WebSocket API documentation to learn how to use different API keys
You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
Weight: 1(UID)
Request parameters.
Cross margin collateral ratio
Weight: 100(IP)
This only applies to Special Key for Low Latency Trading.
If apiKey is given, apiName will be ignored. If apiName is given with no apiKey, all apikeys with given apiName will be deleted.
You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
Weight: 1(UID)
Request parameters.
Disable isolated margin account for a specific symbol. Each trading pair can only be deactivated once every 24 hours.
Weight: 300(UID)
Request parameters.
Edit ip restriction. This only applies to Special Key for Low Latency Trading.
You need to enable Permits “Enable Spot & Margin Trading” option for the API Key which requests this endpoint.
Weight: 1(UID)
Request parameters.
Enable isolated margin account for a specific symbol(Only supports activation of previously disabled accounts).
Weight: 300(UID)
Request parameters.
Get All Cross Margin Pairs
Weight: 1(IP)
Request parameters.
Get All Isolated Margin Symbol
Weight: 10(IP)
Request parameters.
Get All Margin Assets.
Weight: 1(IP)
Request parameters.
Get BNB Burn Status
Weight: 1(IP)
Request parameters.
Get Cross Margin Transfer History
Response in descending order
The max interval between startTime
and endTime
is 30 days.
Returns data for last 7 days by default
Weight: 1(IP)
Request parameters.
Get tokens or symbols delist schedule for cross margin and isolated margin
Weight: 100
Request parameters.
Get Force Liquidation Record
Response in descending order
Weight: 1(IP)
Request parameters.
Get future hourly interest rate
Weight: 100
Request parameters.
Get Interest History
Response in descending order
If isolatedSymbol is not sent, crossed margin data will be returned
The max interval between startTime
and endTime
is 30 days. It is a MUST to ensure data correctness.
If startTime
and endTime
not sent, return records of the last 7 days by default.
If startTime
is sent and endTime
is not sent, return records of [max(startTime
, now-30d), now].
If startTime
is not sent and endTime
is sent, return records of [endTime
-7, endTime
]
type
in response has 4 enums:
PERIODIC
interest charged per hour
ON_BORROW
first interest charged on borrow
PERIODIC_CONVERTED
interest charged per hour converted into BNB
ON_BORROW_CONVERTED
first interest charged on borrow converted into BNB
PORTFOLIO
interest charged daily on the portfolio margin negative balance
Weight: 1(IP)
Request parameters.
Get the upcoming tokens or symbols listing schedule for Cross Margin and Isolated Margin.
Weight: 100
Request parameters.
Query the coins which can be small liability exchange
Weight: 100
Request parameters.
Get Small liability Exchange History
Weight: 100(UID)
Request parameters.
Get personal margin level information
Weight: 10(IP)
Request parameters.
Keepalive an isolated margin user data stream to prevent a time out.
Weight: 1
Request parameters.
Keepalive a margin user data stream to prevent a time out.
Weight: 1
Request parameters.
Keepalive a user data stream to prevent a time out.
Weight: 1
Request parameters.
Margin account borrow/repay(MARGIN)
Weight: 1500
Request parameters.
Cancels all active orders on a symbol for margin account.
This includes OCO orders.
Weight: 1
Request parameters.
Cancel an entire Order List for a margin account.
Canceling an individual leg will cancel the entire OCO
Weight: 1(UID)
Request parameters.
Cancel an active order for margin account.
Either orderId or origClientOrderId must be sent.
Weight: 10(IP)
Request parameters.
Send in a new OCO for a margin account
autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
Weight: 6(UID)
Request parameters.
Post a new order for margin account.
autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
Weight: 6(UID)
Request parameters.
Post a new OTO order for margin account:
LIMIT
or LIMIT_MAKER
. Initially, only the working order goes on the order book.MARKET
orders using parameter quoteOrderQty
. The pending order is only placed on the order book when the working order gets fully filled.FILLED
but the pending order will still appear as PENDING_NEW
. You need to query the status of the pending order again to see its updated status.EXCHANGE_MAX_NUM_ORDERS
filter and MAX_NUM_ORDERS
filter.autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
Depending on the pendingType
or workingType
, some optional parameters will become mandatory:
Weight: 6(UID)
Request parameters.
Post a new OTOCO order for margin account:
LIMIT
or LIMIT_MAKER
. Initially, only the working order goes on the order book.EXCHANGE_MAX_NUM_ORDERS
filter, and MAX_NUM_ORDERS
filter.autoRepayAtCancel is suggested to set as “FALSE” to keep liability unrepaid under high frequent new order/cancel order execution
Depending on the pendingAboveType
/pendingBelowType
or workingType
, some optional parameters will become mandatory:
Weight: 6(UID)
Request parameters.
Margin Manual Liquidation
This endpoint can support Cross Margin Classic Mode and Pro Mode. And only support Isolated Margin for restricted region.
Weight: 3000
Request parameters.
Query borrow/repay records in Margin account
txId
or startTime
must be sent. txId
takes precedence.
If an asset is sent, data within 30 days before endTime
; If an asset is not sent, data within 7 days before endTime
If neither startTime
nor endTime
is sent, the recent 7-day data will be returned.
startTime
set as endTime
- 7days by default, endTime
set as current time by default
Weight: 10(IP)
Request parameters.
Query Cross Isolated Margin Capital Flow
Weight: 100(IP)
Request parameters.
Query Cross Margin Account Details
Weight: 10(IP)
Request parameters.
Get cross margin fee data collection with any vip level or user's current specific data as https://www.binance.com/en/margin-fee
Weight: 1 when coin is specified;(IP)
Request parameters.
Displays the user's current margin order count usage for all intervals.
Weight: 20(IP)
Request parameters.
Query enabled isolated margin account limit.
Weight: 1(IP)
Request parameters.
Query Isolated Margin Account Info
If "symbols" is not sent, all isolated assets will be returned. If "symbols" is sent, only the isolated assets of the sent symbols will be returned.
Weight: 10(IP)
Request parameters.
Get isolated margin fee data collection with any vip level or user's current specific data as https://www.binance.com/en/margin-fee
Weight: 1 when a single is specified;(IP)
Request parameters.
Get isolated margin tier data collection with any tier as https://www.binance.com/en/margin-data
Weight: 1(IP)
Request parameters.
Liability Coin Leverage Bracket in Cross Margin Pro Mode
Weight: 1
Retrieves all OCO for a specific margin account based on provided optional parameters
Weight: 200(IP)
Request parameters.
Query Margin Account's All Orders
If orderId is set, it will get orders >= that orderId. Otherwise the orders within 24 hours are returned. For some historical orders cummulativeQuoteQty will be < 0, meaning the data is not available at this time. Less than 24 hours between startTime and endTime.
Weight: 200(IP)
Request parameters.
Retrieves a specific OCO based on provided optional parameters
Weight: 10(IP)
Request parameters.
Query Margin Account's Open OCO
Weight: 10(IP)
Request parameters.
Query Margin Account's Open Orders
If the symbol is not sent, orders for all symbols will be returned in an array. When all symbols are returned, the number of requests counted against the rate limiter is equal to the number of symbols currently trading on the exchange. If isIsolated ="TRUE", symbol must be sent.
Weight: 10(IP)
Request parameters.
Query Margin Account's Order
Either orderId or origClientOrderId must be sent. For some historical orders cummulativeQuoteQty will be < 0, meaning the data is not available at this time.
Weight: 10(IP)
Request parameters.
Query Margin Account's Trade List
If fromId is set, it will get trades >= that fromId. Otherwise the trades within 24 hours are returned. Less than 24 hours between startTime and endTime.
Weight: 10(IP)
Request parameters.
Margin available Inventory query
Weight: 50
Request parameters.
Query Margin Interest Rate History
Weight: 1(IP)
Request parameters.
Query Margin PriceIndex
Weight: 10(IP)
Request parameters.
Query Max Borrow
If isolatedSymbol is not sent, crossed margin data will be sent.
borrowLimit
is also available from https://www.binance.com/en/margin-fee
Weight: 50(IP)
Request parameters.
Query Max Transfer-Out Amount
If isolatedSymbol is not sent, crossed margin data will be sent.
Weight: 50(IP)
Request parameters.
Query Special Key Information.
This only applies to Special Key for Low Latency Trading.
Weight: 1(UID)
Request parameters.
This only applies to Special Key for Low Latency Trading.
Weight: 1(UID)
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.
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.
A promise resolving to the response data object.
Small Liability Exchange
Only convert once within 6 hours Only liability valuation less than 10 USDT are supported The maximum number of coin is 10
Weight: 3000(UID)
Request parameters.
Start a new isolated margin 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: 1
Request parameters.
Start a new margin 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: 1
Start a new user data stream.
Weight: 1
Adjust cross margin max leverage
The margin level need higher than the initial risk ratio of adjusted leverage, the initial risk ratio of 3x is 1.5 , the initial risk ratio of 5x is 1.25; The detail conditions on how to switch between Cross Margin Classic and Cross Margin Pro can refer to the FAQ.
Weight: 3000