github tiagosiebler/bybit-api v4.2.3
v4.2.3: Introduce modern token-less publishing workflow

latest releases: v4.2.7, v4.2.6, v4.2.5...
24 days ago

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

New Contributors

Full Changelog: v3.0.1...v4.2.3

Don't miss a new bybit-api release

NewReleases is sending notifications on new releases.