bybit-api 4.1.9 → 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
 
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bybit-api",
3
- "version": "4.1.9",
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",