v2.11.2: Update old margin SAPI interfaces as per docs #426
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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