Merge pull request #460 from JJ-Cro/update07072025
feat(v4.1.14): Add new fields to response types for account, position, execution, spread trading, and websocket events.
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -121,4 +121,5 @@ export interface SpreadTradeV5 {
|
|||||||
execQty: string;
|
execQty: string;
|
||||||
execId: string;
|
execId: string;
|
||||||
legs: SpreadTradeLegV5[];
|
legs: SpreadTradeLegV5[];
|
||||||
|
extraFees: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user