bybit-api 4.1.8 → 4.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -87,7 +87,7 @@ Professional Node.js, JavaScript & TypeScript SDK for the Bybit REST APIs, WebSo
87
87
 
88
88
  - Issues? Check the [issues tab](https://github.com/tiagosiebler/bybit-api/issues).
89
89
  - Discuss & collaborate with other node devs? Join our [Node.js Algo Traders](https://t.me/nodetraders) engineering community on telegram.
90
- - Follow our announcement channel for real-time updates on [X/Twitter](https://x.com/QuantSDKs)
90
+ - Follow our announcement channel for real-time updates on [X/Twitter](https://x.com/sieblyio)
91
91
 
92
92
  <!-- template_related_projects -->
93
93
 
@@ -101,6 +101,7 @@ export interface GetDeliveryPriceParamsV5 {
101
101
  category: 'linear' | 'inverse' | 'option';
102
102
  symbol?: string;
103
103
  baseCoin?: string;
104
+ settleCoin?: string;
104
105
  limit?: number;
105
106
  cursor?: string;
106
107
  }
@@ -95,6 +95,7 @@ export interface ExecutionV5 {
95
95
  blockTradeId?: string;
96
96
  closedSize?: string;
97
97
  seq: number;
98
+ extraFees: string;
98
99
  }
99
100
  export interface ClosedPnLV5 {
100
101
  symbol: string;
@@ -18,6 +18,7 @@ export interface PreUpgradeTransaction {
18
18
  tradeId: string;
19
19
  orderId: string;
20
20
  orderLinkId: string;
21
+ extraFees: string;
21
22
  }
22
23
  export interface PreUpgradeOptionsDelivery {
23
24
  deliveryTime: number;
@@ -50,6 +50,7 @@ export interface AccountOrderV5 {
50
50
  smpOrderId: string;
51
51
  createdTime: string;
52
52
  updatedTime: string;
53
+ extraFees: string;
53
54
  }
54
55
  export interface BatchCreateOrderResultV5 {
55
56
  category: CategoryV5;
@@ -61,6 +61,9 @@ export interface WSTradeV5 {
61
61
  iv?: string;
62
62
  }
63
63
  export type WSTradeEventV5 = WSPublicTopicEventV5<string, 'snapshot', WSTradeV5[]>;
64
+ /**
65
+ * WSTickerV5 is the data structure for the "linear" ticker channel
66
+ * */
64
67
  export interface WSTickerV5 {
65
68
  symbol: string;
66
69
  tickDirection: string;
@@ -90,7 +93,45 @@ export interface WSTickerV5 {
90
93
  preQty?: string;
91
94
  curPreListingPhase?: string;
92
95
  }
93
- export type WSTickerEventV5 = WSPublicTopicEventV5<string, 'snapshot' | 'delta', WSTickerV5>;
96
+ export interface WSTickerOptionV5 {
97
+ symbol: string;
98
+ bidPrice: string;
99
+ bidSize: string;
100
+ bidIv: string;
101
+ askPrice: string;
102
+ askSize: string;
103
+ askIv: string;
104
+ lastPrice: string;
105
+ highPrice24h: string;
106
+ lowPrice24h: string;
107
+ markPrice: string;
108
+ indexPrice: string;
109
+ markPriceIv: string;
110
+ underlyingPrice: string;
111
+ openInterest: string;
112
+ turnover24h: string;
113
+ volume24h: string;
114
+ totalVolume: string;
115
+ totalTurnover: string;
116
+ delta: string;
117
+ gamma: string;
118
+ vega: string;
119
+ theta: string;
120
+ predictedDeliveryPrice: string;
121
+ change24h: string;
122
+ }
123
+ export interface WSTickerSpotV5 {
124
+ symbol: string;
125
+ lastPrice: string;
126
+ highPrice24h: string;
127
+ lowPrice24h: string;
128
+ prevPrice24h: string;
129
+ volume24h: string;
130
+ turnover24h: string;
131
+ price24hPcnt: string;
132
+ usdIndexPrice: string;
133
+ }
134
+ export type WSTickerEventV5 = WSPublicTopicEventV5<string, 'snapshot' | 'delta', WSTickerV5 | WSTickerOptionV5 | WSTickerSpotV5>;
94
135
  export interface WSKlineV5 {
95
136
  start: number;
96
137
  end: number;
@@ -352,3 +393,10 @@ export interface WSSpreadExecutionV5 {
352
393
  seq: number;
353
394
  }
354
395
  export type WSSpreadExecutionEventV5 = WSPrivateTopicEventV5<'spread.execution', WSSpreadExecutionV5[]>;
396
+ export interface WSInsuranceV5 {
397
+ coin: string;
398
+ symbols: string;
399
+ balance: string;
400
+ updateTime: string;
401
+ }
402
+ export type WSInsuranceEventV5 = WSPublicTopicEventV5<'insurance.USDT' | 'insurance.USDC' | 'insurance.inverse', 'snapshot' | 'delta', WSInsuranceV5[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bybit-api",
3
- "version": "4.1.8",
3
+ "version": "4.1.10",
4
4
  "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",