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:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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[]
|
||||||
|
>;
|
||||||
|
|||||||
Reference in New Issue
Block a user