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.
- package/README.md +3 -3
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/base/Exchange.js +14 -22
- package/dist/cjs/src/bitmart.js +7 -0
- package/dist/cjs/src/bitmex.js +1 -1
- package/dist/cjs/src/bitvavo.js +10 -1
- package/dist/cjs/src/exmo.js +11 -3
- package/dist/cjs/src/htx.js +1 -1
- package/dist/cjs/src/hyperliquid.js +1 -1
- package/dist/cjs/src/krakenfutures.js +1 -1
- package/dist/cjs/src/lbank.js +116 -32
- package/dist/cjs/src/okx.js +2 -2
- package/dist/cjs/src/pro/bybit.js +4 -6
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/abstract/lbank.d.ts +1 -0
- package/js/src/base/Exchange.d.ts +2 -0
- package/js/src/base/Exchange.js +14 -22
- package/js/src/bitmart.d.ts +7 -0
- package/js/src/bitmart.js +7 -0
- package/js/src/bitmex.js +1 -1
- package/js/src/bitvavo.js +10 -1
- package/js/src/exmo.js +11 -3
- package/js/src/htx.js +1 -1
- package/js/src/hyperliquid.js +1 -1
- package/js/src/krakenfutures.js +1 -1
- package/js/src/lbank.d.ts +9 -1
- package/js/src/lbank.js +116 -32
- package/js/src/okx.d.ts +1 -1
- package/js/src/okx.js +2 -2
- package/js/src/pro/bybit.js +5 -7
- package/package.json +1 -1
package/js/src/pro/bybit.js
CHANGED
|
@@ -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
|
-
|
|
1285
|
+
const subHash = 'myTrades';
|
|
1286
1286
|
await this.loadMarkets();
|
|
1287
1287
|
if (symbol !== undefined) {
|
|
1288
|
-
|
|
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
|
-
|
|
1733
|
+
const subHash = 'orders';
|
|
1735
1734
|
if (symbol !== undefined) {
|
|
1736
|
-
|
|
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