Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

margin API will change by March 2024 #1390

Open
lcjr86 opened this issue Jan 16, 2024 · 1 comment
Open

margin API will change by March 2024 #1390

lcjr86 opened this issue Jan 16, 2024 · 1 comment

Comments

@lcjr86
Copy link

lcjr86 commented Jan 16, 2024

Hello all,

I would like to ask if you guys are planning to fix the changes for the margin API?

2024-01-09

    According to the [announcement](https://www.binance.com/en/support/announcement/updates-on-binance-margin-sapi-endpoints-2024-03-31-a1868c686ce7448da8c3061a82a87b0c), 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

    New Endpoints for Margin:
        POST /sapi/v1/margin/borrow-repay: Margin account borrow/repay
        GET /sapi/v1/margin/borrow-repay: Query borrow/repay records in Margin account

    Update Endpoints fpr Margin:
        GET /sapi/v1/margin/transfer: add parameter isolatedSymbol, add response body
        GET /sapi/v1/margin/allAssets: add parameter asset, add response body
        GET /sapi/v1/margin/allPairs: add parameter symbol
        GET /sapi/v1/margin/isolated/allPairs: add parameter symbol

Reference here: https://binance-docs.github.io/apidocs/spot/en/#change-log

Thanks in advance,

@Sifflex
Copy link

Sifflex commented Mar 22, 2024

Move to https://github.com/binance/binance-connector-python which is the officially supported library now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants