diff --git a/package-lock.json b/package-lock.json index 34d5b3c..826965c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bybit-api", - "version": "4.1.13", + "version": "4.1.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "bybit-api", - "version": "4.1.13", + "version": "4.1.14", "license": "MIT", "dependencies": { "axios": "^1.7.9", diff --git a/package.json b/package.json index 2c72c02..23dbd66 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "4.1.13", + "version": "4.1.14", "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", diff --git a/src/types/response/v5-account.ts b/src/types/response/v5-account.ts index 7612ab9..6a91356 100644 --- a/src/types/response/v5-account.ts +++ b/src/types/response/v5-account.ts @@ -32,6 +32,10 @@ export interface WalletBalanceV5 { accountLTV: string; accountIMRate: string; accountMMRate: string; + accountIMRateByMp: string; + accountMMRateByMp: string; + totalInitialMarginByMp: string; + totalMaintenanceMarginByMp: string; totalEquity: string; totalWalletBalance: string; totalMarginBalance: string; diff --git a/src/types/response/v5-position.ts b/src/types/response/v5-position.ts index 0d8de6b..bec5303 100644 --- a/src/types/response/v5-position.ts +++ b/src/types/response/v5-position.ts @@ -48,6 +48,8 @@ export interface PositionV5 { leverageSysUpdatedTime: string | ''; createdTime: string; updatedTime: string; + positionIMByMp: string; + positionMMByMp: string; seq: number; } @@ -94,6 +96,7 @@ export interface ExecutionV5 { orderType: OrderTypeV5; stopOrderType?: StopOrderTypeV5; execFee: string; + execFeeV2: string; execId: string; execPrice: string; execQty: string; diff --git a/src/types/response/v5-spreadtrading.ts b/src/types/response/v5-spreadtrading.ts index 5e1a941..6eaaa87 100644 --- a/src/types/response/v5-spreadtrading.ts +++ b/src/types/response/v5-spreadtrading.ts @@ -121,4 +121,5 @@ export interface SpreadTradeV5 { execQty: string; execId: string; legs: SpreadTradeLegV5[]; + extraFees: string; } diff --git a/src/types/websockets/ws-events.ts b/src/types/websockets/ws-events.ts index c6f0047..f1ebe07 100644 --- a/src/types/websockets/ws-events.ts +++ b/src/types/websockets/ws-events.ts @@ -236,6 +236,8 @@ export interface WSPositionV5 { autoAddMargin: number; positionMM: string; positionIM: string; + positionIMByMp: string; + positionMMByMp: string; liqPrice: string; bustPrice: string; tpslMode: string; @@ -350,6 +352,7 @@ export interface WSExecutionV5 { underlyingPrice: string; blockTradeId: string; closedSize: string; + extraFees: string; seq: number; marketUnit: string; } @@ -405,6 +408,10 @@ export interface WSWalletV5 { accountLTV: string; accountIMRate: string; accountMMRate: string; + accountIMRateByMp: string; + accountMMRateByMp: string; + totalInitialMarginByMp: string; + totalMaintenanceMarginByMp: string; totalEquity: string; totalWalletBalance: string; totalMarginBalance: string; @@ -473,6 +480,8 @@ export interface WSSpreadExecutionV5 { createType: OrderCreateTypeV5; orderType: OrderTypeV5; execFee: string; + execFeeV2: string; + feeCurrency: string; parentExecId: string; execId: string; execPrice: string;