Skip to content

Releases: binance/binance-connector-python

v2.0.0 rc4 release

17 Jan 01:35
@2pd 2pd
f9df2a1
Compare
Choose a tag to compare

Change

  • Rewrite reading API key in example files.

v2.0.0rc3 Release

16 Dec 06:39
ccad32e
Compare
Choose a tag to compare

Removed

  • Python 3.6 Support Removed
  • Futures Loan Endpoints:
    • POST /sapi/v1/futures/loan/borrow - spot.futures_loan_borrow
    • POST /sapi/v1/futures/loan/repay - spot.futures_loan_repay
    • GET /sapi/v2/futures/loan/configs - spot.futures_loan_configs
    • GET /sapi/v2/futures/loan/calcAdjustLevel - spot.futures_loan_calc_adjust_level
    • GET /sapi/v2/futures/loan/calcMaxAdjustAmount - spot.futures_loan_calc_max_adjust_amount
    • POST /sapi/v2/futures/loan/adjustCollateral - spot.futures_loan_adjust_collateral
    • GET /sapi/v1/futures/loan/collateralRepayLimit - spot.futures_loan_collateral_repay_limit
    • GET /sapi/v1/futures/loan/collateralRepay - spot.futures_loan_collateral_repay_quote
    • POST /sapi/v1/futures/loan/collateralRepay - spot.futures_loan_repay
    • GET /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

29 Nov 09:39
@2pd 2pd
a8e8d72
Compare
Choose a tag to compare

Changed

  • Update version name as hyphens are not recommended.

V2.0.0-rc1 Release

29 Nov 07:53
@2pd 2pd
4351a6e
Compare
Choose a tag to compare

Added

  • Add support for use of RSA Key to generate signatures

v1.18.0

29 Sep 09:31
925fe11
Compare
Choose a tag to compare

Added

  • New endpoints for Crypto Loan:
    • POST /sapi/v1/loan/borrow - Crypto Loan Borrow
    • GET /sapi/v1/loan/borrow/history - Get Loan Borrow History
    • GET/sapi/v1/loan/ongoing/orders - Get Loan Ongoing Orders
    • POST/sapi/v1/loan/repay - Crypto Loan Repay
    • GET/sapi/v1/loan/repay/history - Get Loan Repayment History
    • POST/sapi/v1/loan/adjust/ltv - Crypto Loan Adjust LTV
    • GET/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

v1.17.0

05 Sep 11:53
328c1ec
Compare
Choose a tag to compare

Added

  • New endpoint for Market:
    • GET /api/v3/uiKlines
  • New kline interval: 1s

Changed

  • Changes to GET /api/v3/ticker and GET /api/v3/ticker/24hr
    • New optional parameter type added
    • Supported values for parameter type are FULL and MINI
      • FULL is the default value and the response that is currently being returned from the endpoint
      • MINI omits the following fields from the response: priceChangePercent, weightedAvgPrice, bidPrice, bidQty, askPrice, askQty, and lastQty

v1.16.0

11 Aug 10:02
a441ab1
Compare
Choose a tag to compare

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 and POST /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.
  • 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 and stopStrategyType both cannot be less than 1000000.
  • asset is no longer mandatory in GET /sapi/v1/lending/project/position/list

v1.15.0

19 Jul 12:42
5c2afe3
Compare
Choose a tag to compare

Added

New endpoint for Margin:

  • POST /sapi/v3/asset/getUserAsset to get user assets.

New endpoint for Wallet:

  • GET /sapi/v1/margin/dribblet to query the historical information of user's margin account small-value asset conversion BNB.

v1.14.0

04 Jul 08:23
179ba81
Compare
Choose a tag to compare

Added

  • New endpoint GET /api/v3/ticker
  • New endpoint POST /api/v3/order/cancelReplace
  • New websocket stream <symbol>@ticker_<window_size>
  • New websocket stream !ticker_<window-size>@arr

Changed

  • #146 savings_flexible_product_position asset parameter should be optional

v1.13.0

23 May 08:18
736d879
Compare
Choose a tag to compare
  • 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 list
    • POST /sapi/v1/staking/purchase to stake product
    • POST /sapi/v1/staking/redeem to redeem product
    • GET /sapi/v1/staking/position to get Staking product holding position
    • GET /sapi/v1/staking/stakingRecord to inquiry Staking history records
    • POST /sapi/v1/staking/setAutoStaking to set Auto Staking function
    • GET /sapi/v1/staking/personalLeftQuota to inquiry Staking left quota

Changed

  • Update endpoints for Market:

    • GET /api/v3/ticker/24hr, GET /api/v3/ticker/price and GET /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.