ccxt 4.4.82 → 4.4.86

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.
Files changed (145) hide show
  1. package/README.md +6 -9
  2. package/dist/ccxt.browser.min.js +7 -7
  3. package/dist/cjs/ccxt.js +6 -17
  4. package/dist/cjs/src/abstract/bittrade.js +9 -0
  5. package/dist/cjs/src/apex.js +2 -1
  6. package/dist/cjs/src/ascendex.js +189 -155
  7. package/dist/cjs/src/base/Exchange.js +15 -2
  8. package/dist/cjs/src/bequant.js +1 -1
  9. package/dist/cjs/src/bitget.js +6 -7
  10. package/dist/cjs/src/bitmart.js +1 -1
  11. package/dist/cjs/src/bitrue.js +14 -35
  12. package/dist/cjs/src/bitso.js +33 -0
  13. package/dist/cjs/src/bitstamp.js +33 -0
  14. package/dist/cjs/src/bittrade.js +2049 -0
  15. package/dist/cjs/src/blofin.js +154 -13
  16. package/dist/cjs/src/btcbox.js +25 -5
  17. package/dist/cjs/src/bybit.js +16 -40
  18. package/dist/cjs/src/cex.js +2 -4
  19. package/dist/cjs/src/coinbase.js +58 -46
  20. package/dist/cjs/src/coinbaseexchange.js +142 -32
  21. package/dist/cjs/src/coincatch.js +14 -67
  22. package/dist/cjs/src/coinex.js +29 -32
  23. package/dist/cjs/src/coinlist.js +16 -15
  24. package/dist/cjs/src/coinmetro.js +22 -11
  25. package/dist/cjs/src/coinone.js +8 -10
  26. package/dist/cjs/src/coinsph.js +126 -1
  27. package/dist/cjs/src/cryptocom.js +111 -1
  28. package/dist/cjs/src/cryptomus.js +43 -89
  29. package/dist/cjs/src/delta.js +76 -36
  30. package/dist/cjs/src/deribit.js +4 -5
  31. package/dist/cjs/src/derive.js +46 -10
  32. package/dist/cjs/src/ellipx.js +175 -79
  33. package/dist/cjs/src/gate.js +1 -1
  34. package/dist/cjs/src/gemini.js +3 -5
  35. package/dist/cjs/src/hitbtc.js +56 -69
  36. package/dist/cjs/src/hollaex.js +107 -49
  37. package/dist/cjs/src/htx.js +20 -44
  38. package/dist/cjs/src/hyperliquid.js +6 -6
  39. package/dist/cjs/src/kraken.js +29 -24
  40. package/dist/cjs/src/kucoinfutures.js +6 -0
  41. package/dist/cjs/src/lbank.js +1 -1
  42. package/dist/cjs/src/mexc.js +2 -2
  43. package/dist/cjs/src/ndax.js +25 -24
  44. package/dist/cjs/src/okcoin.js +12 -31
  45. package/dist/cjs/src/okx.js +9 -0
  46. package/dist/cjs/src/onetrading.js +9 -6
  47. package/dist/cjs/src/oxfun.js +42 -114
  48. package/dist/cjs/src/paradex.js +124 -4
  49. package/dist/cjs/src/pro/binance.js +32 -33
  50. package/dist/cjs/src/pro/bithumb.js +5 -3
  51. package/dist/cjs/src/pro/bittrade.js +605 -0
  52. package/dist/cjs/src/pro/kraken.js +289 -79
  53. package/dist/cjs/src/pro/luno.js +6 -5
  54. package/dist/cjs/src/pro/mexc.js +304 -7
  55. package/dist/cjs/src/pro/poloniex.js +6 -2
  56. package/examples/js/cli.js +127 -13
  57. package/js/ccxt.d.ts +8 -20
  58. package/js/ccxt.js +6 -14
  59. package/js/src/abstract/blofin.d.ts +8 -0
  60. package/js/src/abstract/btcbox.d.ts +1 -0
  61. package/js/src/abstract/myokx.d.ts +2 -0
  62. package/js/src/abstract/okx.d.ts +2 -0
  63. package/js/src/apex.js +2 -1
  64. package/js/src/ascendex.d.ts +2 -0
  65. package/js/src/ascendex.js +189 -155
  66. package/js/src/base/Exchange.d.ts +15 -1
  67. package/js/src/base/Exchange.js +15 -2
  68. package/js/src/base/types.d.ts +3 -0
  69. package/js/src/bequant.js +1 -1
  70. package/js/src/bitget.js +6 -7
  71. package/js/src/bitmart.js +1 -1
  72. package/js/src/bitrue.js +14 -35
  73. package/js/src/bitso.js +33 -0
  74. package/js/src/bitstamp.js +33 -0
  75. package/js/src/{huobijp.d.ts → bittrade.d.ts} +29 -29
  76. package/js/src/{huobijp.js → bittrade.js} +35 -35
  77. package/js/src/blofin.d.ts +42 -2
  78. package/js/src/blofin.js +154 -13
  79. package/js/src/btcbox.js +25 -5
  80. package/js/src/bybit.js +16 -40
  81. package/js/src/cex.js +2 -4
  82. package/js/src/coinbase.js +58 -46
  83. package/js/src/coinbaseexchange.js +142 -32
  84. package/js/src/coincatch.js +14 -67
  85. package/js/src/coinex.js +28 -29
  86. package/js/src/coinlist.js +16 -15
  87. package/js/src/coinmetro.js +22 -11
  88. package/js/src/coinone.js +8 -10
  89. package/js/src/coinsph.d.ts +10 -1
  90. package/js/src/coinsph.js +126 -1
  91. package/js/src/cryptocom.d.ts +10 -1
  92. package/js/src/cryptocom.js +111 -1
  93. package/js/src/cryptomus.js +43 -89
  94. package/js/src/delta.js +76 -36
  95. package/js/src/deribit.js +4 -5
  96. package/js/src/derive.js +46 -10
  97. package/js/src/ellipx.d.ts +2 -3
  98. package/js/src/ellipx.js +175 -80
  99. package/js/src/gate.js +1 -1
  100. package/js/src/gemini.js +3 -5
  101. package/js/src/hitbtc.js +56 -69
  102. package/js/src/hollaex.js +107 -49
  103. package/js/src/htx.js +20 -44
  104. package/js/src/hyperliquid.js +6 -6
  105. package/js/src/kraken.js +29 -24
  106. package/js/src/kucoinfutures.d.ts +1 -0
  107. package/js/src/kucoinfutures.js +6 -0
  108. package/js/src/lbank.js +1 -1
  109. package/js/src/mexc.js +2 -2
  110. package/js/src/ndax.js +25 -24
  111. package/js/src/okcoin.js +12 -31
  112. package/js/src/okx.js +9 -0
  113. package/js/src/onetrading.js +9 -6
  114. package/js/src/oxfun.js +42 -114
  115. package/js/src/paradex.d.ts +12 -1
  116. package/js/src/paradex.js +124 -4
  117. package/js/src/pro/binance.d.ts +26 -26
  118. package/js/src/pro/binance.js +32 -33
  119. package/js/src/pro/bithumb.js +5 -3
  120. package/js/src/pro/{huobijp.d.ts → bittrade.d.ts} +6 -6
  121. package/js/src/pro/{huobijp.js → bittrade.js} +7 -7
  122. package/js/src/pro/kraken.d.ts +7 -6
  123. package/js/src/pro/kraken.js +290 -80
  124. package/js/src/pro/luno.js +6 -5
  125. package/js/src/pro/mexc.d.ts +58 -0
  126. package/js/src/pro/mexc.js +304 -7
  127. package/js/src/pro/poloniex.d.ts +1 -1
  128. package/js/src/pro/poloniex.js +6 -2
  129. package/package.json +1 -1
  130. package/js/src/abstract/bl3p.d.ts +0 -22
  131. package/js/src/abstract/huobijp.js +0 -11
  132. package/js/src/abstract/idex.d.ts +0 -29
  133. package/js/src/abstract/idex.js +0 -11
  134. package/js/src/abstract/kuna.d.ts +0 -185
  135. package/js/src/abstract/kuna.js +0 -11
  136. package/js/src/bl3p.d.ts +0 -116
  137. package/js/src/bl3p.js +0 -552
  138. package/js/src/idex.d.ts +0 -312
  139. package/js/src/idex.js +0 -1961
  140. package/js/src/kuna.d.ts +0 -335
  141. package/js/src/kuna.js +0 -2006
  142. package/js/src/pro/idex.d.ts +0 -81
  143. package/js/src/pro/idex.js +0 -720
  144. /package/js/src/abstract/{huobijp.d.ts → bittrade.d.ts} +0 -0
  145. /package/js/src/abstract/{bl3p.js → bittrade.js} +0 -0
@@ -34,6 +34,12 @@ export default class mexc extends mexcRest {
34
34
  'watchBidsAsks': true,
35
35
  'watchTrades': true,
36
36
  'watchTradesForSymbols': false,
37
+ 'unWatchTicker': true,
38
+ 'unWatchTickers': true,
39
+ 'unWatchBidsAsks': true,
40
+ 'unWatchOHLCV': true,
41
+ 'unWatchOrderBook': true,
42
+ 'unWatchTrades': true,
37
43
  },
38
44
  'urls': {
39
45
  'api': {
@@ -491,12 +497,15 @@ export default class mexc extends mexcRest {
491
497
  }, market);
492
498
  }
493
499
  async watchSpotPublic(channel, messageHash, params = {}) {
500
+ const unsubscribed = this.safeBool(params, 'unsubscribed', false);
501
+ params = this.omit(params, ['unsubscribed']);
494
502
  const url = this.urls['api']['ws']['spot'];
503
+ const method = (unsubscribed) ? 'UNSUBSCRIPTION' : 'SUBSCRIPTION';
495
504
  const request = {
496
- 'method': 'SUBSCRIPTION',
505
+ 'method': method,
497
506
  'params': [channel],
498
507
  };
499
- return await this.watch(url, messageHash, this.extend(request, params), channel);
508
+ return await this.watch(url, messageHash, this.extend(request, params), messageHash);
500
509
  }
501
510
  async watchSpotPrivate(channel, messageHash, params = {}) {
502
511
  this.checkRequiredCredentials();
@@ -788,11 +797,8 @@ export default class mexc extends mexcRest {
788
797
  const messageHash = 'orderbook:' + symbol;
789
798
  const subscription = this.safeValue(client.subscriptions, messageHash);
790
799
  const limit = this.safeInteger(subscription, 'limit');
791
- if (subscription === true) {
792
- // we set client.subscriptions[messageHash] to 1
793
- // once we have received the first delta and initialized the orderbook
794
- client.subscriptions[messageHash] = 1;
795
- this.orderbooks[symbol] = this.countedOrderBook({});
800
+ if (!(symbol in this.orderbooks)) {
801
+ this.orderbooks[symbol] = this.orderBook();
796
802
  }
797
803
  const storedOrderBook = this.orderbooks[symbol];
798
804
  const nonce = this.safeInteger(storedOrderBook, 'nonce');
@@ -1415,6 +1421,297 @@ export default class mexc extends mexcRest {
1415
1421
  this.balance[type] = this.safeBalance(this.balance[type]);
1416
1422
  client.resolve(this.balance[type], messageHash);
1417
1423
  }
1424
+ /**
1425
+ * @method
1426
+ * @name mexc#unWatchTicker
1427
+ * @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
1428
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
1429
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1430
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1431
+ */
1432
+ async unWatchTicker(symbol, params = {}) {
1433
+ await this.loadMarkets();
1434
+ const market = this.market(symbol);
1435
+ const messageHash = 'unsubscribe:ticker:' + market['symbol'];
1436
+ let url = undefined;
1437
+ let channel = undefined;
1438
+ if (market['spot']) {
1439
+ let miniTicker = false;
1440
+ [miniTicker, params] = this.handleOptionAndParams(params, 'watchTicker', 'miniTicker');
1441
+ if (miniTicker) {
1442
+ channel = 'spot@public.miniTicker.v3.api@' + market['id'] + '@UTC+8';
1443
+ }
1444
+ else {
1445
+ channel = 'spot@public.bookTicker.v3.api@' + market['id'];
1446
+ }
1447
+ url = this.urls['api']['ws']['spot'];
1448
+ params['unsubscribed'] = true;
1449
+ this.watchSpotPublic(channel, messageHash, params);
1450
+ }
1451
+ else {
1452
+ channel = 'unsub.ticker';
1453
+ const requestParams = {
1454
+ 'symbol': market['id'],
1455
+ };
1456
+ url = this.urls['api']['ws']['swap'];
1457
+ this.watchSwapPublic(channel, messageHash, requestParams, params);
1458
+ }
1459
+ const client = this.client(url);
1460
+ this.handleUnsubscriptions(client, [messageHash]);
1461
+ return undefined;
1462
+ }
1463
+ /**
1464
+ * @method
1465
+ * @name mexc#unWatchTickers
1466
+ * @description unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
1467
+ * @param {string[]} symbols unified symbol of the market to fetch the ticker for
1468
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1469
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1470
+ */
1471
+ async unWatchTickers(symbols = undefined, params = {}) {
1472
+ await this.loadMarkets();
1473
+ symbols = this.marketSymbols(symbols, undefined);
1474
+ const messageHashes = [];
1475
+ const firstSymbol = this.safeString(symbols, 0);
1476
+ let market = undefined;
1477
+ if (firstSymbol !== undefined) {
1478
+ market = this.market(firstSymbol);
1479
+ }
1480
+ let type = undefined;
1481
+ [type, params] = this.handleMarketTypeAndParams('watchTickers', market, params);
1482
+ const isSpot = (type === 'spot');
1483
+ const url = (isSpot) ? this.urls['api']['ws']['spot'] : this.urls['api']['ws']['swap'];
1484
+ const request = {};
1485
+ if (isSpot) {
1486
+ let miniTicker = false;
1487
+ [miniTicker, params] = this.handleOptionAndParams(params, 'watchTickers', 'miniTicker');
1488
+ const topics = [];
1489
+ if (!miniTicker) {
1490
+ if (symbols === undefined) {
1491
+ throw new ArgumentsRequired(this.id + ' watchTickers required symbols argument for the bookTicker channel');
1492
+ }
1493
+ const marketIds = this.marketIds(symbols);
1494
+ for (let i = 0; i < marketIds.length; i++) {
1495
+ const marketId = marketIds[i];
1496
+ messageHashes.push('unsubscribe:ticker:' + symbols[i]);
1497
+ const channel = 'spot@public.bookTicker.v3.api@' + marketId;
1498
+ topics.push(channel);
1499
+ }
1500
+ }
1501
+ else {
1502
+ topics.push('spot@public.miniTickers.v3.api@UTC+8');
1503
+ if (symbols === undefined) {
1504
+ messageHashes.push('unsubscribe:spot:ticker');
1505
+ }
1506
+ else {
1507
+ for (let i = 0; i < symbols.length; i++) {
1508
+ messageHashes.push('unsubscribe:ticker:' + symbols[i]);
1509
+ }
1510
+ }
1511
+ }
1512
+ request['method'] = 'UNSUBSCRIPTION';
1513
+ request['params'] = topics;
1514
+ }
1515
+ else {
1516
+ request['method'] = 'unsub.tickers';
1517
+ request['params'] = {};
1518
+ messageHashes.push('unsubscribe:ticker');
1519
+ }
1520
+ const client = this.client(url);
1521
+ this.watchMultiple(url, messageHashes, this.extend(request, params), messageHashes);
1522
+ this.handleUnsubscriptions(client, messageHashes);
1523
+ return undefined;
1524
+ }
1525
+ /**
1526
+ * @method
1527
+ * @name mexc#unWatchBidsAsks
1528
+ * @description unWatches best bid & ask for symbols
1529
+ * @param {string[]} symbols unified symbol of the market to fetch the ticker for
1530
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1531
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1532
+ */
1533
+ async unWatchBidsAsks(symbols = undefined, params = {}) {
1534
+ await this.loadMarkets();
1535
+ symbols = this.marketSymbols(symbols, undefined, true, false, true);
1536
+ let marketType = undefined;
1537
+ if (symbols === undefined) {
1538
+ throw new ArgumentsRequired(this.id + ' watchBidsAsks required symbols argument');
1539
+ }
1540
+ const markets = this.marketsForSymbols(symbols);
1541
+ [marketType, params] = this.handleMarketTypeAndParams('watchBidsAsks', markets[0], params);
1542
+ const isSpot = marketType === 'spot';
1543
+ if (!isSpot) {
1544
+ throw new NotSupported(this.id + ' watchBidsAsks only support spot market');
1545
+ }
1546
+ const messageHashes = [];
1547
+ const topics = [];
1548
+ for (let i = 0; i < symbols.length; i++) {
1549
+ if (isSpot) {
1550
+ const market = this.market(symbols[i]);
1551
+ topics.push('spot@public.bookTicker.v3.api@' + market['id']);
1552
+ }
1553
+ messageHashes.push('unsubscribe:bidask:' + symbols[i]);
1554
+ }
1555
+ const url = this.urls['api']['ws']['spot'];
1556
+ const request = {
1557
+ 'method': 'UNSUBSCRIPTION',
1558
+ 'params': topics,
1559
+ };
1560
+ const client = this.client(url);
1561
+ this.watchMultiple(url, messageHashes, this.extend(request, params), messageHashes);
1562
+ this.handleUnsubscriptions(client, messageHashes);
1563
+ return undefined;
1564
+ }
1565
+ /**
1566
+ * @method
1567
+ * @name mexc#unWatchOHLCV
1568
+ * @description unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market
1569
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
1570
+ * @param {string} timeframe the length of time each candle represents
1571
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1572
+ * @param {object} [params.timezone] if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
1573
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
1574
+ */
1575
+ async unWatchOHLCV(symbol, timeframe = '1m', params = {}) {
1576
+ await this.loadMarkets();
1577
+ const market = this.market(symbol);
1578
+ symbol = market['symbol'];
1579
+ const timeframes = this.safeValue(this.options, 'timeframes', {});
1580
+ const timeframeId = this.safeString(timeframes, timeframe);
1581
+ const messageHash = 'unsubscribe:candles:' + symbol + ':' + timeframe;
1582
+ let url = undefined;
1583
+ if (market['spot']) {
1584
+ url = this.urls['api']['ws']['spot'];
1585
+ const channel = 'spot@public.kline.v3.api@' + market['id'] + '@' + timeframeId;
1586
+ params['unsubscribed'] = true;
1587
+ this.watchSpotPublic(channel, messageHash, params);
1588
+ }
1589
+ else {
1590
+ url = this.urls['api']['ws']['swap'];
1591
+ const channel = 'unsub.kline';
1592
+ const requestParams = {
1593
+ 'symbol': market['id'],
1594
+ 'interval': timeframeId,
1595
+ };
1596
+ this.watchSwapPublic(channel, messageHash, requestParams, params);
1597
+ }
1598
+ const client = this.client(url);
1599
+ this.handleUnsubscriptions(client, [messageHash]);
1600
+ return undefined;
1601
+ }
1602
+ /**
1603
+ * @method
1604
+ * @name mexc#unWatchOrderBook
1605
+ * @description unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
1606
+ * @param {string} symbol unified array of symbols
1607
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1608
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1609
+ */
1610
+ async unWatchOrderBook(symbol, params = {}) {
1611
+ await this.loadMarkets();
1612
+ const market = this.market(symbol);
1613
+ symbol = market['symbol'];
1614
+ const messageHash = 'unsubscribe:orderbook:' + symbol;
1615
+ let url = undefined;
1616
+ if (market['spot']) {
1617
+ url = this.urls['api']['ws']['spot'];
1618
+ const channel = 'spot@public.increase.depth.v3.api@' + market['id'];
1619
+ params['unsubscribed'] = true;
1620
+ this.watchSpotPublic(channel, messageHash, params);
1621
+ }
1622
+ else {
1623
+ url = this.urls['api']['ws']['swap'];
1624
+ const channel = 'unsub.depth';
1625
+ const requestParams = {
1626
+ 'symbol': market['id'],
1627
+ };
1628
+ this.watchSwapPublic(channel, messageHash, requestParams, params);
1629
+ }
1630
+ const client = this.client(url);
1631
+ this.handleUnsubscriptions(client, [messageHash]);
1632
+ return undefined;
1633
+ }
1634
+ /**
1635
+ * @method
1636
+ * @name mexc#unWatchTrades
1637
+ * @description unsubscribes from the trades channel
1638
+ * @param {string} symbol unified symbol of the market to fetch trades for
1639
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1640
+ * @param {string} [params.name] the name of the method to call, 'trade' or 'aggTrade', default is 'trade'
1641
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1642
+ */
1643
+ async unWatchTrades(symbol, params = {}) {
1644
+ await this.loadMarkets();
1645
+ const market = this.market(symbol);
1646
+ symbol = market['symbol'];
1647
+ const messageHash = 'unsubscribe:trades:' + symbol;
1648
+ let url = undefined;
1649
+ if (market['spot']) {
1650
+ url = this.urls['api']['ws']['spot'];
1651
+ const channel = 'spot@public.deals.v3.api@' + market['id'];
1652
+ params['unsubscribed'] = true;
1653
+ this.watchSpotPublic(channel, messageHash, params);
1654
+ }
1655
+ else {
1656
+ url = this.urls['api']['ws']['swap'];
1657
+ const channel = 'unsub.deal';
1658
+ const requestParams = {
1659
+ 'symbol': market['id'],
1660
+ };
1661
+ this.watchSwapPublic(channel, messageHash, requestParams, params);
1662
+ }
1663
+ const client = this.client(url);
1664
+ this.handleUnsubscriptions(client, [messageHash]);
1665
+ return undefined;
1666
+ }
1667
+ handleUnsubscriptions(client, messageHashes) {
1668
+ for (let i = 0; i < messageHashes.length; i++) {
1669
+ const messageHash = messageHashes[i];
1670
+ const subMessageHash = messageHash.replace('unsubscribe:', '');
1671
+ this.cleanUnsubscription(client, subMessageHash, messageHash);
1672
+ if (messageHash.indexOf('ticker') >= 0) {
1673
+ const symbol = messageHash.replace('unsubscribe:ticker:', '');
1674
+ if (symbol.indexOf('unsubscribe') >= 0) {
1675
+ // unWatchTickers
1676
+ const symbols = Object.keys(this.tickers);
1677
+ for (let j = 0; j < symbols.length; j++) {
1678
+ delete this.tickers[symbols[j]];
1679
+ }
1680
+ }
1681
+ else if (symbol in this.tickers) {
1682
+ delete this.tickers[symbol];
1683
+ }
1684
+ }
1685
+ else if (messageHash.indexOf('bidask') >= 0) {
1686
+ const symbol = messageHash.replace('unsubscribe:bidask:', '');
1687
+ if (symbol in this.bidsasks) {
1688
+ delete this.bidsasks[symbol];
1689
+ }
1690
+ }
1691
+ else if (messageHash.indexOf('candles') >= 0) {
1692
+ const splitHashes = messageHash.split(':');
1693
+ let symbol = this.safeString(splitHashes, 2);
1694
+ if (splitHashes.length > 4) {
1695
+ symbol += ':' + this.safeString(splitHashes, 3);
1696
+ }
1697
+ if (symbol in this.ohlcvs) {
1698
+ delete this.ohlcvs[symbol];
1699
+ }
1700
+ }
1701
+ else if (messageHash.indexOf('orderbook') >= 0) {
1702
+ const symbol = messageHash.replace('unsubscribe:orderbook:', '');
1703
+ if (symbol in this.orderbooks) {
1704
+ delete this.orderbooks[symbol];
1705
+ }
1706
+ }
1707
+ else if (messageHash.indexOf('trades') >= 0) {
1708
+ const symbol = messageHash.replace('unsubscribe:trades:', '');
1709
+ if (symbol in this.trades) {
1710
+ delete this.trades[symbol];
1711
+ }
1712
+ }
1713
+ }
1714
+ }
1418
1715
  async authenticate(subscriptionHash, params = {}) {
1419
1716
  // we only need one listenKey since ccxt shares connections
1420
1717
  let listenKey = this.safeString(this.options, 'listenKey');
@@ -66,7 +66,7 @@ export default class poloniex extends poloniexRest {
66
66
  * @param {string} [params.clientOrderId] client order id
67
67
  * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
68
68
  */
69
- cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<any>;
69
+ cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<Order>;
70
70
  /**
71
71
  * @method
72
72
  * @name poloniex#cancelOrdersWs
@@ -252,7 +252,9 @@ export default class poloniex extends poloniexRest {
252
252
  request['price'] = this.priceToPrecision(symbol, price);
253
253
  }
254
254
  }
255
- return await this.tradeRequest('createOrder', this.extend(request, params));
255
+ const orders = await this.tradeRequest('createOrder', this.extend(request, params));
256
+ const order = this.safeDict(orders, 0);
257
+ return order;
256
258
  }
257
259
  /**
258
260
  * @method
@@ -271,7 +273,9 @@ export default class poloniex extends poloniexRest {
271
273
  const clientOrderIds = this.safeValue(params, 'clientOrderId', []);
272
274
  params['clientOrderIds'] = this.arrayConcat(clientOrderIds, [clientOrderId]);
273
275
  }
274
- return await this.cancelOrdersWs([id], symbol, params);
276
+ const orders = await this.cancelOrdersWs([id], symbol, params);
277
+ const order = this.safeDict(orders, 0);
278
+ return order;
275
279
  }
276
280
  /**
277
281
  * @method
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccxt",
3
- "version": "4.4.82",
3
+ "version": "4.4.86",
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",
@@ -1,22 +0,0 @@
1
- import { implicitReturnType } from '../base/types.js';
2
- import { Exchange as _Exchange } from '../base/Exchange.js';
3
- interface Exchange {
4
- publicGetMarketTicker(params?: {}): Promise<implicitReturnType>;
5
- publicGetMarketOrderbook(params?: {}): Promise<implicitReturnType>;
6
- publicGetMarketTrades(params?: {}): Promise<implicitReturnType>;
7
- privatePostMarketMoneyDepthFull(params?: {}): Promise<implicitReturnType>;
8
- privatePostMarketMoneyOrderAdd(params?: {}): Promise<implicitReturnType>;
9
- privatePostMarketMoneyOrderCancel(params?: {}): Promise<implicitReturnType>;
10
- privatePostMarketMoneyOrderResult(params?: {}): Promise<implicitReturnType>;
11
- privatePostMarketMoneyOrders(params?: {}): Promise<implicitReturnType>;
12
- privatePostMarketMoneyOrdersHistory(params?: {}): Promise<implicitReturnType>;
13
- privatePostMarketMoneyTradesFetch(params?: {}): Promise<implicitReturnType>;
14
- privatePostGENMKTMoneyInfo(params?: {}): Promise<implicitReturnType>;
15
- privatePostGENMKTMoneyDepositAddress(params?: {}): Promise<implicitReturnType>;
16
- privatePostGENMKTMoneyNewDepositAddress(params?: {}): Promise<implicitReturnType>;
17
- privatePostGENMKTMoneyWalletHistory(params?: {}): Promise<implicitReturnType>;
18
- privatePostGENMKTMoneyWithdraw(params?: {}): Promise<implicitReturnType>;
19
- }
20
- declare abstract class Exchange extends _Exchange {
21
- }
22
- export default Exchange;
@@ -1,11 +0,0 @@
1
- // ----------------------------------------------------------------------------
2
-
3
- // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
- // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
- // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
-
7
- // -------------------------------------------------------------------------------
8
- import { Exchange as _Exchange } from '../base/Exchange.js';
9
- class Exchange extends _Exchange {
10
- }
11
- export default Exchange;
@@ -1,29 +0,0 @@
1
- import { implicitReturnType } from '../base/types.js';
2
- import { Exchange as _Exchange } from '../base/Exchange.js';
3
- interface Exchange {
4
- publicGetPing(params?: {}): Promise<implicitReturnType>;
5
- publicGetTime(params?: {}): Promise<implicitReturnType>;
6
- publicGetExchange(params?: {}): Promise<implicitReturnType>;
7
- publicGetAssets(params?: {}): Promise<implicitReturnType>;
8
- publicGetMarkets(params?: {}): Promise<implicitReturnType>;
9
- publicGetTickers(params?: {}): Promise<implicitReturnType>;
10
- publicGetCandles(params?: {}): Promise<implicitReturnType>;
11
- publicGetTrades(params?: {}): Promise<implicitReturnType>;
12
- publicGetOrderbook(params?: {}): Promise<implicitReturnType>;
13
- privateGetUser(params?: {}): Promise<implicitReturnType>;
14
- privateGetWallets(params?: {}): Promise<implicitReturnType>;
15
- privateGetBalances(params?: {}): Promise<implicitReturnType>;
16
- privateGetOrders(params?: {}): Promise<implicitReturnType>;
17
- privateGetFills(params?: {}): Promise<implicitReturnType>;
18
- privateGetDeposits(params?: {}): Promise<implicitReturnType>;
19
- privateGetWithdrawals(params?: {}): Promise<implicitReturnType>;
20
- privateGetWsToken(params?: {}): Promise<implicitReturnType>;
21
- privatePostWallets(params?: {}): Promise<implicitReturnType>;
22
- privatePostOrders(params?: {}): Promise<implicitReturnType>;
23
- privatePostOrdersTest(params?: {}): Promise<implicitReturnType>;
24
- privatePostWithdrawals(params?: {}): Promise<implicitReturnType>;
25
- privateDeleteOrders(params?: {}): Promise<implicitReturnType>;
26
- }
27
- declare abstract class Exchange extends _Exchange {
28
- }
29
- export default Exchange;
@@ -1,11 +0,0 @@
1
- // ----------------------------------------------------------------------------
2
-
3
- // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
4
- // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
5
- // EDIT THE CORRESPONDENT .ts FILE INSTEAD
6
-
7
- // -------------------------------------------------------------------------------
8
- import { Exchange as _Exchange } from '../base/Exchange.js';
9
- class Exchange extends _Exchange {
10
- }
11
- export default Exchange;
@@ -1,185 +0,0 @@
1
- import { implicitReturnType } from '../base/types.js';
2
- import { Exchange as _Exchange } from '../base/Exchange.js';
3
- interface Exchange {
4
- xreserveGetNonce(params?: {}): Promise<implicitReturnType>;
5
- xreserveGetFee(params?: {}): Promise<implicitReturnType>;
6
- xreserveGetDelegatedTransactions(params?: {}): Promise<implicitReturnType>;
7
- xreservePostDelegateTransfer(params?: {}): Promise<implicitReturnType>;
8
- v4PrivateGetPrivateMe(params?: {}): Promise<implicitReturnType>;
9
- v4PrivateGetPrivateGetBalance(params?: {}): Promise<implicitReturnType>;
10
- v4PrivateGetOrderPrivateActive(params?: {}): Promise<implicitReturnType>;
11
- v4PrivateGetOrderPrivateHistory(params?: {}): Promise<implicitReturnType>;
12
- v4PrivateGetOrderPrivateIdTrades(params?: {}): Promise<implicitReturnType>;
13
- v4PrivateGetOrderPrivateDetailsId(params?: {}): Promise<implicitReturnType>;
14
- v4PrivateGetTradePrivateHistory(params?: {}): Promise<implicitReturnType>;
15
- v4PrivateGetTransactionPrivateHash(params?: {}): Promise<implicitReturnType>;
16
- v4PrivateGetDepositPrivatePreRequest(params?: {}): Promise<implicitReturnType>;
17
- v4PrivateGetDepositPrivateCryptoAddress(params?: {}): Promise<implicitReturnType>;
18
- v4PrivateGetDepositPrivateCryptoGetMerchantAddress(params?: {}): Promise<implicitReturnType>;
19
- v4PrivateGetDepositPrivateHistory(params?: {}): Promise<implicitReturnType>;
20
- v4PrivateGetDepositPrivateDetailsDepositId(params?: {}): Promise<implicitReturnType>;
21
- v4PrivateGetWithdrawPrivatePreRequest(params?: {}): Promise<implicitReturnType>;
22
- v4PrivateGetWithdrawPrivateHistory(params?: {}): Promise<implicitReturnType>;
23
- v4PrivateGetWithdrawPrivateDetailsWithdrawId(params?: {}): Promise<implicitReturnType>;
24
- v4PrivateGetKunaCodeId(params?: {}): Promise<implicitReturnType>;
25
- v4PrivateGetKunaCodeCodeCheck(params?: {}): Promise<implicitReturnType>;
26
- v4PrivateGetKunaCodeIssuedByMe(params?: {}): Promise<implicitReturnType>;
27
- v4PrivateGetKunaCodeRedeemedByMe(params?: {}): Promise<implicitReturnType>;
28
- v4PrivatePostOrderPrivateCreate(params?: {}): Promise<implicitReturnType>;
29
- v4PrivatePostOrderPrivateCancel(params?: {}): Promise<implicitReturnType>;
30
- v4PrivatePostOrderPrivateCancelMulti(params?: {}): Promise<implicitReturnType>;
31
- v4PrivatePostDepositPrivateCryptoGenerateAddress(params?: {}): Promise<implicitReturnType>;
32
- v4PrivatePostDepositPrivateCryptoGenerateMerchantAddress(params?: {}): Promise<implicitReturnType>;
33
- v4PrivatePostWithdrawPrivateCreate(params?: {}): Promise<implicitReturnType>;
34
- v4PrivatePostKunaCode(params?: {}): Promise<implicitReturnType>;
35
- v4PrivatePutKunaCodeRedeem(params?: {}): Promise<implicitReturnType>;
36
- v4PublicGetPublicTimestamp(params?: {}): Promise<implicitReturnType>;
37
- v4PublicGetPublicFees(params?: {}): Promise<implicitReturnType>;
38
- v4PublicGetPublicCurrenciesTypeType(params?: {}): Promise<implicitReturnType>;
39
- v4PublicGetPublicCurrencies(params?: {}): Promise<implicitReturnType>;
40
- v4PublicGetMarketsPublicGetAll(params?: {}): Promise<implicitReturnType>;
41
- v4PublicGetMarketsPublicTickersPairsPairs(params?: {}): Promise<implicitReturnType>;
42
- v4PublicGetOrderPublicBookPairs(params?: {}): Promise<implicitReturnType>;
43
- v4PublicGetTradePublicBookPairs(params?: {}): Promise<implicitReturnType>;
44
- v3PublicGetTimestamp(params?: {}): Promise<implicitReturnType>;
45
- v3PublicGetCurrencies(params?: {}): Promise<implicitReturnType>;
46
- v3PublicGetMarkets(params?: {}): Promise<implicitReturnType>;
47
- v3PublicGetTickers(params?: {}): Promise<implicitReturnType>;
48
- v3PublicGetK(params?: {}): Promise<implicitReturnType>;
49
- v3PublicGetTradesHistory(params?: {}): Promise<implicitReturnType>;
50
- v3PublicGetFees(params?: {}): Promise<implicitReturnType>;
51
- v3PublicGetExchangeRates(params?: {}): Promise<implicitReturnType>;
52
- v3PublicGetExchangeRatesCurrency(params?: {}): Promise<implicitReturnType>;
53
- v3PublicGetBookMarket(params?: {}): Promise<implicitReturnType>;
54
- v3PublicGetKunaCodesCodeCheck(params?: {}): Promise<implicitReturnType>;
55
- v3PublicGetLandingPageStatistic(params?: {}): Promise<implicitReturnType>;
56
- v3PublicGetTranslationsLocale(params?: {}): Promise<implicitReturnType>;
57
- v3PublicGetTradesMarketHist(params?: {}): Promise<implicitReturnType>;
58
- v3PublicPostHttpTest(params?: {}): Promise<implicitReturnType>;
59
- v3PublicPostDepositChannels(params?: {}): Promise<implicitReturnType>;
60
- v3PublicPostWithdrawChannels(params?: {}): Promise<implicitReturnType>;
61
- v3PublicPostSubscriptionPlans(params?: {}): Promise<implicitReturnType>;
62
- v3PublicPostSendTo(params?: {}): Promise<implicitReturnType>;
63
- v3PublicPostConfirmToken(params?: {}): Promise<implicitReturnType>;
64
- v3PublicPostKunaid(params?: {}): Promise<implicitReturnType>;
65
- v3PublicPostWithdrawPrerequest(params?: {}): Promise<implicitReturnType>;
66
- v3PublicPostDepositPrerequest(params?: {}): Promise<implicitReturnType>;
67
- v3PublicPostDepositExchangeRates(params?: {}): Promise<implicitReturnType>;
68
- v3SignGetResetPasswordToken(params?: {}): Promise<implicitReturnType>;
69
- v3SignPostSignupGoogle(params?: {}): Promise<implicitReturnType>;
70
- v3SignPostSignupResendConfirmation(params?: {}): Promise<implicitReturnType>;
71
- v3SignPostSignup(params?: {}): Promise<implicitReturnType>;
72
- v3SignPostSignin(params?: {}): Promise<implicitReturnType>;
73
- v3SignPostSigninTwoFactor(params?: {}): Promise<implicitReturnType>;
74
- v3SignPostSigninResendConfirmDevice(params?: {}): Promise<implicitReturnType>;
75
- v3SignPostSigninConfirmDevice(params?: {}): Promise<implicitReturnType>;
76
- v3SignPostResetPassword(params?: {}): Promise<implicitReturnType>;
77
- v3SignPostCoolSignin(params?: {}): Promise<implicitReturnType>;
78
- v3SignPutResetPasswordToken(params?: {}): Promise<implicitReturnType>;
79
- v3SignPutSignupCodeConfirm(params?: {}): Promise<implicitReturnType>;
80
- v3PrivatePostAuthWOrderSubmit(params?: {}): Promise<implicitReturnType>;
81
- v3PrivatePostAuthROrders(params?: {}): Promise<implicitReturnType>;
82
- v3PrivatePostAuthROrdersMarket(params?: {}): Promise<implicitReturnType>;
83
- v3PrivatePostAuthROrdersMarkets(params?: {}): Promise<implicitReturnType>;
84
- v3PrivatePostAuthApiTokensDelete(params?: {}): Promise<implicitReturnType>;
85
- v3PrivatePostAuthApiTokensCreate(params?: {}): Promise<implicitReturnType>;
86
- v3PrivatePostAuthApiTokens(params?: {}): Promise<implicitReturnType>;
87
- v3PrivatePostAuthSigninHistoryUniq(params?: {}): Promise<implicitReturnType>;
88
- v3PrivatePostAuthSigninHistory(params?: {}): Promise<implicitReturnType>;
89
- v3PrivatePostAuthDisableWithdrawConfirmation(params?: {}): Promise<implicitReturnType>;
90
- v3PrivatePostAuthChangePassword(params?: {}): Promise<implicitReturnType>;
91
- v3PrivatePostAuthDepositAddress(params?: {}): Promise<implicitReturnType>;
92
- v3PrivatePostAuthAnnouncementsAccept(params?: {}): Promise<implicitReturnType>;
93
- v3PrivatePostAuthAnnouncementsUnaccepted(params?: {}): Promise<implicitReturnType>;
94
- v3PrivatePostAuthOtpDeactivate(params?: {}): Promise<implicitReturnType>;
95
- v3PrivatePostAuthOtpActivate(params?: {}): Promise<implicitReturnType>;
96
- v3PrivatePostAuthOtpSecret(params?: {}): Promise<implicitReturnType>;
97
- v3PrivatePostAuthROrderMarketOrderIdTrades(params?: {}): Promise<implicitReturnType>;
98
- v3PrivatePostAuthROrdersMarketHist(params?: {}): Promise<implicitReturnType>;
99
- v3PrivatePostAuthROrdersHist(params?: {}): Promise<implicitReturnType>;
100
- v3PrivatePostAuthROrdersHistMarkets(params?: {}): Promise<implicitReturnType>;
101
- v3PrivatePostAuthROrdersDetails(params?: {}): Promise<implicitReturnType>;
102
- v3PrivatePostAuthAssetsHistory(params?: {}): Promise<implicitReturnType>;
103
- v3PrivatePostAuthAssetsHistoryWithdraws(params?: {}): Promise<implicitReturnType>;
104
- v3PrivatePostAuthAssetsHistoryDeposits(params?: {}): Promise<implicitReturnType>;
105
- v3PrivatePostAuthRWallets(params?: {}): Promise<implicitReturnType>;
106
- v3PrivatePostAuthMarketsFavorites(params?: {}): Promise<implicitReturnType>;
107
- v3PrivatePostAuthMarketsFavoritesList(params?: {}): Promise<implicitReturnType>;
108
- v3PrivatePostAuthMeUpdate(params?: {}): Promise<implicitReturnType>;
109
- v3PrivatePostAuthMe(params?: {}): Promise<implicitReturnType>;
110
- v3PrivatePostAuthFundSources(params?: {}): Promise<implicitReturnType>;
111
- v3PrivatePostAuthFundSourcesList(params?: {}): Promise<implicitReturnType>;
112
- v3PrivatePostAuthWithdrawResendConfirmation(params?: {}): Promise<implicitReturnType>;
113
- v3PrivatePostAuthWithdraw(params?: {}): Promise<implicitReturnType>;
114
- v3PrivatePostAuthWithdrawDetails(params?: {}): Promise<implicitReturnType>;
115
- v3PrivatePostAuthWithdrawInfo(params?: {}): Promise<implicitReturnType>;
116
- v3PrivatePostAuthPaymentAddresses(params?: {}): Promise<implicitReturnType>;
117
- v3PrivatePostAuthDepositPrerequest(params?: {}): Promise<implicitReturnType>;
118
- v3PrivatePostAuthDepositExchangeRates(params?: {}): Promise<implicitReturnType>;
119
- v3PrivatePostAuthDeposit(params?: {}): Promise<implicitReturnType>;
120
- v3PrivatePostAuthDepositDetails(params?: {}): Promise<implicitReturnType>;
121
- v3PrivatePostAuthDepositInfo(params?: {}): Promise<implicitReturnType>;
122
- v3PrivatePostAuthKunaCodesCount(params?: {}): Promise<implicitReturnType>;
123
- v3PrivatePostAuthKunaCodesDetails(params?: {}): Promise<implicitReturnType>;
124
- v3PrivatePostAuthKunaCodesEdit(params?: {}): Promise<implicitReturnType>;
125
- v3PrivatePostAuthKunaCodesSendPdf(params?: {}): Promise<implicitReturnType>;
126
- v3PrivatePostAuthKunaCodes(params?: {}): Promise<implicitReturnType>;
127
- v3PrivatePostAuthKunaCodesRedeemedByMe(params?: {}): Promise<implicitReturnType>;
128
- v3PrivatePostAuthKunaCodesIssuedByMe(params?: {}): Promise<implicitReturnType>;
129
- v3PrivatePostAuthPaymentRequestsInvoice(params?: {}): Promise<implicitReturnType>;
130
- v3PrivatePostAuthPaymentRequestsType(params?: {}): Promise<implicitReturnType>;
131
- v3PrivatePostAuthReferralProgramWeeklyEarnings(params?: {}): Promise<implicitReturnType>;
132
- v3PrivatePostAuthReferralProgramStats(params?: {}): Promise<implicitReturnType>;
133
- v3PrivatePostAuthMerchantPayoutServices(params?: {}): Promise<implicitReturnType>;
134
- v3PrivatePostAuthMerchantWithdraw(params?: {}): Promise<implicitReturnType>;
135
- v3PrivatePostAuthMerchantPaymentServices(params?: {}): Promise<implicitReturnType>;
136
- v3PrivatePostAuthMerchantDeposit(params?: {}): Promise<implicitReturnType>;
137
- v3PrivatePostAuthVerificationAuthToken(params?: {}): Promise<implicitReturnType>;
138
- v3PrivatePostAuthKunaidPurchaseCreate(params?: {}): Promise<implicitReturnType>;
139
- v3PrivatePostAuthDevicesList(params?: {}): Promise<implicitReturnType>;
140
- v3PrivatePostAuthSessionsList(params?: {}): Promise<implicitReturnType>;
141
- v3PrivatePostAuthSubscriptionsReactivate(params?: {}): Promise<implicitReturnType>;
142
- v3PrivatePostAuthSubscriptionsCancel(params?: {}): Promise<implicitReturnType>;
143
- v3PrivatePostAuthSubscriptionsProlong(params?: {}): Promise<implicitReturnType>;
144
- v3PrivatePostAuthSubscriptionsCreate(params?: {}): Promise<implicitReturnType>;
145
- v3PrivatePostAuthSubscriptionsList(params?: {}): Promise<implicitReturnType>;
146
- v3PrivatePostAuthKunaIdsList(params?: {}): Promise<implicitReturnType>;
147
- v3PrivatePostOrderCancelMulti(params?: {}): Promise<implicitReturnType>;
148
- v3PrivatePostOrderCancel(params?: {}): Promise<implicitReturnType>;
149
- v3PrivatePutAuthFundSourcesId(params?: {}): Promise<implicitReturnType>;
150
- v3PrivatePutAuthKunaCodesRedeem(params?: {}): Promise<implicitReturnType>;
151
- v3PrivateDeleteAuthMarketsFavorites(params?: {}): Promise<implicitReturnType>;
152
- v3PrivateDeleteAuthFundSources(params?: {}): Promise<implicitReturnType>;
153
- v3PrivateDeleteAuthDevices(params?: {}): Promise<implicitReturnType>;
154
- v3PrivateDeleteAuthDevicesList(params?: {}): Promise<implicitReturnType>;
155
- v3PrivateDeleteAuthSessionsList(params?: {}): Promise<implicitReturnType>;
156
- v3PrivateDeleteAuthSessions(params?: {}): Promise<implicitReturnType>;
157
- publicGetDepth(params?: {}): Promise<implicitReturnType>;
158
- publicGetKWithPendingTrades(params?: {}): Promise<implicitReturnType>;
159
- publicGetK(params?: {}): Promise<implicitReturnType>;
160
- publicGetMarkets(params?: {}): Promise<implicitReturnType>;
161
- publicGetOrderBook(params?: {}): Promise<implicitReturnType>;
162
- publicGetOrderBookMarket(params?: {}): Promise<implicitReturnType>;
163
- publicGetTickers(params?: {}): Promise<implicitReturnType>;
164
- publicGetTickersMarket(params?: {}): Promise<implicitReturnType>;
165
- publicGetTimestamp(params?: {}): Promise<implicitReturnType>;
166
- publicGetTrades(params?: {}): Promise<implicitReturnType>;
167
- publicGetTradesMarket(params?: {}): Promise<implicitReturnType>;
168
- privateGetMembersMe(params?: {}): Promise<implicitReturnType>;
169
- privateGetDeposits(params?: {}): Promise<implicitReturnType>;
170
- privateGetDeposit(params?: {}): Promise<implicitReturnType>;
171
- privateGetDepositAddress(params?: {}): Promise<implicitReturnType>;
172
- privateGetOrders(params?: {}): Promise<implicitReturnType>;
173
- privateGetOrder(params?: {}): Promise<implicitReturnType>;
174
- privateGetTradesMy(params?: {}): Promise<implicitReturnType>;
175
- privateGetWithdraws(params?: {}): Promise<implicitReturnType>;
176
- privateGetWithdraw(params?: {}): Promise<implicitReturnType>;
177
- privatePostOrders(params?: {}): Promise<implicitReturnType>;
178
- privatePostOrdersMulti(params?: {}): Promise<implicitReturnType>;
179
- privatePostOrdersClear(params?: {}): Promise<implicitReturnType>;
180
- privatePostOrderDelete(params?: {}): Promise<implicitReturnType>;
181
- privatePostWithdraw(params?: {}): Promise<implicitReturnType>;
182
- }
183
- declare abstract class Exchange extends _Exchange {
184
- }
185
- export default Exchange;