Skip to content

Commit

Permalink
Merge pull request #354 from karimsan/master
Browse files Browse the repository at this point in the history
Update type `AccountMarginModeV5` and interface `CollateralInfoV5`
  • Loading branch information
tiagosiebler authored Jun 27, 2024
2 parents 57273a1 + 6d97b28 commit 24f9919
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.9",
"version": "3.10.10",
"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"
}
}
5 changes: 4 additions & 1 deletion src/types/response/v5-account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,14 @@ export interface CollateralInfoV5 {
currency: string;
hourlyBorrowRate: string;
maxBorrowingAmount: string;
freeBorrowingAmount: string;
freeBorrowAmount: string;
freeBorrowingLimit: string;
borrowAmount: string;
availableToBorrow: string;
borrowable: boolean;
borrowUsageRate: string;
marginCollateral: boolean;
collateralSwitch: boolean;
collateralRatio: string;
}

Expand Down
2 changes: 1 addition & 1 deletion src/types/v5-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export type OptionTypeV5 = 'Call' | 'Put';
export type TradeModeV5 = 0 | 1;

export type TPSLModeV5 = 'Full' | 'Partial';
export type AccountMarginModeV5 = 'REGULAR_MARGIN' | 'PORTFOLIO_MARGIN';
export type AccountMarginModeV5 = 'ISOLATED_MARGIN' | 'REGULAR_MARGIN' | 'PORTFOLIO_MARGIN';
export type UnifiedUpdateStatusV5 = 'FAIL' | 'PROCESS' | 'SUCCESS';

export type AccountTypeV5 =
Expand Down

0 comments on commit 24f9919

Please sign in to comment.