bybit-api 4.0.0-beta.1 → 4.0.0-beta.3

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.
@@ -153,6 +153,7 @@ export interface WSExecutionV5 {
153
153
  execId: string;
154
154
  execPrice: string;
155
155
  execQty: string;
156
+ execPnl: string;
156
157
  execType: ExecTypeV5;
157
158
  execValue: string;
158
159
  execTime: string;
@@ -320,7 +320,7 @@ class WebsocketClient extends BaseWSClient_1.BaseWebsocketClient {
320
320
  const topics = requests.map((r) => r.topic);
321
321
  // Previously used to track topics in a request. Keeping this for subscribe/unsubscribe requests, no need for incremental values
322
322
  const req_id = ['subscribe', 'unsubscribe'].includes(operation) && topics.length
323
- ? topics.join('_')
323
+ ? topics.join(',')
324
324
  : this.getNewRequestId();
325
325
  const wsEvent = {
326
326
  req_id: req_id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bybit-api",
3
- "version": "4.0.0-beta.1",
3
+ "version": "4.0.0-beta.3",
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",