ccxt 4.4.91 → 4.4.92

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.
@@ -6,7 +6,7 @@
6
6
 
7
7
  // ---------------------------------------------------------------------------
8
8
  import bybitRest from '../bybit.js';
9
- import { ArgumentsRequired, AuthenticationError, ExchangeError, BadRequest } from '../base/errors.js';
9
+ import { ArgumentsRequired, AuthenticationError, ExchangeError, BadRequest, NotSupported } from '../base/errors.js';
10
10
  import { ArrayCache, ArrayCacheBySymbolById, ArrayCacheBySymbolBySide, ArrayCacheByTimestamp } from '../base/ws/Cache.js';
11
11
  import { sha256 } from '../static_dependencies/noble-hashes/sha256.js';
12
12
  // ---------------------------------------------------------------------------
@@ -1282,11 +1282,10 @@ export default class bybit extends bybitRest {
1282
1282
  async unWatchMyTrades(symbol = undefined, params = {}) {
1283
1283
  const method = 'watchMyTrades';
1284
1284
  const messageHash = 'unsubscribe:myTrades';
1285
- let subHash = 'myTrades';
1285
+ const subHash = 'myTrades';
1286
1286
  await this.loadMarkets();
1287
1287
  if (symbol !== undefined) {
1288
- symbol = this.symbol(symbol);
1289
- subHash += ':' + symbol;
1288
+ throw new NotSupported(this.id + ' unWatchMyTrades() does not support a symbol parameter, you must unwatch all my trades');
1290
1289
  }
1291
1290
  const url = await this.getUrlByMarketType(symbol, true, method, params);
1292
1291
  await this.authenticate(url);
@@ -1731,10 +1730,9 @@ export default class bybit extends bybitRest {
1731
1730
  await this.loadMarkets();
1732
1731
  const method = 'watchOrders';
1733
1732
  const messageHash = 'unsubscribe:orders';
1734
- let subHash = 'orders';
1733
+ const subHash = 'orders';
1735
1734
  if (symbol !== undefined) {
1736
- symbol = this.symbol(symbol);
1737
- subHash += ':' + symbol;
1735
+ throw new NotSupported(this.id + ' unWatchOrders() does not support a symbol parameter, you must unwatch all orders');
1738
1736
  }
1739
1737
  const url = await this.getUrlByMarketType(symbol, true, method, params);
1740
1738
  await this.authenticate(url);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.4.91",
3
+ "version": "4.4.92",
4
4
  "description": "A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading library with support for 100+ exchanges",
5
5
  "unpkg": "dist/ccxt.browser.min.js",
6
6
  "type": "module",