Skip to content

Releases: binance/binance-connector-java

v3.4.0

02 Oct 10:11
5da82a1
Compare
Choose a tag to compare

Added

  • New Margin endpoints:
    • POST /sapi/v1/margin/borrow-repay
    • GET /sapi/v1/margin/borrow-repay

Changed

  • Updated CryptoLoans v1 to v2:
    • POST /sapi/v1/loan/flexible/borrow to POST /sapi/v2/loan/flexible/borrow
    • GET /sapi/v1/loan/flexible/ongoing/orders to GET /sapi/v2/loan/flexible/ongoing/orders
    • GET /sapi/v1/loan/flexible/borrow/history to GET /sapi/v2/loan/flexible/borrow/history
    • POST /sapi/v1/loan/flexible/repay to POST /sapi/v2/loan/flexible/repay
    • GET /sapi/v1/loan/flexible/repay/history to GET /sapi/v2/loan/flexible/repay/history
    • POST /sapi/v1/loan/flexible/adjust/ltv to POST /sapi/v2/loan/flexible/adjust/ltv
    • GET /sapi/v1/loan/flexible/ltv/adjustment/history to GET /sapi/v2/loan/flexible/ltv/adjustment/history
    • GET /sapi/v1/loan/flexible/loanable/data to GET /sapi/v2/loan/flexible/loanable/data
    • GET /sapi/v1/loan/flexible/collateral/data to GET /sapi/v2/loan/flexible/collateral/data
  • Added parameter isolatedSymbol to endpoint GET /sapi/v1/margin/transfer
  • Added parameter asset to endpoint GET /sapi/v1/margin/allAssets
  • Added parameter symbol to endpoints GET /sapi/v1/margin/allPairs and GET /sapi/v1/margin/isolated/allPairs

Removed

  • Deprecated Futures endpoints:

    • POST /sapi/v1/futures/transfer
    • GET /sapi/v1/futures/transfer
    • GET /sapi/v1/futures/histDataLink
  • BLVT endpoints:

    • GET /sapi/v1/blvt/tokenInfo
    • POST /sapi/v1/blvt/subscribe
    • GET /sapi/v1/blvt/subscribe/record
    • POST /sapi/v1/blvt/redeem
    • GET /sapi/v1/blvt/redeem/record
    • GET /sapi/v1/blvt/userLimit
  • Deprecated Trade endpoint: POST /api/v3/order/oco

  • Wallet endpoints:

    • POST /sapi/v1/asset/convert-transfer
    • GET /sapi/v1/asset/convert-transfer/queryByPage
    • GET /sapi/v1/capital/contract/convertible-coins
    • POST /sapi/v1/capital/contract/convertible-coins

v3.3.0

19 Jun 09:12
Compare
Choose a tag to compare

Changed

  • Upgraded dependencies
  • Updated default testnet Websocket API URL to wss://ws-api.testnet.binance.vision
  • Updated default testnet Websocket Stream URL to wss://stream.testnet.binance.vision

Removed

  • Deleted deprecated Bswap, Margin and Staking endpoints, namely:
    • Bswap

      • GET /sapi/v1/bswap/pools
      • GET /sapi/v1/bswap/liquidity
      • POST /sapi/v1/bswap/liquidityAdd
      • POST /sapi/v1/bswap/liquidityRemove
      • GET /sapi/v1/bswap/liquidityOps
      • GET /sapi/v1/bswap/quote
      • POST /sapi/v1/bswap/swap
      • GET /sapi/v1/bswap/swap
      • GET /sapi/v1/bswap/poolConfigure
      • GET /sapi/v1/bswap/addLiquidityPreview
      • GET /sapi/v1/bswap/removeLiquidityPreview
      • GET /sapi/v1/bswap/unclaimedRewards
      • POST /sapi/v1/bswap/claimRewards
      • GET /sapi/v1/bswap/claimedHistory
    • Margin

      • POST /sapi/v1/margin/transfer
      • POST /sapi/v1/margin/isolated/transfer
      • POST /sapi/v1/margin/loan
      • POST /sapi/v1/margin/repay
      • GET /sapi/v1/margin/isolated/transfer
      • GET /sapi/v1/margin/asset
      • GET /sapi/v1/margin/pair
      • GET /sapi/v1/margin/isolated/pair
      • GET /sapi/v1/margin/loan
      • GET /sapi/v1/margin/repay
      • GET /sapi/v1/margin/dribblet
      • GET /sapi/v1/margin/dust
      • POST /sapi/v1/margin/dust
    • Staking

      • GET /sapi/v1/staking/productList
      • POST /sapi/v1/staking/purchase
      • POST /sapi/v1/staking/redeem
      • GET /sapi/v1/staking/position
      • GET /sapi/v1/staking/stakingRecord
      • POST /sapi/v1/staking/setAutoStaking
      • GET /sapi/v1/staking/personalLeftQuota

v3.2.0

22 Dec 17:19
Compare
Choose a tag to compare

Added

  • New VIP Loans Endpoints:

    • GET /sapi/v1/loan/vip/ongoing/orders
    • POST /sapi/v1/loan/vip/repay
    • GET /sapi/v1/loan/vip/repay/history
    • POST /sapi/v1/loan/vip/renew
    • GET /sapi/v1/loan/vip/collateral/account
    • POST /sapi/v1/loan/vip/borrow
    • GET /sapi/v1/loan/vip/loanable/data
    • GET /sapi/v1/loan/vip/collateral/data
    • GET /sapi/v1/loan/vip/request/data
    • GET /sapi/v1/loan/vip/request/interestRate
  • New Margin endpoints:

    • GET /sapi/v1/margin/available-inventory
    • GET /sapi/v1/margin/capital-flow
    • POST /sapi/v1/margin/max-leverage
    • GET /sapi/v1/margin/dust
    • POST /sapi/v1/margin/dust
    • GET /sapi/v1/margin/delist-schedule
    • GET /sapi/v1/margin/next-hourly-interest-rate
    • GET /sapi/v1/margin/exchange-small-liability
    • POST /sapi/v1/margin/exchange-small-liability
    • GET /sapi/v1/margin/exchange-small-liability-history
    • GET /sapi/v1/margin/crossMarginCollateralRatio
    • GET /sapi/v1/margin/leverageBracket
    • GET /sapi/v1/margin/tradeCoeff
  • New Wallet endpoints:

    • GET /sapi/v1/capital/contract/convertible-coins
    • POST /sapi/v1/capital/contract/convertible-coins
    • POST /sapi/v1/capital/deposit/credit-apply
    • GET /sapi/v1/asset/wallet/balance
    • GET /sapi/v1/asset/custody/transfer-history
    • GET /sapi/v1/capital/deposit/address/list
  • New Futures endpoint:

    • GET /sapi/v1/futures/histDataLink
  • New Classic Porfolio Margin endpoints:

    • GET /sapi/v1/portfolio/margin-asset-leverage
    • POST /sapi/v1/portfolio/asset-collection
    • POST /sapi/v1/portfolio/repay-futures-switch
    • GET /sapi/v1/portfolio/repay-futures-switch
    • POST /sapi/v1/portfolio/repay-futures-negative-balance
    • POST /sapi/v1/portfolio/auto-collection
    • POST /sapi/v1/portfolio/bnb-transfer
    • GET /sapi/v1/portfolio/asset-index-price
    • GET /sapi/v1/portfolio/interest-history
  • New Trade endpoints:

    • GET /api/v3/myPreventedMatches
    • GET /api/v3/myAllocations
    • GET /api/v3/account/commission
    • POST /api/v3/sor/order
    • POST /api/v3/sor/order/test
  • New Market endpoint:

    • GET /api/v3/ticker/tradingDay
  • New Gift Code endpoints:

    • POST /sapi/v1/giftcard/buyCode
    • GET /sapi/v1/giftcard/buyCode/token-limit
  • New Crypto Loans endpoints:

    • POST /sapi/v1/loan/flexible/borrow
    • GET /sapi/v1/loan/flexible/ongoing/orders
    • GET /sapi/v1/loan/flexible/borrow/history
    • POST /sapi/v1/loan/flexible/repay
    • POST /sapi/v1/loan/flexible/repay/history
    • POST /sapi/v1/loan/flexible/adjust/ltv
    • GET /sapi/v1/loan/flexible/ltv/adjustment/history
    • GET /sapi/v1/loan/flexible/loanable/data
    • GET /sapi/v1/loan/flexible/collateral/data
  • New Simple Earn endpoints:

    • GET /sapi/v1/simple-earn/flexible/list
    • GET /sapi/v1/simple-earn/locked/list
    • POST /sapi/v1/simple-earn/flexible/subscribe
    • POST /sapi/v1/simple-earn/locked/subscribe
    • POST /sapi/v1/simple-earn/flexible/redeem
    • POST /sapi/v1/simple-earn/locked/redeem
    • GET /sapi/v1/simple-earn/flexible/position
    • GET /sapi/v1/simple-earn/locked/position
    • GET /sapi/v1/simple-earn/account
    • GET /sapi/v1/simple-earn/flexible/history/subscriptionRecord
    • GET /sapi/v1/simple-earn/locked/history/subscriptionRecord
    • GET /sapi/v1/simple-earn/flexible/history/redemptionRecord
    • GET /sapi/v1/simple-earn/locked/history/redemptionRecord
    • GET /sapi/v1/simple-earn/flexible/history/rewardsRecord
    • GET /sapi/v1/simple-earn/locked/history/rewardsRecord
    • POST /sapi/v1/simple-earn/flexible/setAutoSubscribe
    • POST /sapi/v1/simple-earn/locked/setAutoSubscribe
    • GET /sapi/v1/simple-earn/flexible/personalLeftQuota
    • GET /sapi/v1/simple-earn/locked/personalLeftQuota
    • GET /sapi/v1/simple-earn/flexible/subscriptionPreview
    • GET /sapi/v1/simple-earn/locked/subscriptionPreview
    • GET /sapi/v1/simple-earn/flexible/history/rateHistory
    • GET /sapi/v1/simple-earn/flexible/history/collateralRecord
  • New Auto-Invest endpoints:

    • GET /sapi/v1/lending/auto-invest/target-asset/list
    • GET /sapi/v1/lending/auto-invest/target-asset/roi/list
    • GET /sapi/v1/lending/auto-invest/all/asset
    • GET /sapi/v1/lending/auto-invest/source-asset/list
    • POST /sapi/v1/lending/auto-invest/plan/edit-status
    • GET /sapi/v1/lending/auto-invest/plan/list
    • GET /sapi/v1/lending/auto-invest/plan/id
    • GET /sapi/v1/lending/auto-invest/history/list
    • GET /sapi/v1/lending/auto-invest/index/info
    • GET /sapi/v1/lending/auto-invest/index/user-summary
    • POST /sapi/v1/lending/auto-invest/one-off
    • GET /sapi/v1/lending/auto-invest/one-off/status
    • POST /sapi/v1/lending/auto-invest/redeem
    • GET /sapi/v1/lending/auto-invest/redeem/history
    • GET /sapi/v1/lending/auto-invest/rebalance/history
  • New Spot Algo endpoints:

    • POST /sapi/v1/algo/spot/newOrderTwap
    • DELETE /sapi/v1/algo/spot/order
    • GET /sapi/v1/algo/spot/openOrders
    • GET /sapi/v1/algo/spot/historicalOrders
    • GET /sapi/v1/algo/spot/subOrders
  • New Staking endpoints:

    • POST /sapi/v2/eth-staking/eth/stake
    • POST /sapi/v1/eth-staking/eth/redeem
    • GET /sapi/v1/eth-staking/eth/history/stakingHistory
    • GET /sapi/v1/eth-staking/eth/history/redemptionHistory
    • GET /sapi/v1/eth-staking/eth/history/rewardsHistory
    • GET /sapi/v1/eth-staking/eth/quota
    • GET /sapi/v1/eth-staking/eth/history/rateHistory
    • GET /sapi/v2/eth-staking/account
    • POST /sapi/v1/eth-staking/wbeth/wrap
    • GET /sapi/v1/eth-staking/wbeth/history/wrapHistory
    • GET /sapi/v1/eth-staking/wbeth/history/unwrapHistory
    • GET /sapi/v1/eth-staking/eth/history/wbethRewardsHistory
  • WebSocket API - New Trade requests:

    • sor.order.place
    • sor.order.test
  • WebSocket API - New Account requests:

    • myAllocations
    • account.commission
  • WebSocket API - New Authentication requests:

    • session.logon
    • session.status
    • session.logout
  • WebSocket API - New Market request:

    • ticker.tradingDay

Removed

  • Deleted deprecated Savings endpoints, namely:
    • GET /sapi/v1/lending/project/list
    • POST /sapi/v1/lending/customizedFixed/purchase
    • GET /sapi/v1/lending/project/position/list
    • POST /sapi/v1/lending/positionChanged

Changed

  • Renamed Sub-Account examples and tests to be similar to their respective method names.

v3.1.0

17 Oct 08:58
56545d7
Compare
Choose a tag to compare

Added

  • Allow custom timestamp when sending a signed request for both REST API and WebSocket API.

Removed

  • Deleted some deprecated Lending endpoints (within Savings):

    • GET /sapi/v1/lending/daily/product/list
    • GET /sapi/v1/lending/daily/userLeftQuota
    • POST /sapi/v1/lending/daily/purchase
    • GET /sapi/v1/lending/daily/userRedemptionQuota
    • POST /sapi/v1/lending/daily/redeem
    • GET /sapi/v1/lending/daily/token/position
    • GET /sapi/v1/lending/union/account
    • GET /sapi/v1/lending/union/purchaseRecord
    • GET /sapi/v1/lending/union/redemptionRecord
    • GET /sapi/v1/lending/union/interestHistory
  • Deleted deprecated Futures cross collateral endpoints:

    • GET /sapi/v1/futures/loan/borrow/history
    • GET /sapi/v1/futures/loan/repay/history
    • GET /sapi/v2/futures/loan/wallet
    • GET /sapi/v1/futures/loan/adjustCollateral/history
    • GET /sapi/v1/futures/loan/liquidationHistory
    • GET /sapi/v1/futures/loan/interestHistory
  • Deleted WebSocketStreamClient's allBookTickerStream (!bookTicker).

Changed

  • Upgraded org.json dependency to version 20231013.

v3.0.0

28 Sep 01:54
bad259d
Compare
Choose a tag to compare

Changed

  • Upgraded org.bouncycastle:bcprov-jdk18on dependency to version 1.74.

3.0.0rc3

27 Jun 02:11
550f9dc
Compare
Choose a tag to compare

Added

  • Added User-Agent header

v3.0.0rc2

31 May 07:39
997fa33
Compare
Choose a tag to compare

Added

  • Added WebSocket callbacks to utils directory with the aim of facilitating the transmission of various types of data from WebSocket connections (in addition to onMessage): WebSocketClosedCallback, WebSocketClosingCallback, WebSocketFailureCallback and WebSocketOpenCallback.
  • New endpoints for Convert:
    • GET /sapi/v1/convert/exchangeInfo to query for all convertible token pairs and its limits information.
    • GET /sapi/v1/convert/assetInfo to query supported assets quantity precision information.
    • POST /sapi/v1/convert/getQuote to request a quote for the provided token pairs.
    • POST /sapi/v1/convert/acceptQuote to accept the offered quote by quote ID.
    • GET /sapi/v1/convert/orderStatus to query order status by order ID.
  • New endpoint for Wallet:
    • GET /sapi/v1/asset/ledger-transfer/cloud-mining/queryByPage to query Cloud-Mining payment and refund history.
  • New endpoint for Sub-account:
    • POST /sapi/v2/sub-account/subAccountApi/ipRestriction to support master account to update IP Restriction for a sub-account API key.
  • Added Enums DefaultUrls.MARKET_URL and DefaultUrls.MARKET_WS_URL to be optionally used to retrieve market data.

Removed

  • The following endpoints was discontinued on January 13, 2023 6:00 AM UTC:
    • POST /sapi/v1/sub-account/subAccountApi/ipRestriction to support master account enable and disable IP restriction for a sub-account API Key.
    • POST /sapi/v1/sub-account/subAccountApi/ipRestriction/ipList to support master account add IP list for a sub-account API Key.

Changed

  • Renamed WebSocketCallback to WebSocketMessageCallback and moved it to the utils directory.
  • Updated parameter type from LinkedHashMap<String, Object> to Map<String, Object> in certain methods to support various data structures implementing the Map interface.
  • Renamed Enum DefaultUrls.TESTNET_WSS_URL to DefaultUrls.TESTNET_WS_URL.
  • Improved utils.UrlBuilder and utils.RequestHandler code readability.

v3.0.0rc1

12 May 05:35
b522c22
Compare
Choose a tag to compare

Added

  • Support for generating signatures using Ed25519 keys has been added.

Changed

  • Upgraded org.json dependency to version 20230227.
  • If x-sapi-used-uid-weight-1m exists, the response will list it when setShowLimitUsage(true) is set.
  • Added setShowLimitUsage, setProxy, and unsetProxy methods to the SpotClient interface.

v2.0.0

01 May 03:08
030d31e
Compare
Choose a tag to compare

Changed

  • Improved naming consistency by renaming all areas containing Websocket to WebSocket.
  • Move signature generator classes under new utils subpath utils/signaturegenerator.

v2.0.0rc2

16 Feb 08:12
8c4ac91
Compare
Choose a tag to compare

Added

  • Spot Websocket API

Changed

  • Code Cleanup
    • Renamed WebsocketClientImpl to WebsocketStreamClientImpl.
    • Grouped Rest API examples and tests under spot folder.

Fixed

  • Removed logback-classic dependency and excluded logback.xml to let the end-user configure the logging environment.