From e199b0727844e1140109e3009d3e4f52a412a4d0 Mon Sep 17 00:00:00 2001 From: Allan Prado Date: Wed, 15 Jan 2025 19:07:49 -0300 Subject: [PATCH 1/2] fix(): adjusted type definitions for instruments endpoint --- src/types/response/v5-market.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/types/response/v5-market.ts b/src/types/response/v5-market.ts index a5529fbf..f20d15fc 100644 --- a/src/types/response/v5-market.ts +++ b/src/types/response/v5-market.ts @@ -75,6 +75,10 @@ export interface LinearInverseInstrumentInfoV5 { copyTrading: CopyTradingV5; upperFundingRate: string; lowerFundingRate: string; + riskParameters: { + priceLimitRatioX: string; + priceLimitRatioY: string; + }; isPreListing: boolean; preListingInfo: { curAuctionPhase: string; @@ -97,7 +101,7 @@ export interface OptionInstrumentInfoV5 { status: InstrumentStatusV5; baseCoin: string; quoteCoin: string; - settleCoin: boolean; + settleCoin: string; launchTime: string; deliveryTime: string; deliveryFeeRate: string; @@ -120,6 +124,7 @@ export interface SpotInstrumentInfoV5 { innovation: '0' | '1'; status: InstrumentStatusV5; marginTrading: MarginTradingV5; + stTag: '0' | '1'; lotSizeFilter: { basePrecision: string; quotePrecision: string; @@ -132,8 +137,8 @@ export interface SpotInstrumentInfoV5 { tickSize: string; }; riskParameters: { - limitParameter: string; - marketParameter: string; + priceLimitRatioX: string; + priceLimitRatioY: string; }; } From d67f8cece290a73b9c20ddd1b3d992616ae2e3f2 Mon Sep 17 00:00:00 2001 From: Allan Prado Date: Thu, 16 Jan 2025 09:10:05 -0300 Subject: [PATCH 2/2] chore(): update version from 3.10.28 to 3.10.29 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cc932fd3..7363a0e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "3.10.28", + "version": "3.10.29", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -80,4 +80,4 @@ "url": "https://github.com/tiagosiebler/bybit-api/issues" }, "homepage": "https://github.com/tiagosiebler/bybit-api#readme" -} \ No newline at end of file +}