feat(v4.1.14): Add new fields to response types for account, position, execution, spread trading, and websocket events.

bump version to 4.1.14 and update package-lock.json.
This commit is contained in:
JJ-Cro
2025-07-07 13:08:37 +02:00
parent 33e4ce3c34
commit e1a5440f2f
6 changed files with 20 additions and 3 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "4.1.13", "version": "4.1.14",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bybit-api", "name": "bybit-api",
"version": "4.1.13", "version": "4.1.14",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^1.7.9", "axios": "^1.7.9",

View File

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

@@ -32,6 +32,10 @@ export interface WalletBalanceV5 {
accountLTV: string; accountLTV: string;
accountIMRate: string; accountIMRate: string;
accountMMRate: string; accountMMRate: string;
accountIMRateByMp: string;
accountMMRateByMp: string;
totalInitialMarginByMp: string;
totalMaintenanceMarginByMp: string;
totalEquity: string; totalEquity: string;
totalWalletBalance: string; totalWalletBalance: string;
totalMarginBalance: string; totalMarginBalance: string;

View File

@@ -48,6 +48,8 @@ export interface PositionV5 {
leverageSysUpdatedTime: string | ''; leverageSysUpdatedTime: string | '';
createdTime: string; createdTime: string;
updatedTime: string; updatedTime: string;
positionIMByMp: string;
positionMMByMp: string;
seq: number; seq: number;
} }
@@ -94,6 +96,7 @@ export interface ExecutionV5 {
orderType: OrderTypeV5; orderType: OrderTypeV5;
stopOrderType?: StopOrderTypeV5; stopOrderType?: StopOrderTypeV5;
execFee: string; execFee: string;
execFeeV2: string;
execId: string; execId: string;
execPrice: string; execPrice: string;
execQty: string; execQty: string;

View File

@@ -121,4 +121,5 @@ export interface SpreadTradeV5 {
execQty: string; execQty: string;
execId: string; execId: string;
legs: SpreadTradeLegV5[]; legs: SpreadTradeLegV5[];
extraFees: string;
} }

View File

@@ -236,6 +236,8 @@ export interface WSPositionV5 {
autoAddMargin: number; autoAddMargin: number;
positionMM: string; positionMM: string;
positionIM: string; positionIM: string;
positionIMByMp: string;
positionMMByMp: string;
liqPrice: string; liqPrice: string;
bustPrice: string; bustPrice: string;
tpslMode: string; tpslMode: string;
@@ -350,6 +352,7 @@ export interface WSExecutionV5 {
underlyingPrice: string; underlyingPrice: string;
blockTradeId: string; blockTradeId: string;
closedSize: string; closedSize: string;
extraFees: string;
seq: number; seq: number;
marketUnit: string; marketUnit: string;
} }
@@ -405,6 +408,10 @@ export interface WSWalletV5 {
accountLTV: string; accountLTV: string;
accountIMRate: string; accountIMRate: string;
accountMMRate: string; accountMMRate: string;
accountIMRateByMp: string;
accountMMRateByMp: string;
totalInitialMarginByMp: string;
totalMaintenanceMarginByMp: string;
totalEquity: string; totalEquity: string;
totalWalletBalance: string; totalWalletBalance: string;
totalMarginBalance: string; totalMarginBalance: string;
@@ -473,6 +480,8 @@ export interface WSSpreadExecutionV5 {
createType: OrderCreateTypeV5; createType: OrderCreateTypeV5;
orderType: OrderTypeV5; orderType: OrderTypeV5;
execFee: string; execFee: string;
execFeeV2: string;
feeCurrency: string;
parentExecId: string; parentExecId: string;
execId: string; execId: string;
execPrice: string; execPrice: string;