Merge pull request #354 from karimsan/master

Update type `AccountMarginModeV5` and interface `CollateralInfoV5`
This commit is contained in:
Tiago
2024-06-27 11:21:22 +01:00
committed by GitHub
4 changed files with 9 additions and 6 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.9", "version": "3.10.10",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.9", "version": "3.10.10",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^1.6.6", "axios": "^1.6.6",

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "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.", "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",

View File

@@ -60,11 +60,14 @@ export interface CollateralInfoV5 {
currency: string; currency: string;
hourlyBorrowRate: string; hourlyBorrowRate: string;
maxBorrowingAmount: string; maxBorrowingAmount: string;
freeBorrowingAmount: string; freeBorrowAmount: string;
freeBorrowingLimit: string;
borrowAmount: string; borrowAmount: string;
availableToBorrow: string; availableToBorrow: string;
borrowable: boolean; borrowable: boolean;
borrowUsageRate: string;
marginCollateral: boolean; marginCollateral: boolean;
collateralSwitch: boolean;
collateralRatio: string; collateralRatio: string;
} }

View File

@@ -174,7 +174,7 @@ export type OptionTypeV5 = 'Call' | 'Put';
export type TradeModeV5 = 0 | 1; export type TradeModeV5 = 0 | 1;
export type TPSLModeV5 = 'Full' | 'Partial'; 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 UnifiedUpdateStatusV5 = 'FAIL' | 'PROCESS' | 'SUCCESS';
export type AccountTypeV5 = export type AccountTypeV5 =