Skip to content

Releases: sieblyio/bybit-api

v4.7.1: Upgrade & pin WS dependency to v8 to resolve upstream regression

Choose a tag to compare

@tiagosiebler tiagosiebler released this 17 Jul 14:51
3db77ee

What's Changed

  • chore(): upgrade GitHub Actions to setup-node v7 and checkout v6 by @JJ-Cro in #557
  • fix(v4.7.1, #558): ws v7 dependency WS_ERR_TOO_MANY_BUFFERED_PARTS side effect, chore: remove bundle analyser, fix: return type by @tiagosiebler in #559

Full Changelog: v4.7.0...v4.7.1

v4.7.0: Add Alpha LP & Prediction APIs, bump build to LTS node v24, misc readme updates

Choose a tag to compare

@tiagosiebler tiagosiebler released this 10 Jul 11:26
d9dbd75

What's Changed

  • chore: update readme with docs link by @JJ-Cro in #551
  • feat(v4.6.6): add Alpha LP and Prediction market APIs with corresponding request types and examples by @JJ-Cro in #553
  • chore(v4.7.0): bump build version to LTS node v24. bump deps post audit. by @tiagosiebler in #554

Full Changelog: v4.6.4...v4.7.0

v4.6.4: Move build tooling to devDependencies to reduce install bloat

Choose a tag to compare

@tiagosiebler tiagosiebler released this 07 Jun 09:53
cd9fcfe

What's Changed

  • chore: update quickstart guide to latest by @tiagosiebler in #547
  • chore(v4.6.4): move build toolchain to devDependencies (fixes default-install bloat) by @tamasPetki in #549

New Contributors

Full Changelog: v4.6.3...v4.6.4

v4.6.3: Add new PWM investment plan APIs & examples

Choose a tag to compare

@tiagosiebler tiagosiebler released this 04 Jun 09:20
c48ef23

What's Changed

  • refactor: update import statements to ES6 syntax across multiple API documentation files by @JJ-Cro in #542
  • feat: add tutorial by @tiagosiebler in #544
  • feat(v4.6.3): add new PWM investment plan APIs and examples by @JJ-Cro in #546

Full Changelog: v4.6.2...v4.6.3

Bybit API changelog catch-up (~Apr-Jun 2026). Types + RestClientV5 methods + apidoc examples where we had HTTP samples.

Breaking / watch out

  • FiatBybitPay dropped from PermissionsV5 / ApiKeyPermissionsV5 (use FiatBitPay)
  • EarnPositionV5.availableAmount + freezeDetails are required in types now (API returns them)
  • CoinInfoV5.chains[].withdrawMax added; remainAmount still typed but deprecated

Type updates (existing endpoints)

  • Position - openTime on PositionV5 + WSPositionV5
  • Instruments - symbolId on spot / linear / inverse / option; InstrumentSymbolTypeV5 (stock, forex, etc.)
  • Affiliate user info - paySendAmount30Day, payFtt, cardFtt; request params coin, business
  • Fixed loan supply - availableSource on create; refundedAccount on cancel supply
  • Earn position - availableAmount, freezeDetails[]

New - Strategy (/v5/strategy/*)

  • createStrategyOrder - twap / chaseOrder / iceberg / pov
  • getStrategyList
  • getStrategyOrderList
  • stopStrategy

New - Hold to Earn (/v5/earn/hold-to-earn/*)

  • getHoldToEarnAirdropProducts - public, no auth
  • getHoldToEarnAirdropYieldHistory - needs Earn permission

New - PWM investment plan (user)

  • getPwmInvestmentPlanList - GET .../investment-plan/list
  • getPwmInvestmentPlanDetail
  • getPwmPendingInvestmentPlanDetail - .../new-plan
  • claimPwmWithdrawableFunds
  • getPwmInvestmentPlanAssetTrend
  • getPwmFundHistoricalNav
  • subscribePwmInvestmentPlan
  • investMorePwmInvestmentPlan
  • redeemPwmInvestmentPlan
  • getPwmInvestmentPlanOrders

New - PWM customize plan

  • getPwmSubscribableProductInfo - public
  • createPwmCustomizeInvestmentPlan

New - PWM asset manager

  • getPwmAllFunds
  • settlePwmFundProfit
  • createPwmFund
  • createPwmAssetManagerInvestmentPlan
  • getPwmAssetManagerInvestmentPlans - not the same as user getPwmInvestmentPlanList
  • managePwmAssetManagerInvestmentPlan
  • getPwmAllFundOrders
  • managePwmFundOrder - approve/reject
  • createPwmFundSubAccount
  • pwmFundTransfer - custodian sub-account key
  • getPwmFundTransferRecords

Affiliate

  • getAffiliateSubAffiliateList - GET /v5/affiliate/affiliate-sub-list

New modules

  • src/types/request|response/v5-strategy.ts
  • src/types/request|response/v5-earn-pwm.ts

Examples (examples/apidoc/)

  • V5/Strategy/* (4)
  • V5/Earn/get-hold-to-earn-* (2)
  • V5/Earn/PWM/* (23)
  • V5/Affiliate/get-affiliate-sub-affiliate-list.js

Other

  • docs/endpointFunctionList.md regenerated
  • llms.txt regenerated
  • version bump 4.6.2 -> 4.6.3

v4.6.2: Add new API endpoints for Alpha Trade, Card, Earn. Minor type updates & lockfile bumps.

Choose a tag to compare

@tiagosiebler tiagosiebler released this 23 Apr 11:06
7cd8a84

What's Changed

  • feat(v4.6.2): add new API endpoints for Alpha Trade, Card, and Earn fe… by @JJ-Cro in #540
  • chore: minor test updates & lockfile bumps by @tiagosiebler in #541

Full Changelog: v4.6.1...v4.6.2

v4.6.1: Add new affiliate, commodity, funding history endpoints. Misc readme updates & dependency bump after audit.

Choose a tag to compare

@tiagosiebler tiagosiebler released this 11 Mar 15:28
1589319

What's Changed

Full Changelog: v4.6.0...v4.6.1

v4.6.0: Upgrades to WebSocket architecture, aligned with other SDKs

Choose a tag to compare

@tiagosiebler tiagosiebler released this 20 Feb 09:42
f0ee207

What's Changed

  • Upgrades to WebSocket architecture, aligned with other SDKs by @tiagosiebler in #533

The WebSocket client architecture saw many improvements with the newer SDKs. This PR cleans up some of the tech debt, bringing this in line with the other SDKs. Less differences -> easier long-term maintainability:

  • Bump audit dependencies
  • Add wsUrl & WS ref to open & reconnected events
  • Normalise internal emittable event structure handling via safer getFinalEmittable normaliser
  • Add authPrivateConnectionsOnConnect mechanic
  • Normalise internal logger category, optional WS API Auth flag
  • Normalise internal WS behaviour flags
  • Add internal requireConnectionReady & useNativeHeartbeats flags
  • Integrate custom reconnection hook mechanic.

Full Changelog: v4.5.3...v4.6.0

v4.5.3: Add GitHub migration notice

Choose a tag to compare

@tiagosiebler tiagosiebler released this 09 Feb 12:27
bb779c2

What's Changed

Full Changelog: v4.5.2...v4.5.3

v4.5.2: Add new REST & WS examples. Enhance WsStore isDeepObjectMatch for recursion.

Choose a tag to compare

@tiagosiebler tiagosiebler released this 04 Feb 16:24
ad8f65d

What's Changed

  • feat: add examples for RSA authentication and faster HMAC signing in Bybit API client; enhance demo trading functionality with WebSocket and REST examples by @JJ-Cro in #526
  • refactor: reorganize example files and enhance type definitions; update WebSocket event handling with type annotations by @JJ-Cro in #527
  • feat(v4.5.2):enhance isDeepObjectMatch function for recursive object c… by @JJ-Cro in #528

Full Changelog: v4.5.1...v4.5.2

v4.5.1: New API endpoints for crypto loans and fiat trading, minor enhancements

Choose a tag to compare

@tiagosiebler tiagosiebler released this 26 Jan 16:52
93d6241

What's Changed

  • feat(v4.5.1): add new API endpoints for crypto loans and fiat trading, enhance existing functionality with new examples and documentation updates by @JJ-Cro in #525

Full Changelog: v4.5.0...v4.5.1