SDK Releases & Updates

Combined release feed across all JavaScript SDK GitHub repositories, sorted by most recent. Navigate our most recent SDK releases, updates, and changelogs in one place. Filter by SDK to view specific release notes and stay up-to-date with the latest features and improvements.

Last refresh:

Showing releases 1 to 50 of 53 for Binance JavaScript SDK. Page 1 of 2.

Binance JavaScript SDK
v3.6.12

What's Changed

  • feat(v3.6.12): support CANCEL_ONLY symbol status filters, add sub account API key management APIs by @JJ-Cro in binance PR #694

Full Changelog: binance compare v3.6.11...v3.6

Binance JavaScript SDK
v3.6.11

What's Changed

  • fix(v3.6.11): robustness on derived user data key handling during teardown by @tiagosiebler in binance PR #693

Full Changelog: binance compare v3.6.10...v3.6

Binance JavaScript SDK
v3.6.10

What's Changed

  • chore: update logo, readme, bump pinned versions by @tiagosiebler in binance PR #691
  • feat(v3.6.10): PM income page removal, Stable Rate loan deprecations, margin listen-key V2 by @JJ-Cro in binance PR #692

Full Changelog: binance compare v3.6.9...v3.6

Binance JavaScript SDK
v3.6.9

What's Changed

  • feat(v3.6.9): position risk control filter, delistTime and commission discount docs by @JJ-Cro in binance PR #690

Full Changelog: binance compare v3.6.8...v3.6

Binance JavaScript SDK
v3.6.8

What's Changed

  • feat(v3.6.8): drop page from futures income history, add PM fund collection params by @JJ-Cro in binance PR #689

Summary

Binance stopped accepting page on USD-M and COIN-M income history on 16 Oct 2026. Paginate with startTime / endTime. This release also adds the other pending Binance field updates that were still missing, and bumps the package to 3.6.8.

Changelog

  • Remove page from GetIncomeHistoryParams used by USDMClient.getIncomeHistory() (GET /fapi/v1/income) and CoinMClient.getIncomeHistory() (GET /dapi/v1/income). Binance removed page on 16 Oct 2026; JSDoc says to paginate with startTime and endTime.
  • Portfolio Margin fund collection (POST /sapi/v1/portfolio/asset-collection, POST /papi/v1/asset-collection): optional amount and futureType (UM | CM | OPTION); must be sent together.
  • VIP loan repayment history (GET /sapi/v1/loan/vip/repay/history): add repayInterest and repayPrincipal.
  • Spot algo open and historical orders: optional duration (seconds, TWAP only).
  • Margin / spot user-data executionReport: add allocation id a as a number, mapped to allocationId.
  • Version 3.6.8. Regenerated docs/endpointFunctionList.md and llms.txt.

Full Changelog: binance compare v3.6.7...v3.6

Binance JavaScript SDK
v3.6.7

What's Changed

  • feat(v3.6.7): deprecate removed Binance DCI auto-compound APIs by @JJ-Cro in binance PR #688

Full Changelog: binance compare v3.6.6...v3.6

Binance JavaScript SDK
v3.6.6

What's Changed

  • feat(v3.6.6): sync margin OTO lists, loan LTV, FX schedule, and futures symbol type, update package version to 3.6.6 by @JJ-Cro in binance PR #687

Full Changelog: binance compare v3.6.5...v3.6

Binance JavaScript SDK
v3.6.5

What's Changed

  • feat(v3.6.5): updates per release notes, update package version to 3.6.5 by @JJ-Cro in binance PR #686

Full Changelog: binance compare v3.6.4...v3.6

Binance JavaScript SDK
v3.6.4

What's Changed

Full Changelog: binance compare v3.6.3...v3.6

Binance JavaScript SDK
v3.6.3

What's Changed

  • feat(v3.6.3): enhance order types with new fields for spot and futures, including selfTradePreventionMode and peg price options by @JJ-Cro in binance PR #684

Full Changelog: binance compare v3.6.2...v3.6

Binance JavaScript SDK
v3.6.2

What's Changed

  • fix: git url after siebly repo migration by @JJ-Cro in binance PR #680
  • chore(): README.md template sections by @tiagosiebler in binance PR #682
  • feat(v3.6.2): updates per release notes, update package version to 3.6.2 by @JJ-Cro in binance PR #681

Full Changelog: binance compare v3.6.1...v3.6

Binance JavaScript SDK
v3.6.1

What's Changed

  • chore(v3.6.0): upgrade GitHub Actions to setup-node v7 and checkout v6 by @JJ-Cro in binance PR #677
  • chore(v3.6.1): Pin ws to 8.x, remove webpack analyser and improve WS types by @tiagosiebler in binance PR #678

Full Changelog: binance compare v3.6.0...v3.6

Binance JavaScript SDK
v3.6.0

What's Changed

  • chore(v3.6.0): pin npm to v11 and update Node to v24.18.0 by @JJ-Cro in binance PR #675

Full Changelog: binance compare v3.5.11...v3.6

Binance JavaScript SDK
v3.5.11

What's Changed

  • feat(v3.5.11): update CoinMClient and MainClient to support new algo order endpoints, enhance documentation, and add new examples for loan and travel rule functionalities by @JJ-Cro in binance PR #674
  • Bump dependencies post-audit
  • Update certificate pinning test with latest pub key.

Full Changelog: binance compare v3.5.10...v3.5

Binance JavaScript SDK
v3.5.10

What's Changed

  • chore: update quickstart guide to latest by @tiagosiebler in binance PR #671
  • chore(v3.5.10): move optionalDependencies to devDependencies and update README badges by @JJ-Cro in binance PR #672

Full Changelog: binance compare v3.5.9...v3.5

Binance JavaScript SDK
v3.5.9

What's Changed

  • feat(v3.5.9): add support for historical block trades and margin liquidation loan features, update documentation and examples by @JJ-Cro in binance PR #669
  • refactor: update examples to use ES6 import syntax for CoinMClient an… by @JJ-Cro in binance PR #670

Full Changelog: binance compare v3.5.8...v3.5

Binance JavaScript SDK
v3.5.8

What's Changed

  • feat(v3.5.8): auto resolve usdm wsKey when subscribing to market data, update bracket order example to use passive limit order for TP by @tiagosiebler in binance PR #668

Summary

  • Update bracket order example to use limit order for TP. More likely to see a fill if there's a flash move past the TP order.
  • Update subscribe/unsubscribe WebsocketClient methods to automatically resolve the wsKey for usdm futures, when subscribing to market data (see #653 for more details).

Full Changelog: binance compare v3.5.7...v3.5

Binance JavaScript SDK
v3.5.7

What's Changed

  • chore(v3.5.7): revert uppercase boolean edge case, after confirmation by @tiagosiebler in binance PR #667

Full Changelog: binance compare v3.5.6...v3.5

Binance JavaScript SDK
v3.5.6

What's Changed

  • feat(v3.5.6): Improve private wsKey resolution for futures userData streams, misc fixes, docs updates, util methods by @tiagosiebler in binance PR #665
  • chore(v3.5.6): bump for release by @tiagosiebler in binance PR #666
  • chore: force private url for user data sub request
  • fix: null value handling in algo order REST response
  • feat: inherit util methods around custom order ID generation. feat: intro quickstart guide
  • feat: update quickstart guide & tutorial link
  • chore: revise quickstart guide phrasing
  • chore: docs update, feat: add exchange info util methods for futures
  • feat: update tpsl & bracket order examples
  • fix: capitalised boolean for algo order priceProtect, aligned with docs
  • fix: beautifier edge case with null object guard

Full Changelog: binance compare v3.5.5...v3.5

Binance JavaScript SDK
v3.5.5

What's Changed

  • feat(v3.5.5): Spot, Derivatives, Portfolio margin updates by @JJ-Cro in binance PR #664

Full Changelog: binance compare v3.5.4...v3.5

Binance JavaScript SDK
v3.5.4

What's Changed

  • fix(v3.5.4, #659): signed parameter-sort for per-request HMAC WSAPI signatures by @tiagosiebler in binance PR #661

Summary

  • Fix sign issue due to missing parameter sort, when using per-request WSAPI sign (HMAC & RSA keys)
  • Split test stages into categories
  • Introduce WSAPI auth tests
  • Misc bumps after audit
  • Remove redundant circleci config

Full Changelog: binance compare v3.5.3...v3.5

Binance JavaScript SDK
v3.5.3

What's Changed

  • chore(v3.5.3): bump node build to LTS v24 by @tiagosiebler in binance PR #658

Full Changelog: binance compare v3.5.2...v3.5

Binance JavaScript SDK
v3.5.2

What's Changed

  • Fix: rename activationPrice to correct activatePrice in WSAPINewFutur… by @DanZBo in binance PR #656
  • chore(v3.5.2): bump node build version, misc bump after audit, fix(#656): activatePrice for futures algo order by @tiagosiebler in binance PR #657

Full Changelog: binance compare v3.5.1...v3.5

Binance JavaScript SDK
v3.5.1

What's Changed

  • fix(v3.5.1): handle suffix when adding listenKey to WebSocket URL by @tiagosiebler in binance PR #655

Full Changelog: binance compare v3.5.0...v3.5

Binance JavaScript SDK
v3.5.0

What's Changed

  • feat(v3.5.0, #653): add support for Binance USDM Futures base URL split & migration by @tiagosiebler in binance PR #654

Summary

  • Bump dependencies after audit.
  • Readme updates.
  • Add more WebSocket documentation for more detailed guidance.
  • No breaking changes expected, but USDM Futures WebSocket users may need to migrate in future when Binance deprecates the previous WS endpoint.
  • Add complete support for new USDM Futures Base URL Split & Migration, with examples:

Base URL Split & Migration

On 06/03/2026, Binance announced a routing upgrade to their USDM Futures WebSocket System, titled: "Binance USDⓈ-M Futures WebSocket System Upgrade Notice (2026-03-06)".

Key Highlights:
  • Introduction of three dedicated WebSocket base URLs:
    • Public (high-frequency public market data)
      • wss://fstream.binance.com/public
    • Market (regular market data)
      • wss://fstream.binance.com/market
    • Private (user data streams)
      • wss://fstream.binance.com/private
  • New endpoints are supported immediately upon this announcement.
  • Legacy WebSocket URLs will be permanently retired on 2026-04-23.
  • Documentation including endpoint & stream mapping: developers.binance.com Important WebSocket Change Notice
Binance JavaScript SDK Support

All three dedicated WebSocket base URLs are supported. Each with their own unique WsKey, used to track each unique connection.

Continue to subscribe to market data as before with the dedicated subscribe method, but ensure to provide the connection key depending on the type of market data you are consuming.

Minimal examples:

// ...

// For public (high-frequency public data)
const wsKeyUsdmPublic = WS_KEY_MAP.usdmPublic;
wsClient.subscribe(['btcusdt@bookTicker', 'btcusdt@depth'], wsKeyUsdmPublic);

// For market (regular market data)
const wsKeyUsdmMarket = WS_KEY_MAP.usdmMarket;
wsClient.subscribe(['btcusdt@aggTrade', 'btcusdt@forceOrder'], wsKeyUsdmMarket);

// For user data, continue using the subscribe user data stream method as before.
// The SDK will automatically route to the "private" endpoint for USDM Futures:
wsClient.subscribeUsdFuturesUserDataStream();
Legacy wsClient.subscribe*() methods

If you're using any of the per-topic convenience methods, such as wsClient.subscribeAggregateTrades(...), no change is required. The SDK will automatically route the topic subscription request to the appropriate WS URL.

Further Reading

For detailed examples, refer to the examples in this folder, as well as the following documentation:

Full Changelog: binance compare v3.4.4...v3.5

Binance JavaScript SDK
v3.4.4

What's Changed

  • feat(v3.4.4): Refactor example directory structure, add alpha websockets, and add new API examples for margin listen token and WebSocket disconnect by @JJ-Cro in binance PR #652

Full Changelog: binance compare v3.4.3...v3.4

Binance JavaScript SDK
v3.4.3

What's Changed

  • chore(v3.4.3): bump audit dependency, revert prefix version by @tiagosiebler in binance PR #650

Full Changelog: binance compare v3.4.2...v3.4

Binance JavaScript SDK
v3.4.2

What's Changed

  • fix: rename activationPrice to activatePrice in FuturesNewAlgoOrderParams by @DanZBo in binance PR #648
  • feat: fallback from wsapi to wsclient user data stream for futures by @tiagosiebler in binance PR #649

New Contributors

Full Changelog: binance compare v3.4.1...v3.4

Binance JavaScript SDK
v3.4.1

What's Changed

  • fix(v3.4.1): ensure max margin user data listen token expiry time by @tiagosiebler in binance PR #646

Full Changelog: binance compare v3.4.0...v3.4

Binance JavaScript SDK
v3.4.0

What's Changed

  • feat(v3.4.0): integrate margin websocket api user data stream with automatic listen token refresh & resubscribe, bump eslint & jest by @tiagosiebler in binance PR #645

Summary

  • Adds complete integration for Binance's "listen token" workflow used for the cross margin user data stream (via WebSocket API), since the original mechanic is formally deprecated.
  • Automatic token refresh before expiry, for seamless continuous connection to the cross margin user data stream.
  • Automatic token expiration handling, in the rare event the SDK was unable to refresh the token before it expired.
  • Automatic resubscribe, if the connection drops after you subscribed to the cross margin user data stream.
  • Binance docs for margin user data stream: developers.binance.com trade data stream
  • Bumped eslint to 10 (dev dependency, resolves a number of audit complaints)
  • Bumped jest to 30 (dev dependency, resolves a number of audit complaints)
  • Bumped minor node build version to LTS

The process for subscribing to the Cross Margin WebSocket API user data stream with this Binance Node.js SDK is very similar to the other WS API user data streams. Just be sure to use the wsKey for margin. The rest is automatic, including token refresh & expiry handling: binance source ws userdata wsapi margin

Full Changelog: binance compare v3.3.3...v3.4

Binance JavaScript SDK
v3.3.3

What's Changed

  • chore(v3.3.3): add readme migration notice by @tiagosiebler in binance PR #642

Full Changelog: binance compare v3.3.2...v3.3

Binance JavaScript SDK
v3.3.2

What's Changed

  • feat(v3.3.2): add enablePortfolioMarginTrading APIPermission property by @tiagosiebler in binance PR #640

Full Changelog: binance compare v3.3.1...v3.3

Binance JavaScript SDK
v3.3.1

What's Changed

  • feat(v3.3.1): add support for WS API user data stream for RSA & HMAC keys by @tiagosiebler in binance PR #639

Summary

  • Effective on 2026-02-20 07:00 (UTC), Binance's listenKey mechanism for Spot will be discontinued.
  • Users are expected to migrate to the WebSocket API user data stream.
  • This PR adds full support for RSA & HMAC keys to the WebSocket API user data stream integration.
  • Example: Siebly ws userdata wsapi
  • Binance announcement here: binance.com 80b38c8954bf4965b21eeb3c5fc6edfa

Full Changelog: binance compare v3.3.0...v3.3

Binance JavaScript SDK
v3.3.0

What's Changed

  • feat(v3.3.0): WebSocket API support for HMAC & RSA keys. Ensure Web Crypto API is used for REST request sign. Updated docs. by @tiagosiebler in binance PR #638

Full Changelog: binance compare v3.2.4...v3.3

Binance JavaScript SDK
v3.2.4

What's Changed

  • feat(v3.2.4): Update WSStore isDeepObjectMatch to support recursive … by @JJ-Cro in binance PR #637

Full Changelog: binance compare v3.2.3...v3.2

Binance JavaScript SDK
v3.2.3

What's Changed

  • refactor: reorganize example directory structure and enhance error handling by @JJ-Cro in binance PR #635
  • chore: bump version to 3.2.3 in package.json and package-lock.json by @JJ-Cro in binance PR #636

Full Changelog: binance compare v3.2.2...v3.2

Binance JavaScript SDK
v3.2.2

What's Changed

  • fix(v3.2.2, #632): unintentional order id warning by @tiagosiebler in binance PR #634

Full Changelog: binance compare v3.2.1...v3.2

Binance JavaScript SDK
v3.2.1

What's Changed

  • feat: add multiple examples for futures and spot trading, including demo trading and websocket integration by @JJ-Cro in binance PR #631
  • fix(v3.2.1, #632): unintentional order id warning by @tiagosiebler in binance PR #633

Full Changelog: binance compare v3.2.0...v3.2

Binance JavaScript SDK
v3.2.0

What's Changed

  • fix(v3.2.0): update options ws connectivity and example, audit dependency bump by @tiagosiebler in binance PR #629

Summary

  • Old options wss url is nowhere to be seen in the API docs anymore. Only one mention in the changelog from a few years ago but no deprecation notice.
  • Shifted to the url mentioned in the docs and updated the example with the new topic formats. Seems to be working again.
  • Minor dependency bump after audit.

Full Changelog: binance compare v3.1.9...v3.2

Binance JavaScript SDK
v3.1.9

What's Changed

  • feat(v3.1.9): add fiat deposit and order detail endpoints, update examples and documentation by @JJ-Cro in binance PR #627

Full Changelog: binance compare v3.1.8...v3.1

Binance JavaScript SDK
v3.1.8

What's Changed

  • chore(): README.md template sections by @tiagosiebler in binance PR #619
  • feat: add WebSocket API algo orders & type definitions by @jinusean in binance PR #613
  • chore: update NPM publish workflow to trigger on release events and handle prerelease tags by @JJ-Cro in binance PR #621
  • refactor: update imports and add notes for Node.js-only functionality… by @JJ-Cro in binance PR #623
  • feat(): implement demo trading by @JJ-Cro in binance PR #622
  • fix(#603): correct unintentionally hardcoded boolean types, bump webpack bundle analyser, cleaning by @tiagosiebler in binance PR #624

New Contributors

Full Changelog: binance compare v3.1.7...v3.1

Binance JavaScript SDK
v3.1.7

What's Changed

  • [Snyk] Upgrade source-map-loader from 2.0.0 to 2.0.2 by @tiagosiebler in binance PR #608
  • [Snyk] Upgrade axios from 1.12.2 to 1.13.1 by @tiagosiebler in binance PR #606
  • feat(v3.1.6): add new OPO and OPOCO order list methods, enhance USDM client with new endpoints, and update examples by @JJ-Cro in binance PR #610
  • feat: implement fiat withdraw by @NilsonCesar in binance PR #616
  • [Snyk] Upgrade axios from 1.13.1 to 1.13.2 by @tiagosiebler in binance PR #614
  • [Snyk] Upgrade webpack from 5.97.1 to 5.102.1 by @tiagosiebler in binance PR #607
  • feat(v3.1.7, #615): add feat withdraw endpoint by @tiagosiebler in binance PR #618

New Contributors

Full Changelog: binance compare v3.1.5...v3.1

Binance JavaScript SDK
v3.1.5

What's Changed

  • fix(v3.1.5): bump audit dependency, fix diff book stream name for futures by @tiagosiebler in binance PR #605

Full Changelog: binance compare v3.1.4...v3.1

Binance JavaScript SDK
v3.1.4

What's Changed

  • feat(v3.1.4): New algo orders, minor changes by @JJ-Cro in binance PR #604

1. Spot API - New symbolStatus Parameter

Affected Endpoints:

  • REST API:

    • GET /api/v3/depth
    • GET /api/v3/ticker/price
    • GET /api/v3/ticker/bookTicker
    • GET /api/v3/ticker/24hr
    • GET /api/v3/ticker/tradingDay
    • GET /api/v3/ticker
  • WebSocket API:

    • depth
    • ticker.price
    • ticker.book
    • ticker.24hr
    • ticker.tradingDay
    • ticker

Files Modified:

  • src/types/spot.ts - Added symbolStatus to TradingDayTickerParams and RollingWindowTickerParams
  • src/types/shared.ts - Added symbolStatus to OrderBookParams
  • src/main-client.ts - Added symbolStatus to method parameters
  • src/types/websockets/ws-api-requests.ts - Added symbolStatus to request interfaces

Usage:

// REST API
client.get24hrChangeStatistics({
  symbols: ['BTCUSDT'],
  symbolStatus: 'TRADING'
});

// WebSocket API
wsClient.sendWSAPIRequest('mainWSAPI', 'ticker.24hr', {
  symbol: 'BTCUSDT',
  symbolStatus: 'TRADING'
});

2. Deprecated WebSocket Stream - !ticker@arr

Change: The !ticker@arr stream has been deprecated by Binance (effective 2025-11-14).

Files Modified:

  • src/types/websockets/ws-events-formatted.ts - Added @deprecated JSDoc warning
  • src/util/typeGuards.ts - Added deprecation warning to isWsFormatted24hrTickerArray()
  • examples/WebSockets/ws-public.ts - Updated to use !miniTicker@arr instead
  • examples/WebSockets/ws-custom-parser.ts - Updated to use !miniTicker@arr instead
  • README.md - Updated examples to use recommended alternatives

Migration:

// Old (deprecated)
wsClient.subscribe(['!ticker@arr'], 'main');

// New (recommended)
wsClient.subscribe(['!miniTicker@arr'], 'main'); // For all symbols
// or
wsClient.subscribe(['btcusdt@ticker'], 'main'); // For single symbol### 3. Derivatives - `priceMatch` Enum Updates

Change: OPPONENT_10 and OPPONENT_20 are temporarily removed from place/amend flows (effective 2025-10-23).

Files Modified:

  • src/types/futures.ts - Added deprecation comment to PriceMatchMode
  • src/types/portfolio-margin.ts - Added deprecation comment to PMPriceMatch

Affected Endpoints:

  • USDⓈ-M Futures: POST/PUT /fapi/v1/order, POST/PUT /fapi/v1/batchOrders
  • COIN-M Futures: POST/PUT /dapi/v1/order, POST/PUT /dapi/v1/batchOrders
  • Portfolio Margin: POST/PUT /papi/v1/um/order, POST/PUT /papi/v1/cm/order, etc.

4. USDⓈ-M Futures - Order Expire Reason Field

Change: New er (order expire reason) field available in ORDER_TRADE_UPDATE stream (effective 2025-10-23).

Files Modified:

  • src/types/websockets/ws-events-raw.ts - Added er?: string to WsMessageFuturesUserDataOrderTradeUpdateEventRaw
  • src/types/websockets/ws-events-formatted.ts - Added orderExpireReason?: string to WsMessageFuturesUserDataTradeUpdateEventFormatted

Usage:

wsClient.on('formattedUserDataMessage', (data) => {
  if (data.eventType === 'ORDER_TRADE_UPDATE') {
    console.log('Order expire reason:', data.order.orderExpireReason);
  }
});

5. USDⓈ-M Futures - Algo Orders (Conditional Orders Migration)

Change: Conditional orders migrated to Algo Service (effective 2025-12-02).

Order Types Affected:

  • STOP_MARKET
  • TAKE_PROFIT_MARKET
  • STOP
  • TAKE_PROFIT
  • TRAILING_STOP_MARKET
5.1 New REST API Endpoints

Files Modified:

  • src/types/futures.ts - Added new Algo Order types and interfaces
  • src/usdm-client.ts - Added new REST API methods

New Methods:

// Place algo order
client.submitNewAlgoOrder({
  algoType: 'CONDITIONAL',
  symbol: 'BTCUSDT',
  side: 'SELL',
  type: 'TAKE_PROFIT',
  quantity: '0.01',
  triggerPrice: '50000',
  price: '50000',
  timeInForce: 'GTC'
});

// Cancel algo order
client.cancelAlgoOrder({
  algoId: 12345
});

// Cancel all algo open orders
client.cancelAllAlgoOpenOrders({
  symbol: 'BTCUSDT'
});

// Query algo order
client.getAlgoOrder({
  algoId: 12345
});

// Query open algo orders
client.getOpenAlgoOrders({
  symbol: 'BTCUSDT'
});

// Query all algo orders
client.getAllAlgoOrders({
  symbol: 'BTCUSDT'
});

New Endpoints:

  • POST /fapi/v1/algoOrder - Place an algo order
  • DELETE /fapi/v1/algoOrder - Cancel an algo order
  • DELETE /fapi/v1/algoOpenOrders - Cancel all open algo orders
  • GET /fapi/v1/algoOrder - Query an algo order
  • GET /fapi/v1/openAlgoOrders - Query algo open order(s)
  • GET /fapi/v1/allAlgoOrders - Query algo order(s)
5.2 New WebSocket Events

Files Modified:

  • src/types/websockets/ws-events-raw.ts - Added WsMessageFuturesUserDataAlgoUpdateRaw
  • src/types/websockets/ws-events-formatted.ts - Added WsMessageFuturesUserDataAlgoUpdateFormatted

New Event Type: ALGO_UPDATE

Usage:

// Raw event
wsClient.on('message', (data) => {
  if (data.e === 'ALGO_UPDATE') {
    console.log('Algo Order Update:', data.ao);
  }
});

// Formatted event
wsClient.on('formattedUserDataMessage', (data) => {
  if (data.eventType === 'ALGO_UPDATE') {
    console.log('Algo Order Update:', data.algoOrder);
  }
});

6. New TypeScript Types and Interfaces

Added to src/types/futures.ts:

// Types
export type AlgoOrderType = 'CONDITIONAL';
export type AlgoOrderStatus = 'NEW' | 'CANCELED' | 'TRIGGERED' | 'EXPIRED' | 'FINISHED';

// Interfaces
export interface NewAlgoOrderParams { /* ... */ }
export interface AlgoOrderResponse { /* ... */ }
export interface CancelAlgoOrderParams { /* ... */ }
export interface CancelAlgoOrderResponse { /* ... */ }
export interface CancelAllAlgoOpenOrdersResponse { /* ... */ }
export interface QueryAlgoOrderParams { /* ... */ }
export interface QueryAlgoOrderResponse { /* ... */ }
export interface QueryOpenAlgoOrdersParams { /* ... */ }
export interface QueryAllAlgoOrdersParams { /* ... */ }

Breaking Changes

None. All changes are backwards compatible:

  • New optional parameters won't affect existing code
  • Deprecated streams still work (will be removed by Binance at a later date)
  • Deprecated priceMatch values temporarily removed by Binance but kept in types for compatibility
  • New methods and types are additive

Migration Guide

For !ticker@arr Stream Users

// Before
wsClient.subscribe(['!ticker@arr'], 'main');

// After (recommended)
wsClient.subscribe(['!miniTicker@arr'], 'main');
// or for single symbol
wsClient.subscribe(['btcusdt@ticker'], 'main');### For Conditional Orders → Algo Orders

// Old conditional order (still works but will migrate to algo service)
client.submitNewOrder({
  symbol: 'BTCUSDT',
  side: 'SELL',
  type: 'TAKE_PROFIT',
  quantity: '0.01',
  stopPrice: '50000',
  price: '50000',
  timeInForce: 'GTC'
});

// New algo order (recommended for conditional orders after 2025-12-02)
client.submitNewAlgoOrder({
  algoType: 'CONDITIONAL',
  symbol: 'BTCUSDT',
  side: 'SELL',
  type: 'TAKE_PROFIT',
  quantity: '0.01',
  triggerPrice: '50000', // Note: stopPrice → triggerPrice
  price: '50000',
  timeInForce: 'GTC'
});

Full Changelog: binance compare v3.1.3...v3.1

Binance JavaScript SDK
v3.1.3

What's Changed

  • fix(v3.1.3, fixes #600): handle risk of circular reference in WS API Client exception handler by @tiagosiebler in binance PR #601

Full Changelog: binance compare v3.1.2...v3.1

Binance JavaScript SDK
v3.1.2

What's Changed

  • Minor breaking change from previous version: renamed diff book event interface to WsMessageDiffBookDepthEventFormatted.
  • Add type guard isWsDiffBookDepthEventFormatted for depthUpdate event.

Full Changelog: binance compare v3.1.1...v3.1

Binance JavaScript SDK
v3.1.1

What's Changed

  • chore(): update Readme to include portfolio margin examples by @JJ-Cro in binance PR #592
  • [Snyk] Upgrade axios from 1.12.0 to 1.12.2 by @tiagosiebler in binance PR #591
  • feat(v3.1.1): add missing depth update formatted and raw event types and properties by @tiagosiebler in binance PR #596
  • Bump license year.

Full Changelog: binance compare v3.1.0...v3.1

Binance JavaScript SDK
v3.1.0

Summary

In niche cases, WS events from Binance include orderIds with very large numbers. These cannot be safely represented as integers (larger than Number.MAX_SAFE_INTEGER. In most cases this might not affect you, but for those that do depend on these properties (see #208), this provides an alternative.

A custom parser can now be injected via the customParseJSONFn parameter. This allows alternatives such as using RegEx to wrap orderId fields in a string or using a 3rd party big-number safe JSON.parsing library, to parse incoming WebSocket events. For detailed examples, refer to ws-custom-parser.ts in the examples folder.

No breaking changes are expected, as the custom parser method is only used if provided via the customParseJSONFn method.

What's Changed

  • [Snyk] Security upgrade axios from 1.10.0 to 1.12.0 by @tiagosiebler in binance PR #585
  • feat(ws): add parseWsMessageFn to configure JSON parsing by @merovinh in binance PR #588
  • feat(v3.1.0, #588): introduce custom JSON parser hook & small refinements by @tiagosiebler in binance PR #589
  • feat(v3.1.0, #588): introduce custom JSON parser hook & small refinements by @tiagosiebler in binance PR #590

New Contributors

Full Changelog: binance compare v3.0.9...v3.1

Binance JavaScript SDK
v3.0.9

What's Changed

  • feat(v3.0.9): update package version and add soft staking endpoints with examples, add margin auto cancel param by @JJ-Cro in binance PR #586
  • fix: add missing dev dependency for CI tests by @tiagosiebler in binance PR #587

Full Changelog: binance compare v3.0.8...v3.0

Binance JavaScript SDK
v3.0.8

What's Changed

  • feat(v3.0.8): add missing endpoints, minor updates by @JJ-Cro in binance PR #581

Full Changelog: binance compare v3.0.7...v3.0

Subscribe on Substack

Complete the Substack form below to join our newsletter. Substack handles all subscriber data directly.