python-binance icon indicating copy to clipboard operation
python-binance copied to clipboard

margin API will change by March 2024

Open lcjr86 opened this issue 1 year ago • 1 comments

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,

lcjr86 avatar Jan 16 '24 10:01 lcjr86

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

Sifflex avatar Mar 22 '24 10:03 Sifflex