ccxt 4.1.47 → 4.1.49

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 (114) hide show
  1. package/README.md +124 -124
  2. package/dist/ccxt.browser.js +670 -460
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +6 -1
  5. package/dist/cjs/src/abstract/htx.js +9 -0
  6. package/dist/cjs/src/binance.js +2 -0
  7. package/dist/cjs/src/bitmart.js +183 -62
  8. package/dist/cjs/src/coinex.js +67 -18
  9. package/dist/cjs/src/htx.js +8505 -0
  10. package/dist/cjs/src/huobi.js +5 -8503
  11. package/dist/cjs/src/kraken.js +0 -4
  12. package/dist/cjs/src/mexc.js +21 -21
  13. package/dist/cjs/src/pro/htx.js +2356 -0
  14. package/dist/cjs/src/pro/huobi.js +5 -2345
  15. package/dist/cjs/src/timex.js +1 -1
  16. package/js/ccxt.d.ts +8 -2
  17. package/js/ccxt.js +6 -2
  18. package/js/src/abstract/binance.d.ts +2 -0
  19. package/js/src/abstract/binancecoinm.d.ts +2 -0
  20. package/js/src/abstract/binanceus.d.ts +2 -0
  21. package/js/src/abstract/binanceusdm.d.ts +2 -0
  22. package/js/src/abstract/htx.d.ts +544 -0
  23. package/js/src/abstract/htx.js +11 -0
  24. package/js/src/abstract/huobi.d.ts +4 -4
  25. package/js/src/abstract/huobi.js +3 -3
  26. package/js/src/ace.d.ts +2 -2
  27. package/js/src/ascendex.d.ts +2 -2
  28. package/js/src/base/Exchange.d.ts +2 -2
  29. package/js/src/base/types.d.ts +0 -1
  30. package/js/src/bigone.d.ts +2 -2
  31. package/js/src/binance.d.ts +3 -56
  32. package/js/src/binance.js +2 -0
  33. package/js/src/bingx.d.ts +3 -55
  34. package/js/src/bitbns.d.ts +2 -2
  35. package/js/src/bitfinex.d.ts +2 -2
  36. package/js/src/bitfinex2.d.ts +2 -2
  37. package/js/src/bitget.d.ts +3 -53
  38. package/js/src/bithumb.d.ts +2 -2
  39. package/js/src/bitmart.d.ts +4 -2
  40. package/js/src/bitmart.js +183 -62
  41. package/js/src/bitmex.d.ts +2 -2
  42. package/js/src/bitopro.d.ts +2 -2
  43. package/js/src/bitpanda.d.ts +2 -2
  44. package/js/src/bitrue.d.ts +2 -2
  45. package/js/src/bitstamp.d.ts +2 -2
  46. package/js/src/bittrex.d.ts +2 -2
  47. package/js/src/bitvavo.d.ts +2 -2
  48. package/js/src/blockchaincom.d.ts +2 -2
  49. package/js/src/btcalpha.d.ts +2 -2
  50. package/js/src/btcturk.d.ts +2 -2
  51. package/js/src/bybit.d.ts +2 -2
  52. package/js/src/cex.d.ts +2 -2
  53. package/js/src/coinbase.d.ts +2 -2
  54. package/js/src/coinbasepro.d.ts +2 -2
  55. package/js/src/coinex.d.ts +2 -2
  56. package/js/src/coinex.js +67 -18
  57. package/js/src/coinfalcon.d.ts +2 -2
  58. package/js/src/coinlist.d.ts +2 -2
  59. package/js/src/coinone.d.ts +2 -2
  60. package/js/src/coinsph.d.ts +2 -2
  61. package/js/src/coinspot.d.ts +2 -2
  62. package/js/src/cryptocom.d.ts +2 -2
  63. package/js/src/currencycom.d.ts +2 -2
  64. package/js/src/delta.d.ts +2 -2
  65. package/js/src/deribit.d.ts +2 -2
  66. package/js/src/digifinex.d.ts +2 -2
  67. package/js/src/exmo.d.ts +2 -2
  68. package/js/src/gate.d.ts +2 -2
  69. package/js/src/gemini.d.ts +3 -51
  70. package/js/src/hitbtc.d.ts +2 -2
  71. package/js/src/hollaex.d.ts +2 -2
  72. package/js/src/htx.d.ts +257 -0
  73. package/js/src/htx.js +8506 -0
  74. package/js/src/huobi.d.ts +2 -255
  75. package/js/src/huobi.js +5 -8503
  76. package/js/src/huobijp.d.ts +2 -2
  77. package/js/src/idex.d.ts +2 -2
  78. package/js/src/indodax.d.ts +2 -2
  79. package/js/src/kraken.d.ts +2 -2
  80. package/js/src/kraken.js +0 -4
  81. package/js/src/krakenfutures.d.ts +2 -2
  82. package/js/src/kucoin.d.ts +2 -2
  83. package/js/src/kuna.d.ts +2 -2
  84. package/js/src/latoken.d.ts +2 -2
  85. package/js/src/lbank.d.ts +2 -2
  86. package/js/src/lbank2.d.ts +2 -2
  87. package/js/src/luno.d.ts +2 -2
  88. package/js/src/lykke.d.ts +2 -2
  89. package/js/src/mexc.d.ts +2 -2
  90. package/js/src/mexc.js +21 -21
  91. package/js/src/novadax.d.ts +2 -2
  92. package/js/src/oceanex.d.ts +2 -2
  93. package/js/src/okcoin.d.ts +3 -3
  94. package/js/src/okx.d.ts +3 -3
  95. package/js/src/phemex.d.ts +2 -2
  96. package/js/src/poloniex.d.ts +2 -2
  97. package/js/src/poloniexfutures.d.ts +2 -2
  98. package/js/src/pro/htx.d.ts +45 -0
  99. package/js/src/pro/htx.js +2357 -0
  100. package/js/src/pro/huobi.d.ts +2 -43
  101. package/js/src/pro/huobi.js +5 -2345
  102. package/js/src/probit.d.ts +2 -2
  103. package/js/src/tidex.d.ts +2 -2
  104. package/js/src/timex.d.ts +3 -53
  105. package/js/src/timex.js +1 -1
  106. package/js/src/tokocrypto.d.ts +2 -2
  107. package/js/src/upbit.d.ts +2 -2
  108. package/js/src/wavesexchange.d.ts +2 -2
  109. package/js/src/wazirx.d.ts +2 -2
  110. package/js/src/whitebit.d.ts +2 -2
  111. package/js/src/yobit.d.ts +2 -2
  112. package/js/src/zonda.d.ts +2 -2
  113. package/package.json +1 -1
  114. package/skip-tests.json +4 -4
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/huobijp.js';
2
- import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class huobijp
5
5
  * @extends Exchange
@@ -31,7 +31,7 @@ export default class huobijp extends Exchange {
31
31
  parseTicker(ticker: any, market?: any): Ticker;
32
32
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
33
33
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
34
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
34
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
35
35
  parseTrade(trade: any, market?: any): Trade;
36
36
  fetchOrderTrades(id: string, symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
37
37
  fetchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
package/js/src/idex.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/idex.js';
2
- import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class idex
5
5
  * @extends Exchange
@@ -9,7 +9,7 @@ export default class idex extends Exchange {
9
9
  priceToPrecision(symbol: any, price: any): any;
10
10
  fetchMarkets(params?: {}): Promise<any[]>;
11
11
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
12
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
12
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
13
13
  parseTicker(ticker: any, market?: any): Ticker;
14
14
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
15
15
  parseOHLCV(ohlcv: any, market?: any): OHLCV;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/indodax.js';
2
- import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class indodax
5
5
  * @extends Exchange
@@ -14,7 +14,7 @@ export default class indodax extends Exchange {
14
14
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
15
15
  parseTicker(ticker: any, market?: any): Ticker;
16
16
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
17
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
17
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
18
18
  parseTrade(trade: any, market?: any): Trade;
19
19
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
20
20
  parseOrderStatus(status: any): string;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/kraken.js';
2
- import { Int, OrderSide, OrderType, OHLCV, Trade, Order, Balances, Transaction, Ticker, OrderBook } from './base/types.js';
2
+ import { Int, OrderSide, OrderType, OHLCV, Trade, Order, Balances, Transaction, Ticker, OrderBook, Tickers } from './base/types.js';
3
3
  /**
4
4
  * @class kraken
5
5
  * @extends Exchange
@@ -30,7 +30,7 @@ export default class kraken extends Exchange {
30
30
  parseBidAsk(bidask: any, priceKey?: number, amountKey?: number): number[];
31
31
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
32
32
  parseTicker(ticker: any, market?: any): Ticker;
33
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
33
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
34
34
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
35
35
  parseOHLCV(ohlcv: any, market?: any): OHLCV;
36
36
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
package/js/src/kraken.js CHANGED
@@ -981,7 +981,6 @@ export default class kraken extends Exchange {
981
981
  /**
982
982
  * @method
983
983
  * @name kraken#fetchLedger
984
- * @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getLedgers
985
984
  * @description fetch the history of changes, actions done by the user or operations that altered balance of the user
986
985
  * @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getLedgers
987
986
  * @param {string} code unified currency code, default is undefined
@@ -1957,7 +1956,6 @@ export default class kraken extends Exchange {
1957
1956
  /**
1958
1957
  * @method
1959
1958
  * @name kraken#fetchOpenOrders
1960
- * @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenOrders
1961
1959
  * @description fetch all unfilled currently open orders
1962
1960
  * @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenOrders
1963
1961
  * @param {string} symbol unified market symbol
@@ -1990,7 +1988,6 @@ export default class kraken extends Exchange {
1990
1988
  /**
1991
1989
  * @method
1992
1990
  * @name kraken#fetchClosedOrders
1993
- * @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
1994
1991
  * @description fetches information on multiple closed orders made by the user
1995
1992
  * @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getClosedOrders
1996
1993
  * @param {string} symbol unified market symbol of the market orders were made in
@@ -2191,7 +2188,6 @@ export default class kraken extends Exchange {
2191
2188
  /**
2192
2189
  * @method
2193
2190
  * @name kraken#fetchDeposits
2194
- * @see https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentDeposits
2195
2191
  * @description fetch all deposits made to an account
2196
2192
  * @see https://docs.kraken.com/rest/#tag/Funding/operation/getStatusRecentDeposits
2197
2193
  * @param {string} code unified currency code
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/krakenfutures.js';
2
- import { Int, OrderSide, OrderType, OHLCV, Trade, FundingRateHistory, OrderRequest, Order, Balances, Ticker, OrderBook } from './base/types.js';
2
+ import { Int, OrderSide, OrderType, OHLCV, Trade, FundingRateHistory, OrderRequest, Order, Balances, Ticker, OrderBook, Tickers } from './base/types.js';
3
3
  /**
4
4
  * @class krakenfutures
5
5
  * @extends Exchange
@@ -8,7 +8,7 @@ export default class krakenfutures extends Exchange {
8
8
  describe(): any;
9
9
  fetchMarkets(params?: {}): Promise<any[]>;
10
10
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
11
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
11
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
12
12
  parseTicker(ticker: any, market?: any): Ticker;
13
13
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
14
14
  parseOHLCV(ohlcv: any, market?: any): OHLCV;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/kucoin.js';
2
- import { Int, OrderSide, OrderType, Order, OHLCV, Trade, Balances, OrderRequest, Transaction, Ticker, OrderBook } from './base/types.js';
2
+ import { Int, OrderSide, OrderType, Order, OHLCV, Trade, Balances, OrderRequest, Transaction, Ticker, OrderBook, Tickers } from './base/types.js';
3
3
  /**
4
4
  * @class kucoin
5
5
  * @extends Exchange
@@ -49,7 +49,7 @@ export default class kucoin extends Exchange {
49
49
  };
50
50
  isFuturesMethod(methodName: any, params: any): boolean;
51
51
  parseTicker(ticker: any, market?: any): Ticker;
52
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
52
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
53
53
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
54
54
  parseOHLCV(ohlcv: any, market?: any): OHLCV;
55
55
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
package/js/src/kuna.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/kuna.js';
2
- import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class kuna
5
5
  * @extends Exchange
@@ -37,7 +37,7 @@ export default class kuna extends Exchange {
37
37
  fetchMarkets(params?: {}): Promise<any[]>;
38
38
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
39
39
  parseTicker(ticker: any, market?: any): Ticker;
40
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
40
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
41
41
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
42
42
  fetchL3OrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
43
43
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/latoken.js';
2
- import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class latoken
5
5
  * @extends Exchange
@@ -15,7 +15,7 @@ export default class latoken extends Exchange {
15
15
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
16
16
  parseTicker(ticker: any, market?: any): Ticker;
17
17
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
18
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
18
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
19
19
  parseTrade(trade: any, market?: any): Trade;
20
20
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
21
21
  fetchTradingFee(symbol: string, params?: {}): Promise<any>;
package/js/src/lbank.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/lbank.js';
2
- import { Balances, Int, OHLCV, Order, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, OHLCV, Order, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class lbank
5
5
  * @extends Exchange
@@ -9,7 +9,7 @@ export default class lbank extends Exchange {
9
9
  fetchMarkets(params?: {}): Promise<any[]>;
10
10
  parseTicker(ticker: any, market?: any): Ticker;
11
11
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
12
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
12
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
13
13
  fetchOrderBook(symbol: string, limit?: number, params?: {}): Promise<import("./base/types.js").OrderBook>;
14
14
  parseTrade(trade: any, market?: any): Trade;
15
15
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/lbank2.js';
2
- import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class lbank2
5
5
  * @extends Exchange
@@ -12,7 +12,7 @@ export default class lbank2 extends Exchange {
12
12
  fetchSwapMarkets(params?: {}): Promise<any[]>;
13
13
  parseTicker(ticker: any, market?: any): Ticker;
14
14
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
15
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
15
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
16
16
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
17
17
  parseTrade(trade: any, market?: any): Trade;
18
18
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
package/js/src/luno.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/luno.js';
2
- import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade } from './base/types.js';
2
+ import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade } from './base/types.js';
3
3
  /**
4
4
  * @class luno
5
5
  * @extends Exchange
@@ -19,7 +19,7 @@ export default class luno extends Exchange {
19
19
  fetchOpenOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
20
20
  fetchClosedOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
21
21
  parseTicker(ticker: any, market?: any): Ticker;
22
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
22
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
23
23
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
24
24
  parseTrade(trade: any, market?: any): Trade;
25
25
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
package/js/src/lykke.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/lykke.js';
2
- import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class lykke
5
5
  * @extends Exchange
@@ -10,7 +10,7 @@ export default class lykke extends Exchange {
10
10
  fetchMarkets(params?: {}): Promise<any[]>;
11
11
  parseTicker(ticker: any, market?: any): Ticker;
12
12
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
13
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
13
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
14
14
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
15
15
  parseTrade(trade: any, market?: any): Trade;
16
16
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
package/js/src/mexc.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/mexc.js';
2
- import { IndexType, Int, OrderSide, Balances, OrderType, OHLCV, FundingRateHistory, Position, OrderBook, OrderRequest, FundingHistory, Order, Trade, Transaction, Ticker } from './base/types.js';
2
+ import { IndexType, Int, OrderSide, Balances, OrderType, OHLCV, FundingRateHistory, Position, OrderBook, OrderRequest, FundingHistory, Order, Trade, Transaction, Ticker, Tickers } from './base/types.js';
3
3
  /**
4
4
  * @class mexc
5
5
  * @extends Exchange
@@ -26,7 +26,7 @@ export default class mexc extends Exchange {
26
26
  syntheticTradeId(market?: any, timestamp?: any, side?: any, amount?: any, price?: any, orderType?: any, takerOrMaker?: any): string;
27
27
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
28
28
  parseOHLCV(ohlcv: any, market?: any): OHLCV;
29
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
29
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
30
30
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
31
31
  parseTicker(ticker: any, market?: any): Ticker;
32
32
  fetchBidsAsks(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
package/js/src/mexc.js CHANGED
@@ -133,8 +133,8 @@ export default class mexc extends Exchange {
133
133
  },
134
134
  'www': 'https://www.mexc.com/',
135
135
  'doc': [
136
- 'https://mxcdevelop.github.io/apidocs/spot_v3_en/',
137
- 'https://mxcdevelop.github.io/APIDoc/', // v1 & v2 : soon to be deprecated
136
+ 'https://mexcdevelop.github.io/apidocs/spot_v3_en/',
137
+ 'https://mexcdevelop.github.io/APIDoc/', // v1 & v2 : soon to be deprecated
138
138
  ],
139
139
  'fees': [
140
140
  'https://www.mexc.com/fee',
@@ -886,7 +886,7 @@ export default class mexc extends Exchange {
886
886
  * @method
887
887
  * @name mexc3#fetchCurrencies
888
888
  * @description fetches all available currencies on an exchange
889
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
889
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
890
890
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
891
891
  * @returns {object} an associative dictionary of currencies
892
892
  */
@@ -1286,8 +1286,8 @@ export default class mexc extends Exchange {
1286
1286
  /**
1287
1287
  * @method
1288
1288
  * @name mexc3#fetchOrderBook
1289
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#order-book
1290
- * @see https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-s-depth-information
1289
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#order-book
1290
+ * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-the-contract-s-depth-information
1291
1291
  * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
1292
1292
  * @param {string} symbol unified symbol of the market to fetch the order book for
1293
1293
  * @param {int} [limit] the maximum amount of order book entries to return
@@ -3535,9 +3535,9 @@ export default class mexc extends Exchange {
3535
3535
  * @method
3536
3536
  * @name mexc3#fetchBalance
3537
3537
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
3538
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#account-information
3539
- * @see https://mxcdevelop.github.io/apidocs/contract_v1_en/#get-all-informations-of-user-39-s-asset
3540
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#isolated-account
3538
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#account-information
3539
+ * @see https://mexcdevelop.github.io/apidocs/contract_v1_en/#get-all-informations-of-user-39-s-asset
3540
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#isolated-account
3541
3541
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3542
3542
  * @param {string} [params.symbols] // required for margin, market id's separated by commas
3543
3543
  * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
@@ -4234,7 +4234,7 @@ export default class mexc extends Exchange {
4234
4234
  * @method
4235
4235
  * @name mexc3#fetchDepositAddressesByNetwork
4236
4236
  * @description fetch a dictionary of addresses for a currency, indexed by network
4237
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4237
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4238
4238
  * @param {string} code unified currency code of the currency for the deposit address
4239
4239
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4240
4240
  * @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
@@ -4273,7 +4273,7 @@ export default class mexc extends Exchange {
4273
4273
  /**
4274
4274
  * @method
4275
4275
  * @name mexc3#createDepositAddress
4276
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#generate-deposit-address-supporting-network
4276
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#generate-deposit-address-supporting-network
4277
4277
  * @description create a currency deposit address
4278
4278
  * @param {string} code unified currency code of the currency for the deposit address
4279
4279
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
@@ -4314,7 +4314,7 @@ export default class mexc extends Exchange {
4314
4314
  * @method
4315
4315
  * @name mexc3#fetchDepositAddress
4316
4316
  * @description fetch the deposit address for a currency associated with this account
4317
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4317
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4318
4318
  * @param {string} code unified currency code
4319
4319
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4320
4320
  * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
@@ -4342,7 +4342,7 @@ export default class mexc extends Exchange {
4342
4342
  * @method
4343
4343
  * @name mexc3#fetchDeposits
4344
4344
  * @description fetch all deposits made to an account
4345
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-history-supporting-network
4345
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-history-supporting-network
4346
4346
  * @param {string} code unified currency code
4347
4347
  * @param {int} [since] the earliest time in ms to fetch deposits for
4348
4348
  * @param {int} [limit] the maximum number of deposits structures to retrieve
@@ -4402,7 +4402,7 @@ export default class mexc extends Exchange {
4402
4402
  * @method
4403
4403
  * @name mexc3#fetchWithdrawals
4404
4404
  * @description fetch all withdrawals made from an account
4405
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#withdraw-history-supporting-network
4405
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#withdraw-history-supporting-network
4406
4406
  * @param {string} code unified currency code
4407
4407
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
4408
4408
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
@@ -4821,7 +4821,7 @@ export default class mexc extends Exchange {
4821
4821
  * @method
4822
4822
  * @name mexc3#transfer
4823
4823
  * @description transfer currency internally between wallets on the same account
4824
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#user-universal-transfer
4824
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#user-universal-transfer
4825
4825
  * @param {string} code unified currency code
4826
4826
  * @param {float} amount amount to transfer
4827
4827
  * @param {string} fromAccount account to transfer from
@@ -4954,7 +4954,7 @@ export default class mexc extends Exchange {
4954
4954
  * @method
4955
4955
  * @name mexc3#withdraw
4956
4956
  * @description make a withdrawal
4957
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#withdraw
4957
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#withdraw
4958
4958
  * @param {string} code unified currency code
4959
4959
  * @param {float} amount the amount to withdraw
4960
4960
  * @param {string} address the address to withdraw to
@@ -4964,7 +4964,7 @@ export default class mexc extends Exchange {
4964
4964
  */
4965
4965
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
4966
4966
  const networks = this.safeValue(this.options, 'networks', {});
4967
- let network = this.safeStringUpper2(params, 'network', 'chain'); // this line allows the user to specify either ERC20 or ETH
4967
+ let network = this.safeString2(params, 'network', 'chain'); // this line allows the user to specify either ERC20 or ETH
4968
4968
  network = this.safeString(networks, network, network); // handle ETH > ERC-20 alias
4969
4969
  this.checkAddress(address);
4970
4970
  await this.loadMarkets();
@@ -4979,7 +4979,7 @@ export default class mexc extends Exchange {
4979
4979
  }
4980
4980
  if (network !== undefined) {
4981
4981
  request['network'] = network;
4982
- params = this.omit(params, 'network');
4982
+ params = this.omit(params, ['network', 'chain']);
4983
4983
  }
4984
4984
  const response = await this.spotPrivatePostCapitalWithdrawApply(this.extend(request, params));
4985
4985
  //
@@ -5022,7 +5022,7 @@ export default class mexc extends Exchange {
5022
5022
  * @method
5023
5023
  * @name mexc3#borrowMargin
5024
5024
  * @description create a loan to borrow margin
5025
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#loan
5025
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#loan
5026
5026
  * @param {string} code unified currency code of the currency to borrow
5027
5027
  * @param {float} amount the amount to borrow
5028
5028
  * @param {string} symbol unified market symbol
@@ -5055,7 +5055,7 @@ export default class mexc extends Exchange {
5055
5055
  * @method
5056
5056
  * @name mexc3#repayMargin
5057
5057
  * @description repay borrowed margin and interest
5058
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#repayment
5058
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#repayment
5059
5059
  * @param {string} code unified currency code of the currency to repay
5060
5060
  * @param {float} amount the amount to repay
5061
5061
  * @param {string} symbol unified market symbol
@@ -5094,7 +5094,7 @@ export default class mexc extends Exchange {
5094
5094
  * @method
5095
5095
  * @name mexc3#fetchTransactionFees
5096
5096
  * @description fetch deposit and withdrawal fees
5097
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5097
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5098
5098
  * @param {string[]|undefined} codes returns fees for all currencies if undefined
5099
5099
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
5100
5100
  * @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
@@ -5192,7 +5192,7 @@ export default class mexc extends Exchange {
5192
5192
  * @method
5193
5193
  * @name mexc3#fetchDepositWithdrawFees
5194
5194
  * @description fetch deposit and withdrawal fees
5195
- * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5195
+ * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5196
5196
  * @param {string[]|undefined} codes returns fees for all currencies if undefined
5197
5197
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
5198
5198
  * @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/novadax.js';
2
- import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class novadax
5
5
  * @extends Exchange
@@ -10,7 +10,7 @@ export default class novadax extends Exchange {
10
10
  fetchMarkets(params?: {}): Promise<any[]>;
11
11
  parseTicker(ticker: any, market?: any): Ticker;
12
12
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
13
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
13
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
14
14
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
15
15
  parseTrade(trade: any, market?: any): Trade;
16
16
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/oceanex.js';
2
- import { Balances, Dictionary, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade } from './base/types.js';
2
+ import { Balances, Dictionary, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade } from './base/types.js';
3
3
  /**
4
4
  * @class oceanex
5
5
  * @extends Exchange
@@ -8,7 +8,7 @@ export default class oceanex extends Exchange {
8
8
  describe(): any;
9
9
  fetchMarkets(params?: {}): Promise<any[]>;
10
10
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
11
- fetchTickers(symbols?: string[], params?: {}): Promise<Dictionary<Ticker>>;
11
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
12
12
  parseTicker(data: any, market?: any): Ticker;
13
13
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
14
14
  fetchOrderBooks(symbols?: string[], limit?: Int, params?: {}): Promise<Dictionary<OrderBook>>;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/okcoin.js';
2
- import { Balances, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, Int, Market, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class okcoin
5
5
  * @extends Exchange
@@ -9,13 +9,13 @@ export default class okcoin extends Exchange {
9
9
  fetchTime(params?: {}): Promise<number>;
10
10
  fetchMarkets(params?: {}): Promise<any[]>;
11
11
  parseMarkets(markets: any): any[];
12
- parseMarket(market: any): any;
12
+ parseMarket(market: any): Market;
13
13
  safeNetwork(networkId: any): string;
14
14
  fetchCurrencies(params?: {}): Promise<{}>;
15
15
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
16
16
  parseTicker(ticker: any, market?: any): Ticker;
17
17
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
18
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
18
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
19
19
  parseTrade(trade: any, market?: any): Trade;
20
20
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
21
21
  parseOHLCV(ohlcv: any, market?: any): OHLCV;
package/js/src/okx.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/okx.js';
2
- import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Transaction, Ticker, OrderBook, Balances } from './base/types.js';
2
+ import { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Transaction, Ticker, OrderBook, Balances, Tickers, Market } from './base/types.js';
3
3
  /**
4
4
  * @class okx
5
5
  * @extends Exchange
@@ -66,7 +66,7 @@ export default class okx extends Exchange {
66
66
  fetchAccounts(params?: {}): Promise<any[]>;
67
67
  fetchMarkets(params?: {}): Promise<any[]>;
68
68
  parseMarkets(markets: any): any[];
69
- parseMarket(market: any): any;
69
+ parseMarket(market: any): Market;
70
70
  fetchMarketsByType(type: any, params?: {}): Promise<any[]>;
71
71
  safeNetwork(networkId: any): string;
72
72
  fetchCurrencies(params?: {}): Promise<{}>;
@@ -74,7 +74,7 @@ export default class okx extends Exchange {
74
74
  parseTicker(ticker: any, market?: any): Ticker;
75
75
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
76
76
  fetchTickersByType(type: any, symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
77
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
77
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
78
78
  parseTrade(trade: any, market?: any): Trade;
79
79
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
80
80
  parseOHLCV(ohlcv: any, market?: any): OHLCV;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/phemex.js';
2
- import { Balances, FundingHistory, FundingRateHistory, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade, Transaction } from './base/types.js';
2
+ import { Balances, FundingHistory, FundingRateHistory, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade, Transaction } from './base/types.js';
3
3
  /**
4
4
  * @class phemex
5
5
  * @extends Exchange
@@ -131,7 +131,7 @@ export default class phemex extends Exchange {
131
131
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
132
132
  parseTicker(ticker: any, market?: any): Ticker;
133
133
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
134
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
134
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
135
135
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
136
136
  parseTrade(trade: any, market?: any): Trade;
137
137
  parseSpotBalance(response: any): Balances;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/poloniex.js';
2
- import { Int, OrderSide, OrderType, OHLCV, Trade, OrderBook, Order, Balances, Transaction, Ticker } from './base/types.js';
2
+ import { Int, OrderSide, OrderType, OHLCV, Trade, OrderBook, Order, Balances, Transaction, Ticker, Tickers } from './base/types.js';
3
3
  /**
4
4
  * @class poloniex
5
5
  * @extends Exchange
@@ -12,7 +12,7 @@ export default class poloniex extends Exchange {
12
12
  fetchMarkets(params?: {}): Promise<any[]>;
13
13
  fetchTime(params?: {}): Promise<number>;
14
14
  parseTicker(ticker: any, market?: any): Ticker;
15
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
15
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
16
16
  fetchCurrencies(params?: {}): Promise<{}>;
17
17
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
18
18
  parseTrade(trade: any, market?: any): Trade;
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/poloniexfutures.js';
2
- import { Balances, FundingHistory, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Trade } from './base/types.js';
2
+ import { Balances, FundingHistory, Int, OHLCV, Order, OrderBook, OrderSide, OrderType, Ticker, Tickers, Trade } from './base/types.js';
3
3
  /**
4
4
  * @class poloniexfutures
5
5
  * @extends Exchange
@@ -9,7 +9,7 @@ export default class poloniexfutures extends Exchange {
9
9
  fetchMarkets(params?: {}): Promise<any[]>;
10
10
  parseTicker(ticker: any, market?: any): Ticker;
11
11
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
12
- fetchTickers(symbols?: string[], params?: {}): Promise<import("./base/types.js").Dictionary<Ticker>>;
12
+ fetchTickers(symbols?: string[], params?: {}): Promise<Tickers>;
13
13
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
14
14
  fetchL3OrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
15
15
  parseTrade(trade: any, market?: any): Trade;
@@ -0,0 +1,45 @@
1
+ import htxRest from '../htx.js';
2
+ import { Int } from '../base/types.js';
3
+ import Client from '../base/ws/Client.js';
4
+ export default class htx extends htxRest {
5
+ describe(): any;
6
+ requestId(): any;
7
+ watchTicker(symbol: string, params?: {}): Promise<any>;
8
+ handleTicker(client: Client, message: any): any;
9
+ watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
10
+ handleTrades(client: Client, message: any): any;
11
+ watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
12
+ handleOHLCV(client: Client, message: any): void;
13
+ watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
14
+ handleOrderBookSnapshot(client: Client, message: any, subscription: any): void;
15
+ watchOrderBookSnapshot(client: any, message: any, subscription: any): Promise<any>;
16
+ handleDelta(bookside: any, delta: any): void;
17
+ handleDeltas(bookside: any, deltas: any): void;
18
+ handleOrderBookMessage(client: Client, message: any, orderbook: any): any;
19
+ handleOrderBook(client: Client, message: any): void;
20
+ handleOrderBookSubscription(client: Client, message: any, subscription: any): void;
21
+ watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
22
+ getOrderChannelAndMessageHash(type: any, subType: any, market?: any, params?: {}): any[];
23
+ watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
24
+ handleOrder(client: Client, message: any): void;
25
+ parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
26
+ parseOrderTrade(trade: any, market?: any): import("../base/types.js").Trade;
27
+ watchPositions(symbols?: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
28
+ handlePositions(client: any, message: any): void;
29
+ watchBalance(params?: {}): Promise<any>;
30
+ handleBalance(client: Client, message: any): void;
31
+ handleSubscriptionStatus(client: Client, message: any): any;
32
+ handleSystemStatus(client: Client, message: any): any;
33
+ handleSubject(client: Client, message: any): any;
34
+ pong(client: any, message: any): Promise<void>;
35
+ handlePing(client: Client, message: any): void;
36
+ handleAuthenticate(client: Client, message: any): void;
37
+ handleErrorMessage(client: Client, message: any): any;
38
+ handleMessage(client: Client, message: any): void;
39
+ handleMyTrade(client: Client, message: any, extendParams?: {}): void;
40
+ parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
41
+ getUrlByMarketType(type: any, isLinear?: boolean, isPrivate?: boolean): any;
42
+ subscribePublic(url: any, symbol: any, messageHash: any, method?: any, params?: {}): Promise<any>;
43
+ subscribePrivate(channel: any, messageHash: any, type: any, subtype: any, params?: {}, subscriptionParams?: {}): Promise<any>;
44
+ authenticate(params?: {}): Promise<any>;
45
+ }