- A new optional parameter
timeUnit
can be used to select the time unit. Available options areMILLISECOND
,MICROSECOND
,millisecond
andmicrosecond
.
- Use signed requests for the following endpoints:
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
- Add GiftCard endpoint:
POST /sapi/v1/giftcard/buyCode
to create a dual-token gift card
- Updated dependencies
- Updated endpoint
/sapi/v1/sub-account/subAccountApi/ipRestriction
to/sapi/v2/sub-account/subAccountApi/ipRestriction
-
Deprecated Margin endpoints:
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
-
Deprecated Sub-Account endpoints:
POST /sapi/v1/sub-account/subAccountApi/ipRestriction/ipList
-
Deprecated Futures endpoints:
POST /sapi/v1/futures/transfer
GET /sapi/v1/futures/transfer
-
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
- Updated dependencies
- Upgraded deprecated spot endpoint
POST /api/v3/order/oco
toPOST /api/v3/orderList/oco
- Upgraded deprecated Websocket API endpoint
orderList.place
toorderList.place.oco
- Updated dependencies
- Resolved multiple websocket stream request issue
- Add Simple Earn endpoints:
GET /sapi/v1/simple-earn/flexible/list
to query available Simple Earn flexible product listGET /sapi/v1/simple-earn/locked/list
to query available Simple Earn locked product listPOST /sapi/v1/simple-earn/flexible/subscribe
to subscribe to a flexible productPOST /sapi/v1/simple-earn/locked/subscribe
to subscribe to a locked productPOST /sapi/v1/simple-earn/flexible/redeem
to redeem a flexible productPOST /sapi/v1/simple-earn/locked/redeem
to redeem a locked productGET /sapi/v1/simple-earn/flexible/position
to get a flexible product positionGET /sapi/v1/simple-earn/locked/position
to get a locked product positionGET /sapi/v1/simple-earn/account
to get a simple account balancesGET /sapi/v1/simple-earn/flexible/history/subscriptionRecord
to get flexible subscription recordsGET /sapi/v1/simple-earn/locked/history/subscriptionRecord
to get locked subscription recordsGET /sapi/v1/simple-earn/flexible/history/redemptionRecord
to retrieve flexible redemption recordsGET /sapi/v1/simple-earn/locked/history/redemptionRecord
to retrieve locked redemption recordsGET /sapi/v1/simple-earn/flexible/history/rewardsRecord
to get flexible rewards historyGET /sapi/v1/simple-earn/locked/history/rewardsRecord
to get locked rewards historyPOST /sapi/v1/simple-earn/flexible/setAutoSubscribe
to set an auto-subscription to a flexible productPOST /sapi/v1/simple-earn/locked/setAutoSubscribe
to set an auto-subscription to a locked productGET /sapi/v1/simple-earn/flexible/personalLeftQuota
to get flexible personal left quotaGET /sapi/v1/simple-earn/locked/personalLeftQuota
to get locked personal left quotaGET /sapi/v1/simple-earn/flexible/subscriptionPreview
to get flexible subscription previewGET /sapi/v1/simple-earn/locked/subscriptionPreview
to get locked subscription previewsGET /sapi/v1/simple-earn/flexible/history/rateHistory
to get a rate historyGET /sapi/v1/simple-earn/flexible/history/collateralRecord
to get collateral records
- Update dependencies
- Updated
follow-redirects
dependency
-
Deprecated Savings endpoints:
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/project/list
POST /sapi/v1/lending/customizedFixed/purchase
GET /sapi/v1/lending/union/account
GET /sapi/v1/lending/union/purchaseRecord
GET /sapi/v1/lending/union/redemptionRecord
GET /sapi/v1/lending/union/interestHistory
GET /sapi/v1/lending/project/position/list
-
Deprecated Staking endpoints:
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
-
Deprecated BSwap endpoints:
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
- Add Auto Invest endpoints:
GET /sapi/v1/margin/available-inventory
Query margin available inventoryPOST /sapi/v1/margin/manual-liquidation
Margin manual liquidation
- Update dependencies
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
- Update README #142
- Minor changes #143
- Update package
- Update Nodejs versions in pipeline
- Support Ed25519 key signature
- Add Spot Websocket API
- Redesign the Websocket Stream and rename stream methods
- Upgrade dependencies
- Fixed WebSocket onClose event issue
- Pump dependencies version
- Support RSA key signature.
- New endpoint
GET /api/v3/uiKlines
- Add new optional parameter
type
toGET /api/v3/ticker
andGET /api/v3/ticker/24hr
- Delete endpoints for Futures Cross Collateral
POST /sapi/v1/futures/loan/borrow
POST /sapi/v1/futures/loan/repay
GET /sapi/v2/futures/loan/configs
GET /sapi/v2/futures/loan/calcAdjustLevel
GET /sapi/v1/futures/loan/calcMaxAdjustAmount
GET /sapi/v2/futures/loan/calcMaxAdjustAmount
POST /sapi/v2/futures/loan/adjustCollateral
GET /sapi/v1/futures/loan/collateralRepayLimit
GET /sapi/v1/futures/loan/collateralRepay
POST /sapi/v1/futures/loan/collateralRepay
GET /sapi/v1/futures/loan/collateralRepayResult
- Fixing
asset
in the endpoints that should not be mandatory #107GET /sapi/v1/lending/daily/token/position
GET /sapi/v1/lending/project/position/list
- Support timeout
- Support proxy
- Support httpsAgent
- Enable strict mode
- Improve Websocket
- Add
pingServer
method
- Add
- 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.
- Changed endpoints for Trade:
POST /api/v3/order/test
New optional fieldsstrategyId
andstrategyType
.POST /api/v3/order
New optional fieldsstrategyId
andstrategyType
.POST /api/v3/order/cancelReplace
New optional fieldsstrategyId
andstrategyType
.POST /api/v3/order/oco
New optional fieldslimitStrategyId
,limitStrategyType
,stopStrategyId
andstopStrategyType
.
-
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.
<symbol>@ticker_<window-size>
Individual symbol rolling window ticker streams.!ticker_<window-size>@arr
All market rolling window ticker streamsGET /api/v3/ticker
for rolling window price change statistics based on windowSize provided.POST /api/v3/order/cancelReplace
to cancel an existing order and place a new order on the same symbol.
GET /sapi/v1/fiat/orders
: Weight changes from IP(1) to UID(90000)GET /sapi/v1/pay/transactions
: Param names changed: startTimestamp -> startTime; endTimestamp -> endTime.
- Updated
jest
from^26.0.1
to^28.1.2
to resolvejsdom
security issueGHSA-f4c9-cqv8-9v98
.
GET /sapi/v1/giftcard/cryptography/rsa-public-key
to fetch RSA public key.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
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.GET /api/v3/ticker/24hr
,GET /api/v3/ticker/price
andGET /api/v3/ticker/bookTicker
new optional parameter symbols.
GET /sapi/v1/managed-subaccount/accountSnapshot
to support investor master account query asset snapshot of managed sub-account.GET /sapi/v1/margin/rateLimit/order
to display the user's current margin order count usage for all intervals.GET /sapi/v1/portfolio/account
to support query portfolio margin account info.
POST /sapi/v1/bswap/liquidityAdd
- New optional parametertype
POST /sapi/v1/sub-account/universalTransfer
- New transfer typesMARGIN
,ISOLATED_MARGIN
and parametersymbol
GET /api/v3/depth
- Thelimit
value can be outside of the previous values (i.e. 5, 10, 20, 50, 100, 500, 1000, 5000). The limit still cannot exceed 5000.POST /api/v3/order
,POST /api/v3/order/test
and/api/v3/order/oco
- New optional parametertrailingDelta
POST /sapi/v1/giftcard/createCode
to create a code for Binance Gift CardPOST /sapi/v1/giftcard/redeemCode
to redeem a code for Binance Gift CardGET /sapi/v1/giftcard/verify
to verify a code for Binance Gift CardPOST /sapi/v1/asset/dust-btc
to get assets that can be converted into BNB
- npm audit upgrades
GET /sapi/v1/mining/payment/uid
to get Mining account earningGET /sapi/v1/bswap/unclaimedRewards
to get unclaimed rewards recordPOST /sapi/v1/bswap/claimRewards
to claim swap rewards or liquidity rewardsGET /sapi/v1/bswap/claimedHistory
to get history of claimed rewardsPOST /sapi/v1/sub-account/universalTransfer
to transfer spot and futures asset between master account and sub accountsGET /sapi/v1/sub-account/universalTransfer
to search transfer recordsGET /sapi/v2/sub-account/futures/account
to get detail on sub-account's USDT margined futures account and COIN margined futures accountGET /sapi/v2/sub-account/futures/accountSummary
to get summary of sub-account's USDT margined futures account and COIN margined futures accountGET /sapi/v2/sub-account/futures/positionRisk
to get position risk of sub-account's USDT margined futures account and COIN margined futures account
GET /api/v3/rateLimit/order
to get the current order count usage for all intervalsGET /sapi/v1/loan/income
to support user query crypto loans historyPOST /sapi/v1/sub-account/subAccountApi/ipRestriction
to support master account enable and disable IP restriction for a sub-account API KeyPOST /sapi/v1/sub-account/subAccountApi/ipRestriction/ipList
to support master account add IP list for a sub-account API KeyGET /sapi/v1/sub-account/subAccountApi/ipRestriction
to support master account query IP restriction for a sub-account API KeyDELETE /sapi/v1/sub-account/subAccountApi/ipRestriction/ipList
to support master account delete IP list for a sub-account API KeyGET /sapi/v1/pay/transactions
to support user query Pay trade historyGET /sapi/v1/convert/tradeFlow
to support user query convert trade history recordsGET /sapi/v1/rebate/taxQuery
to support user query spot rebate history recordsGET /sapi/v1/margin/crossMarginData
to get cross margin fee data collectionGET /sapi/v1/margin/isolatedMarginData
to get isolated margin fee data collectionGET /sapi/v1/margin/isolatedMarginTier
to get isolated margin tier data collectionGET /sapi/v1/nft/history/transactions
to get NFT transaction historyGET /sapi/v1/nft/history/deposit
to get NFT deposit historyGET /sapi/v1/nft/history/withdraw
to get NFT withdraw historyGET /sapi/v1/nft/user/getAsset
to get NFT asset
- npm audit upgrades
GET /sapi/v1/bswap/poolConfigure
to get pool configureGET /sapi/v1/bswap/addLiquidityPreview
to get add liquidity previewGET /sapi/v1/margin/isolated/accountLimit
to get remove liquidity preview- Axios version upgrade to
0.21.4
GET /sapi/v1/capital/withdraw/history
has a new optional field withdrawOrderIdDELETE /sapi/v1/margin/isolated/account
to disable isolated margin account for a specific symbolPOST /sapi/v1/margin/isolated/account
to enable isolated margin account for a specific symbolGET /sapi/v1/margin/isolated/accountLimit
to query enabled isolated margin account limit
- Fix on websocket close event detection logic
POST /sapi/v1/asset/transfer
andGET /sapi/v1/asset/transfer
optional fieldsfromSymbol
,toSymbol
POST /sapi/v1/margin/order/oco
create a margin account OCO orderDELETE /sapi/v1/margin/orderList
cancel a margin account OCO orderGET /sapi/v1/margin/orderList
query OCO orders under a margin accountGET /sapi/v1/margin/allOrderList
query all OCO orders under a margin accountGET /sapi/v1/margin/openOrderList
query open OCO orders under a margin account
GET /sapi/v1/c2c/orderMatch/listUserOrderHistory
to query user C2C trade historyGET api/v3/myTrades
has a new optional field orderId
GET /sapi/v1/fiat/orders
to query user fiat deposit and withdraw historyGET /sapi/v1/fiat/payments
to query user fiat payments history
- First release, please find details from
README.md