Skip to content

Commit

Permalink
Merge pull request #406 from LanPRD/fix/adjust-type-definitions
Browse files Browse the repository at this point in the history
fix(): adjusted type definitions for instruments endpoint
  • Loading branch information
tiagosiebler authored Jan 16, 2025
2 parents dd559b1 + d67f8ce commit 886e533
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -80,4 +80,4 @@
"url": "https://github.com/tiagosiebler/bybit-api/issues"
},
"homepage": "https://github.com/tiagosiebler/bybit-api#readme"
}
}
11 changes: 8 additions & 3 deletions src/types/response/v5-market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ export interface LinearInverseInstrumentInfoV5 {
copyTrading: CopyTradingV5;
upperFundingRate: string;
lowerFundingRate: string;
riskParameters: {
priceLimitRatioX: string;
priceLimitRatioY: string;
};
isPreListing: boolean;
preListingInfo: {
curAuctionPhase: string;
Expand All @@ -97,7 +101,7 @@ export interface OptionInstrumentInfoV5 {
status: InstrumentStatusV5;
baseCoin: string;
quoteCoin: string;
settleCoin: boolean;
settleCoin: string;
launchTime: string;
deliveryTime: string;
deliveryFeeRate: string;
Expand All @@ -120,6 +124,7 @@ export interface SpotInstrumentInfoV5 {
innovation: '0' | '1';
status: InstrumentStatusV5;
marginTrading: MarginTradingV5;
stTag: '0' | '1';
lotSizeFilter: {
basePrecision: string;
quotePrecision: string;
Expand All @@ -132,8 +137,8 @@ export interface SpotInstrumentInfoV5 {
tickSize: string;
};
riskParameters: {
limitParameter: string;
marketParameter: string;
priceLimitRatioX: string;
priceLimitRatioY: string;
};
}

Expand Down

0 comments on commit 886e533

Please sign in to comment.