Merge pull request #449 from JJ-Cro/update29052025

feat(v4.1.9): new ws topic, updated response and request types
This commit is contained in:
Tiago
2025-05-29 09:25:49 +01:00
committed by GitHub
7 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.8", "version": "4.1.9",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bybit-api", "name": "bybit-api",
"version": "4.1.8", "version": "4.1.9",
"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.8", "version": "4.1.9",
"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

@@ -123,6 +123,7 @@ export interface GetDeliveryPriceParamsV5 {
category: 'linear' | 'inverse' | 'option'; category: 'linear' | 'inverse' | 'option';
symbol?: string; symbol?: string;
baseCoin?: string; baseCoin?: string;
settleCoin?: string;
limit?: number; limit?: number;
cursor?: string; cursor?: string;
} }

View File

@@ -110,6 +110,7 @@ export interface ExecutionV5 {
blockTradeId?: string; blockTradeId?: string;
closedSize?: string; closedSize?: string;
seq: number; seq: number;
extraFees: string;
} }
export interface ClosedPnLV5 { export interface ClosedPnLV5 {

View File

@@ -18,6 +18,7 @@ export interface PreUpgradeTransaction {
tradeId: string; tradeId: string;
orderId: string; orderId: string;
orderLinkId: string; orderLinkId: string;
extraFees: string;
} }
export interface PreUpgradeOptionsDelivery { export interface PreUpgradeOptionsDelivery {

View File

@@ -68,6 +68,7 @@ export interface AccountOrderV5 {
smpOrderId: string; smpOrderId: string;
createdTime: string; createdTime: string;
updatedTime: string; updatedTime: string;
extraFees: string;
} }
export interface BatchCreateOrderResultV5 { export interface BatchCreateOrderResultV5 {

View File

@@ -449,3 +449,16 @@ export type WSSpreadExecutionEventV5 = WSPrivateTopicEventV5<
'spread.execution', 'spread.execution',
WSSpreadExecutionV5[] WSSpreadExecutionV5[]
>; >;
export interface WSInsuranceV5 {
coin: string;
symbols: string;
balance: string;
updateTime: string;
}
export type WSInsuranceEventV5 = WSPublicTopicEventV5<
'insurance.USDT' | 'insurance.USDC' | 'insurance.inverse',
'snapshot' | 'delta',
WSInsuranceV5[]
>;