ccxt 4.1.52 → 4.1.54

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 (207) hide show
  1. package/README.md +9 -10
  2. package/dist/ccxt.browser.js +3517 -3374
  3. package/dist/ccxt.browser.min.js +10 -10
  4. package/dist/cjs/ccxt.js +4 -7
  5. package/dist/cjs/src/abstract/p2b.js +9 -0
  6. package/dist/cjs/src/ace.js +56 -59
  7. package/dist/cjs/src/ascendex.js +1 -2
  8. package/dist/cjs/src/base/Exchange.js +11 -17
  9. package/dist/cjs/src/bingx.js +48 -8
  10. package/dist/cjs/src/bitget.js +670 -405
  11. package/dist/cjs/src/bybit.js +2 -11
  12. package/dist/cjs/src/cryptocom.js +1 -0
  13. package/dist/cjs/src/digifinex.js +9 -6
  14. package/dist/cjs/src/lbank.js +2333 -443
  15. package/dist/cjs/src/ndax.js +59 -61
  16. package/dist/cjs/src/novadax.js +57 -59
  17. package/dist/cjs/src/oceanex.js +58 -60
  18. package/dist/cjs/src/okcoin.js +1 -9
  19. package/dist/cjs/src/okx.js +0 -7
  20. package/dist/cjs/src/p2b.js +1246 -0
  21. package/dist/cjs/src/poloniex.js +55 -57
  22. package/dist/cjs/src/poloniexfutures.js +67 -70
  23. package/dist/cjs/src/pro/bingx.js +18 -11
  24. package/dist/cjs/src/pro/poloniexfutures.js +9 -0
  25. package/dist/cjs/src/probit.js +62 -65
  26. package/dist/cjs/src/timex.js +1 -5
  27. package/dist/cjs/src/upbit.js +56 -58
  28. package/dist/cjs/src/wazirx.js +72 -74
  29. package/dist/cjs/src/whitebit.js +88 -91
  30. package/dist/cjs/src/woo.js +75 -77
  31. package/dist/cjs/src/zaif.js +57 -71
  32. package/dist/cjs/src/zonda.js +67 -70
  33. package/js/ccxt.d.ts +5 -8
  34. package/js/ccxt.js +4 -6
  35. package/js/src/abstract/bitget.d.ts +495 -254
  36. package/js/src/abstract/bybit.d.ts +1 -0
  37. package/js/src/abstract/lbank.d.ts +57 -15
  38. package/js/src/abstract/p2b.d.ts +25 -0
  39. package/js/src/ace.d.ts +9 -8
  40. package/js/src/ace.js +56 -59
  41. package/js/src/alpaca.d.ts +5 -5
  42. package/js/src/ascendex.d.ts +17 -17
  43. package/js/src/ascendex.js +1 -2
  44. package/js/src/base/Exchange.d.ts +5 -5
  45. package/js/src/base/Exchange.js +11 -17
  46. package/js/src/base/types.d.ts +73 -68
  47. package/js/src/bigone.d.ts +12 -12
  48. package/js/src/binance.d.ts +37 -37
  49. package/js/src/bingx.d.ts +20 -20
  50. package/js/src/bingx.js +48 -8
  51. package/js/src/bit2c.d.ts +5 -5
  52. package/js/src/bitbank.d.ts +6 -6
  53. package/js/src/bitbns.d.ts +8 -8
  54. package/js/src/bitfinex.d.ts +11 -11
  55. package/js/src/bitfinex2.d.ts +15 -15
  56. package/js/src/bitflyer.d.ts +10 -10
  57. package/js/src/bitforex.d.ts +6 -6
  58. package/js/src/bitget.d.ts +28 -28
  59. package/js/src/bitget.js +670 -405
  60. package/js/src/bithumb.d.ts +5 -5
  61. package/js/src/bitmart.d.ts +23 -23
  62. package/js/src/bitmex.d.ts +19 -19
  63. package/js/src/bitopro.d.ts +15 -15
  64. package/js/src/bitpanda.d.ts +13 -13
  65. package/js/src/bitrue.d.ts +12 -12
  66. package/js/src/bitso.d.ts +13 -13
  67. package/js/src/bitstamp.d.ts +12 -12
  68. package/js/src/bitstamp1.d.ts +4 -4
  69. package/js/src/bittrex.d.ts +18 -18
  70. package/js/src/bitvavo.d.ts +11 -11
  71. package/js/src/bl3p.d.ts +2 -2
  72. package/js/src/blockchaincom.d.ts +14 -14
  73. package/js/src/btcalpha.d.ts +11 -11
  74. package/js/src/btcbox.d.ts +6 -6
  75. package/js/src/btcmarkets.d.ts +13 -13
  76. package/js/src/btcturk.d.ts +7 -7
  77. package/js/src/bybit.d.ts +33 -33
  78. package/js/src/bybit.js +2 -11
  79. package/js/src/cex.d.ts +7 -7
  80. package/js/src/coinbase.d.ts +21 -21
  81. package/js/src/coinbasepro.d.ts +14 -14
  82. package/js/src/coincheck.d.ts +6 -6
  83. package/js/src/coinex.d.ts +24 -24
  84. package/js/src/coinlist.d.ts +16 -16
  85. package/js/src/coinmate.d.ts +7 -7
  86. package/js/src/coinone.d.ts +6 -6
  87. package/js/src/coinsph.d.ts +11 -11
  88. package/js/src/coinspot.d.ts +4 -4
  89. package/js/src/cryptocom.d.ts +19 -19
  90. package/js/src/cryptocom.js +1 -0
  91. package/js/src/currencycom.d.ts +12 -12
  92. package/js/src/delta.d.ts +14 -14
  93. package/js/src/deribit.d.ts +16 -16
  94. package/js/src/digifinex.d.ts +22 -22
  95. package/js/src/digifinex.js +9 -6
  96. package/js/src/exmo.d.ts +15 -15
  97. package/js/src/gate.d.ts +25 -25
  98. package/js/src/gemini.d.ts +7 -7
  99. package/js/src/hitbtc.d.ts +20 -20
  100. package/js/src/hollaex.d.ts +16 -16
  101. package/js/src/htx.d.ts +34 -34
  102. package/js/src/huobijp.d.ts +18 -18
  103. package/js/src/idex.d.ts +14 -14
  104. package/js/src/independentreserve.d.ts +6 -6
  105. package/js/src/indodax.d.ts +7 -7
  106. package/js/src/kraken.d.ts +18 -18
  107. package/js/src/krakenfutures.d.ts +14 -14
  108. package/js/src/kucoin.d.ts +17 -17
  109. package/js/src/kucoinfutures.d.ts +12 -12
  110. package/js/src/kuna.d.ts +13 -13
  111. package/js/src/latoken.d.ts +10 -10
  112. package/js/src/lbank.d.ts +66 -13
  113. package/js/src/lbank.js +2334 -444
  114. package/js/src/lbank2.d.ts +11 -11
  115. package/js/src/luno.d.ts +11 -11
  116. package/js/src/lykke.d.ts +9 -9
  117. package/js/src/mercado.d.ts +6 -6
  118. package/js/src/mexc.d.ts +28 -28
  119. package/js/src/ndax.d.ts +13 -12
  120. package/js/src/ndax.js +59 -61
  121. package/js/src/novadax.d.ts +14 -13
  122. package/js/src/novadax.js +57 -59
  123. package/js/src/oceanex.d.ts +12 -11
  124. package/js/src/oceanex.js +58 -60
  125. package/js/src/okcoin.d.ts +13 -14
  126. package/js/src/okcoin.js +1 -9
  127. package/js/src/okx.d.ts +30 -31
  128. package/js/src/okx.js +0 -7
  129. package/js/src/p2b.d.ts +34 -0
  130. package/js/src/p2b.js +1246 -0
  131. package/js/src/paymium.d.ts +2 -2
  132. package/js/src/phemex.d.ts +19 -19
  133. package/js/src/poloniex.d.ts +17 -16
  134. package/js/src/poloniex.js +55 -57
  135. package/js/src/poloniexfutures.d.ts +13 -12
  136. package/js/src/poloniexfutures.js +67 -70
  137. package/js/src/pro/alpaca.d.ts +3 -3
  138. package/js/src/pro/ascendex.d.ts +2 -2
  139. package/js/src/pro/binance.d.ts +12 -12
  140. package/js/src/pro/bingx.d.ts +3 -3
  141. package/js/src/pro/bingx.js +19 -12
  142. package/js/src/pro/bitfinex.d.ts +3 -3
  143. package/js/src/pro/bitfinex2.d.ts +3 -3
  144. package/js/src/pro/bitget.d.ts +5 -5
  145. package/js/src/pro/bitmart.d.ts +2 -2
  146. package/js/src/pro/bitmex.d.ts +3 -3
  147. package/js/src/pro/bitpanda.d.ts +5 -5
  148. package/js/src/pro/bitrue.d.ts +2 -2
  149. package/js/src/pro/bitstamp.d.ts +2 -2
  150. package/js/src/pro/bittrex.d.ts +3 -3
  151. package/js/src/pro/bitvavo.d.ts +3 -3
  152. package/js/src/pro/blockchaincom.d.ts +2 -2
  153. package/js/src/pro/bybit.d.ts +7 -7
  154. package/js/src/pro/cex.d.ts +4 -4
  155. package/js/src/pro/coinbasepro.d.ts +6 -6
  156. package/js/src/pro/coinex.d.ts +3 -3
  157. package/js/src/pro/cryptocom.d.ts +7 -7
  158. package/js/src/pro/deribit.d.ts +3 -3
  159. package/js/src/pro/exmo.d.ts +2 -2
  160. package/js/src/pro/gate.d.ts +6 -6
  161. package/js/src/pro/gemini.d.ts +2 -2
  162. package/js/src/pro/hitbtc.d.ts +5 -5
  163. package/js/src/pro/hollaex.d.ts +3 -3
  164. package/js/src/pro/htx.d.ts +4 -4
  165. package/js/src/pro/idex.d.ts +3 -3
  166. package/js/src/pro/kraken.d.ts +8 -8
  167. package/js/src/pro/krakenfutures.d.ts +6 -6
  168. package/js/src/pro/kucoin.d.ts +4 -4
  169. package/js/src/pro/kucoinfutures.d.ts +3 -3
  170. package/js/src/pro/mexc.d.ts +3 -3
  171. package/js/src/pro/okcoin.d.ts +2 -2
  172. package/js/src/pro/okx.d.ts +9 -9
  173. package/js/src/pro/phemex.d.ts +3 -3
  174. package/js/src/pro/poloniex.d.ts +4 -4
  175. package/js/src/pro/poloniexfutures.d.ts +3 -3
  176. package/js/src/pro/poloniexfutures.js +9 -0
  177. package/js/src/pro/probit.d.ts +3 -3
  178. package/js/src/pro/wazirx.d.ts +4 -4
  179. package/js/src/pro/whitebit.d.ts +3 -3
  180. package/js/src/pro/woo.d.ts +3 -3
  181. package/js/src/probit.d.ts +13 -12
  182. package/js/src/probit.js +62 -65
  183. package/js/src/tidex.d.ts +7 -7
  184. package/js/src/timex.d.ts +11 -11
  185. package/js/src/timex.js +1 -5
  186. package/js/src/tokocrypto.d.ts +11 -11
  187. package/js/src/upbit.d.ts +13 -12
  188. package/js/src/upbit.js +56 -58
  189. package/js/src/wavesexchange.d.ts +10 -10
  190. package/js/src/wazirx.d.ts +8 -7
  191. package/js/src/wazirx.js +72 -74
  192. package/js/src/whitebit.d.ts +15 -14
  193. package/js/src/whitebit.js +88 -91
  194. package/js/src/woo.d.ts +22 -21
  195. package/js/src/woo.js +75 -77
  196. package/js/src/yobit.d.ts +7 -7
  197. package/js/src/zaif.d.ts +6 -5
  198. package/js/src/zaif.js +57 -71
  199. package/js/src/zonda.d.ts +8 -7
  200. package/js/src/zonda.js +67 -70
  201. package/package.json +1 -1
  202. package/skip-tests.json +7 -15
  203. package/test.ts +0 -0
  204. package/js/src/abstract/bitstamp1.d.ts +0 -26
  205. package/js/src/abstract/lbank2.d.ts +0 -64
  206. package/js/src/abstract/lbank2.js +0 -11
  207. /package/js/src/abstract/{bitstamp1.js → p2b.js} +0 -0
@@ -6,7 +6,7 @@
6
6
 
7
7
  // ---------------------------------------------------------------------------
8
8
  import bingxRest from '../bingx.js';
9
- import { BadRequest } from '../base/errors.js';
9
+ import { BadRequest, NetworkError } from '../base/errors.js';
10
10
  import { ArrayCache, ArrayCacheByTimestamp, ArrayCacheBySymbolById } from '../base/ws/Cache.js';
11
11
  // ---------------------------------------------------------------------------
12
12
  export default class bingx extends bingxRest {
@@ -302,11 +302,12 @@ export default class bingx extends bingxRest {
302
302
  // "h": "28915.4",
303
303
  // "l": "28896.1",
304
304
  // "v": "27.6919",
305
- // "T": 1690907580000
305
+ // "T": 1696687499999,
306
+ // "t": 1696687440000
306
307
  // }
307
308
  //
308
309
  return [
309
- this.safeInteger(ohlcv, 'T'),
310
+ this.safeInteger(ohlcv, 't'),
310
311
  this.safeNumber(ohlcv, 'o'),
311
312
  this.safeNumber(ohlcv, 'h'),
312
313
  this.safeNumber(ohlcv, 'l'),
@@ -600,16 +601,22 @@ export default class bingx extends bingxRest {
600
601
  // swap
601
602
  // Ping
602
603
  //
603
- if (message === 'Ping') {
604
- await client.send('Pong');
604
+ try {
605
+ if (message === 'Ping') {
606
+ await client.send('Pong');
607
+ }
608
+ else {
609
+ const ping = this.safeString(message, 'ping');
610
+ const time = this.safeString(message, 'time');
611
+ await client.send({
612
+ 'pong': ping,
613
+ 'time': time,
614
+ });
615
+ }
605
616
  }
606
- else {
607
- const ping = this.safeString(message, 'ping');
608
- const time = this.safeString(message, 'time');
609
- await client.send({
610
- 'pong': ping,
611
- 'time': time,
612
- });
617
+ catch (e) {
618
+ const error = new NetworkError(this.id + ' pong failed with error ' + this.json(e));
619
+ client.reset(error);
613
620
  }
614
621
  }
615
622
  handleOrder(client, message) {
@@ -1,5 +1,5 @@
1
1
  import bitfinexRest from '../bitfinex.js';
2
- import { Int, Trade } from '../base/types.js';
2
+ import { Int, Str, Trade } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bitfinex extends bitfinexRest {
5
5
  describe(): any;
@@ -16,8 +16,8 @@ export default class bitfinex extends bitfinexRest {
16
16
  handleSubscriptionStatus(client: Client, message: any): any;
17
17
  authenticate(params?: {}): Promise<any>;
18
18
  handleAuthenticationMessage(client: Client, message: any): void;
19
- watchOrder(id: any, symbol?: string, params?: {}): Promise<any>;
20
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
19
+ watchOrder(id: any, symbol?: Str, params?: {}): Promise<any>;
20
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
21
21
  handleOrders(client: Client, message: any, subscription: any): void;
22
22
  parseWsOrderStatus(status: any): string;
23
23
  handleOrder(client: Client, order: any): import("../base/types.js").Order;
@@ -1,5 +1,5 @@
1
1
  import bitfinex2Rest from '../bitfinex2.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bitfinex2 extends bitfinex2Rest {
5
5
  describe(): any;
@@ -8,7 +8,7 @@ export default class bitfinex2 extends bitfinex2Rest {
8
8
  watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
9
9
  handleOHLCV(client: Client, message: any, subscription: any): void;
10
10
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
11
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
11
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
12
12
  watchTicker(symbol: string, params?: {}): Promise<any>;
13
13
  handleMyTrade(client: Client, message: any, subscription?: {}): void;
14
14
  handleTrades(client: Client, message: any, subscription: any): any;
@@ -25,7 +25,7 @@ export default class bitfinex2 extends bitfinex2Rest {
25
25
  handleSubscriptionStatus(client: Client, message: any): any;
26
26
  authenticate(params?: {}): Promise<any>;
27
27
  handleAuthenticationMessage(client: Client, message: any): void;
28
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
28
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
29
29
  handleOrders(client: Client, message: any, subscription: any): void;
30
30
  parseWsOrderStatus(status: any): string;
31
31
  parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
@@ -1,5 +1,5 @@
1
1
  import bitgetRest from '../bitget.js';
2
- import { Int, OHLCV } from '../base/types.js';
2
+ import { Int, OHLCV, Str, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  /**
5
5
  * @class bitget
@@ -11,7 +11,7 @@ export default class bitget extends bitgetRest {
11
11
  getWsMarketId(market: any): any;
12
12
  getMarketIdFromArg(arg: any): string;
13
13
  watchTicker(symbol: string, params?: {}): Promise<any>;
14
- watchTickers(symbols?: string[], params?: {}): Promise<any>;
14
+ watchTickers(symbols?: Strings, params?: {}): Promise<any>;
15
15
  handleTicker(client: Client, message: any): any;
16
16
  parseWsTicker(message: any, market?: any): import("../base/types.js").Ticker;
17
17
  watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
@@ -27,14 +27,14 @@ export default class bitget extends bitgetRest {
27
27
  watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
28
28
  handleTrades(client: Client, message: any): void;
29
29
  parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
30
- watchPositions(symbols?: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
30
+ watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
31
31
  handlePositions(client: Client, message: any): void;
32
32
  parseWsPosition(position: any, market?: any): import("../base/types.js").Position;
33
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
33
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
34
34
  handleOrder(client: Client, message: any, subscription?: any): void;
35
35
  parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
36
36
  parseWsOrderStatus(status: any): string;
37
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
37
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
38
38
  handleMyTrades(client: Client, message: any): void;
39
39
  parseWsMyTrade(trade: any, market?: any): import("../base/types.js").Trade;
40
40
  watchBalance(params?: {}): Promise<any>;
@@ -1,5 +1,5 @@
1
1
  import bitmartRest from '../bitmart.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bitmart extends bitmartRest {
5
5
  describe(): any;
@@ -7,7 +7,7 @@ export default class bitmart extends bitmartRest {
7
7
  subscribePrivate(channel: any, symbol: any, params?: {}): Promise<any>;
8
8
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
9
9
  watchTicker(symbol: string, params?: {}): Promise<any>;
10
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
10
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
11
11
  handleOrders(client: Client, message: any): void;
12
12
  parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
13
13
  handleTrade(client: Client, message: any): any;
@@ -1,5 +1,5 @@
1
1
  import bitmexRest from '../bitmex.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bitmex extends bitmexRest {
5
5
  describe(): any;
@@ -11,9 +11,9 @@ export default class bitmex extends bitmexRest {
11
11
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
12
12
  authenticate(params?: {}): Promise<any>;
13
13
  handleAuthenticationMessage(client: Client, message: any): void;
14
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
14
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
15
15
  handleOrders(client: Client, message: any): void;
16
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
16
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
17
17
  handleMyTrades(client: Client, message: any): void;
18
18
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
19
19
  watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<any>;
@@ -1,20 +1,20 @@
1
1
  import bitpandaRest from '../bitpanda.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bitpanda extends bitpandaRest {
5
5
  describe(): any;
6
6
  watchBalance(params?: {}): Promise<any>;
7
7
  handleBalanceSnapshot(client: any, message: any): void;
8
8
  watchTicker(symbol: string, params?: {}): Promise<any>;
9
- watchTickers(symbols?: string[], params?: {}): Promise<any>;
9
+ watchTickers(symbols?: Strings, params?: {}): Promise<any>;
10
10
  handleTicker(client: Client, message: any): void;
11
11
  parseWSTicker(ticker: any, market?: any): import("../base/types.js").Ticker;
12
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): any;
12
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): any;
13
13
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
14
14
  handleOrderBook(client: Client, message: any): void;
15
15
  handleDelta(orderbook: any, delta: any): void;
16
16
  handleDeltas(orderbook: any, deltas: any): void;
17
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): any;
17
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): any;
18
18
  handleTrading(client: Client, message: any): void;
19
19
  parseTradingOrder(order: any, market?: any): import("../base/types.js").Order;
20
20
  parseTradingOrderStatus(status: any): string;
@@ -31,6 +31,6 @@ export default class bitpanda extends bitpandaRest {
31
31
  handleMessage(client: Client, message: any): any;
32
32
  handlePricePointUpdates(client: Client, message: any): any;
33
33
  handleAuthenticationMessage(client: Client, message: any): any;
34
- watchMultiple(messageHash: any, request: any, subscriptionHash: any, symbols?: string[], params?: {}): Promise<any>;
34
+ watchMultiple(messageHash: any, request: any, subscriptionHash: any, symbols?: Strings, params?: {}): Promise<any>;
35
35
  authenticate(params?: {}): Promise<any>;
36
36
  }
@@ -1,12 +1,12 @@
1
1
  import bitrueRest from '../bitrue.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bitrue extends bitrueRest {
5
5
  describe(): any;
6
6
  watchBalance(params?: {}): Promise<any>;
7
7
  handleBalance(client: Client, message: any): void;
8
8
  parseWSBalances(balances: any): void;
9
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
9
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
10
10
  handleOrder(client: Client, message: any): void;
11
11
  parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
12
12
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
@@ -1,5 +1,5 @@
1
1
  import bitstampRest from '../bitstamp.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bitstamp extends bitstampRest {
5
5
  describe(): any;
@@ -11,7 +11,7 @@ export default class bitstamp extends bitstampRest {
11
11
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
12
12
  parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
13
13
  handleTrade(client: Client, message: any): void;
14
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
14
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
15
15
  handleOrders(client: Client, message: any): void;
16
16
  parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
17
17
  handleOrderBookSubscription(client: Client, message: any): void;
@@ -1,5 +1,5 @@
1
1
  import bittrexRest from '../bittrex.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bittrex extends bittrexRest {
5
5
  describe(): any;
@@ -33,7 +33,7 @@ export default class bittrex extends bittrexRest {
33
33
  createSignalRQuery(params?: {}): any;
34
34
  negotiate(params?: {}): Promise<any>;
35
35
  start(negotiation: any, params?: {}): Promise<any>;
36
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
36
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
37
37
  subscribeToOrders(authentication: any, params?: {}): Promise<any>;
38
38
  handleOrder(client: Client, message: any): void;
39
39
  watchBalance(params?: {}): Promise<any>;
@@ -51,7 +51,7 @@ export default class bittrex extends bittrexRest {
51
51
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
52
52
  subscribeToTrades(negotiation: any, symbol: any, params?: {}): Promise<any>;
53
53
  handleTrades(client: Client, message: any): void;
54
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
54
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
55
55
  subscribeToMyTrades(authentication: any, params?: {}): Promise<any>;
56
56
  handleMyTrades(client: Client, message: any): void;
57
57
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
@@ -1,5 +1,5 @@
1
1
  import bitvavoRest from '../bitvavo.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bitvavo extends bitvavoRest {
5
5
  describe(): any;
@@ -19,8 +19,8 @@ export default class bitvavo extends bitvavoRest {
19
19
  handleOrderBookSnapshot(client: Client, message: any): any;
20
20
  handleOrderBookSubscription(client: Client, message: any, subscription: any): void;
21
21
  handleOrderBookSubscriptions(client: Client, message: any, marketIds: any): void;
22
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
23
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
22
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
23
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
24
24
  handleOrder(client: Client, message: any): void;
25
25
  handleMyTrade(client: Client, message: any): void;
26
26
  handleSubscriptionStatus(client: Client, message: any): any;
@@ -1,5 +1,5 @@
1
1
  import blockchaincomRest from '../blockchaincom.js';
2
- import { IndexType, Int } from '../base/types.js';
2
+ import { IndexType, Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class blockchaincom extends blockchaincomRest {
5
5
  describe(): any;
@@ -13,7 +13,7 @@ export default class blockchaincom extends blockchaincomRest {
13
13
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
14
14
  handleTrades(client: Client, message: any): any;
15
15
  parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
16
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
16
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
17
17
  handleOrders(client: Client, message: any): any;
18
18
  parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
19
19
  parseWsOrderStatus(status: any): string;
@@ -1,13 +1,13 @@
1
1
  import bybitRest from '../bybit.js';
2
- import { Int, OHLCV } from '../base/types.js';
2
+ import { Int, OHLCV, Str, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class bybit extends bybitRest {
5
5
  describe(): any;
6
6
  requestId(): any;
7
- getUrlByMarketType(symbol?: string, isPrivate?: boolean, method?: any, params?: {}): any;
7
+ getUrlByMarketType(symbol?: Str, isPrivate?: boolean, method?: any, params?: {}): any;
8
8
  cleanParams(params: any): any;
9
9
  watchTicker(symbol: string, params?: {}): Promise<any>;
10
- watchTickers(symbols?: string[], params?: {}): Promise<any>;
10
+ watchTickers(symbols?: Strings, params?: {}): Promise<any>;
11
11
  handleTicker(client: Client, message: any): void;
12
12
  watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
13
13
  watchOHLCVForSymbols(symbolsAndTimeframes: string[][], since?: Int, limit?: Int, params?: {}): Promise<import("../base/types.js").Dictionary<import("../base/types.js").Dictionary<OHLCV[]>>>;
@@ -23,13 +23,13 @@ export default class bybit extends bybitRest {
23
23
  handleTrades(client: Client, message: any): void;
24
24
  parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
25
25
  getPrivateType(url: any): "spot" | "unified" | "usdc";
26
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
26
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
27
27
  handleMyTrades(client: Client, message: any): void;
28
- watchPositions(symbols?: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
29
- setPositionsCache(client: Client, symbols?: string[]): any;
28
+ watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
29
+ setPositionsCache(client: Client, symbols?: Strings): any;
30
30
  loadPositionsSnapshot(client: any, messageHash: any): Promise<void>;
31
31
  handlePositions(client: any, message: any): void;
32
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
32
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
33
33
  handleOrder(client: Client, message: any, subscription?: any): void;
34
34
  parseWsSpotOrder(order: any, market?: any): import("../base/types.js").Order;
35
35
  watchBalance(params?: {}): Promise<any>;
@@ -1,5 +1,5 @@
1
1
  import cexRest from '../cex.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class cex extends cexRest {
5
5
  describe(): any;
@@ -11,11 +11,11 @@ export default class cex extends cexRest {
11
11
  parseWsOldTrade(trade: any, market?: any): import("../base/types.js").Trade;
12
12
  handleTrade(client: Client, message: any): void;
13
13
  watchTicker(symbol: string, params?: {}): Promise<any>;
14
- watchTickers(symbols?: string[], params?: {}): any;
14
+ watchTickers(symbols?: Strings, params?: {}): any;
15
15
  handleTicker(client: Client, message: any): void;
16
16
  parseWsTicker(ticker: any, market?: any): import("../base/types.js").Ticker;
17
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
18
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
17
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
18
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
19
19
  handleTransaction(client: Client, message: any): void;
20
20
  handleMyTrades(client: Client, message: any): void;
21
21
  parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
@@ -1,5 +1,5 @@
1
1
  import coinbaseproRest from '../coinbasepro.js';
2
- import { Int, Ticker } from '../base/types.js';
2
+ import { Int, Ticker, Str, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class coinbasepro extends coinbaseproRest {
5
5
  describe(): any;
@@ -12,13 +12,13 @@ export default class coinbasepro extends coinbaseproRest {
12
12
  subscribe(name: any, symbol?: any, messageHashStart?: any, params?: {}): Promise<any>;
13
13
  subscribeMultiple(name: any, symbols?: any[], messageHashStart?: any, params?: {}): Promise<any>;
14
14
  watchTicker(symbol: string, params?: {}): Promise<any>;
15
- watchTickers(symbols?: string[], params?: {}): Promise<any>;
15
+ watchTickers(symbols?: Strings, params?: {}): Promise<any>;
16
16
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
17
17
  watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
18
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
19
- watchMyTradesForSymbols(symbols?: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
20
- watchOrdersForSymbols(symbols?: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
21
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
18
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
19
+ watchMyTradesForSymbols(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
20
+ watchOrdersForSymbols(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
21
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
22
22
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
23
23
  watchOrderBookForSymbols(symbols: string[], limit?: Int, params?: {}): Promise<any>;
24
24
  handleTrade(client: Client, message: any): any;
@@ -1,5 +1,5 @@
1
1
  import coinexRest from '../coinex.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class coinex extends coinexRest {
5
5
  describe(): any;
@@ -12,7 +12,7 @@ export default class coinex extends coinexRest {
12
12
  parseWsTrade(trade: any, market?: any): import("../base/types.js").Trade;
13
13
  handleOHLCV(client: Client, message: any): void;
14
14
  watchTicker(symbol: string, params?: {}): Promise<any>;
15
- watchTickers(symbols?: string[], params?: {}): Promise<any>;
15
+ watchTickers(symbols?: Strings, params?: {}): Promise<any>;
16
16
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
17
17
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
18
18
  watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
@@ -20,7 +20,7 @@ export default class coinex extends coinexRest {
20
20
  handleDelta(bookside: any, delta: any): void;
21
21
  handleDeltas(bookside: any, deltas: any): void;
22
22
  handleOrderBook(client: Client, message: any): void;
23
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
23
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
24
24
  handleOrders(client: Client, message: any): void;
25
25
  parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
26
26
  parseWsOrderStatus(status: any): string;
@@ -1,5 +1,5 @@
1
1
  import cryptocomRest from '../cryptocom.js';
2
- import { Int, OrderSide, OrderType } from '../base/types.js';
2
+ import { Int, OrderSide, OrderType, Str, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class cryptocom extends cryptocomRest {
5
5
  describe(): any;
@@ -10,23 +10,23 @@ export default class cryptocom extends cryptocomRest {
10
10
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
11
11
  watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
12
12
  handleTrades(client: Client, message: any): void;
13
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
13
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
14
14
  watchTicker(symbol: string, params?: {}): Promise<any>;
15
15
  handleTicker(client: Client, message: any): void;
16
16
  watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
17
17
  handleOHLCV(client: Client, message: any): void;
18
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
18
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
19
19
  handleOrders(client: Client, message: any, subscription?: any): void;
20
- watchPositions(symbols?: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
21
- setPositionsCache(client: Client, type: any, symbols?: string[]): void;
20
+ watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
21
+ setPositionsCache(client: Client, type: any, symbols?: Strings): void;
22
22
  loadPositionsSnapshot(client: any, messageHash: any): Promise<void>;
23
23
  handlePositions(client: any, message: any): void;
24
24
  watchBalance(params?: {}): Promise<any>;
25
25
  handleBalance(client: Client, message: any): void;
26
26
  createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: number, params?: {}): Promise<any>;
27
27
  handleOrder(client: Client, message: any): void;
28
- cancelOrderWs(id: string, symbol?: string, params?: {}): Promise<any>;
29
- cancelAllOrdersWs(symbol?: string, params?: {}): Promise<any>;
28
+ cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<any>;
29
+ cancelAllOrdersWs(symbol?: Str, params?: {}): Promise<any>;
30
30
  handleCancelAllOrders(client: Client, message: any): void;
31
31
  watchPublic(messageHash: any, params?: {}): Promise<any>;
32
32
  watchPublicMultiple(messageHash: any, topics: any, params?: {}): Promise<any>;
@@ -1,5 +1,5 @@
1
1
  import deribitRest from '../deribit.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class deribit extends deribitRest {
5
5
  describe(): any;
@@ -10,14 +10,14 @@ export default class deribit extends deribitRest {
10
10
  handleTicker(client: Client, message: any): void;
11
11
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
12
12
  handleTrades(client: Client, message: any): void;
13
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
13
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
14
14
  handleMyTrades(client: Client, message: any): void;
15
15
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
16
16
  handleOrderBook(client: Client, message: any): void;
17
17
  cleanOrderBook(data: any): any;
18
18
  handleDelta(bookside: any, delta: any): void;
19
19
  handleDeltas(bookside: any, deltas: any): void;
20
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
20
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
21
21
  handleOrders(client: Client, message: any): void;
22
22
  watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
23
23
  handleOHLCV(client: Client, message: any): void;
@@ -1,5 +1,5 @@
1
1
  import exmoRest from '../exmo.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class exmo extends exmoRest {
5
5
  describe(): any;
@@ -12,7 +12,7 @@ export default class exmo extends exmoRest {
12
12
  handleTicker(client: Client, message: any): void;
13
13
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
14
14
  handleTrades(client: Client, message: any): void;
15
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
15
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
16
16
  handleMyTrades(client: Client, message: any): void;
17
17
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
18
18
  handleOrderBook(client: Client, message: any): void;
@@ -1,5 +1,5 @@
1
1
  import gateRest from '../gate.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class gate extends gateRest {
5
5
  describe(): any;
@@ -10,22 +10,22 @@ export default class gate extends gateRest {
10
10
  handleBidAsks(bookSide: any, bidAsks: any): void;
11
11
  handleDelta(orderbook: any, delta: any): void;
12
12
  watchTicker(symbol: string, params?: {}): Promise<any>;
13
- watchTickers(symbols?: string[], params?: {}): Promise<any>;
13
+ watchTickers(symbols?: Strings, params?: {}): Promise<any>;
14
14
  handleTicker(client: Client, message: any): void;
15
15
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
16
16
  watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
17
17
  handleTrades(client: Client, message: any): void;
18
18
  watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
19
19
  handleOHLCV(client: Client, message: any): void;
20
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
20
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
21
21
  handleMyTrades(client: Client, message: any): void;
22
22
  watchBalance(params?: {}): Promise<any>;
23
23
  handleBalance(client: Client, message: any): void;
24
- watchPositions(symbols?: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
25
- setPositionsCache(client: Client, type: any, symbols?: string[]): void;
24
+ watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
25
+ setPositionsCache(client: Client, type: any, symbols?: Strings): void;
26
26
  loadPositionsSnapshot(client: any, messageHash: any, type: any): Promise<void>;
27
27
  handlePositions(client: any, message: any): void;
28
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
28
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
29
29
  handleOrder(client: Client, message: any): void;
30
30
  handleErrorMessage(client: Client, message: any): boolean;
31
31
  handleBalanceSubscription(client: Client, message: any, subscription?: any): void;
@@ -1,5 +1,5 @@
1
1
  import geminiRest from '../gemini.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class gemini extends geminiRest {
5
5
  describe(): any;
@@ -12,7 +12,7 @@ export default class gemini extends geminiRest {
12
12
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
13
13
  handleOrderBook(client: Client, message: any): void;
14
14
  handleL2Updates(client: Client, message: any): void;
15
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
15
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
16
16
  handleHeartbeat(client: Client, message: any): any;
17
17
  handleSubscription(client: Client, message: any): any;
18
18
  handleOrder(client: Client, message: any): void;
@@ -1,12 +1,12 @@
1
1
  import hitbtcRest from '../hitbtc.js';
2
- import { Int, OHLCV } from '../base/types.js';
2
+ import { Int, OHLCV, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
- import { Trade } from '../base/types';
4
+ import { Str, Trade } from '../base/types';
5
5
  export default class hitbtc extends hitbtcRest {
6
6
  describe(): any;
7
7
  authenticate(): Promise<any>;
8
- subscribePublic(name: string, symbols?: string[], params?: {}): Promise<any>;
9
- subscribePrivate(name: string, symbol?: string, params?: {}): Promise<any>;
8
+ subscribePublic(name: string, symbols?: Strings, params?: {}): Promise<any>;
9
+ subscribePrivate(name: string, symbol?: Str, params?: {}): Promise<any>;
10
10
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
11
11
  handleOrderBook(client: Client, message: any): void;
12
12
  handleDelta(bookside: any, delta: any): void;
@@ -22,7 +22,7 @@ export default class hitbtc extends hitbtcRest {
22
22
  watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
23
23
  handleOHLCV(client: Client, message: any): any;
24
24
  parseWsOHLCV(ohlcv: any, market?: any): OHLCV;
25
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
25
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
26
26
  handleOrder(client: Client, message: any): any;
27
27
  handleOrderHelper(client: Client, message: any, order: any): void;
28
28
  parseWsOrderTrade(trade: any, market?: any): Trade;
@@ -1,5 +1,5 @@
1
1
  import hollaexRest from '../hollaex.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class hollaex extends hollaexRest {
5
5
  describe(): any;
@@ -7,9 +7,9 @@ export default class hollaex extends hollaexRest {
7
7
  handleOrderBook(client: Client, message: any): void;
8
8
  watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
9
9
  handleTrades(client: Client, message: any): void;
10
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
10
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
11
11
  handleMyTrades(client: Client, message: any, subscription?: any): number;
12
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
12
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
13
13
  handleOrder(client: Client, message: any, subscription?: any): number;
14
14
  watchBalance(params?: {}): Promise<any>;
15
15
  handleBalance(client: Client, message: any): void;
@@ -1,5 +1,5 @@
1
1
  import htxRest from '../htx.js';
2
- import { Int } from '../base/types.js';
2
+ import { Int, Str, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  export default class htx extends htxRest {
5
5
  describe(): any;
@@ -18,13 +18,13 @@ export default class htx extends htxRest {
18
18
  handleOrderBookMessage(client: Client, message: any, orderbook: any): any;
19
19
  handleOrderBook(client: Client, message: any): void;
20
20
  handleOrderBookSubscription(client: Client, message: any, subscription: any): void;
21
- watchMyTrades(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
21
+ watchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
22
22
  getOrderChannelAndMessageHash(type: any, subType: any, market?: any, params?: {}): any[];
23
- watchOrders(symbol?: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
23
+ watchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
24
24
  handleOrder(client: Client, message: any): void;
25
25
  parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
26
26
  parseOrderTrade(trade: any, market?: any): import("../base/types.js").Trade;
27
- watchPositions(symbols?: string[], since?: Int, limit?: Int, params?: {}): Promise<any>;
27
+ watchPositions(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<any>;
28
28
  handlePositions(client: any, message: any): void;
29
29
  watchBalance(params?: {}): Promise<any>;
30
30
  handleBalance(client: Client, message: any): void;