Releases: binance/binance-connector-python
Releases · binance/binance-connector-python
v2.0.0 rc4 release
Change
- Rewrite reading API key in example files.
v2.0.0rc3 Release
Removed
- Python 3.6 Support Removed
- Futures Loan Endpoints:
POST /sapi/v1/futures/loan/borrow
- spot.futures_loan_borrowPOST /sapi/v1/futures/loan/repay
- spot.futures_loan_repayGET /sapi/v2/futures/loan/configs
- spot.futures_loan_configsGET /sapi/v2/futures/loan/calcAdjustLevel
- spot.futures_loan_calc_adjust_levelGET /sapi/v2/futures/loan/calcMaxAdjustAmount
- spot.futures_loan_calc_max_adjust_amountPOST /sapi/v2/futures/loan/adjustCollateral
- spot.futures_loan_adjust_collateralGET /sapi/v1/futures/loan/collateralRepayLimit
- spot.futures_loan_collateral_repay_limitGET /sapi/v1/futures/loan/collateralRepay
- spot.futures_loan_collateral_repay_quotePOST /sapi/v1/futures/loan/collateralRepay
- spot.futures_loan_repayGET /sapi/v1/futures/loan/collateralRepayResult
- spot.futures_loan_collateral_repay_result
Added
- New Margin Endpoint:
GET /sapi/v1/margin/tradeCoeff
- Get Summary of Margin Account
- Re: #184 - Exception handling now returns Raw Data instead of just Error Codes and Error Messages.
- Websocket Enhancements
- Added support for passing list of symbols on all relevant Websocket endpoints to support subscription to multiple streams.
- Stream Identification for when multiple streams are subscribed to at once. Allows users to easily identify which data belongs to which stream.
examples/config.ini
to globally set API and Secret Keys to apply in all example files
Fixed
- Twisted reactor hanging in some situations due to the main thread not exiting cleanly
v2.0.0rc2 Release
Changed
- Update version name as hyphens are not recommended.
V2.0.0-rc1 Release
Added
- Add support for use of RSA Key to generate signatures
v1.18.0
Added
- New endpoints for Crypto Loan:
POST /sapi/v1/loan/borrow
- Crypto Loan BorrowGET /sapi/v1/loan/borrow/history
- Get Loan Borrow HistoryGET/sapi/v1/loan/ongoing/orders
- Get Loan Ongoing OrdersPOST/sapi/v1/loan/repay
- Crypto Loan RepayGET/sapi/v1/loan/repay/history
- Get Loan Repayment HistoryPOST/sapi/v1/loan/adjust/ltv
- Crypto Loan Adjust LTVGET/sapi/v1/loan/ltv/adjustment/history
- Get Loan LTV Adjustment History
Changed
- Changes to
GET /api/v3/exchangeInfo
:- New optional parameter
permissions
added to display all symbols with the permissions matching the parameter provided. (eg.SPOT, MARGIN, LEVERAGED) - If not provided, the default value will be
["SPOT","MARGIN", "LEVERAGED"]
- Cannot be combined with symbol or symbols
- New optional parameter
v1.17.0
Added
- New endpoint for Market:
GET /api/v3/uiKlines
- New kline interval:
1s
Changed
- Changes to
GET /api/v3/ticker
andGET /api/v3/ticker/24hr
- New optional parameter type added
- Supported values for parameter type are
FULL
andMINI
FULL
is the default value and the response that is currently being returned from the endpointMINI
omits the following fields from the response:priceChangePercent
,weightedAvgPrice
,bidPrice
,bidQty
,askPrice
,askQty
, andlastQty
v1.16.0
Added
- New endpoint for Portfolio Margin:
GET /sapi/v1/portfolio/pmLoan
to query Portfolio Margin Bankruptcy Loan Record.POST /sapi/v1/portfolio/repay
to repay Portfolio Margin Bankruptcy Loan.GET /sapi/v1/portfolio/collateralRate
to get Portfolio Margin Collateral Rate.
Update
- Changes to
POST /api/v3/order
andPOST /api/v3/order/cancelReplace
- New optional field
strategyId
is a parameter used to identify an order as part of a strategy. - New optional field
strategyType
is a parameter used to identify what strategy was running. (E.g. If all the orders are part of spot grid strategy, it can be set to strategyType=1000000) - Note:
strategyType
cannot be less than 1000000.
- New optional field
- Changes to
POST /api/v3/order/oco
- New optional fields
limitStrategyId
,limitStrategyType
,stopStrategyId
,stopStrategyType
- These are the strategy metadata parameters for both legs of the OCO orders.
limitStrategyType
andstopStrategyType
both cannot be less than 1000000.
- New optional fields
asset
is no longer mandatory inGET /sapi/v1/lending/project/position/list
v1.15.0
v1.14.0
v1.13.0
-
New endpoint for Gift Card:
GET /sapi/v1/giftcard/cryptography/rsa-public-key
to fetch RSA public key.
-
New endpoints for Staking:
GET /sapi/v1/staking/productList
to get Staking product listPOST /sapi/v1/staking/purchase
to stake productPOST /sapi/v1/staking/redeem
to redeem productGET /sapi/v1/staking/position
to get Staking product holding positionGET /sapi/v1/staking/stakingRecord
to inquiry Staking history recordsPOST /sapi/v1/staking/setAutoStaking
to set Auto Staking functionGET /sapi/v1/staking/personalLeftQuota
to inquiry Staking left quota
Changed
-
Update endpoints for Market:
GET /api/v3/ticker/24hr
,GET /api/v3/ticker/price
andGET /api/v3/ticker/bookTicker
new optional parameter symbols.
-
Update endpoint for Gift Card:
POST /sapi/v1/giftcard/redeemCode
: new optional parameter externalUid. Each external unique ID represents a unique user on the partner platform. The function helps you to identify the redemption behavior of different users.