tiagosiebler / binance

Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & browser support, integration tests, beautification & more.
MIT License
728 stars 264 forks source link

v2.11.2: Update old margin SAPI interfaces as per docs #426

Closed tiagosiebler closed 1 month ago

tiagosiebler commented 1 month ago

Summary

From docs:

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 with POST /sapi/v1/asset/transfer universal transfer POST /sapi/v1/margin/isolated/transfer will be removed, please replace with POST /sapi/v1/asset/transfer universal transfer POST /sapi/v1/margin/loan will be removed, please replace with the new POST /sapi/v1/margin/borrow-repay borrowing and repayment interface POST /sapi/v1/margin/repay will be removed, please replace with the new POST /sapi/v1/margin/borrow-repay borrowing and repayment interface GET /sapi/v1/margin/isolated/transfer will be removed, please replace it with GET /sapi/v1/margin/transfer to get total margin transfer history GET /sapi/v1/margin/asset will be removed, please replace with GET /sapi/v1/margin/allAssets GET /sapi/v1/margin/pair will be removed, please replace with GET /sapi/v1/margin/allPairs GET /sapi/v1/margin/isolated/pair will be removed, please replace with GET /sapi/v1/margin/isolated/allPairs GET /sapi/v1/margin/loan will be removed, please replace with GET /sapi/v1/margin/borrow-repay GET /sapi/v1/margin/repay will be removed, please replace with GET /sapi/v1/margin/borrow-repay GET /sapi/v1/margin/dribblet will be removed, please replace with GET /sapi/v1/asset/dribblet GET /sapi/v1/margin/dust will be removed, please replace with POST /sapi/v1/asset/dust-btc POST /sapi/v1/margin/dust will be removed, please replace with POST /sapi/v1/asset/dust