feat(v4.1.9): new ws topic, updated response and request types

This commit is contained in:
JJ-Cro
2025-05-29 09:24:30 +02:00
parent f865d7b6fa
commit e3cbfb3501
7 changed files with 20 additions and 3 deletions

4
package-lock.json generated
View File

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

View File

@@ -1,6 +1,6 @@
{
"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.",
"main": "lib/index.js",
"types": "lib/index.d.ts",

View File

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

View File

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

View File

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

View File

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

View File

@@ -449,3 +449,16 @@ export type WSSpreadExecutionEventV5 = WSPrivateTopicEventV5<
'spread.execution',
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[]
>;