ccxt 4.4.32 → 4.4.34

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 (118) hide show
  1. package/README.md +8 -7
  2. package/dist/ccxt.browser.min.js +6 -6
  3. package/dist/cjs/ccxt.js +4 -1
  4. package/dist/cjs/src/abstract/ellipx.js +9 -0
  5. package/dist/cjs/src/alpaca.js +2 -0
  6. package/dist/cjs/src/base/Exchange.js +116 -1
  7. package/dist/cjs/src/binance.js +164 -6
  8. package/dist/cjs/src/bingx.js +156 -9
  9. package/dist/cjs/src/bitbank.js +5 -0
  10. package/dist/cjs/src/bitbns.js +2 -0
  11. package/dist/cjs/src/bitfinex2.js +2 -1
  12. package/dist/cjs/src/bitget.js +177 -44
  13. package/dist/cjs/src/bitmex.js +2 -0
  14. package/dist/cjs/src/bitopro.js +3 -0
  15. package/dist/cjs/src/bitrue.js +1 -0
  16. package/dist/cjs/src/btcmarkets.js +2 -0
  17. package/dist/cjs/src/bybit.js +148 -13
  18. package/dist/cjs/src/cex.js +16 -6
  19. package/dist/cjs/src/coinbase.js +5 -24
  20. package/dist/cjs/src/coinbaseexchange.js +2 -1
  21. package/dist/cjs/src/coinex.js +2 -0
  22. package/dist/cjs/src/coinone.js +7 -7
  23. package/dist/cjs/src/coinsph.js +7 -7
  24. package/dist/cjs/src/coinspot.js +39 -39
  25. package/dist/cjs/src/cryptocom.js +36 -34
  26. package/dist/cjs/src/ellipx.js +1871 -0
  27. package/dist/cjs/src/gate.js +2 -1
  28. package/dist/cjs/src/hyperliquid.js +16 -2
  29. package/dist/cjs/src/kraken.js +1 -0
  30. package/dist/cjs/src/krakenfutures.js +3 -1
  31. package/dist/cjs/src/kucoinfutures.js +1 -1
  32. package/dist/cjs/src/lbank.js +1 -0
  33. package/dist/cjs/src/okcoin.js +2 -0
  34. package/dist/cjs/src/okx.js +104 -9
  35. package/dist/cjs/src/onetrading.js +14 -1
  36. package/dist/cjs/src/paradex.js +2 -0
  37. package/dist/cjs/src/phemex.js +35 -7
  38. package/dist/cjs/src/poloniex.js +3 -1
  39. package/dist/cjs/src/poloniexfutures.js +3 -1
  40. package/dist/cjs/src/pro/idex.js +5 -0
  41. package/dist/cjs/src/pro/okx.js +11 -1
  42. package/dist/cjs/src/pro/probit.js +4 -2
  43. package/dist/cjs/src/pro/woo.js +15 -15
  44. package/dist/cjs/src/vertex.js +2 -0
  45. package/dist/cjs/src/woo.js +69 -69
  46. package/examples/js/cli.js +1 -1
  47. package/js/ccxt.d.ts +5 -2
  48. package/js/ccxt.js +4 -2
  49. package/js/src/abstract/bingx.d.ts +16 -0
  50. package/js/src/abstract/bitbank.d.ts +5 -0
  51. package/js/src/abstract/bitfinex2.d.ts +1 -0
  52. package/js/src/abstract/coinbaseexchange.d.ts +1 -0
  53. package/js/src/abstract/ellipx.d.ts +28 -0
  54. package/js/src/abstract/ellipx.js +11 -0
  55. package/js/src/abstract/kraken.d.ts +1 -0
  56. package/js/src/alpaca.js +2 -0
  57. package/js/src/base/Exchange.d.ts +11 -0
  58. package/js/src/base/Exchange.js +116 -1
  59. package/js/src/binance.js +164 -6
  60. package/js/src/bingx.d.ts +3 -1
  61. package/js/src/bingx.js +156 -9
  62. package/js/src/bitbank.js +5 -0
  63. package/js/src/bitbns.js +2 -0
  64. package/js/src/bitfinex2.js +2 -1
  65. package/js/src/bitget.d.ts +4 -4
  66. package/js/src/bitget.js +177 -44
  67. package/js/src/bitmex.js +2 -0
  68. package/js/src/bitopro.d.ts +1 -0
  69. package/js/src/bitopro.js +3 -0
  70. package/js/src/bitrue.js +1 -0
  71. package/js/src/btcmarkets.d.ts +1 -0
  72. package/js/src/btcmarkets.js +2 -0
  73. package/js/src/bybit.d.ts +3 -2
  74. package/js/src/bybit.js +149 -14
  75. package/js/src/cex.d.ts +1 -0
  76. package/js/src/cex.js +17 -7
  77. package/js/src/coinbase.d.ts +2 -1
  78. package/js/src/coinbase.js +5 -24
  79. package/js/src/coinbaseexchange.js +2 -1
  80. package/js/src/coinex.js +2 -0
  81. package/js/src/coinone.js +7 -7
  82. package/js/src/coinsph.js +7 -7
  83. package/js/src/coinspot.js +39 -39
  84. package/js/src/cryptocom.d.ts +1 -1
  85. package/js/src/cryptocom.js +36 -34
  86. package/js/src/ellipx.d.ts +236 -0
  87. package/js/src/ellipx.js +1874 -0
  88. package/js/src/gate.d.ts +2 -2
  89. package/js/src/gate.js +2 -1
  90. package/js/src/hyperliquid.d.ts +2 -1
  91. package/js/src/hyperliquid.js +16 -2
  92. package/js/src/kraken.js +1 -0
  93. package/js/src/krakenfutures.js +3 -1
  94. package/js/src/kucoinfutures.d.ts +1 -1
  95. package/js/src/kucoinfutures.js +1 -1
  96. package/js/src/lbank.js +1 -0
  97. package/js/src/okcoin.js +2 -0
  98. package/js/src/okx.d.ts +1 -1
  99. package/js/src/okx.js +104 -9
  100. package/js/src/onetrading.d.ts +5 -0
  101. package/js/src/onetrading.js +15 -2
  102. package/js/src/paradex.js +2 -0
  103. package/js/src/phemex.d.ts +4 -0
  104. package/js/src/phemex.js +35 -7
  105. package/js/src/poloniex.d.ts +1 -1
  106. package/js/src/poloniex.js +3 -1
  107. package/js/src/poloniexfutures.d.ts +1 -1
  108. package/js/src/poloniexfutures.js +3 -1
  109. package/js/src/pro/idex.d.ts +5 -0
  110. package/js/src/pro/idex.js +5 -0
  111. package/js/src/pro/okx.js +11 -1
  112. package/js/src/pro/probit.js +4 -2
  113. package/js/src/pro/woo.d.ts +11 -11
  114. package/js/src/pro/woo.js +15 -15
  115. package/js/src/vertex.js +2 -0
  116. package/js/src/woo.d.ts +60 -60
  117. package/js/src/woo.js +69 -69
  118. package/package.json +3 -3
@@ -9,6 +9,7 @@ export default class idex extends idexRest {
9
9
  * @method
10
10
  * @name idex#watchTicker
11
11
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
12
+ * @see https://api-docs-v4.idex.io/#tickers
12
13
  * @param {string} symbol unified symbol of the market to fetch the ticker for
13
14
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14
15
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -19,6 +20,7 @@ export default class idex extends idexRest {
19
20
  * @method
20
21
  * @name idex#watchTrades
21
22
  * @description get the list of most recent trades for a particular symbol
23
+ * @see https://api-docs-v4.idex.io/#trades
22
24
  * @param {string} symbol unified symbol of the market to fetch trades for
23
25
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
24
26
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -32,6 +34,7 @@ export default class idex extends idexRest {
32
34
  * @method
33
35
  * @name idex#watchOHLCV
34
36
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
37
+ * @see https://api-docs-v4.idex.io/#candles
35
38
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
36
39
  * @param {string} timeframe the length of time each candle represents
37
40
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -47,6 +50,7 @@ export default class idex extends idexRest {
47
50
  * @method
48
51
  * @name idex#watchOrderBook
49
52
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
53
+ * @see https://api-docs-v4.idex.io/#l2-order-book
50
54
  * @param {string} symbol unified symbol of the market to fetch the order book for
51
55
  * @param {int} [limit] the maximum amount of order book entries to return
52
56
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -62,6 +66,7 @@ export default class idex extends idexRest {
62
66
  * @method
63
67
  * @name idex#watchOrders
64
68
  * @description watches information on multiple orders made by the user
69
+ * @see https://api-docs-v4.idex.io/#orders
65
70
  * @param {string} symbol unified market symbol of the market orders were made in
66
71
  * @param {int} [since] the earliest time in ms to fetch orders for
67
72
  * @param {int} [limit] the maximum number of order structures to retrieve
@@ -70,6 +70,7 @@ export default class idex extends idexRest {
70
70
  * @method
71
71
  * @name idex#watchTicker
72
72
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
73
+ * @see https://api-docs-v4.idex.io/#tickers
73
74
  * @param {string} symbol unified symbol of the market to fetch the ticker for
74
75
  * @param {object} [params] extra parameters specific to the exchange API endpoint
75
76
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
@@ -142,6 +143,7 @@ export default class idex extends idexRest {
142
143
  * @method
143
144
  * @name idex#watchTrades
144
145
  * @description get the list of most recent trades for a particular symbol
146
+ * @see https://api-docs-v4.idex.io/#trades
145
147
  * @param {string} symbol unified symbol of the market to fetch trades for
146
148
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
147
149
  * @param {int} [limit] the maximum amount of trades to fetch
@@ -236,6 +238,7 @@ export default class idex extends idexRest {
236
238
  * @method
237
239
  * @name idex#watchOHLCV
238
240
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
241
+ * @see https://api-docs-v4.idex.io/#candles
239
242
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
240
243
  * @param {string} timeframe the length of time each candle represents
241
244
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -406,6 +409,7 @@ export default class idex extends idexRest {
406
409
  * @method
407
410
  * @name idex#watchOrderBook
408
411
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
412
+ * @see https://api-docs-v4.idex.io/#l2-order-book
409
413
  * @param {string} symbol unified symbol of the market to fetch the order book for
410
414
  * @param {int} [limit] the maximum amount of order book entries to return
411
415
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -509,6 +513,7 @@ export default class idex extends idexRest {
509
513
  * @method
510
514
  * @name idex#watchOrders
511
515
  * @description watches information on multiple orders made by the user
516
+ * @see https://api-docs-v4.idex.io/#orders
512
517
  * @param {string} symbol unified market symbol of the market orders were made in
513
518
  * @param {int} [since] the earliest time in ms to fetch orders for
514
519
  * @param {int} [limit] the maximum number of order structures to retrieve
package/js/src/pro/okx.js CHANGED
@@ -2257,6 +2257,7 @@ export default class okx extends okxRest {
2257
2257
  //
2258
2258
  // { event: 'error', msg: "Illegal request: {"op":"subscribe","args":["spot/ticker:BTC-USDT"]}", code: "60012" }
2259
2259
  // { event: 'error", msg: "channel:ticker,instId:BTC-USDT doesn"t exist", code: "60018" }
2260
+ // {"event":"error","msg":"Illegal request: {\\"id\\":\\"17321173472466905\\",\\"op\\":\\"amend-order\\",\\"args\\":[{\\"instId\\":\\"ETH-USDC\\",\\"ordId\\":\\"2000345622407479296\\",\\"newSz\\":\\"0.050857\\",\\"newPx\\":\\"2949.4\\",\\"postOnly\\":true}],\\"postOnly\\":true}","code":"60012","connId":"0808af6c"}
2260
2261
  //
2261
2262
  let errorCode = this.safeString(message, 'code');
2262
2263
  try {
@@ -2289,7 +2290,16 @@ export default class okx extends okxRest {
2289
2290
  catch (e) {
2290
2291
  // if the message contains an id, it means it is a response to a request
2291
2292
  // so we only reject that promise, instead of deleting all futures, destroying the authentication future
2292
- const id = this.safeString(message, 'id');
2293
+ let id = this.safeString(message, 'id');
2294
+ if (id === undefined) {
2295
+ // try to parse it from the stringified json inside msg
2296
+ const msg = this.safeString(message, 'msg');
2297
+ if (msg !== undefined && msg.startsWith('Illegal request: {')) {
2298
+ const stringifiedJson = msg.replace('Illegal request: ', '');
2299
+ const parsedJson = this.parseJson(stringifiedJson);
2300
+ id = this.safeString(parsedJson, 'id');
2301
+ }
2302
+ }
2293
2303
  if (id !== undefined) {
2294
2304
  client.reject(e, id);
2295
2305
  return false;
@@ -526,11 +526,13 @@ export default class probit extends probitRest {
526
526
  this.handleTicker(client, message);
527
527
  }
528
528
  const trades = this.safeValue(message, 'recent_trades', []);
529
- if (trades.length) {
529
+ const tradesLength = trades.length;
530
+ if (tradesLength) {
530
531
  this.handleTrades(client, message);
531
532
  }
532
533
  const orderBook = this.safeValueN(message, ['order_books', 'order_books_l1', 'order_books_l2', 'order_books_l3', 'order_books_l4'], []);
533
- if (orderBook.length) {
534
+ const orderBookLength = orderBook.length;
535
+ if (orderBookLength) {
534
536
  this.handleOrderBook(client, message, orderBook);
535
537
  }
536
538
  }
@@ -8,8 +8,8 @@ export default class woo extends wooRest {
8
8
  /**
9
9
  * @method
10
10
  * @name woo#watchOrderBook
11
- * @see https://docs.woo.org/#orderbookupdate
12
- * @see https://docs.woo.org/#orderbook
11
+ * @see https://docs.woox.io/#orderbookupdate
12
+ * @see https://docs.woox.io/#orderbook
13
13
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
14
14
  * @param {string} symbol unified symbol of the market to fetch the order book for
15
15
  * @param {int} [limit] the maximum amount of order book entries to return.
@@ -38,7 +38,7 @@ export default class woo extends wooRest {
38
38
  /**
39
39
  * @method
40
40
  * @name woo#watchTickers
41
- * @see https://docs.woo.org/#24h-tickers
41
+ * @see https://docs.woox.io/#24h-tickers
42
42
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
43
43
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
44
44
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -62,7 +62,7 @@ export default class woo extends wooRest {
62
62
  * @method
63
63
  * @name woo#watchOHLCV
64
64
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
65
- * @see https://docs.woo.org/#k-line
65
+ * @see https://docs.woox.io/#k-line
66
66
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
67
67
  * @param {string} timeframe the length of time each candle represents
68
68
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -76,7 +76,7 @@ export default class woo extends wooRest {
76
76
  * @method
77
77
  * @name woo#watchTrades
78
78
  * @description watches information on multiple trades made in a market
79
- * @see https://docs.woo.org/#trade
79
+ * @see https://docs.woox.io/#trade
80
80
  * @param {string} symbol unified market symbol of the market trades were made in
81
81
  * @param {int} [since] the earliest time in ms to fetch trades for
82
82
  * @param {int} [limit] the maximum number of trade structures to retrieve
@@ -93,8 +93,8 @@ export default class woo extends wooRest {
93
93
  /**
94
94
  * @method
95
95
  * @name woo#watchOrders
96
- * @see https://docs.woo.org/#executionreport
97
- * @see https://docs.woo.org/#algoexecutionreportv2
96
+ * @see https://docs.woox.io/#executionreport
97
+ * @see https://docs.woox.io/#algoexecutionreportv2
98
98
  * @description watches information on multiple orders made by the user
99
99
  * @param {string} symbol unified market symbol of the market orders were made in
100
100
  * @param {int} [since] the earliest time in ms to fetch orders for
@@ -107,8 +107,8 @@ export default class woo extends wooRest {
107
107
  /**
108
108
  * @method
109
109
  * @name woo#watchMyTrades
110
- * @see https://docs.woo.org/#executionreport
111
- * @see https://docs.woo.org/#algoexecutionreportv2
110
+ * @see https://docs.woox.io/#executionreport
111
+ * @see https://docs.woox.io/#algoexecutionreportv2
112
112
  * @description watches information on multiple trades made by the user
113
113
  * @param {string} symbol unified market symbol of the market orders were made in
114
114
  * @param {int} [since] the earliest time in ms to fetch orders for
@@ -125,7 +125,7 @@ export default class woo extends wooRest {
125
125
  /**
126
126
  * @method
127
127
  * @name woo#watchPositions
128
- * @see https://docs.woo.org/#position-push
128
+ * @see https://docs.woox.io/#position-push
129
129
  * @description watch all open positions
130
130
  * @param {string[]|undefined} symbols list of unified market symbols
131
131
  * @param since
@@ -139,7 +139,7 @@ export default class woo extends wooRest {
139
139
  handlePositions(client: any, message: any): void;
140
140
  /**
141
141
  * @method
142
- * @see https://docs.woo.org/#balance
142
+ * @see https://docs.woox.io/#balance
143
143
  * @name woo#watchBalance
144
144
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
145
145
  * @param {object} [params] extra parameters specific to the exchange API endpoint
package/js/src/pro/woo.js CHANGED
@@ -31,14 +31,14 @@ export default class woo extends wooRest {
31
31
  'urls': {
32
32
  'api': {
33
33
  'ws': {
34
- 'public': 'wss://wss.woo.org/ws/stream',
35
- 'private': 'wss://wss.woo.org/v2/ws/private/stream',
34
+ 'public': 'wss://wss.woox.io/ws/stream',
35
+ 'private': 'wss://wss.woox.io/v2/ws/private/stream',
36
36
  },
37
37
  },
38
38
  'test': {
39
39
  'ws': {
40
- 'public': 'wss://wss.staging.woo.org/ws/stream',
41
- 'private': 'wss://wss.staging.woo.org/v2/ws/private/stream',
40
+ 'public': 'wss://wss.staging.woox.io/ws/stream',
41
+ 'private': 'wss://wss.staging.woox.io/v2/ws/private/stream',
42
42
  },
43
43
  },
44
44
  },
@@ -89,8 +89,8 @@ export default class woo extends wooRest {
89
89
  /**
90
90
  * @method
91
91
  * @name woo#watchOrderBook
92
- * @see https://docs.woo.org/#orderbookupdate
93
- * @see https://docs.woo.org/#orderbook
92
+ * @see https://docs.woox.io/#orderbookupdate
93
+ * @see https://docs.woox.io/#orderbook
94
94
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
95
95
  * @param {string} symbol unified symbol of the market to fetch the order book for
96
96
  * @param {int} [limit] the maximum amount of order book entries to return.
@@ -343,7 +343,7 @@ export default class woo extends wooRest {
343
343
  /**
344
344
  * @method
345
345
  * @name woo#watchTickers
346
- * @see https://docs.woo.org/#24h-tickers
346
+ * @see https://docs.woox.io/#24h-tickers
347
347
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
348
348
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
349
349
  * @param {object} [params] extra parameters specific to the exchange API endpoint
@@ -480,7 +480,7 @@ export default class woo extends wooRest {
480
480
  * @method
481
481
  * @name woo#watchOHLCV
482
482
  * @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
483
- * @see https://docs.woo.org/#k-line
483
+ * @see https://docs.woox.io/#k-line
484
484
  * @param {string} symbol unified symbol of the market to fetch OHLCV data for
485
485
  * @param {string} timeframe the length of time each candle represents
486
486
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
@@ -556,7 +556,7 @@ export default class woo extends wooRest {
556
556
  * @method
557
557
  * @name woo#watchTrades
558
558
  * @description watches information on multiple trades made in a market
559
- * @see https://docs.woo.org/#trade
559
+ * @see https://docs.woox.io/#trade
560
560
  * @param {string} symbol unified market symbol of the market trades were made in
561
561
  * @param {int} [since] the earliest time in ms to fetch trades for
562
562
  * @param {int} [limit] the maximum number of trade structures to retrieve
@@ -746,8 +746,8 @@ export default class woo extends wooRest {
746
746
  /**
747
747
  * @method
748
748
  * @name woo#watchOrders
749
- * @see https://docs.woo.org/#executionreport
750
- * @see https://docs.woo.org/#algoexecutionreportv2
749
+ * @see https://docs.woox.io/#executionreport
750
+ * @see https://docs.woox.io/#algoexecutionreportv2
751
751
  * @description watches information on multiple orders made by the user
752
752
  * @param {string} symbol unified market symbol of the market orders were made in
753
753
  * @param {int} [since] the earliest time in ms to fetch orders for
@@ -781,8 +781,8 @@ export default class woo extends wooRest {
781
781
  /**
782
782
  * @method
783
783
  * @name woo#watchMyTrades
784
- * @see https://docs.woo.org/#executionreport
785
- * @see https://docs.woo.org/#algoexecutionreportv2
784
+ * @see https://docs.woox.io/#executionreport
785
+ * @see https://docs.woox.io/#algoexecutionreportv2
786
786
  * @description watches information on multiple trades made by the user
787
787
  * @param {string} symbol unified market symbol of the market orders were made in
788
788
  * @param {int} [since] the earliest time in ms to fetch orders for
@@ -1021,7 +1021,7 @@ export default class woo extends wooRest {
1021
1021
  /**
1022
1022
  * @method
1023
1023
  * @name woo#watchPositions
1024
- * @see https://docs.woo.org/#position-push
1024
+ * @see https://docs.woox.io/#position-push
1025
1025
  * @description watch all open positions
1026
1026
  * @param {string[]|undefined} symbols list of unified market symbols
1027
1027
  * @param since
@@ -1138,7 +1138,7 @@ export default class woo extends wooRest {
1138
1138
  }
1139
1139
  /**
1140
1140
  * @method
1141
- * @see https://docs.woo.org/#balance
1141
+ * @see https://docs.woox.io/#balance
1142
1142
  * @name woo#watchBalance
1143
1143
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
1144
1144
  * @param {object} [params] extra parameters specific to the exchange API endpoint
package/js/src/vertex.js CHANGED
@@ -51,6 +51,8 @@ export default class vertex extends Exchange {
51
51
  'createOrder': true,
52
52
  'createOrders': true,
53
53
  'createReduceOnlyOrder': true,
54
+ 'createStopOrder': true,
55
+ 'createTriggerOrder': true,
54
56
  'editOrder': false,
55
57
  'fetchAccounts': false,
56
58
  'fetchBalance': true,