Change Log
2025-10-06
- Receiving user data stream on wss://stream.binance.com:9443 using a listenKey is now deprecated.
- This feature will be removed from our system at a later date.
- The related documents will also be removed together with the feature removal.
- Users are recommended to move to the new listen token subscription method below.
- New user data stream subscription with Websocket API released:
- POST /sapi/v1/userListenToken : Create a new user data stream and return a listenToken.
- method userDataStream.subscribe.listenToken : Subscribe to the user data stream using listenToken.
2025-09-16
- One endpoint updated :
- POST
/sapi/v1/margin/apiKey: Supported produects scope and error code description added into the API description.
- POST
2025-06-17
- Best Practice section uploaded on the Margin Trading
2025-06-16
- List schedule endpoint is now released for Margin:
- GET
/sapi/v1/margin/list-schedule: Get the upcoming tokens or symbols listing schedule for Cross Margin and Isolated Margin.
- GET
2024-09-19
-
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.
The endpoints below are available :
- POST /sapi/v1/margin/apiKey
- DELETE /sapi/v1/margin/apiKey
- PUT /sapi/v1/margin/apiKey/ip
- GET /sapi/v1/margin/apiKey
- GET /sapi/v1/margin/api-key-list
-
How to use the special API key
-
Use SAPI to create a special pair of "margin trade only" key/secret via the endpoint above.
-
For cross margin account, do not send the symbol parameter.
-
For isolated margin account of a specific symbol, please send the symbol as the isolated margin pair.
-
Use the key/secret responded in step 1 to do the margin trading and listenKey creating via SPOT REST api (https://api.binance.com/api/v3/) endpoints.
-
2024-09-13
- One-Triggers-the-Other (OTO) orders and One-Triggers-a-One-Cancels-The-Other (OTOCO) orders are now enabled for Margin:
- POST
/sapi/v1/margin/order/oto: Post a new OTO order for margin account - POST
/sapi/v1/margin/order/otoco: Post a new OTOCO order for margin account
- POST
- New parameters added into response body to replace the parameter of 'transferEnabled' in the endpoint of GET
/sapi/v1/margin/account:- transferInEnabled
- transferOutEnabled
2024-01-09
-
According to the announcement, Binance Margin will remove the following SAPI interfaces at 4:00 on March 31, 2024 (UTC). Please switch to the corresponding alternative interfaces in time:
POST /sapi/v1/margin/transferwill be removed, please replace withPOST /sapi/v1/asset/transferuniversal transferPOST /sapi/v1/margin/isolated/transferwill be removed, please replace withPOST /sapi/v1/asset/transferuniversal transferPOST /sapi/v1/margin/loanwill be removed, please replace with the newPOST /sapi/v1/margin/borrow-repayborrowing and repayment interfacePOST /sapi/v1/margin/repaywill be removed, please replace with the newPOST /sapi/v1/margin/borrow-repayborrowing and repayment interfaceGET /sapi/v1/margin/isolated/transferwill be removed, please replace it withGET /sapi/v1/margin/transferto get total margin transfer historyGET /sapi/v1/margin/assetwill be removed, please replace withGET /sapi/v1/margin/allAssetsGET /sapi/v1/margin/pairwill be removed, please replace withGET /sapi/v1/margin/allPairsGET /sapi/v1/margin/isolated/pairwill be removed, please replace withGET /sapi/v1/margin/isolated/allPairsGET /sapi/v1/margin/loanwill be removed, please replace withGET /sapi/v1/margin/borrow-repayGET /sapi/v1/margin/repaywill be removed, please replace withGET /sapi/v1/margin/borrow-repayGET /sapi/v1/margin/dribbletwill be removed, please replace withGET /sapi/v1/asset/dribbletGET /sapi/v1/margin/dustwill be removed, please replace withPOST /sapi/v1/asset/dust-btcPOST /sapi/v1/margin/dustwill be removed, please replace withPOST /sapi/v1/asset/dust
-
New Endpoints for Margin:
POST /sapi/v1/margin/borrow-repay: Margin account borrow/repayGET /sapi/v1/margin/borrow-repay: Query borrow/repay records in Margin account
-
Update Endpoints fpr Margin:
GET /sapi/v1/margin/transfer: add parameterisolatedSymbol, add response bodyGET /sapi/v1/margin/allAssets: add parameterasset, add response bodyGET /sapi/v1/margin/allPairs: add parametersymbolGET /sapi/v1/margin/isolated/allPairs: add parametersymbol
2023-12-22
- New Websocket for Margin Trading:
- New Base url
wss://margin-stream.binance.comfor two events: Liability update event and Margin call event
- New Base url
2023-11-21
- Update endpoints for Margin
POST /sapi/v1/margin/order:New enumerate valueAUTO_BORROW_REPAYfor the field ofsideEffectTypePOST /sapi/v1/margin/order/oco:New enumerate valueAUTO_BORROW_REPAYfor the field ofsideEffectTypeGET /sapi/v1/margin/available-inventory:New response field ofupdateTimewhich indicates the acquisition time of lending inventory.
2023-11-17
- New endpoint for Margin to support cross margin Pro modeFAQ:
GET /sapi/v1/margin/leverageBracket: query Liability coin leverage bracket in cross margin Pro mode
- Update endpoints for Margin:
POST /sapi/v1/margin/max-leverage: fieldmaxLeverageadds value 10 for Cross Margin ProGET /sapi/v1/margin/account: add new response fieldaccountType,MARGIN_2for Cross Margin Pro
2023-10-16
- New endpoint for Margin:
GET /sapi/v1/margin/available-inventory: Query margin available inventoryPOST /sapi/v1/margin/manual-liquidation: Margin manual liquidation
2023-08-31
- New endpoint for Margin:
/sapi/v1/margin/capital-flow: Get cross or isolated margin capital flow
2023-07-07
- New endpoints for Margin:
POST /sapi/v1/margin/max-leverage: Adjust cross margin max leverage
2023-06-29
- New endpoints for Margin:
GET /sapi/v1/margin/dust: Get Assets That Can Be Converted Into BNBPOST /sapi/v1/margin/dust: Convert dust assets to BNB.
2023-06-22
- Update endpoints for Margin:
POST /sapi/v1/margin/order: add fieldsautoRepayAtCancelandselfTradePreventionModePOST /sapi/v1/margin/order/oco: add fieldselfTradePreventionMode
2023-06-20
- Update endpoints for Margin:
GET /sapi/v1/margin/delist-schedule: get tokens or symbols delist schedule for cross margin and isolated margin
2023-02-27
- New endpoints for Margin:
/sapi/v1/margin/next-hourly-interest-rate: Get user the next hourly estimate interest
2023-02-02
- New endpoints for Margin:
GET /sapi/v1/margin/exchange-small-liability: Query the coins which can be small liability exchangePOST /sapi/v1/margin/exchange-small-liability: Cross Margin Small Liability ExchangeGET /sapi/v1/margin/exchange-small-liability-history: Get Small liability Exchange History
2022-09-16
- New endpoint for Margin:
GET /sapi/v1/margin/tradeCoeff: Get personal margin level information
2022-07-01
- New endpoint for Margin:
GET /sapi/v1/margin/dribbletto query the historical information of user's margin account small-value asset conversion BNB.
- Update endpoint for Margin:
GET /sapi/v1/margin/repay: Add response field rawAsset.
2022-05-26
- Update info for the following margin account endpoints: The max interval between
startTimeandendTimeis 30 days.:GET /sapi/v1/margin/transferGET /sapi/v1/margin/loanGET /sapi/v1/margin/repayGET /sapi/v1/margin/isolated/transferGET /sapi/v1/margin/interestHistory
2022-04-26
GET /sapi/v1/margin/rateLimit/orderadded- The endpoint will display the user's current margin order count usage for all intervals.
2021-12-30
- Update endpoint for Margin:
- Removed out
limitfromGET /sapi/v1/margin/interestRateHistory; The max interval between startTime and endTime is 30 days.
- Removed out
2021-12-03
- New endpoints for Margin:
GET /sapi/v1/margin/crossMarginDatato get cross margin fee data collectionGET /sapi/v1/margin/isolatedMarginDatato get isolated margin fee data collectionGET /sapi/v1/margin/isolatedMarginTierto get isolated margin tier data collection
2021-10-14
- Update the time range of the response data for the following margin account endpoints,
startTimeandendTimetime span will not exceed 30 days, without time parameter sent the system will return the last 7 days of data by default, while thearchivedparameter istrue, the system will return the last 7 days of data 6 months ago by default:GET /sapi/v1/margin/transferGET /sapi/v1/margin/loanGET /sapi/v1/margin/repayGET /sapi/v1/margin/isolated/transferGET /sapi/v1/margin/interestHistory
2021-09-08
-
Add endpoints for enabled isolated margin account limit:
DELETE /sapi/v1/margin/isolated/accountto disable isolated margin account for a specific symbolPOST /sapi/v1/margin/isolated/accountto enable isolated margin account for a specific symbolGET /sapi/v1/margin/isolated/accountLimitto query enabled isolated margin account limit
-
New field "enabled" in response of
GET /sapi/v1/margin/isolated/accountto check if the isolated margin account is enabled
2021-08-23
- New endpoints for Margin Account OCO:
POST /sapi/v1/margin/order/ocoDELETE /sapi/v1/margin/orderListGET /sapi/v1/margin/orderListGET /sapi/v1/margin/allOrderListGET /sapi/v1/margin/openOrderList
Same usage as spot account OCO
2021-04-28
On May 15, 2021 08:00 UTC the SAPI Create Margin Account endpoint will be discontinued:
POST /sapi/v1/margin/isolated/create
Isolated Margin account creation and trade preparation can be completed directly through Isolated Margin funds transfer POST /sapi/v1/margin/isolated/transfer
2021-03-05
- New endpoints for Margin:
GET /sapi/v1/margin/interestRateHistoryto support margin interest rate history query
2021-01-15
- New endpoint
DELETE /sapi/v1/margin/openOrdersfor Margin Trade- This will allow a user to cancel all open orders on a single symbol for margin account.
- This endpoint will cancel all open orders including OCO orders for margin account.
2020-12-01
- Update Margin Trade Endpoint:
POST /sapi/v1/margin/ordernew parameterquoteOrderQtyallow a user to specify the totalquoteOrderQtyspent or received in theMARKETorder.
2020-11-16
- Updated endpoints for Margin, new parameter
archivedto query data from 6 months ago:GET /sapi/v1/margin/loanGET /sapi/v1/margin/repayGET /sapi/v1/margin/interestHistory
2020-11-10
- New endpoint to toggle BNB Burn:
POST /sapi/v1/bnbBurnto toggle BNB Burn on spot trade and margin interest.GET /sapi/v1/bnbBurnto get BNB Burn status.
2020-09-30
- Update endpoints for Margin Account:
GET /sapi/v1/margin/maxBorrowablenew fieldborrowLimitin response for account borrow limit.
2020-08-26
- New parameter
symbolsadded in the endpointGET /sapi/v1/margin/isolated/account.
2020-07-28
ISOLATED MARGIN
-
New parameters "isIsolated" and "symbol" added for isolated margin in the following endpoints:
POST /sapi/v1/margin/loanPOST /sapi/v1/margin/repay
-
New parameter "isIsolated" and new response field "isIsolated" added for isolated margin in the following endpoints:
POST /sapi/v1/margin/orderDELETE /sapi/v1/margin/orderGET /sapi/v1/margin/orderGET /sapi/v1/margin/openOrdersGET /sapi/v1/margin/allOrdersGET /sapi/v1/margin/myTrades
-
New parameter "isolatedSymbol" and new response field "isolatedSymbol" added for isolated margin in the following endpoints:
GET /sapi/v1/margin/loanGET /sapi/v1/margin/repayGET /sapi/v1/margin/interestHistory
-
New parameter "isolatedSymbol" and new response field "isIsolated" added for isolated margin in the following endpoint
GET /sapi/v1/margin/forceLiquidationRec -
New parameter "isolatedSymbol" added for isolated margin in the following endpoints:
GET /sapi/v1/margin/maxBorrowableGET /sapi/v1/margin/maxTransferable
-
New endpoints for isolated margin:
POST /sapi/v1/margin/isolated/createPOST /sapi/v1/margin/isolated/transferGET /sapi/v1/margin/isolated/transferGET /sapi/v1/margin/isolated/accountGET /sapi/v1/margin/isolated/pairGET /sapi/v1/margin/isolated/allPairs
-
New endpoints for listenKey management of isolated margin account:
POST /sapi/v1/userDataStream/isolatedPUT /sapi/v1/userDataStream/isolatedDELETE /sapi/v1/userDataStream/isolated
2019-12-18
- New endpoint to get daily snapshot of account:
GET /sapi/v1/accountSnapshot
2019-11-30
-
Added parameter
sideEffectTypeinPOST /sapi/v1/margin/order (HMAC SHA256)with enums:NO_SIDE_EFFECTfor normal trade order;MARGIN_BUYfor margin trade order;AUTO_REPAYfor making auto repayment after order filled.
-
New field
marginBuyBorrowAmountandmarginBuyBorrowAssetinFULLresponse toPOST /sapi/v1/margin/order (HMAC SHA256)
2019-11-28
- New SAPI endpont to disable fast withdraw switch:
POST /sapi/v1/account/disableFastWithdrawSwitch (HMAC SHA256) - New SAPI endpont to enable fast withdraw switch:
POST /sapi/v1/account/enableFastWithdrawSwitch (HMAC SHA256)