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/transfer
will be removed, please replace withPOST /sapi/v1/asset/transfer
universal transferPOST /sapi/v1/margin/isolated/transfer
will be removed, please replace withPOST /sapi/v1/asset/transfer
universal transferPOST /sapi/v1/margin/loan
will be removed, please replace with the newPOST /sapi/v1/margin/borrow-repay
borrowing and repayment interfacePOST /sapi/v1/margin/repay
will be removed, please replace with the newPOST /sapi/v1/margin/borrow-repay
borrowing and repayment interfaceGET /sapi/v1/margin/isolated/transfer
will be removed, please replace it withGET /sapi/v1/margin/transfer
to get total margin transfer historyGET /sapi/v1/margin/asset
will be removed, please replace withGET /sapi/v1/margin/allAssets
GET /sapi/v1/margin/pair
will be removed, please replace withGET /sapi/v1/margin/allPairs
GET /sapi/v1/margin/isolated/pair
will be removed, please replace withGET /sapi/v1/margin/isolated/allPairs
GET /sapi/v1/margin/loan
will be removed, please replace withGET /sapi/v1/margin/borrow-repay
GET /sapi/v1/margin/repay
will be removed, please replace withGET /sapi/v1/margin/borrow-repay
GET /sapi/v1/margin/dribblet
will be removed, please replace withGET /sapi/v1/asset/dribblet
GET /sapi/v1/margin/dust
will be removed, please replace withPOST /sapi/v1/asset/dust-btc
POST /sapi/v1/margin/dust
will 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 parametersymbol
GET /sapi/v1/margin/isolated/allPairs
: add parametersymbol
2023-12-22
- New Websocket for Margin Trading:
- New Base url
wss://margin-stream.binance.com
for 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_REPAY
for the field ofsideEffectType
POST /sapi/v1/margin/order/oco
:New enumerate valueAUTO_BORROW_REPAY
for the field ofsideEffectType
GET /sapi/v1/margin/available-inventory
:New response field ofupdateTime
which 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
: fieldmaxLeverage
adds value 10 for Cross Margin ProGET /sapi/v1/margin/account
: add new response fieldaccountType
,MARGIN_2
for 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 fieldsautoRepayAtCancel
andselfTradePreventionMode
POST /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