Merge pull request #406 from LanPRD/fix/adjust-type-definitions

fix(): adjusted type definitions for instruments endpoint
This commit is contained in:
Tiago
2025-01-16 12:29:05 +00:00
committed by GitHub
2 changed files with 10 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "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.", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
@@ -80,4 +80,4 @@
"url": "https://github.com/tiagosiebler/bybit-api/issues" "url": "https://github.com/tiagosiebler/bybit-api/issues"
}, },
"homepage": "https://github.com/tiagosiebler/bybit-api#readme" "homepage": "https://github.com/tiagosiebler/bybit-api#readme"
} }

View File

@@ -75,6 +75,10 @@ export interface LinearInverseInstrumentInfoV5 {
copyTrading: CopyTradingV5; copyTrading: CopyTradingV5;
upperFundingRate: string; upperFundingRate: string;
lowerFundingRate: string; lowerFundingRate: string;
riskParameters: {
priceLimitRatioX: string;
priceLimitRatioY: string;
};
isPreListing: boolean; isPreListing: boolean;
preListingInfo: { preListingInfo: {
curAuctionPhase: string; curAuctionPhase: string;
@@ -97,7 +101,7 @@ export interface OptionInstrumentInfoV5 {
status: InstrumentStatusV5; status: InstrumentStatusV5;
baseCoin: string; baseCoin: string;
quoteCoin: string; quoteCoin: string;
settleCoin: boolean; settleCoin: string;
launchTime: string; launchTime: string;
deliveryTime: string; deliveryTime: string;
deliveryFeeRate: string; deliveryFeeRate: string;
@@ -120,6 +124,7 @@ export interface SpotInstrumentInfoV5 {
innovation: '0' | '1'; innovation: '0' | '1';
status: InstrumentStatusV5; status: InstrumentStatusV5;
marginTrading: MarginTradingV5; marginTrading: MarginTradingV5;
stTag: '0' | '1';
lotSizeFilter: { lotSizeFilter: {
basePrecision: string; basePrecision: string;
quotePrecision: string; quotePrecision: string;
@@ -132,8 +137,8 @@ export interface SpotInstrumentInfoV5 {
tickSize: string; tickSize: string;
}; };
riskParameters: { riskParameters: {
limitParameter: string; priceLimitRatioX: string;
marketParameter: string; priceLimitRatioY: string;
}; };
} }