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 29 of 29 for Bitget JavaScript SDK. Page 1 of 1.

Bitget JavaScript SDK
v3.2.9

What's Changed

  • feat(v3.2.9): fix WS snapshot guards, withdrawal path, switch status, WS requestTime; ins-loan fields by @JJ-Cro in bitget-api PR #186
  • Introducing a new dedicated documentation page for our Bitget JavaScript & Node.js SDK
    • Powered by our rich request & response types.
    • Detailed examples for the leading JavaScript & Node.js runtimes, included but not limited to Node, JavaScript, TypeScript, React, Vite, Next.js, iOS & Android (via React Native), Bun, Deno and Cloudflare Workers. These fully tested quickstart guides include everything needed to make full use of Bitget's REST APIs & WebSockets with any leading JavaScript runtime.
  • Fix #182, fix #183, fix #184 and fix #185.

Changelog

  • WS snapshot type guards now recognise matching account and position snapshot events (Fixes #182)
  • RestClientV3.submitWithdraw posts to /api/v3/account/withdrawal (Fixes #183)
  • getUnifiedAccountSwitchStatus status is 'process' | 'success' | 'fail', with optional reason (Fixes #184)
  • WS API order requests send a top-level requestTime when receiveWindow is set, so the window takes effect; it can be overridden with requestFlags.requestTime (Fixes #185)
  • Institutional lending: optional clientType on product infos, deltaThreshold / leverageThreshold (Hedge only), riskUnitList on risk unit, delta / leverageRatio on LTV convert
  • REST place-order slippageTolerance JSDoc: range [0.001, 0.05], up to 3 decimals
  • Bump .nvmrc to v24.22.3
  • Version 3.2.9

Full Changelog: bitget-api compare v3.2.8...v3.2

Bitget JavaScript SDK
v3.2.8

What's Changed

  • feat(v3.2.8): Stock+ max-purchase, UTA parameter channels, nullable lists by @JJ-Cro in bitget-api PR #181

Full Changelog: bitget-api compare v3.2.7...v3.2

Bitget JavaScript SDK
v3.2.7

What's Changed

Full Changelog: bitget-api compare v3.2.6...v3.2

Bitget JavaScript SDK
v3.2.6

What's Changed

  • feat(v3.2.6): STP groups, segmented reality depth, rToken fields, v3 market endpoints by @JJ-Cro in bitget-api PR #176

Full Changelog: bitget-api compare v3.2.5...v3.2

Get started with Bitget's REST APIs & WebSockets with our JavaScript Tutorial for Bitget REST APIs & WebSockets

Bitget JavaScript SDK
v3.2.5

What's Changed

  • feat(v3.2.5): add manual borrow, copy-follower, sub-affiliate, pxAmendType, and books50 updates by @JJ-Cro in bitget-api PR #171
  • feat(v3.2.5): add marginMode on V3 place strategy order by @JJ-Cro in bitget-api PR #172

Full Changelog: bitget-api compare v3.2.4...v3.2

Bitget JavaScript SDK
v3.2.4

What's Changed

  • feat(v3.2.4): add CFD, grid, Reality market, convert, and strategy sub-order endpoints by @JJ-Cro in bitget-api PR #170

Full Changelog: bitget-api compare v3.2.3...v3.2

Bitget JavaScript SDK
v3.2.3

What's Changed

Full Changelog: bitget-api compare v3.2.2...v3.2

Bitget JavaScript SDK
v3.2.2

What's Changed

Full Changelog: bitget-api compare v3.2.1...v3.2

Bitget JavaScript SDK
v3.2.1

What's Changed

  • chore(v3.2.0): upgrade GitHub Actions to setup-node v7 and checkout v6 by @JJ-Cro in bitget-api PR #159
  • chore(v3.2.1): pin ws to 8.x, remove webpack analyser and improve wsOptions type by @tiagosiebler in bitget-api PR #160

Full Changelog: bitget-api compare v3.2.0...v3.2

Bitget JavaScript SDK
v3.2.0

What's Changed

  • feat(v3.1.11): rewrite RestClientV3 apidoc examples and add missing UTA endpoints by @JJ-Cro in bitget-api PR #154
  • chore: update tutorial to latest by @tiagosiebler in bitget-api PR #155
  • feat(v3.1.11): rewrite RestClientV2 apidoc examples and add missing classic endpoints by @JJ-Cro in bitget-api PR #156
  • chore(v3.2.0): pin npm to v11 and update Node to v24.18.0 by @JJ-Cro in bitget-api PR #157

Full Changelog: bitget-api compare v3.1.10...v3.2

Bitget JavaScript SDK
v3.1.10

What's Changed

  • feat(v3.1.10): Add new API endpoints for liquidations, RPI data, and margin statistics by @JJ-Cro in bitget-api PR #153

Full Changelog: bitget-api compare v3.1.9...v3.1

Bitget JavaScript SDK
v3.1.9

What's Changed

  • chore(v3.1.9): Move optionalDependencies to devDependencies and update README badges by @JJ-Cro in bitget-api PR #150

Full Changelog: bitget-api compare v3.1.8...v3.1

Bitget JavaScript SDK
v3.1.8

What's Changed

  • feat(v3.1.8): update version to 3.1.8 and add new API endpoints for agent subaccounts and P2P trading by @JJ-Cro in bitget-api PR #149

Full Changelog: bitget-api compare v3.1.7...v3.1

Bitget JavaScript SDK
v3.1.7

What's Changed

Full Changelog: bitget-api compare v3.1.6...v3.1

Bitget JavaScript SDK
v3.1.6

What's Changed

Full Changelog: bitget-api compare v3.1.5...v3.1

Bitget JavaScript SDK
v3.1.5

What's Changed

Full Changelog: bitget-api compare v3.1.4...v3.1

Bitget JavaScript SDK
v3.1.4

What's Changed

Full Changelog: bitget-api compare v3.1.3...v3.1

Bitget JavaScript SDK
v3.1.3

What's Changed

  • feat: add new examples for V2 and V3 API endpoints by @JJ-Cro in bitget-api PR #124
  • refactor: update function signatures to include type annotations by @JJ-Cro in bitget-api PR #126
  • feat(v3.1.3): Improved the isDeepObjectMatch function by @JJ-Cro in bitget-api PR #127

Full Changelog: bitget-api compare v3.1.2...v3.1

Bitget JavaScript SDK
v3.1.2

What's Changed

  • feat(v3.1.2): add new broker & index components v3 endpoints by @JJ-Cro in bitget-api PR #122

Full Changelog: bitget-api compare v3.1.1...v3.1

Bitget JavaScript SDK
v3.1.1

What's Changed

Full Changelog: bitget-api compare v3.1.0...v3.1

Bitget JavaScript SDK
v3.1.0

What's Changed

  • chore(v3.0.13): remove deprecated V1 API clients and examples by @JJ-Cro in bitget-api PR #114
  • chore: update NPM publish workflow to trigger on release events and handle prerelease tags by @JJ-Cro in bitget-api PR #115
  • chore(): README.md template sections by @tiagosiebler in bitget-api PR #117
  • chore: enhance WSClientConfigurableOptions to support additional WebSocket and HTTP client options by @JJ-Cro in bitget-api PR #116
  • feat(v3.1.0): update webpack, remove deprecated V1 functionality, expand wsOptions type definition by @tiagosiebler in bitget-api PR #118

Full Changelog: bitget-api compare v3.0.12...v3.1

Bitget JavaScript SDK
v3.0.12

What's Changed

Full Changelog: bitget-api compare v3.0.11...v3.0

Bitget JavaScript SDK
v3.0.11

What's Changed

  • [Snyk] Upgrade axios from 1.12.2 to 1.13.1 by @tiagosiebler in bitget-api PR #105
  • [Snyk] Upgrade ts-loader from 9.4.1 to 9.5.4 by @tiagosiebler in bitget-api PR #107
  • chore(deps-dev): bump js-yaml from 3.14.1 to 3.14.2 by @dependabot[bot] in bitget-api PR #104
  • feat(v3.0.11): add new endpoints for open interest limit and tax records, update request/response types, and include example scripts by @JJ-Cro in bitget-api PR #109

Full Changelog: bitget-api compare v3.0.10...v3.0

Bitget JavaScript SDK
v3.0.10

What's Changed

  • feat(v3.0.10): add new broker and futures endpoints, and update request/response types by @JJ-Cro in bitget-api PR #103
  • [Snyk] Upgrade axios from 1.12.0 to 1.12.2 by @tiagosiebler in bitget-api PR #97

V2 REST Client Changes

Broker Endpoints (3 new endpoints)

1. getBrokerTotalCommission()
  • Endpoint: GET /api/v2/broker/total-commission
  • Rate Limit: 20 req/sec/UID
  • Description: Get total commission data with daily granularity
  • Features:
    • Data retention: 365 days (from 2025/6/1)
    • Returns spot and futures commission breakdown
    • T+1 data updates (UTC+8)
    • Supports optional date range filtering
2. getBrokerOrderCommission()
  • Endpoint: GET /api/v2/broker/order-commission
  • Rate Limit: 20 req/sec/UID
  • Description: Get order-level commission details
  • Features:
    • Data retention: 30 days (from 2025/9/1)
    • Transaction-level commission data
    • Pagination support with cursor
    • Shows only orders marked with broker channel ID
3. getBrokerRebateInfo()
  • Endpoint: GET /api/v2/broker/rebate-info
  • Rate Limit: 20 req/sec/UID
  • Description: Get real-time rebate information for a specific UID
  • Features:
    • Real-time data
    • Returns affiliation type, user level, and rebate ratios
    • Separate ratios for spot and futures trading

Futures Account Endpoints (3 new endpoints)

4. getFuturesMaxOpenableQuantity()
  • Endpoint: GET /api/v2/mix/account/max-open
  • Rate Limit: 20 req/sec/UID
  • Description: Calculate maximum openable quantity for a position
  • Features:
    • Supports both limit and market orders
    • Configurable position side (long/short)
    • Margin coin specification
5. getFuturesLiquidationPrice()
  • Endpoint: GET /api/v2/mix/account/liq-price
  • Rate Limit: 20 req/sec/UID
  • Description: Get estimated liquidation price for a position
  • Features:
    • Requires margin amount and position details
    • Supports both limit and market order types
    • Returns estimated liquidation price
6. getFuturesIsolatedSymbols()
  • Endpoint: GET /api/v2/mix/account/isolated-symbols
  • Rate Limit: 10 req/1s/UID
  • Description: Query trading pairs with isolated margin mode
  • Features:
    • Returns symbols using isolated margin
    • Product type filtering (USDT/COIN/USDC futures)

V3 REST Client Changes

Account Endpoint (1 new endpoint)

7. getMaxTransferable()
  • Endpoint: GET /api/v3/account/max-transferable
  • Rate Limit: 3 req/sec/UID
  • Permission: UTA mgt. (read)
  • Description: Get maximum transferable amount for unified account
  • Features:
    • Returns max transferable amount
    • Returns max transferable amount for borrowed coins
    • Coin-specific queries

Technical Changes

Type Definitions Added

V2 Request Types (src/types/request/v2/):

  • GetBrokerTotalCommissionRequestV2
  • GetBrokerOrderCommissionRequestV2
  • GetBrokerRebateInfoRequestV2
  • FuturesMaxOpenRequestV2
  • FuturesLiquidationPriceRequestV2
  • FuturesIsolatedSymbolsRequestV2

V2 Response Types (src/types/response/v2/):

  • BrokerTotalCommissionV2
  • BrokerOrderCommissionV2 & BrokerOrderCommissionItemV2
  • BrokerRebateInfoV2
  • FuturesMaxOpenV2
  • FuturesLiquidationPriceV2
  • FuturesIsolatedSymbolV2

V3 Request Types (src/types/request/v3/):

  • GetMaxTransferableRequestV3

V3 Response Types (src/types/response/v3/):

  • MaxTransferableV3

Files Modified

  • src/rest-client-v2.ts - Added 6 new methods with JSDoc
  • src/rest-client-v3.ts - Added 1 new method with JSDoc
  • src/types/request/v2/broker.ts - Added 3 request interfaces
  • src/types/response/v2/broker.ts - Added 3 response interfaces
  • src/types/request/v2/futures.ts - Added 3 request interfaces
  • src/types/response/v2/futures.ts - Added 3 response interfaces
  • src/types/request/v3/account.ts - Added 1 request interface
  • src/types/response/v3/account.ts - Added 1 response interface

Full Changelog: bitget-api compare v3.0.9...v3.0

Bitget JavaScript SDK
v3.0.9

Previously running a JSON.stringify call within the WebsocketAPIClient exception handler could in rare circumstances lead to a circular reference. This handles that scenario in a safer way.

What's Changed

  • chore(3.0.9): Update wsapi error handling, bump version by @JJ-Cro in bitget-api PR #102

Full Changelog: bitget-api compare v3.0.8...v3.0

Bitget JavaScript SDK
v3.0.8

What's Changed

  • chore(): upd getFuturesHistoricFundingRates and getFuturesCurrentFundingRate responses by @lutogin in bitget-api PR #100
  • fix(v3.0.8, #100): update getFuturesHistoricFundingRates and getFuturesCurrentFundingRate return types by @tiagosiebler in bitget-api PR #101

New Contributors

Full Changelog: bitget-api compare v3.0.7...v3.0

Bitget JavaScript SDK
v3.0.7

What's Changed

Full Changelog: bitget-api compare v3.0.6...v3.0

Bitget JavaScript SDK
v3.0.6

What's Changed

Full Changelog: bitget-api compare v3.0.5...v3.0

Bitget JavaScript SDK
v3.0.5

What's Changed

Transitioned the release workflow to a token-less trusted publisher workflow, for a more secure way to publish new releases to npm.

Historic Changelog

Since the most recent major release:

  • feat(): V3 examples, v3 readme by @JJ-Cro in bitget-api PR #78
  • feat(): added all examles and endpoint map by @JJ-Cro in bitget-api PR #79
  • feat(): added v3 tests by @JJ-Cro in bitget-api PR #80
  • Upgrade SDK to hybrid esm/cjs module by @tiagosiebler in bitget-api PR #81
  • feat(v3.0.0): add V3 REST APIs & WebSockets. add RSA support. Move to Web Crypto API for sign. Publish Hybrid CJS/ESM module. by @tiagosiebler in bitget-api PR #77
  • chore(v3.0.1): update version to 3.0.1, add llms.txt for AI optimization, update readme by @JJ-Cro in bitget-api PR #82
  • chore(v3.0.2): enhance README with detailed usage instructions by @JJ-Cro in bitget-api PR #83
  • feat(v3.0.3): add new V3 endpoints by @JJ-Cro in bitget-api PR #85
  • [Snyk] Upgrade ws from 8.18.0 to 8.18.3 by @tiagosiebler in bitget-api PR #84
  • feat(v3.0.4): implement mechanism to disable heartbeat by @tiagosiebler in bitget-api PR #86
  • feat(v3.0.4): added check for webcryptoapi support by @JJ-Cro in bitget-api PR #87
  • chore: update npm publish workflow to enhance security and version verification by @JJ-Cro in bitget-api PR #88
  • chore: bump version to 3.0.5 in package.json and package-lock.json by @JJ-Cro in bitget-api PR #89

Full Changelog: bitget-api on GitHub

Subscribe on Substack

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