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 251 to 277 of 277. Page 6 of 6.

Binance JavaScript SDK
v3.0.7

What's Changed

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

Bybit JavaScript SDK
v4.2.6
  • Fixes deduping workflow introduced in previous release

Full Changelog: bybit-api compare v4.2.5...v4.2

Bybit JavaScript SDK
v4.2.5

What's Changed

  • fix(v4.2.5, #477): automatically dedupe topic requests if already subscribed by @tiagosiebler in bybit-api PR #478

This provides convenience in calling the subscribe method, where it will only emit subscribe events to bybit for the topics that haven't been subscribed to yet, preventing the scenario in #477 (which will cause non-duplicate topic subs to fail)

Full Changelog: bybit-api compare v4.2.4...v4.2

OKX JavaScript SDK
v3.0.5

What's Changed

  • chore(): update old example with a working one by @JJ-Cro in okx-api PR #138
  • fix(v3.0.5, #137): handling for mixed-auth connections should only auth once private topic is requested by @tiagosiebler in okx-api PR #139

Primarily fixes handling for topics on the business WS connection, where only some require auth.

Full Changelog: okx-api compare v3.0.4...v3.0

OKX JavaScript SDK
v3.0.4

What's Changed

  • fix(v3.0.4, #135): ws api response data generic by @tiagosiebler in okx-api PR #136

Full Changelog: okx-api compare v3.0.3...v3.0

OKX JavaScript SDK
v3.0.3

What's Changed

  • fix(v3.0.3, fixes #133): fixes demo wskey resolution for private wss by @tiagosiebler in okx-api PR #134

Full Changelog: okx-api compare v3.0.2...v3.0

OKX JavaScript SDK
v3.0.2

What's Changed

  • fix(v3.0.2, #131): fix market resolution in new ws client by @tiagosiebler in okx-api PR #132

Full Changelog: okx-api compare v3.0.1...v3.0

Binance JavaScript SDK
v3.0.6

There are documented limits to how many topics binance allows on a single connection. There are also limits to how many topics can be subscribed to in a single request(ws event). This release introduces two core changes:

  • Warnings if you are subscribed to more than 200 topics on one connection. Recommendation is to instance multiple WS clients (1 instance per 200 topics on one connection).
  • Upstream WS requests (subscribing to topics) are now automatically batched into groups of 250 topics, in an attempt to stay within per-request message limits.

What's Changed

  • feat(v3.0.6): enhance WebSocket client with topic subscription warnings by @JJ-Cro in binance PR #578

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

OKX JavaScript SDK
v3.0.1

WebSocket API & Hybrid ESM/CJS

Introducing the next major release, finally bringing full support for OKX's WebSocket API in a convenient REST-like API wrapper.

Key Pull Requests

  • feat(v3.0.0): introduce WebSocket API, upgrade sign to use Web Crypto API, misc WebSocket upgrades, bump build to Node LTS by @tiagosiebler in okx-api PR #123
  • feat(): upgrade SDK to hybrid esm/cjs module. update import/export statements for new structure by @tiagosiebler in okx-api PR #126
  • Update endpoint map & llms by @JJ-Cro in okx-api PR #127
  • chore(v3.0.1): bump version for release by @tiagosiebler in okx-api PR #130

Summary

  • Upgraded SDK to hybrid ESM/CJS module (via #126). No breaking changes expected from this.
  • Introduce full support for the OKX WebSocket API, including a new dedicated WebsocketAPIClient for a REST-like integration with OKX's WebSocket API. Check the examples folder for demonstrations!
  • Bump node build version to LTS.
  • Bump dependencies.
  • Upgrade underlying BaseWSClient architecture, to catch up with upgrades from other SDKs.
  • Transition to Web Crypto API for sign. This has better compatibility across browsers than node's native crypto module. For latency sensitive users, you can inject a custom sign method to continue using Node's native crypto for request sign. See the examples/auth/fasterHmacSign.ts example for a demonstration.
  • Introduced customSignMessageFn parameter (REST & WS) to inject custom sign method
    • This can be used by latency sensitive users to revert to Node's slightly faster createHmac sign method. See the fasterHmacSign example in examples/auth/ for a demonstration.
  • Split CI tests to run separately (first public then private).

Breaking Changes

This upgrade introduces the following breaking changes:

  • REST Client constructor options simplified, see #111 for more details.
  • The demo market for REST & WS has been removed.
    • Demo trading is now accessed via a demoTrading: true parameter (for REST & WS).
    • Added hard error to prevent any accidental usage of "market: demo" for non-typescript users.
  • WS Client options
    • Type has been updated to point to RestClientOptions.
    • To set a custom "agent" parameter, use wsOptions in the WSClientOptions instead.
  • The injectable custom logger has been simplified to 3 basic logging levels, consistent with our other SDKs.
    • error event has been refactored to exception
  • Not a breaking change but the underlying sign is now generated using Web Crypto API. More universal but slightly slower than node's native crypto module. Refer to fasterHmacSign above, if you're latency sensitive.

Full Changelog: okx-api compare v2.0.8...v3.0

OKX JavaScript SDK
v3.0.0

WebSocket API & Hybrid ESM/CJS

Introducing the next major release, finally bringing full support for OKX's WebSocket API in a convenient REST-like API wrapper.

Key Pull Requests

  • feat(v3.0.0): introduce WebSocket API, upgrade sign to use Web Crypto API, misc WebSocket upgrades, bump build to Node LTS by @tiagosiebler in okx-api PR #123
  • feat(): upgrade SDK to hybrid esm/cjs module. update import/export statements for new structure by @tiagosiebler in okx-api PR #126
  • Update endpoint map & llms by @JJ-Cro in okx-api PR #127

Summary

  • Upgraded SDK to hybrid ESM/CJS module (via #126). No breaking changes expected from this.
  • Introduce full support for the OKX WebSocket API, including a new dedicated WebsocketAPIClient for a REST-like integration with OKX's WebSocket API. Check the examples folder for demonstrations!
  • Bump node build version to LTS.
  • Bump dependencies.
  • Upgrade underlying BaseWSClient architecture, to catch up with upgrades from other SDKs.
  • Transition to Web Crypto API for sign. This has better compatibility across browsers than node's native crypto module. For latency sensitive users, you can inject a custom sign method to continue using Node's native crypto for request sign. See the examples/auth/fasterHmacSign.ts example for a demonstration.
  • Introduced customSignMessageFn parameter (REST & WS) to inject custom sign method
    • This can be used by latency sensitive users to revert to Node's slightly faster createHmac sign method. See the fasterHmacSign example in examples/auth/ for a demonstration.
  • Split CI tests to run separately (first public then private).

Breaking Changes

This upgrade introduces the following breaking changes:

  • REST Client constructor options simplified, see #111 for more details.
  • The demo market for REST & WS has been removed.
    • Demo trading is now accessed via a demoTrading: true parameter (for REST & WS).
    • Added hard error to prevent any accidental usage of "market: demo" for non-typescript users.
  • WS Client options
    • Type has been updated to point to RestClientOptions.
    • To set a custom "agent" parameter, use wsOptions in the WSClientOptions instead.
  • The injectable custom logger has been simplified to 3 basic logging levels, consistent with our other SDKs.
    • error event has been refactored to exception
  • Not a breaking change but the underlying sign is now generated using Web Crypto API. More universal but slightly slower than node's native crypto module. Refer to fasterHmacSign above, if you're latency sensitive.

Full Changelog: okx-api compare v2.0.8...v3.0

Bybit JavaScript SDK
v4.2.4

What's Changed

Full Changelog: bybit-api compare v4.2.3...v4.2

Coinbase JavaScript SDK
v1.1.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

  • feat(v1.1.0): Add support for ES256 & Ed25519 keys via jose library by @tiagosiebler in coinbase-api PR #84
  • chore(v1.1.1): add llms.txt for AI optimization, update tsconfig, bump version, bump dependencies by @JJ-Cro in coinbase-api PR #89
  • chore(v1.1.2): update README for improved documentation by @JJ-Cro in coinbase-api PR #90
  • [Snyk] Upgrade nanoid from 3.3.8 to 3.3.11 by @tiagosiebler in coinbase-api PR #92
  • [Snyk] Upgrade axios from 1.8.2 to 1.10.0 by @tiagosiebler in coinbase-api PR #91
  • chore(v1.1.3): update README to include 'Used By' section and improve formatting, bump nanoid & axios by @JJ-Cro in coinbase-api PR #93
  • chore(1.1.4): update intentional wsclose cleanup by @JJ-Cro in coinbase-api PR #94
  • chore: update GitHub Actions workflow for NPM publishing by @JJ-Cro in coinbase-api PR #95
  • chore(v1.1.5): bump version to 1.1.5 in package.json and package-lock… by @JJ-Cro in coinbase-api PR #96

Full Changelog: coinbase-api on GitHub

KuCoin JavaScript SDK
v2.1.21

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

  • chore(v2.1.17): update readme for modern and performant look by @JJ-Cro in kucoin-api PR #74
  • fix(v2.1.18, #77): delete params passed as query string by @tiagosiebler in kucoin-api PR #78
  • feat(2.1.19): added cross margin new endpoint by @JJ-Cro in kucoin-api PR #79
  • [Snyk] Upgrade nanoid from 3.3.8 to 3.3.11 by @tiagosiebler in kucoin-api PR #76
  • [Snyk] Upgrade axios from 1.8.2 to 1.10.0 by @tiagosiebler in kucoin-api PR #75
  • feat(v2.1.20): add Web Crypto API check for authentication by @JJ-Cro in kucoin-api PR #80
  • chore(): Update GitHub Actions workflow for NPM publishing by @JJ-Cro in kucoin-api PR #81
  • chore(): Bump version to 2.1.21 in package.json and package-lock.json by @JJ-Cro in kucoin-api PR #82

Full Changelog: kucoin-api on GitHub

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

Binance 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.0.0): Introduce Binance WebSocket API, introduce multiplex WebSocket client, bump dependencies, remove some deprecated endpoints by @tiagosiebler in binance PR #509
  • feat(3.0.1): added new Institutional Loan endpoints and On Chain Staking endpoints by @JJ-Cro in binance PR #567
  • chore(): added lint git action by @JJ-Cro in binance PR #568
  • chore(): update .gitignore and add llms.txt for AI integration by @JJ-Cro in binance PR #569
  • docs(readme): add users info by @gouravkhunger in binance PR #570
  • feat(): added alpha endpoints, added inst loan endpoints by @JJ-Cro in binance PR #573
  • [Snyk] Upgrade nanoid from 3.3.8 to 3.3.11 by @tiagosiebler in binance PR #572
  • [Snyk] Upgrade axios from 1.8.3 to 1.10.0 by @tiagosiebler in binance PR #571
  • feat(v3.0.4): update package version to 3.0.4, bump axios & nanoid, add Web Crypto API support checks in BaseRestClient and BaseWSClient, and implement error handling for unsupported Node.js versions by @JJ-Cro in binance PR #574
  • chore: update NPM publish workflow to trigger on version tags, enhance security checks, and verify package version against tag by @JJ-Cro in binance PR #575
  • chore: bump package version to 3.0.5 in package.json and package-lock… by @JJ-Cro in binance PR #576

Full Changelog: binance on GitHub

OKX JavaScript SDK
v2.0.8

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

  • chore(v2.0.6): add keepAlive options for REST API requests by @JJ-Cro in okx-api PR #120
  • chore(): update ESLint configuration and bump dependencies by @JJ-Cro in okx-api PR #121
  • chore(v2.0.7): add llms.txt, update tsconfig, bumpd dependencies by @JJ-Cro in okx-api PR #124
  • chore: update npm publish workflow to enhance security and version verification by @JJ-Cro in okx-api PR #128
  • chore(v2.0.8): bump version to 2.0.8 in package.json and package-lock.json by @JJ-Cro in okx-api PR #129

Full Changelog: okx-api on GitHub

Bybit JavaScript SDK
v4.2.3

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

Note: these are since the last "release" / tag on GitHub.

  • Batch sub/unsubscribe to topics for spot v3 by @tiagosiebler in bybit-api PR #176
  • fix(shared/types): max_leverage typo by @iam4x in bybit-api PR #180
  • v3.1.0: fix typo in types (#180), fix tests, fix repeating subscribe/unsubscribe WS events to active connections by @tiagosiebler in bybit-api PR #182
  • missing unifiedPrivate in WS_AUTH_ON_CONNECT_KEYS by @twxia in bybit-api PR #183
  • chore(): fix changed test error code by @tiagosiebler in bybit-api PR #184
  • feat(#187, v3.1.2): add support for new orderCategory param for spotv3 by @tiagosiebler in bybit-api PR #188
  • v3.1.3: fix(#187) rare signature failure for spotv3 GET with parameters by @tiagosiebler in bybit-api PR #190
  • v3.2.0: Contract V3 REST & WebSocket Clients. Improve websocket reconnection resilience by @tiagosiebler in bybit-api PR #196
  • update tests for copy trading client by @tiagosiebler in bybit-api PR #197
  • v3.3.0: fix rare sign error when using cursors in private unified margin API calls. expand unified margin response types. expand tests. by @tiagosiebler in bybit-api PR #198
  • v3.3.1: fix(#199) wrong endpoint for contract.getOpenInterestLimitInfo by @tiagosiebler in bybit-api PR #201
  • missing api by @JustMankus in bybit-api PR #203
  • v3.3.2: feat(#203) add execution history list endpoint for linear by @tiagosiebler in bybit-api PR #204
  • new param Type for getHistoryTradeRecordsRequest. by @JustMankus in bybit-api PR #205
  • v3.3.4: fix optional param in contract client, add js/ts samples for contract client, fix e2e open interest limit test, update readme by @tiagosiebler in bybit-api PR #208
  • v3.3.5: fix typo in contract endpoint order request interfaces by @tiagosiebler in bybit-api PR #209
  • v3.3.6: add response type for contract ticker by @tiagosiebler in bybit-api PR #210
  • v3.3.7: fix nesting in contract list result type by @tiagosiebler in bybit-api PR #211
  • fix contract symbol ticker response typo by @tiagosiebler in bybit-api PR #212
  • v3.3.9: fix copy trading close order endpoint. add ws log for topic sub request. add example for rest copy closing. by @tiagosiebler in bybit-api PR #216
  • v3.3.10: fix(#220): correctly detecting usdc pairs for unified perp ws market by @tiagosiebler in bybit-api PR #221
  • Bump json5 from 2.1.3 to 2.2.3 by @dependabot[bot] in bybit-api PR #215
  • Bump loader-utils from 2.0.0 to 2.0.4 by @dependabot[bot] in bybit-api PR #200
  • v3.4.0: feat(#219) add support for account asset v3 REST endpoints by @tiagosiebler in bybit-api PR #223
  • string type error in createSubAPIKeyRequest by @mlake in bybit-api PR #225
  • v3.4.1: fix(#225) fix typos in account asset v3 client by @tiagosiebler in bybit-api PR #226
  • v3.4.2: fix() missing property from linear client set trading stop method by @tiagosiebler in bybit-api PR #229
  • v3.5.0: RestClientV5 with end-to-end tests by @tiagosiebler in bybit-api PR #224
  • v3.5.1: Support for V5 WebSockets by @tiagosiebler in bybit-api PR #230
  • v3.5.2: feat() add missing v5 internal deposit records endpoint. fix(#233) return type for v5 wallet balance endpoint, fix(#232) timestamp resolution for v5 fetch time endpoint by @tiagosiebler in bybit-api PR #234
  • fix(#240): fix sign error on parallel requests due to pointer mutation by @tiagosiebler in bybit-api PR #241
  • Support triggerPrice in ContractModifyOrderRequest by @sangnv-ptit in bybit-api PR #242
  • v3.5.4: feat(#242) add request param to contract replace order endpoint by @tiagosiebler in bybit-api PR #243
  • v3.5.5: fix() add missing wallet balance response type properties by @tiagosiebler in bybit-api PR #245
  • v3.5.6, feat(#249): add 10-per-event limiter to spot v5 subscriptions, chore(): enable trailing comma linting rule by @tiagosiebler in bybit-api PR #250
  • Add syncTimeBeforePrivateRequests option by @Tindtily in bybit-api PR #247
  • v3.5.7: feat(#247) add optional flag to sync time before every api call by @tiagosiebler in bybit-api PR #252
  • v3.5.8: feat() easier env-controlled HTTP traces. Add missing properties for asset v5 types. by @tiagosiebler in bybit-api PR #254
  • chore(): update tests for compatibility with new testing sub account by @tiagosiebler in bybit-api PR #262
  • #218 Returning a promise when subscribing to topic(s) by @caiusCitiriga in bybit-api PR #256
  • build(deps-dev): bump webpack from 5.13.0 to 5.76.0 by @dependabot[bot] in bybit-api PR #239
  • v3.6.0: feat(#218, #256) returning a promise when subscribing by @tiagosiebler in bybit-api PR #263
  • feat(): add copy trading ws topic example by @tiagosiebler in bybit-api PR #265
  • v3.7.0: add missing v5 endpoints, add new tpsl request/response v3 & v5 parameters, add rest api samples for docs by @tiagosiebler in bybit-api PR #267
  • v3.7.1: chore() naming consistency for interface, pass through logger for ws url getter by @tiagosiebler in bybit-api PR #273
  • v3.7.2: fix() response type for v5 open interest endpoint by @tiagosiebler in bybit-api PR #283
  • fix(#286): automatic type determination for instrument info by @ThijMau in bybit-api PR #287
  • v3.7.3: feat(#286) improved type flowing for instrument info v5 by @tiagosiebler in bybit-api PR #288
  • v3.7.4: feat(#251, #291) add optional endpoint rate limit parsing, add deprecation warnings for v1/v2 rest clients, improve v5 types, bump dependencies by @tiagosiebler in bybit-api PR #293
  • v3.7.5: fix() optional properties in AccountOrderV5 response interface by @tiagosiebler in bybit-api PR #294
  • v3.7.6: feat() update batch order types & categories by @tiagosiebler in bybit-api PR #295
  • feat(types): adds WSAccountOrderEventV5 & WSAccountOrderV5 interfaces by @caiusCitiriga in bybit-api PR #300
  • type fixing by @t0chk in bybit-api PR #302
  • Minor docs updates, add recv window for ws client by @tiagosiebler in bybit-api PR #304
  • v3.8.0: Safer WS timer cleanup & teardown, add proxy/rate limits example, docs... by @tiagosiebler in bybit-api PR #306
  • v3.8.1: feat() add type guard and type for ws orderbook events by @tiagosiebler in bybit-api PR #309
  • v3.8.2: feat(#310) add set collateral coin endpoints by @tiagosiebler in bybit-api PR #311
  • v3.9.0: Upgrades to dependencies (axios, node build version, typescript, jest, etc) by @tiagosiebler in bybit-api PR #312
  • v3.9.1: feat(user): add methods to delete submember by @ThijMau in bybit-api PR #314
  • v3.9.2: fix(#315) orderbook level type by @tiagosiebler in bybit-api PR #316
  • Add marketUnit optional property to OrderParamsV5 interface by @will2022 in bybit-api PR #317
  • v3.9.4: feat() update test & publish actions, update public ws example, disable test for deprecated endpoint by @tiagosiebler in bybit-api PR #318
  • v3.9.5: chore() add permissions needed for provenance generation by @tiagosiebler in bybit-api PR #319
  • v3.9.6: feat(#322) add nextPageCursor type via generic by @tiagosiebler in bybit-api PR #323
  • v3.9.7: feat(#324) add new account order v5 properties by @tiagosiebler in bybit-api PR #325
  • v3.9.8: Updated V5 InstrumentInfo types by @Mnjongen in bybit-api PR #330
  • chore(): remove UM tests covering dead endpoints, fix v5 test by @tiagosiebler in bybit-api PR #331
  • v3.10.0: feat() add v5 demo trading by @tiagosiebler in bybit-api PR #334
  • v3.10.1: fix(#333) v5 time endpoint by @tiagosiebler in bybit-api PR #335
  • v3.10.2: Added and updated V5 types. Added type guards. by @will2022 in bybit-api PR #338
  • v3.10.3: feat(#340) fix pass-through headers for proxying via nginx. add second proxy example. by @tiagosiebler in bybit-api PR #343
  • v3.10.4: Introduce getSubAccountAllApiKeys, update deleteSubApiKey by @karimsan in bybit-api PR #346
  • v3.10.5: Update UpdateApiKeyParamsV5 by @karimsan in bybit-api PR #347
  • v3.10.6: chore() readme & logo updates, fix() bump dependencies by @tiagosiebler in bybit-api PR #348
  • chore(): update license by @tiagosiebler in bybit-api PR #352
  • feat(): Added all missing endpoints by @JJ-Cro in bybit-api PR #350
  • v3.10.9: chore() bump dependencies, fix() strict test, chore() run linter by @tiagosiebler in bybit-api PR #353
  • v3.10.10: feat() Update type AccountMarginModeV5 and interface CollateralInfoV5 by @karimsan in bybit-api PR #354
  • v3.10.11: fix() deprecated endpoints (copy trading & unified margin client) by @JJ-Cro in bybit-api PR #357
  • v3.10.12: feat() Add convert endpoints, convert examples, small updates to request/response types by @JJ-Cro in bybit-api PR #359
  • chore(): deprecate unified margin private test by @tiagosiebler in bybit-api PR #360
  • v3.10.13: feat() add updated withdraw request params by @tiagosiebler in bybit-api PR #362
  • fix(): Comma/semicolon fix in params by @JJ-Cro in bybit-api PR #364
  • feat(): Added endpoint, updated types by @JJ-Cro in bybit-api PR #366
  • v3.10.15: feat(): updated missing examples and endpoints by @JJ-Cro in bybit-api PR #367
  • v3.10.16: feat(): added missing API examples, deprecated abandoned functions by @JJ-Cro in bybit-api PR #369
  • v3.10.17: chore() update dependencies, feat() add apiRegion config for changing regional API URL by @tiagosiebler in bybit-api PR #370
  • v3.10.18: feat(#368) add config for HTTP keep alive via axios by @tiagosiebler in bybit-api PR #371
  • feat(): added automatic Readme actions by @JJ-Cro in bybit-api PR #373
  • chore(): README.md template sections by @tiagosiebler in bybit-api PR #376
  • chore(): cleaned up old tests by @JJ-Cro in bybit-api PR #377
  • feat(): added new endpoints by @JJ-Cro in bybit-api PR #378
  • feat(): extend demo trading sample to include more ws logic by @tiagosiebler in bybit-api PR #379
  • feat(): added Crypto Loan endpoints by @JJ-Cro in bybit-api PR #381
  • feat(): added links to endpoint map by @JJ-Cro in bybit-api PR #382
  • feat(): added latency check, updated example by @JJ-Cro in bybit-api PR #384
  • feat(#385): updated createSubAPIKey params to match docs by @JJ-Cro in bybit-api PR #386
  • chore(): marked clients for deprecation by @JJ-Cro in bybit-api PR #387
  • fix(type): fixed #391 by @soranoo in bybit-api PR #392
  • fix(): failing tests, failing eslint configuration, chore(): run linter by @tiagosiebler in bybit-api PR #393
  • fix(types): add missing 'mmDeduction' prop to RiskLimitV5 by @fireflies1988 in bybit-api PR #394
  • v3.10.27 feat(): updated request params by @JJ-Cro in bybit-api PR #395
  • v3.10.28 feat(): added new endpoints, updated examples by @JJ-Cro in bybit-api PR #401
  • feat(): added nextPageCursor example by @JJ-Cro in bybit-api PR #403
  • fix(): updated test parameters so it can pass by @JJ-Cro in bybit-api PR #404
  • fix(): adjusted type definitions for instruments endpoint by @LanPRD in bybit-api PR #406
  • Fix submit order example by @tiagosiebler in bybit-api PR #408
  • v3.10.30: add missing WSExecutionV5 execPnl property. Bump npm audit dependency. by @tiagosiebler in bybit-api PR #410
  • fix(v3.10.31, #411): demo trading wss should only be used for private topics. by @tiagosiebler in bybit-api PR #412
  • feat(v3.10.32): add params for GetDeliveryRecord, fixed e2e tests by @JJ-Cro in bybit-api PR #415
  • chore(): fix env vars for test split by @tiagosiebler in bybit-api PR #416
  • feat(3.10.33): Updated return types for getSubDepositAddress, createUniversalTransfer and createInternalTransfer by @JJ-Cro in bybit-api PR #418
  • feat(): added/updated types with latest documentation changes by @JJ-Cro in bybit-api PR #419
  • feat(): added new Earn REST endpoints by @JJ-Cro in bybit-api PR #420
  • feat(v3.10.34): added slippage tolerance types to order endpoints by @JJ-Cro in bybit-api PR #421
  • fix(v3.11.0): ensure private GET requests use serialised/encoded params appended to URL. Update slippage tolerance type to optional. by @tiagosiebler in bybit-api PR #422
  • v4.0.0: WebSocket API, WebsocketClient upgrades, decommission deprecated v1-v3 API groups by @tiagosiebler in bybit-api PR #398
  • fix(v4.0.1, #425): fix WSOrderbookEventV5 type definition. Bump dependencies. by @tiagosiebler in bybit-api PR #426
  • feat(v4.1.0): Add full support for P2P trading, Add suffix to recent Earn types (minor breaking change) by @JJ-Cro in bybit-api PR #429
  • chore(v4.1.1): update travel rule request params by @JJ-Cro in bybit-api PR #430
  • feat(v4.1.2): added websocket types for all topics by @JJ-Cro in bybit-api PR #431
  • feat(v4.1.3): full support for demo endpoints by @JJ-Cro in bybit-api PR #432
  • fix(types): change response v5-asset CoinInfoV5.name by @zororaka00 in bybit-api PR #433
  • feat(v4.1.4): full spread trading support by @JJ-Cro in bybit-api PR #434
  • feat(v4.1.5): updated latency check to look at absolute values, fixed batch order responses, updated new endpoints by @tiagosiebler in bybit-api PR #439
  • chore(v4.1.6): updated post to postPrivate for getP2POnlineAds by @JJ-Cro in bybit-api PR #440
  • feat(v4.1.7): fast execution topics should use authenticated stream by @tiagosiebler in bybit-api PR #442
  • fix typo by @batrudinych in bybit-api PR #443
  • feat(): added bybit wsapi client all functions by @JJ-Cro in bybit-api PR #445
  • feat(): added wsapiclient examples, updated endpoint map, updated lin… by @JJ-Cro in bybit-api PR #446
  • feat(v4.1.8): introduce websocket API client wrapper, chore(): misc typo fixes & cleaning by @tiagosiebler in bybit-api PR #444
  • feat(v4.1.9): new ws topic, updated response and request types by @JJ-Cro in bybit-api PR #449
  • Update README.md by @JJ-Cro in bybit-api PR #451
  • feat(4.1.10): add new WSTickerOptionV5 and WSTickerSpotV5 interfaces for enhanced websocket event handling by @JJ-Cro in bybit-api PR #453
  • feat(v4.1.11): add preCheckOrder method with corresponding types and example usage, add txId and Id to deposit records by @JJ-Cro in bybit-api PR #454
  • feat(v4.1.12): added new endpoints,new ws topic updated types for existing endpoints, added examples for new endpoints, updated endpoint map, bumped version by @JJ-Cro in bybit-api PR #457
  • chore(v4.1.13): bump dependency. Update readme with rate limits note. by @tiagosiebler in bybit-api PR #459
  • feat(v4.1.14): Add new fields to response types for account, position, execution, spread trading, and websocket events. by @JJ-Cro in bybit-api PR #460
  • chore(v4.1.15): marked removed functions for deprecation, updated tests by @JJ-Cro in bybit-api PR #461
  • feat(v4.1.16): add keepAlive, add lint script, edit lint errors by @JJ-Cro in bybit-api PR #462
  • feat(v4.1.17): update dependencies and ESLint configuration, fix all linter errors by @JJ-Cro in bybit-api PR #463
  • chore(): update readme by @tiagosiebler in bybit-api PR #467
  • feat(v4.2.0): RSA, llm.txt, bump dependencies by @JJ-Cro in bybit-api PR #466
  • feat(v4.2.0): RSA, llm.txt, bump dependencies by @tiagosiebler in bybit-api PR #468
  • feat(v4.2.1): added new crypto loan endpoints and examples, updates types by @JJ-Cro in bybit-api PR #470
  • [Snyk] Upgrade axios from 1.8.3 to 1.10.0 by @tiagosiebler in bybit-api PR #469
  • feat(v4.2.2): add webcryptoapi support check and update readme, bump axios by @JJ-Cro in bybit-api PR #471
  • chore():Update GitHub Actions workflow for NPM publishing by @JJ-Cro in bybit-api PR #472
  • chore(): bump version to 4.2.3 in package.json and package-lock.json by @JJ-Cro in bybit-api PR #473

New Contributors

Full Changelog: bybit-api compare v3.0.1...v4.2

Gate JavaScript SDK
v1.2.8

What's Changed

This release deprecates the previous automation for publishing releases to NPM, to a more secure tokenless trusted-publisher workflow.

Release notes

  • chore(): update GitHub Actions workflow for NPM publishing by @JJ-Cro in gateio-api PR #72
  • chore(): bump version to 1.2.8 in package.json and package-lock.json by @JJ-Cro in gateio-api PR #73

Full Changelog: gateio-api on GitHub

Bybit JavaScript SDK
v3.0.1

For an up to date list of releases and updates, refer to:

The above links are the best place to stay up to date on the latest releases for this SDK.









































connector logo

Node.js connector for the Bybit APIs and WebSockets:

  • Complete integration with all bybit APIs.
  • TypeScript support (with type declarations for most API requests & responses).
  • Over 300 integration tests making real API calls & WebSocket connections, validating any changes before they reach npm.
  • Robust WebSocket integration with configurable connection heartbeats & automatic reconnect then resubscribe workflows.
  • Browser support (via webpack bundle - see "Browser Usage" below).

This major release introduces 6 new REST clients and hundreds of integration tests. The bybit-api npm connector now supports all REST API and WebSocket categories, including the very recently added unified margin and copy trading categories.

REST APIs

Each REST API group has a dedicated REST client. To avoid confusion, here are the available REST clients and the corresponding API groups:

Examples for using each client can be found in:

If you're missing an example, you're welcome to request one. Priority will be given to github sponsors.

WebSockets

For WebSockets, all API groups can be used via a shared WebsocketClient. However, to listen to multiple API groups at once, you will need to make one WebsocketClient instance per API group (for now).

The WebsocketClient can be configured to a specific API group using the market parameter. These are the currently available API groups:

API CategoryMarketDescription
Unified Margin - Optionsmarket: 'unifiedOption'The derivatives v3 category for unified margin. Note: public topics only support options topics. If you need USDC/USDT perps, use unifiedPerp instead.
Unified Margin - Perpsmarket: 'unifiedPerp'The derivatives v3 category for unified margin. Note: public topics only support USDT/USDC perpetual topics - use unifiedOption if you need public options topics.
Futures v2 - Inverse Perpsmarket: 'inverse'The inverse v2 perps category.
Futures v2 - USDT Perpsmarket: 'linear'The USDT/linear v2 perps category.
Futures v2 - Inverse Futuresmarket: 'inverse'The inverse futures v2 category uses the same market as inverse perps.
Spot v3market: 'spotv3'The spot v3 category.
Spot v1market: 'spot'The older spot v1 category. Use the spotv3 market if possible, as the v1 category does not have automatic re-subscribe if reconnected.
Copy Tradingmarket: 'linear'The copy trading category. Use the linear market to listen to all copy trading topics.
USDC Perpsmarket: 'usdcPerpThe USDC perps category.
USDC Optionsmarket: 'usdcOption'The USDC options category.

Check the readme for an example. More examples will be added in the future, and will be found in the following locations:

Issues & Discussion

Breaking Changes

While I have tried to avoid any breaking changes as much as possible, I have decided to accept some as part of this major release as an opportunity for improvement. If you notice any other breaking changes not listed below, please let me know.

REST Clients

  • The SpotClient is now deprecated in favour of the new SpotClientV3 (which uses the newer v3 spot APIs).
  • The key parameter has been moved into the restOptions object.
  • The secret parameter has been moved into the restOptions object.
  • The useLivenet parameter has been renamed to testnet and moved into the restOptions object.
  • The REST clients now connect to the live environment by default, unless testnet: true is provided in restOptions.

All REST clients now accept only two parameters:

  constructor(
    restOptions: RestClientOptions = {},
    networkOptions: AxiosRequestConfig = {}
  ) 

API credentials are passed into the first parameter.

  • disable_time_sync has been removed from the rest client options, since time sync is now disabled by default.
  • To re-enable time sync, use enable_type_sync: true in the rest options object parameter.

Websocket-Client

  • The WS client now connects to the live environment by default, unless testnet: true is provided in the ws client options.
  • The market parameter is now required in the ws client config. It tells the websocket client which websocket URL to use, since there's variation between spotv1, spotv3, futures, unified margin and other markets. Check the APIMarket union type for a list of possible values (which your IDE should also be able to show, if you're using typescript).
  • Constant parameters such as wsKeySpotPublic have been grouped under a WS_KEY_MAP object.
    • The WsKey values remain the same, with some new additions.
    • If you were using the exported constant (e.g. wsKeySpotPublic), you will need to update your code to use WS_KEY_MAP.spotPublic instead.
    • If you were using the spot market, the spotv3 market is very much recommended (it supports automatic re-subscribe if the connection drops & reconnects)
  • The livenet parameter has been deprecated in favour of testnet: boolean.
  • The websocket client now connects to livenet by default. If you want to use testnet, include the parameter testnet: true in your client options.
    • This is consistent with my other api connectors, which connect to livenet by default.
    • In future, the REST clients will also connect to the live environment by default.
Bybit JavaScript SDK
v2.1.0

Summary

This expands the library to support the spot REST & Websocket APIs.

npm install bybit-api@2.1.0

Deprecation Notices

The WebSocket client now accepts a new parameter for market.

This should be used instead of the boolean linear parameter, which will be removed in a future release. Check the readme for examples.

Changelog

  • Fix inversed secondary URLs (#106)
  • Add support for Spot APIs (#99)
Bybit JavaScript SDK
v2.0.5

Summary

This adds the missing mode/switch APIs for the inverse client, see #98 for details. This also significantly reduces the size of the webpack bundle for use in web browsers, see #59 for details.

npm install bybit-api@2.0.5

Changelog

  • Add API to set position mode (hedge)
  • Add API to set SL/TP partial/full mode.
  • Add API to set margin type.
  • Significant reduction in webpack bundle size.
Bybit JavaScript SDK
v2.0.3

Summary

See #83 for details. This adds support for Inverse Futures REST endpoints, currently only available for quarterly BTC futures on testnet.

npm install bybit-api@2.0.3

Changelog

  • Introduce a new REST client: InverseFuturesClient. Resolves #82.
  • Update & clean readme.
  • Add missing trailing_stop parameter for inverse client setTradingStop().
Bybit JavaScript SDK
v2.0.1

Changelog

See #80 for details. This fixes a pass-through parameter to pass a custom base URL in the REST constructors.

npm install bybit-api@2.0.1
Bybit JavaScript SDK
v2.0.0

See #75 for details. This primarily introduces support for the Linear USDT APIs and WebSockets, although two minimal changes were introduced to how the existing inverse client (previously RestClient) is imported and when websockets start connecting.

npm install bybit-api@2.0.0

Changelog

Summary

  • Introduced LinearClient as the abstraction for all available Linear USDT Rest APIs.
  • Enhanced WebSocket Client to support multiple linear websockets (public & private).
    • To use linear websockets make a new instance of the Websocket-Client, passing the constructor option "linear: true".
  • Removed deprecated API methods abandoned in December 2020.
  • Renamed exported RestClient to InverseClient. Implementation remains unchanged.

Breaking Changes

This release only has one major change affecting existing usage.

  • Rename dexported RestClient to InverseClient. Implementation remains unchanged.

Simply rename any existing RestClient import to continue using Inverse Rest APIs.

Behavioural Changes

The following are not expected to cause any issues but are a notable change in behaviour:

  • Previously the Websocket Client automatically opens a websocket connection as soon as it is instanced.
    • As of version 2.0.0 (this release), websocket connections are automatically opened as soon as any topics are subscribed to.
    • If needed, manually trigger websocket connection attempts before subscribing to a topic using the websocketClient.connectAll() method. See Websocket-Client.ts for details.
Bybit JavaScript SDK
v1.3.2

Small fix to the error handler when API requests fail.

Bybit JavaScript SDK
v1.3.1

See #45 for details. This was a major transition from a pureJS library into one that is loosely typed, at least as a first iteration.

npm install bybit-api@1.3.1

Copied from the pull request:

Changelog

Summary

  • Introduce typescript declarations. API methods are typed including optional parameters. Resolves #18.
  • Introduce webpack, although not published to npm yet. TODO: log issue to trim bundle size.
  • Deprecate assert() calls. This caused a nuisance when API parameter requirements changed.
  • Fix browser websocket support. Resolves #33.
  • Organise API methods per API documentation, including the categories also used in official documentation.
  • Mark deprecated API methods.

Breaking Changes

These changes were enforced by bybit:

  • getActiveOrder() uses deprecated endpoint. Use getActiveOrderList() instead.
    • Requires symbol param. Otherwise it's the same.
  • getPositions() uses deprecated endpoint. Use getPosition() instead.

Deprecations

These are a consequence of module improvements:

  • getPublicTradingRecords() deprecated. Use getTrades() instead.
    • Same params & response.
  • getPublicLiquidations() deprecated. Use getLiquidations() instead.
    • Same params & response.
  • getLatestInformation() deprecated. Use getTickers() instead.
    • Same params & response.
  • changeUserLeverage() deprecated. Use setUserLeverage() instead.
    • Same params & response.
Bybit JavaScript SDK
v1.2.0

The primary goal was to transition to axios, since the npm module request is both deprecated and carries a ton of dependency baggage. This version does not change any high level functionality, ensuring no integration changes are required to upgrade to this release.

Difference in dependency baggage

<img width="1047" alt="Screenshot 2020-10-14 at 09 57 39" src="https://user-images.githubusercontent.com/14090872/95967098-c5bb2880-0e03-11eb-8d93-cbfde97183ae.png">

As well as a smaller memory footprint, an additional bonus of this adoption of axios is support for proxied requests as well as other customizations to how HTTP requests are made by the library. See the axios request config for a detailed list of options.

Action Required to Upgrade

None

Summary

  • replace the deprecated npm request module with the much lighter axios module. Resolves #4.
  • bump websocket connectivity dependency to latest version.
  • validated #12 is not an issue.
  • misc refactoring & cleaning.

Subscribe on Substack

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