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 201 to 250 of 277. Page 5 of 6.
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
- @NilsonCesar made their first contribution in binance PR #616
Full Changelog: binance compare v3.1.5...v3.1
What's Changed
- [Snyk] Upgrade axios from 1.12.2 to 1.13.1 by @tiagosiebler in okx-api PR #157
- [Snyk] Upgrade ts-loader from 9.3.1 to 9.5.4 by @tiagosiebler in okx-api PR #162
- feat(v3.0.13): add cancelRedeemETHStaking endpoint and getAssetBillsHistoric endpoint; update package dependencies by @JJ-Cro in okx-api PR #164
- feat: enhance OrderRequest interface with additional fields for options trading and advanced TP/SL configurations by @JJ-Cro in okx-api PR #165
Full Changelog: okx-api compare v3.0.12...v3.0
What's Changed
- feat(v1.0.1): enhance WebSocket client for level3 topic subscriptions by @JJ-Cro in kraken-api PR #33
Full Changelog: kraken-api compare v1.0.0...v1.0
What's Changed
- feat(v4.4.4): add missing funding cap ws ticker properties by @tiagosiebler in bybit-api PR #513
Full Changelog: bybit-api compare v4.4.3...v4.4
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
What's Changed
- [Snyk] Upgrade axios from 1.12.2 to 1.13.1 by @tiagosiebler in gateio-api PR #88
- chore(deps-dev): bump js-yaml from 3.14.1 to 3.14.2 by @dependabot[bot] in gateio-api PR #87
- chore(v1.3.3): update version to 1.3.3, add getLowCapExchangeList endpoint, and deprecate certain fields in response types by @JJ-Cro in gateio-api PR #89
Full Changelog: gateio-api compare v1.3.2...v1.3
What's Changed
- [Snyk] Upgrade axios from 1.12.2 to 1.13.1 by @tiagosiebler in kucoin-api PR #99
- chore(deps-dev): bump js-yaml from 3.14.1 to 3.14.2 by @dependabot[bot] in kucoin-api PR #98
- feat(v2.3.3): add new endpoints for market available inventory and kumining, update SDK documentation and examples by @JJ-Cro in kucoin-api PR #100
Full Changelog: kucoin-api compare v2.3.2...v2.3
What's Changed
- feat(v4.4.3): new crypto loan endpoints for renewing borrow orders and an additional response field for USDT pre-market contracts. by @JJ-Cro in bybit-api PR #511
- [Snyk] Upgrade axios from 1.12.1 to 1.12.2 by @tiagosiebler in bybit-api PR #495
- chore(deps-dev): bump js-yaml from 3.14.1 to 3.14.2 in the npm_and_yarn group across 1 directory by @dependabot[bot] in bybit-api PR #506
- [Snyk] Upgrade webpack-bundle-analyzer from 4.3.0 to 4.10.2 by @tiagosiebler in bybit-api PR #507
Summary
- Update Bybit V5 API client to support the latest release notes from 2025-11-25 and 2025-11-27. This includes new crypto loan endpoints for renewing borrow orders and an additional response field for USDT pre-market contracts.
- Market Data Updates (2025-11-25)
- Get Instruments Info: Added skipCallAuction?: boolean field
- Get Account Instruments Info: Inherited skipCallAuction field
- Crypto Loan - Fixed Loan (2025-11-27)
- Added two new endpoints for renewing fixed crypto loans:
- Market Data Updates (2025-11-25)
Full Changelog: bybit-api compare v4.4.2...v4.4
What's Changed
- chore(): README.md template sections by @tiagosiebler in okx-api PR #159
-
- adds @siebly/kraken-api SDK to readme
-
- adds Siebly home to readme
- feat(v3.0.12): add endpoint for fetching bills older than 30 days by @tiagosiebler in okx-api PR #160
Full Changelog: okx-api compare v3.0.11...v3.0
JavaScript, TypeScript & Node.js SDK for Kraken's REST APIs and WebSockets
This marks the first public release of our JavaScript, TypeScript & Node.js SDK for Kraken's REST APIs and WebSockets, published to npm as @siebly/kraken-api: @siebly on npm
Full Changelog: kraken-api on GitHub
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
What's Changed
- feat(v2.3.2): add futures copy trading cross margin, hedge mode, collateral and kyc endpoints by @JJ-Cro in kucoin-api PR #97
Full Changelog: kucoin-api compare v2.3.1...v2.3
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/):
GetBrokerTotalCommissionRequestV2GetBrokerOrderCommissionRequestV2GetBrokerRebateInfoRequestV2FuturesMaxOpenRequestV2FuturesLiquidationPriceRequestV2FuturesIsolatedSymbolsRequestV2
V2 Response Types (src/types/response/v2/):
BrokerTotalCommissionV2BrokerOrderCommissionV2&BrokerOrderCommissionItemV2BrokerRebateInfoV2FuturesMaxOpenV2FuturesLiquidationPriceV2FuturesIsolatedSymbolV2
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 JSDocsrc/rest-client-v3.ts- Added 1 new method with JSDocsrc/types/request/v2/broker.ts- Added 3 request interfacessrc/types/response/v2/broker.ts- Added 3 response interfacessrc/types/request/v2/futures.ts- Added 3 request interfacessrc/types/response/v2/futures.ts- Added 3 response interfacessrc/types/request/v3/account.ts- Added 1 request interfacesrc/types/response/v3/account.ts- Added 1 response interface
Full Changelog: bitget-api compare v3.0.9...v3.0
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/depthGET /api/v3/ticker/priceGET /api/v3/ticker/bookTickerGET /api/v3/ticker/24hrGET /api/v3/ticker/tradingDayGET /api/v3/ticker
-
WebSocket API:
depthticker.priceticker.bookticker.24hrticker.tradingDayticker
Files Modified:
src/types/spot.ts- AddedsymbolStatustoTradingDayTickerParamsandRollingWindowTickerParamssrc/types/shared.ts- AddedsymbolStatustoOrderBookParamssrc/main-client.ts- AddedsymbolStatusto method parameterssrc/types/websockets/ws-api-requests.ts- AddedsymbolStatusto 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@deprecatedJSDoc warningsrc/util/typeGuards.ts- Added deprecation warning toisWsFormatted24hrTickerArray()examples/WebSockets/ws-public.ts- Updated to use!miniTicker@arrinsteadexamples/WebSockets/ws-custom-parser.ts- Updated to use!miniTicker@arrinsteadREADME.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 toPriceMatchModesrc/types/portfolio-margin.ts- Added deprecation comment toPMPriceMatch
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- Addeder?: stringtoWsMessageFuturesUserDataOrderTradeUpdateEventRawsrc/types/websockets/ws-events-formatted.ts- AddedorderExpireReason?: stringtoWsMessageFuturesUserDataTradeUpdateEventFormatted
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_MARKETTAKE_PROFIT_MARKETSTOPTAKE_PROFITTRAILING_STOP_MARKET
5.1 New REST API Endpoints
Files Modified:
src/types/futures.ts- Added new Algo Order types and interfacessrc/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 orderDELETE /fapi/v1/algoOrder- Cancel an algo orderDELETE /fapi/v1/algoOpenOrders- Cancel all open algo ordersGET /fapi/v1/algoOrder- Query an algo orderGET /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- AddedWsMessageFuturesUserDataAlgoUpdateRawsrc/types/websockets/ws-events-formatted.ts- AddedWsMessageFuturesUserDataAlgoUpdateFormatted
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
priceMatchvalues 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
What's Changed
- feat(v3.0.11): add new API endpoints for trading configuration and delta neutral strategy by @JJ-Cro in okx-api PR #155
- [Snyk] Upgrade axios from 1.12.0 to 1.12.2 by @tiagosiebler in okx-api PR #145
- fix(v3.0.11): failing test from unnecessary parameter, WS orders-algo channel unintentionally skipping auth guard, bump lockfile dependencies by @tiagosiebler in okx-api PR #156
#155 brought in new endpoints and types relating to:
- Delta Neutral Strategy endpoints and types
- Enhanced deposit history tracking with masked sensitive data
- Position limit parameters for instruments
- Updated announcement types with business publish time
- Enhanced interest rate and loan quota types
Full Changelog: okx-api compare v3.0.10...v3.0
What's Changed
- feat(v1.3.2): update version to 1.3.2, add new futures price-triggered order update endpoint by @JJ-Cro in gateio-api PR #86
Full Changelog: gateio-api compare v1.3.1...v1.3
š New Endpoints
1. Update Futures Price-Triggered Order
- Method:
updateFuturesPriceTriggeredOrder() - Endpoint:
PUT /futures/{settle}/price_orders/{order_id} - Description: Update a single price-triggered order
2. Get Account Main Keys
- Method:
getAccountMainKeys() - Endpoint:
GET /account/main_keys - Description: Query all main account API key information
š Type Updates
New Types Added
AccountMainKey- Response interface for main account API keysDepositRecord- Dedicated interface for deposit records with new status valuesUpdateFuturesPriceTriggeredOrderReq- Request parameters for updating price-triggered orders
Updated Types
WithdrawalRecord- Enhanced status field descriptions with detailed commentsSubmitFuturesTriggeredOrderReq- Madepriceandrulefields required in trigger objectDepositRecord- New status values:BLOCKED,DEP_CREDITED(removedFINAL)CurrencyChain- Documentedis_deposit_disabledfield
š Method Updates
Return Type Changes
getDepositRecords()- Now returnsDepositRecord[]instead ofWithdrawalRecord[]
Documentation Updates
cancelWithdrawal()- Documentedblock_numberfield in responsegetCurrencyChains()- Added note about low liquidity currenciesgetWithdrawalStatus()- Added note about API limitations for low liquidity tokensgetSpotCurrencyPairs()/getSpotCurrencyPair()- Markedfeefield as deprecatedsubmitFuturesPriceTriggeredOrder()- Documented required fieldssubmitEth2Swap()- Updated terminology (ETH2 ā GTETH)getEth2RateHistory()- Updated terminology (ETH2 ā GTETH)getUnifiedAccountInfo()- Updated field descriptions forcross_balanceandiso_balance
ā Changes Summary
- ā 2 new endpoints implemented
- ā 3 new TypeScript interfaces added
- ā 4 existing interfaces updated
- ā 11 methods updated with improved documentation
- ā All imports and exports properly configured
- ā Zero linter errors
- ā Full TypeScript type safety maintained
š Breaking Changes
Required Field Updates
SubmitFuturesTriggeredOrderReq.trigger.price- Now required (was optional)SubmitFuturesTriggeredOrderReq.trigger.rule- Now required (was optional)SubmitFuturesTriggeredOrderReq.initial.price- Now required (was optional)
Return Type Changes
getDepositRecords()return type changed fromWithdrawalRecord[]toDepositRecord[]
š Related Changelog Versions
- v4.105.28 - Withdrawal block_number field, unified account field updates
- v4.105.27 - Status field description improvements
- v4.105.24 - Low liquidity currency documentation
- v4.105.20 - Deposit record enhancements
- v4.105.19 - ETH2 to GTETH terminology updates
- v4.105.18 - New update price-triggered order endpoint
- v4.105.11 - Main account keys endpoint, fee field deprecation
- v4.105.10 - Required fields in futures price-triggered orders
What's Changed
- feat(v4.4.2): Update full release notes since 1st October by @JJ-Cro in bybit-api PR #504
Market Data APIs
- Get Tickers (Linear/Inverse): Added new response fields
basisRateYear,fundingIntervalHour, andfundingCapfor enhanced funding rate information
Account APIs
- Get Transaction Log: Added optional
transSubTypeparameter to filter transaction logs by sub-type (e.g., "movePosition" for Move Position logs)
Spot Margin Trade (UTA) APIs - New Endpoints
-
Manual Borrow (
POST /v5/account/borrow): New endpoint for UTA manual borrow operations- Added
ManualBorrowParamsV5request type - Added
ManualBorrowResultV5response type
- Added
-
Get Max Borrowable Amount (
GET /v5/spot-margin-trade/max-borrowable): New endpoint to query maximum borrowable amount for a currency- Added
GetMaxBorrowableAmountParamsV5request type - Added
MaxBorrowableAmountV5response type
- Added
-
Get Position Tiers (
GET /v5/spot-margin-trade/position-tiers): New endpoint to get loan position risk information- Added
GetPositionTiersParamsV5request type - Added
PositionTierV5andCurrencyPositionTiersV5response types
- Added
-
Get Coin State (
GET /v5/spot-margin-trade/coinstate): New endpoint to get currency leverage information- Added
GetCoinStateParamsV5request type - Added
CoinStateV5response type
- Added
-
Get Available Amount to Repay (
GET /v5/spot-margin-trade/repayment-available-amount): New endpoint to query available amount for repayment- Added
GetAvailableAmountToRepayParamsV5request type - Added
AvailableAmountToRepayV5response type
- Added
-
Manual Repay Without Asset Conversion (
POST /v5/account/no-convert-repay): New endpoint for manual repayment without asset conversion- Added
ManualRepayWithoutConversionParamsV5request type - Added
ManualRepayWithoutConversionResultV5response type - Note: Repayment is prohibited between 04:00 and 05:30 per hour
- Added
Spot Margin Trade - Updated Endpoints
- Set Leverage (
POST /v5/spot-margin-trade/set-leverage): Enhanced to support optionalcurrencyparameter for setting leverage by currency- Added
SetSpotMarginLeverageParamsV5type - Maintains backward compatibility
- Added
Code Quality Improvements
- Get Affiliate User List: Extracted inline type definition to proper exported interface
GetAffiliateUserListParamsV5for better type reusability and maintainability
Type Definitions
- All new request and response types are properly exported from their respective type definition files
- Types are fully documented with JSDoc comments where applicable
- All changes maintain backward compatibility
Full Changelog: bybit-api compare v4.4.1...v4.4
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
- feat(): Add licence file by @JJ-Cro in coinbase-api PR #104
- fix(v1.1.7): update circular ws issue by @JJ-Cro in coinbase-api PR #105
Full Changelog: coinbase-api compare v1.1.6...v1.1
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.10): update version to 3.0.10 and improve error handling in WebsocketAPIClient by @JJ-Cro in okx-api PR #154
Full Changelog: okx-api compare v3.0.9...v3.0
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
- feat(): Add licence file by @JJ-Cro in kucoin-api PR #95
- fix(2.3.1): improve error handling in WebSocket client, fix circular error by @JJ-Cro in kucoin-api PR #96
Full Changelog: kucoin-api compare v2.3.0...v2.3
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(1.3.1): update version to 1.3.1 and improve error handling in WebsocketAPIClient by @JJ-Cro in gateio-api PR #85
Full Changelog: gateio-api compare v1.3.0...v1.3
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
- feat: beta release mechanic by @tiagosiebler in bybit-api PR #498
- fix(v4.4.1-beta.0): improved guard for missing web crypto api by @tiagosiebler in bybit-api PR #499
- chore: remove duplicate release trigger by @tiagosiebler in bybit-api PR #500
- revert(#499): web crypto api guard by @tiagosiebler in bybit-api PR #501
- chore(4.4.1): Update wsapi error handling, bump version by @JJ-Cro in bybit-api PR #503
Full Changelog: bybit-api compare v4.4.0...v4.4
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
What's Changed
- Refactor attachAlgoOrds to use detailed structure by @dothanhlongtld in okx-api PR #152
- fix(v3.0.9, #152): update type for attachAlgoOrds parameter by @tiagosiebler in okx-api PR #153
New Contributors
- @dothanhlongtld made their first contribution in okx-api PR #152
Full Changelog: okx-api compare v3.0.8...v3.0
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
- @lutogin made their first contribution in bitget-api PR #100
Full Changelog: bitget-api compare v3.0.7...v3.0
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
What's Changed
- fix: add toAddrType in WithdrawRequest by @petarzarkov in okx-api PR #150
- chore: fix tests by @tiagosiebler in okx-api PR #151
New Contributors
- @petarzarkov made their first contribution in okx-api PR #150
Full Changelog: okx-api compare v3.0.7...v3.0
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
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
What's Changed
- feat: disable request parameter encoding, add unified batch max borrowable endpoint by @tiagosiebler in gateio-api PR #84
- fixes sign errors seen when request parameter includes comma
Full Changelog: gateio-api compare v1.2.10...v1.3
What's Changed
- feat: beta release mechanic by @tiagosiebler in bybit-api PR #498
fix(v4.4.1-beta.0): improved guard for missing web crypto apiby @tiagosiebler in bybit-api PR #499-
- ^ was reverted
Full Changelog: bybit-api compare v4.4.0...v4.4.1 beta
What's Changed
- [Snyk] Security upgrade axios from 1.10.0 to 1.12.0 by @tiagosiebler in coinbase-api PR #98
- fix: bump axios to fix build by @tiagosiebler in coinbase-api PR #100
- fix(v1.1.6, #102): switch prime sign secret encoding to utf by @tiagosiebler in coinbase-api PR #103
Full Changelog: coinbase-api compare v1.1.5...v1.1
What's Changed
- fix(v4.4.0): Integrate request build & sign for p2p uploads, fixes #493 by @tiagosiebler in bybit-api PR #497
Full Changelog: bybit-api compare v4.3.2...v4.4
What's Changed
- feat(v3.0.7): Expand RFQ types and settle/fee endpoints by @JJ-Cro in okx-api PR #144
Full Changelog: okx-api compare v3.0.6...v3.0
What's Changed
- feat(v4.3.2): add rate limit, rpi orderbook & adl endpoints by @JJ-Cro in bybit-api PR #492
- Add a new response field cumFeeDetail to return trading fee details instead of cumExecFee (resolves #491)
Full Changelog: bybit-api compare v4.3.1...v4.3
What's Changed
- feat(v3.0.7): add missing endpoints by @JJ-Cro in bitget-api PR #96 - resolves #95
Full Changelog: bitget-api compare v3.0.6...v3.0
What's Changed
- feat(v2.3.0): introduced Unified Trading Client by @JJ-Cro in kucoin-api PR #92
The UnifiedAPIClient provides access to KuCoin's Unified API endpoints, which offer streamlined market data access across Spot, Futures, and Margin trading products. It doesn't serve a purpose of a UTA account(Unified trading account) - but it is a new generation of API endpoints generalised for all trading products.
Full Changelog: kucoin-api compare v2.2.0...v2.3
What's Changed
- [Snyk] Security upgrade axios from 1.10.0 to 1.12.0 by @tiagosiebler in gateio-api PR #80
- fix: axios build error by @tiagosiebler in gateio-api PR #81
- feat(v1.2.10): add new futures endpoints and update request/response types by @JJ-Cro in gateio-api PR #82
Full Changelog: gateio-api compare v1.2.9...v1.2
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
- @merovinh made their first contribution in binance PR #588
Full Changelog: binance compare v3.0.9...v3.1
What's Changed
- [Snyk] Security upgrade axios from 1.11.0 to 1.12.0 by @tiagosiebler in bitget-api PR #91
- chore(): update tests by @JJ-Cro in bitget-api PR #92
- fix(v3.0.6): GET request method for sub deposit/withdrawal records by @tiagosiebler in bitget-api PR #93
Full Changelog: bitget-api compare v3.0.5...v3.0
What's Changed
- feat(v2.2.0, #67): Integrate WebSocket API for sending orders & commands via WebSocket events by @tiagosiebler in kucoin-api PR #84
- feat(): added wsapi client, examples and all types by @JJ-Cro in kucoin-api PR #90
- feat(): Added examples by @JJ-Cro in kucoin-api PR #91
- Bumped ws package to newer version
Breaking Changes
- No breaking changes with this release. Much of the architecture was already prepared for this enhancement.
WebSocket API
This release introduces a new WebSocket class called WebsocketAPIClient. This wraps around the newly integrated sendWSAPIRequest command from the WebsocketClient, to send commands & orders via a persisted WebSocket connection.
Below is an example showing how easy it is to use the WebSocket API without any concern for the complexity of managing WebSockets. For more detailed demonstration, take a look at the examples/WebSockets/ws-api-client.ts example:
import { DefaultLogger, WebsocketAPIClient } from 'kucoin-api';
// or, if you prefer `require()`:
// const { DefaultLogger, WebsocketAPIClient } = require('kucoin-api');
const customLogger = {
...DefaultLogger,
// For a more detailed view of the WebsocketClient, enable the `trace` level by uncommenting the below line:
// trace: (...params) => console.log(new Date(), 'trace', ...params),
};
const account = {
key: process.env.API_KEY || 'keyHere',
secret: process.env.API_SECRET || 'secretHere',
passphrase: process.env.API_PASSPHRASE || 'apiPassPhraseHere', // This is NOT your account password
};
const wsClient = new WebsocketAPIClient(
{
apiKey: account.key,
apiSecret: account.secret,
apiPassphrase: account.passphrase,
// If you want your own event handlers instead of the default ones with logs, disable this setting and see the `attachEventHandlers` example below:
// attachEventListeners: false
},
// customLogger, // optional: uncomment this to inject a custom logger
);
// Make WebSocket API calls, very similar to a REST API:
wsClient
.submitNewSpotOrder({
side: 'buy',
symbol: 'BTC-USDT',
type: 'limit',
price: '150000',
size: '0.0001',
})
.then((syncSpotOrderResponse) => {
console.log('Sync spot order response:', syncSpotOrderResponse);
})
.catch((e) => {
console.log('Sync spot order error:', e);
});
wsClient
.submitFuturesOrder({
clientOid: 'futures-test-' + Date.now(),
side: 'buy',
symbol: 'XBTUSDTM',
marginMode: 'CROSS',
type: 'limit',
price: '1000',
qty: '0.01',
leverage: 10,
positionSide: 'LONG', // needed if trading two-way (hedge) position mode
})
.then((futuresOrderResponse) => {
console.log('Futures order response:', futuresOrderResponse);
})
.catch((e) => {
console.log('Futures order error:', e);
});
Full Changelog: kucoin-api compare v2.1.23...v2.2
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
What's Changed
- feat(v2.1.23): Add updatePositionMode endpoint and enhance futures response types by @JJ-Cro in kucoin-api PR #89
Full Changelog: kucoin-api compare v2.1.22...v2.1
What's Changed
- feat(v3.0.6): handle reconnection notice automatically, allow authenticating for market data by @tiagosiebler in okx-api PR #142
- Detects & tags books-l2-tbt and books50-l2-tbt requests as "auth required". Automatically authenticates public connection when these topics are requested. Resolves #140.
- Automatically handle "connection will be closed soon for service upgrade" through automatic reconnect. Resolves #141.
Full Changelog: okx-api compare v3.0.5...v3.0
What's Changed
- feat(v4.3.1): add new endpoints for limit price behavior and new delivery price by @JJ-Cro in bybit-api PR #485
- feat(v4.3.1): add new endpoints for limit price behavior and new deli⦠by @JJ-Cro in bybit-api PR #489
Full Changelog: bybit-api compare v4.3.0...v4.3
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
What's Changed
- feat(v2.1.22): Added new margin trading endpoints and request/response types for borrow interest rates and margin stop orders. by @JJ-Cro in kucoin-api PR #86
Full Changelog: kucoin-api compare v2.1.21...v2.1
Summary
Disabled by default to prevent any breaking changes. Enable it by passing this boolean in the REST client constructor:
const client = new RestClientV5({
key: key,
secret: secret,
throwExceptions: true,
});
Any retCode !== 0 response will be thrown in full, if enabled.
What's Changed
- feat(#437): add config to throw REST API exceptions automatically by @tiagosiebler in bybit-api PR #483
Full Changelog: bybit-api compare v4.2.7...v4.3
What's Changed
- fix: correct testnet WebSocket URL for perpFuturesUSDTV4 by @fireflies1988 in gateio-api PR #77
- chore(): bump package lock after #77 by @tiagosiebler in gateio-api PR #78
New Contributors
- @fireflies1988 made their first contribution in gateio-api PR #77
Full Changelog: gateio-api compare v1.2.8...v1.2
What's Changed
- feat(v4.2.7): force ws request batching into groups of max 500 topics per batch by @tiagosiebler in bybit-api PR #479
Full Changelog: bybit-api compare v4.2.6...v4.2