ccxt 4.1.63 → 4.1.65

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 (293) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2769 -2653
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +13 -13
  6. package/dist/cjs/src/alpaca.js +10 -10
  7. package/dist/cjs/src/ascendex.js +33 -33
  8. package/dist/cjs/src/base/Exchange.js +6 -6
  9. package/dist/cjs/src/bigone.js +23 -23
  10. package/dist/cjs/src/binance.js +68 -68
  11. package/dist/cjs/src/binanceus.js +33 -3
  12. package/dist/cjs/src/bingx.js +33 -33
  13. package/dist/cjs/src/bit2c.js +11 -11
  14. package/dist/cjs/src/bitbank.js +14 -14
  15. package/dist/cjs/src/bitbns.js +15 -15
  16. package/dist/cjs/src/bitfinex.js +24 -24
  17. package/dist/cjs/src/bitfinex2.js +30 -30
  18. package/dist/cjs/src/bitflyer.js +17 -17
  19. package/dist/cjs/src/bitforex.js +12 -12
  20. package/dist/cjs/src/bitget.js +50 -50
  21. package/dist/cjs/src/bithumb.js +13 -13
  22. package/dist/cjs/src/bitmart.js +74 -59
  23. package/dist/cjs/src/bitmex.js +29 -28
  24. package/dist/cjs/src/bitopro.js +23 -23
  25. package/dist/cjs/src/bitpanda.js +25 -25
  26. package/dist/cjs/src/bitrue.js +26 -26
  27. package/dist/cjs/src/bitso.js +22 -22
  28. package/dist/cjs/src/bitstamp.js +24 -24
  29. package/dist/cjs/src/bittrex.js +31 -31
  30. package/dist/cjs/src/bitvavo.js +23 -23
  31. package/dist/cjs/src/bl3p.js +7 -7
  32. package/dist/cjs/src/blockchaincom.js +23 -23
  33. package/dist/cjs/src/btcalpha.js +17 -17
  34. package/dist/cjs/src/btcbox.js +9 -9
  35. package/dist/cjs/src/btcmarkets.js +19 -19
  36. package/dist/cjs/src/btcturk.js +13 -13
  37. package/dist/cjs/src/bybit.js +71 -67
  38. package/dist/cjs/src/cex.js +17 -17
  39. package/dist/cjs/src/coinbase.js +28 -28
  40. package/dist/cjs/src/coinbasepro.js +27 -27
  41. package/dist/cjs/src/coincheck.js +11 -11
  42. package/dist/cjs/src/coinex.js +42 -42
  43. package/dist/cjs/src/coinlist.js +29 -29
  44. package/dist/cjs/src/coinmate.js +14 -14
  45. package/dist/cjs/src/coinone.js +13 -13
  46. package/dist/cjs/src/coinsph.js +25 -25
  47. package/dist/cjs/src/coinspot.js +9 -9
  48. package/dist/cjs/src/cryptocom.js +33 -32
  49. package/dist/cjs/src/currencycom.js +24 -24
  50. package/dist/cjs/src/delta.js +29 -29
  51. package/dist/cjs/src/deribit.js +35 -35
  52. package/dist/cjs/src/digifinex.js +43 -43
  53. package/dist/cjs/src/exmo.js +30 -30
  54. package/dist/cjs/src/gate.js +39 -39
  55. package/dist/cjs/src/gemini.js +18 -18
  56. package/dist/cjs/src/hitbtc.js +40 -40
  57. package/dist/cjs/src/hollaex.js +26 -26
  58. package/dist/cjs/src/htx.js +48 -48
  59. package/dist/cjs/src/huobijp.js +24 -24
  60. package/dist/cjs/src/idex.js +23 -23
  61. package/dist/cjs/src/independentreserve.js +12 -12
  62. package/dist/cjs/src/indodax.js +16 -16
  63. package/dist/cjs/src/kraken.js +48 -30
  64. package/dist/cjs/src/krakenfutures.js +16 -16
  65. package/dist/cjs/src/kucoin.js +39 -39
  66. package/dist/cjs/src/kucoinfutures.js +24 -24
  67. package/dist/cjs/src/kuna.js +25 -25
  68. package/dist/cjs/src/latoken.js +20 -20
  69. package/dist/cjs/src/lbank.js +24 -24
  70. package/dist/cjs/src/luno.js +27 -28
  71. package/dist/cjs/src/lykke.js +18 -18
  72. package/dist/cjs/src/mercado.js +13 -13
  73. package/dist/cjs/src/mexc.js +47 -45
  74. package/dist/cjs/src/ndax.js +23 -23
  75. package/dist/cjs/src/novadax.js +23 -23
  76. package/dist/cjs/src/oceanex.js +19 -19
  77. package/dist/cjs/src/okcoin.js +25 -25
  78. package/dist/cjs/src/okx.js +53 -53
  79. package/dist/cjs/src/p2b.js +14 -14
  80. package/dist/cjs/src/paymium.js +10 -10
  81. package/dist/cjs/src/phemex.js +162 -123
  82. package/dist/cjs/src/poloniex.js +27 -27
  83. package/dist/cjs/src/poloniexfutures.js +21 -21
  84. package/dist/cjs/src/pro/alpaca.js +6 -6
  85. package/dist/cjs/src/pro/ascendex.js +5 -5
  86. package/dist/cjs/src/pro/binance.js +21 -21
  87. package/dist/cjs/src/pro/bingx.js +6 -6
  88. package/dist/cjs/src/pro/bitfinex.js +4 -4
  89. package/dist/cjs/src/pro/bitfinex2.js +7 -7
  90. package/dist/cjs/src/pro/bitget.js +12 -12
  91. package/dist/cjs/src/pro/bitmart.js +5 -5
  92. package/dist/cjs/src/pro/bitmex.js +8 -8
  93. package/dist/cjs/src/pro/bitopro.js +4 -4
  94. package/dist/cjs/src/pro/bitpanda.js +7 -7
  95. package/dist/cjs/src/pro/bitrue.js +2 -2
  96. package/dist/cjs/src/pro/bitstamp.js +3 -3
  97. package/dist/cjs/src/pro/bittrex.js +7 -7
  98. package/dist/cjs/src/pro/bitvavo.js +6 -6
  99. package/dist/cjs/src/pro/blockchaincom.js +6 -6
  100. package/dist/cjs/src/pro/bybit.js +12 -12
  101. package/dist/cjs/src/pro/cex.js +9 -9
  102. package/dist/cjs/src/pro/coinbase.js +6 -6
  103. package/dist/cjs/src/pro/coinbasepro.js +10 -10
  104. package/dist/cjs/src/pro/coinex.js +7 -7
  105. package/dist/cjs/src/pro/cryptocom.js +13 -13
  106. package/dist/cjs/src/pro/currencycom.js +5 -5
  107. package/dist/cjs/src/pro/deribit.js +7 -7
  108. package/dist/cjs/src/pro/exmo.js +5 -5
  109. package/dist/cjs/src/pro/gate.js +10 -10
  110. package/dist/cjs/src/pro/gemini.js +4 -4
  111. package/dist/cjs/src/pro/hitbtc.js +11 -11
  112. package/dist/cjs/src/pro/hollaex.js +5 -5
  113. package/dist/cjs/src/pro/htx.js +8 -8
  114. package/dist/cjs/src/pro/huobijp.js +4 -4
  115. package/dist/cjs/src/pro/idex.js +5 -5
  116. package/dist/cjs/src/pro/independentreserve.js +2 -2
  117. package/dist/cjs/src/pro/kraken.js +11 -11
  118. package/dist/cjs/src/pro/krakenfutures.js +12 -9
  119. package/dist/cjs/src/pro/kucoin.js +10 -10
  120. package/dist/cjs/src/pro/kucoinfutures.js +8 -8
  121. package/dist/cjs/src/pro/luno.js +4 -4
  122. package/dist/cjs/src/pro/mexc.js +7 -7
  123. package/dist/cjs/src/pro/ndax.js +4 -4
  124. package/dist/cjs/src/pro/okcoin.js +6 -6
  125. package/dist/cjs/src/pro/okx.js +16 -16
  126. package/dist/cjs/src/pro/phemex.js +7 -7
  127. package/dist/cjs/src/pro/poloniex.js +7 -7
  128. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  129. package/dist/cjs/src/pro/probit.js +6 -6
  130. package/dist/cjs/src/pro/upbit.js +3 -3
  131. package/dist/cjs/src/pro/wazirx.js +7 -7
  132. package/dist/cjs/src/pro/whitebit.js +7 -7
  133. package/dist/cjs/src/pro/woo.js +1 -1
  134. package/dist/cjs/src/probit.js +24 -24
  135. package/dist/cjs/src/tidex.js +15 -15
  136. package/dist/cjs/src/timex.js +19 -19
  137. package/dist/cjs/src/tokocrypto.js +22 -24
  138. package/dist/cjs/src/upbit.js +22 -22
  139. package/dist/cjs/src/wavesexchange.js +19 -19
  140. package/dist/cjs/src/wazirx.js +22 -16
  141. package/dist/cjs/src/whitebit.js +29 -29
  142. package/dist/cjs/src/woo.js +26 -26
  143. package/dist/cjs/src/yobit.js +17 -17
  144. package/dist/cjs/src/zaif.js +10 -10
  145. package/dist/cjs/src/zonda.js +16 -16
  146. package/doc/manual.rst +1 -1
  147. package/doc/readme.rst +1 -1
  148. package/js/ccxt.d.ts +1 -1
  149. package/js/ccxt.js +1 -1
  150. package/js/src/abstract/mexc.d.ts +2 -0
  151. package/js/src/ace.js +13 -13
  152. package/js/src/alpaca.js +10 -10
  153. package/js/src/ascendex.js +33 -33
  154. package/js/src/base/Exchange.js +6 -6
  155. package/js/src/bigone.js +23 -23
  156. package/js/src/binance.js +68 -68
  157. package/js/src/binanceus.js +33 -3
  158. package/js/src/bingx.js +33 -33
  159. package/js/src/bit2c.js +11 -11
  160. package/js/src/bitbank.js +14 -14
  161. package/js/src/bitbns.js +15 -15
  162. package/js/src/bitfinex.js +24 -24
  163. package/js/src/bitfinex2.js +30 -30
  164. package/js/src/bitflyer.js +17 -17
  165. package/js/src/bitforex.js +12 -12
  166. package/js/src/bitget.js +50 -50
  167. package/js/src/bithumb.js +13 -13
  168. package/js/src/bitmart.js +74 -59
  169. package/js/src/bitmex.js +29 -28
  170. package/js/src/bitopro.js +23 -23
  171. package/js/src/bitpanda.js +25 -25
  172. package/js/src/bitrue.js +26 -26
  173. package/js/src/bitso.js +22 -22
  174. package/js/src/bitstamp.js +24 -24
  175. package/js/src/bittrex.js +31 -31
  176. package/js/src/bitvavo.js +23 -23
  177. package/js/src/bl3p.js +7 -7
  178. package/js/src/blockchaincom.js +23 -23
  179. package/js/src/btcalpha.js +17 -17
  180. package/js/src/btcbox.js +9 -9
  181. package/js/src/btcmarkets.js +19 -19
  182. package/js/src/btcturk.js +13 -13
  183. package/js/src/bybit.js +71 -67
  184. package/js/src/cex.js +17 -17
  185. package/js/src/coinbase.js +28 -28
  186. package/js/src/coinbasepro.js +27 -27
  187. package/js/src/coincheck.js +11 -11
  188. package/js/src/coinex.js +42 -42
  189. package/js/src/coinlist.js +29 -29
  190. package/js/src/coinmate.js +14 -14
  191. package/js/src/coinone.js +13 -13
  192. package/js/src/coinsph.js +25 -25
  193. package/js/src/coinspot.js +9 -9
  194. package/js/src/cryptocom.js +33 -32
  195. package/js/src/currencycom.js +24 -24
  196. package/js/src/delta.js +29 -29
  197. package/js/src/deribit.js +35 -35
  198. package/js/src/digifinex.js +43 -43
  199. package/js/src/exmo.js +30 -30
  200. package/js/src/gate.js +39 -39
  201. package/js/src/gemini.js +18 -18
  202. package/js/src/hitbtc.js +40 -40
  203. package/js/src/hollaex.js +26 -26
  204. package/js/src/htx.js +48 -48
  205. package/js/src/huobijp.js +24 -24
  206. package/js/src/idex.js +23 -23
  207. package/js/src/independentreserve.js +12 -12
  208. package/js/src/indodax.js +16 -16
  209. package/js/src/kraken.js +48 -30
  210. package/js/src/krakenfutures.js +16 -16
  211. package/js/src/kucoin.js +39 -39
  212. package/js/src/kucoinfutures.js +24 -24
  213. package/js/src/kuna.js +25 -25
  214. package/js/src/latoken.js +20 -20
  215. package/js/src/lbank.js +24 -24
  216. package/js/src/luno.js +27 -28
  217. package/js/src/lykke.js +18 -18
  218. package/js/src/mercado.js +13 -13
  219. package/js/src/mexc.js +47 -45
  220. package/js/src/ndax.js +23 -23
  221. package/js/src/novadax.js +23 -23
  222. package/js/src/oceanex.js +19 -19
  223. package/js/src/okcoin.js +25 -25
  224. package/js/src/okx.js +53 -53
  225. package/js/src/p2b.js +14 -14
  226. package/js/src/paymium.js +10 -10
  227. package/js/src/phemex.js +162 -123
  228. package/js/src/poloniex.js +27 -27
  229. package/js/src/poloniexfutures.js +21 -21
  230. package/js/src/pro/alpaca.js +6 -6
  231. package/js/src/pro/ascendex.js +5 -5
  232. package/js/src/pro/binance.js +21 -21
  233. package/js/src/pro/bingx.js +6 -6
  234. package/js/src/pro/bitfinex.js +4 -4
  235. package/js/src/pro/bitfinex2.js +7 -7
  236. package/js/src/pro/bitget.js +12 -12
  237. package/js/src/pro/bitmart.js +5 -5
  238. package/js/src/pro/bitmex.js +8 -8
  239. package/js/src/pro/bitopro.js +4 -4
  240. package/js/src/pro/bitpanda.js +7 -7
  241. package/js/src/pro/bitrue.js +2 -2
  242. package/js/src/pro/bitstamp.js +3 -3
  243. package/js/src/pro/bittrex.js +7 -7
  244. package/js/src/pro/bitvavo.js +6 -6
  245. package/js/src/pro/blockchaincom.js +6 -6
  246. package/js/src/pro/bybit.js +12 -12
  247. package/js/src/pro/cex.js +9 -9
  248. package/js/src/pro/coinbase.js +6 -6
  249. package/js/src/pro/coinbasepro.js +10 -10
  250. package/js/src/pro/coinex.js +7 -7
  251. package/js/src/pro/cryptocom.js +13 -13
  252. package/js/src/pro/currencycom.js +5 -5
  253. package/js/src/pro/deribit.js +7 -7
  254. package/js/src/pro/exmo.js +5 -5
  255. package/js/src/pro/gate.js +10 -10
  256. package/js/src/pro/gemini.js +4 -4
  257. package/js/src/pro/hitbtc.js +11 -11
  258. package/js/src/pro/hollaex.js +5 -5
  259. package/js/src/pro/htx.js +8 -8
  260. package/js/src/pro/huobijp.js +4 -4
  261. package/js/src/pro/idex.js +5 -5
  262. package/js/src/pro/independentreserve.js +2 -2
  263. package/js/src/pro/kraken.js +11 -11
  264. package/js/src/pro/krakenfutures.js +12 -9
  265. package/js/src/pro/kucoin.js +10 -10
  266. package/js/src/pro/kucoinfutures.js +8 -8
  267. package/js/src/pro/luno.js +4 -4
  268. package/js/src/pro/mexc.js +7 -7
  269. package/js/src/pro/ndax.js +4 -4
  270. package/js/src/pro/okcoin.js +6 -6
  271. package/js/src/pro/okx.js +16 -16
  272. package/js/src/pro/phemex.js +7 -7
  273. package/js/src/pro/poloniex.js +7 -7
  274. package/js/src/pro/poloniexfutures.js +5 -5
  275. package/js/src/pro/probit.js +6 -6
  276. package/js/src/pro/upbit.js +3 -3
  277. package/js/src/pro/wazirx.js +7 -7
  278. package/js/src/pro/whitebit.js +7 -7
  279. package/js/src/pro/woo.js +1 -1
  280. package/js/src/probit.js +24 -24
  281. package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
  282. package/js/src/tidex.js +15 -15
  283. package/js/src/timex.js +19 -19
  284. package/js/src/tokocrypto.js +22 -24
  285. package/js/src/upbit.js +22 -22
  286. package/js/src/wavesexchange.js +19 -19
  287. package/js/src/wazirx.js +22 -16
  288. package/js/src/whitebit.js +29 -29
  289. package/js/src/woo.js +26 -26
  290. package/js/src/yobit.js +17 -17
  291. package/js/src/zaif.js +10 -10
  292. package/js/src/zonda.js +16 -16
  293. package/package.json +1 -1
package/js/src/pro/htx.js CHANGED
@@ -134,7 +134,7 @@ export default class htx extends htxRest {
134
134
  * @name huobi#watchTicker
135
135
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
136
136
  * @param {string} symbol unified symbol of the market to fetch the ticker for
137
- * @param {object} [params] extra parameters specific to the huobi api endpoint
137
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
138
138
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
139
139
  */
140
140
  await this.loadMarkets();
@@ -204,7 +204,7 @@ export default class htx extends htxRest {
204
204
  * @param {string} symbol unified symbol of the market to fetch trades for
205
205
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
206
206
  * @param {int} [limit] the maximum amount of trades to fetch
207
- * @param {object} [params] extra parameters specific to the huobi api endpoint
207
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
208
208
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
209
209
  */
210
210
  await this.loadMarkets();
@@ -268,7 +268,7 @@ export default class htx extends htxRest {
268
268
  * @param {string} timeframe the length of time each candle represents
269
269
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
270
270
  * @param {int} [limit] the maximum amount of candles to fetch
271
- * @param {object} [params] extra parameters specific to the huobi api endpoint
271
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
272
272
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
273
273
  */
274
274
  await this.loadMarkets();
@@ -329,7 +329,7 @@ export default class htx extends htxRest {
329
329
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
330
330
  * @param {string} symbol unified symbol of the market to fetch the order book for
331
331
  * @param {int} [limit] the maximum amount of order book entries to return
332
- * @param {object} [params] extra parameters specific to the huobi api endpoint
332
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
333
333
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
334
334
  */
335
335
  await this.loadMarkets();
@@ -666,7 +666,7 @@ export default class htx extends htxRest {
666
666
  * @param {string} symbol unified market symbol of the market trades were made in
667
667
  * @param {int} [since] the earliest time in ms to fetch trades for
668
668
  * @param {int} [limit] the maximum number of trade structures to retrieve
669
- * @param {object} [params] extra parameters specific to the huobi api endpoint
669
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
670
670
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
671
671
  */
672
672
  this.checkRequiredCredentials();
@@ -769,7 +769,7 @@ export default class htx extends htxRest {
769
769
  * @param {string} symbol unified market symbol of the market orders were made in
770
770
  * @param {int} [since] the earliest time in ms to fetch orders for
771
771
  * @param {int} [limit] the maximum number of orde structures to retrieve
772
- * @param {object} [params] extra parameters specific to the huobi api endpoint
772
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
773
773
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
774
774
  */
775
775
  await this.loadMarkets();
@@ -1219,7 +1219,7 @@ export default class htx extends htxRest {
1219
1219
  * @see https://www.huobi.com/en-in/opend/newApiPages/?id=5d5156b5-77b6-11ed-9966-0242ac110003
1220
1220
  * @description watch all open positions. Note: huobi has one channel for each marginMode and type
1221
1221
  * @param {string[]|undefined} symbols list of unified market symbols
1222
- * @param {object} params extra parameters specific to the huobi api endpoint
1222
+ * @param {object} params extra parameters specific to the exchange API endpoint
1223
1223
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
1224
1224
  */
1225
1225
  await this.loadMarkets();
@@ -1335,7 +1335,7 @@ export default class htx extends htxRest {
1335
1335
  * @method
1336
1336
  * @name huobi#watchBalance
1337
1337
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
1338
- * @param {object} [params] extra parameters specific to the huobi api endpoint
1338
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1339
1339
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1340
1340
  */
1341
1341
  let type = undefined;
@@ -52,7 +52,7 @@ export default class huobijp extends huobijpRest {
52
52
  * @name huobijp#watchTicker
53
53
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
54
54
  * @param {string} symbol unified symbol of the market to fetch the ticker for
55
- * @param {object} [params] extra parameters specific to the huobijp api endpoint
55
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
56
56
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
57
57
  */
58
58
  await this.loadMarkets();
@@ -116,7 +116,7 @@ export default class huobijp extends huobijpRest {
116
116
  * @param {string} symbol unified symbol of the market to fetch trades for
117
117
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
118
118
  * @param {int} [limit] the maximum amount of trades to fetch
119
- * @param {object} [params] extra parameters specific to the huobijp api endpoint
119
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
120
120
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
121
121
  */
122
122
  await this.loadMarkets();
@@ -194,7 +194,7 @@ export default class huobijp extends huobijpRest {
194
194
  * @param {string} timeframe the length of time each candle represents
195
195
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
196
196
  * @param {int} [limit] the maximum amount of candles to fetch
197
- * @param {object} [params] extra parameters specific to the huobijp api endpoint
197
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
198
198
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
199
199
  */
200
200
  await this.loadMarkets();
@@ -266,7 +266,7 @@ export default class huobijp extends huobijpRest {
266
266
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
267
267
  * @param {string} symbol unified symbol of the market to fetch the order book for
268
268
  * @param {int} [limit] the maximum amount of order book entries to return
269
- * @param {object} [params] extra parameters specific to the huobijp api endpoint
269
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
270
270
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
271
271
  */
272
272
  if ((limit !== undefined) && (limit !== 150)) {
@@ -72,7 +72,7 @@ export default class idex extends idexRest {
72
72
  * @name idex#watchTicker
73
73
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
74
74
  * @param {string} symbol unified symbol of the market to fetch the ticker for
75
- * @param {object} [params] extra parameters specific to the idex api endpoint
75
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
76
76
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
77
77
  */
78
78
  await this.loadMarkets();
@@ -146,7 +146,7 @@ export default class idex extends idexRest {
146
146
  * @param {string} symbol unified symbol of the market to fetch trades for
147
147
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
148
148
  * @param {int} [limit] the maximum amount of trades to fetch
149
- * @param {object} [params] extra parameters specific to the idex api endpoint
149
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
150
150
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
151
151
  */
152
152
  await this.loadMarkets();
@@ -241,7 +241,7 @@ export default class idex extends idexRest {
241
241
  * @param {string} timeframe the length of time each candle represents
242
242
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
243
243
  * @param {int} [limit] the maximum amount of candles to fetch
244
- * @param {object} [params] extra parameters specific to the idex api endpoint
244
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
245
245
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
246
246
  */
247
247
  await this.loadMarkets();
@@ -409,7 +409,7 @@ export default class idex extends idexRest {
409
409
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
410
410
  * @param {string} symbol unified symbol of the market to fetch the order book for
411
411
  * @param {int} [limit] the maximum amount of order book entries to return
412
- * @param {object} [params] extra parameters specific to the idex api endpoint
412
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
413
413
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
414
414
  */
415
415
  await this.loadMarkets();
@@ -513,7 +513,7 @@ export default class idex extends idexRest {
513
513
  * @param {string} symbol unified market symbol of the market orders were made in
514
514
  * @param {int} [since] the earliest time in ms to fetch orders for
515
515
  * @param {int} [limit] the maximum number of orde structures to retrieve
516
- * @param {object} [params] extra parameters specific to the idex api endpoint
516
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
517
517
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
518
518
  */
519
519
  await this.loadMarkets();
@@ -43,7 +43,7 @@ export default class independentreserve extends independentreserveRest {
43
43
  * @param {string} symbol unified symbol of the market to fetch trades for
44
44
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
45
45
  * @param {int} [limit] the maximum amount of trades to fetch
46
- * @param {object} [params] extra parameters specific to the independentreserve api endpoint
46
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
47
47
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
48
48
  */
49
49
  await this.loadMarkets();
@@ -126,7 +126,7 @@ export default class independentreserve extends independentreserveRest {
126
126
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
127
127
  * @param {string} symbol unified symbol of the market to fetch the order book for
128
128
  * @param {int} [limit] the maximum amount of order book entries to return
129
- * @param {object} [params] extra parameters specific to the independentreserve api endpoint
129
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
130
130
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
131
131
  */
132
132
  await this.loadMarkets();
@@ -117,7 +117,7 @@ export default class kraken extends krakenRest {
117
117
  * @param {string} side 'buy' or 'sell'
118
118
  * @param {float} amount how much of currency you want to trade in units of base currency
119
119
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
120
- * @param {object} [params] extra parameters specific to the kraken api endpoint
120
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
121
121
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
122
122
  */
123
123
  await this.loadMarkets();
@@ -174,7 +174,7 @@ export default class kraken extends krakenRest {
174
174
  * @param {string} side 'buy' or 'sell'
175
175
  * @param {float} amount how much of the currency you want to trade in units of the base currency
176
176
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
177
- * @param {object} [params] extra parameters specific to the kraken api endpoint
177
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
178
178
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
179
179
  */
180
180
  await this.loadMarkets();
@@ -202,7 +202,7 @@ export default class kraken extends krakenRest {
202
202
  * @description cancel multiple orders
203
203
  * @param {string[]} ids order ids
204
204
  * @param {string} symbol unified market symbol, default is undefined
205
- * @param {object} [params] extra parameters specific to the kraken api endpoint
205
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
206
206
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
207
207
  */
208
208
  await this.loadMarkets();
@@ -226,7 +226,7 @@ export default class kraken extends krakenRest {
226
226
  * @description cancels an open order
227
227
  * @param {string} id order id
228
228
  * @param {string} symbol unified symbol of the market the order was made in
229
- * @param {object} [params] extra parameters specific to the kraken api endpoint
229
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
230
230
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
231
231
  */
232
232
  await this.loadMarkets();
@@ -263,7 +263,7 @@ export default class kraken extends krakenRest {
263
263
  * @see https://docs.kraken.com/websockets/#message-cancelAll
264
264
  * @description cancel all open orders
265
265
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
266
- * @param {object} [params] extra parameters specific to the kraken api endpoint
266
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
267
267
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
268
268
  */
269
269
  if (symbol !== undefined) {
@@ -468,7 +468,7 @@ export default class kraken extends krakenRest {
468
468
  * @name kraken#watchTicker
469
469
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
470
470
  * @param {string} symbol unified symbol of the market to fetch the ticker for
471
- * @param {object} [params] extra parameters specific to the kraken api endpoint
471
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
472
472
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
473
473
  */
474
474
  return await this.watchPublic('ticker', symbol, params);
@@ -481,7 +481,7 @@ export default class kraken extends krakenRest {
481
481
  * @param {string} symbol unified symbol of the market to fetch trades for
482
482
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
483
483
  * @param {int} [limit] the maximum amount of trades to fetch
484
- * @param {object} [params] extra parameters specific to the kraken api endpoint
484
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
485
485
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
486
486
  */
487
487
  await this.loadMarkets();
@@ -500,7 +500,7 @@ export default class kraken extends krakenRest {
500
500
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
501
501
  * @param {string} symbol unified symbol of the market to fetch the order book for
502
502
  * @param {int} [limit] the maximum amount of order book entries to return
503
- * @param {object} [params] extra parameters specific to the kraken api endpoint
503
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
504
504
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
505
505
  */
506
506
  const name = 'book';
@@ -527,7 +527,7 @@ export default class kraken extends krakenRest {
527
527
  * @param {string} timeframe the length of time each candle represents
528
528
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
529
529
  * @param {int} [limit] the maximum amount of candles to fetch
530
- * @param {object} [params] extra parameters specific to the kraken api endpoint
530
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
531
531
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
532
532
  */
533
533
  await this.loadMarkets();
@@ -832,7 +832,7 @@ export default class kraken extends krakenRest {
832
832
  * @param {string} symbol unified market symbol of the market trades were made in
833
833
  * @param {int} [since] the earliest time in ms to fetch trades for
834
834
  * @param {int} [limit] the maximum number of trade structures to retrieve
835
- * @param {object} [params] extra parameters specific to the kraken api endpoint
835
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
836
836
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
837
837
  */
838
838
  return await this.watchPrivate('ownTrades', symbol, since, limit, params);
@@ -994,7 +994,7 @@ export default class kraken extends krakenRest {
994
994
  * @param {string} symbol unified market symbol of the market orders were made in
995
995
  * @param {int} [since] the earliest time in ms to fetch orders for
996
996
  * @param {int} [limit] the maximum number of orde structures to retrieve
997
- * @param {object} [params] extra parameters specific to the kraken api endpoint
997
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
998
998
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
999
999
  */
1000
1000
  return await this.watchPrivate('openOrders', symbol, since, limit, params);
@@ -158,7 +158,7 @@ export default class krakenfutures extends krakenfuturesRest {
158
158
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
159
159
  * @see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker
160
160
  * @param {string} symbol unified symbol of the market to fetch the ticker for
161
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
161
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
162
162
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
163
163
  */
164
164
  const options = this.safeValue(this.options, 'watchTicker');
@@ -174,7 +174,7 @@ export default class krakenfutures extends krakenfuturesRest {
174
174
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
175
175
  * @see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker-lite
176
176
  * @param {string} symbol unified symbol of the market to fetch the ticker for
177
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
177
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
178
178
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
179
179
  */
180
180
  const method = this.safeString(this.options, 'watchTickerMethod', 'ticker'); // or ticker_lite
@@ -192,7 +192,7 @@ export default class krakenfutures extends krakenfuturesRest {
192
192
  * @param {string} symbol unified symbol of the market to fetch trades for
193
193
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
194
194
  * @param {int} [limit] the maximum amount of trades to fetch
195
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
195
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
196
196
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
197
197
  */
198
198
  await this.loadMarkets();
@@ -211,7 +211,7 @@ export default class krakenfutures extends krakenfuturesRest {
211
211
  * @see https://docs.futures.kraken.com/#websocket-api-public-feeds-book
212
212
  * @param {string} symbol unified symbol of the market to fetch the order book for
213
213
  * @param {int} [limit] not used by krakenfutures watchOrderBook
214
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
214
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
215
215
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
216
216
  */
217
217
  const orderbook = await this.subscribePublic('book', [symbol], params);
@@ -224,7 +224,7 @@ export default class krakenfutures extends krakenfuturesRest {
224
224
  * @see https://docs.futures.kraken.com/#websocket-api-private-feeds-open-positions
225
225
  * @description watch all open positions
226
226
  * @param {string[]|undefined} symbols list of unified market symbols
227
- * @param {object} params extra parameters specific to the krakenfutures api endpoint
227
+ * @param {object} params extra parameters specific to the exchange API endpoint
228
228
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
229
229
  */
230
230
  await this.loadMarkets();
@@ -354,7 +354,7 @@ export default class krakenfutures extends krakenfuturesRest {
354
354
  * @param {string} symbol not used by krakenfutures watchOrders
355
355
  * @param {int} [since] not used by krakenfutures watchOrders
356
356
  * @param {int} [limit] not used by krakenfutures watchOrders
357
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
357
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
358
358
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
359
359
  */
360
360
  await this.loadMarkets();
@@ -379,7 +379,7 @@ export default class krakenfutures extends krakenfuturesRest {
379
379
  * @param {string} symbol unified market symbol of the market orders were made in
380
380
  * @param {int} [since] the earliest time in ms to fetch orders for
381
381
  * @param {int} [limit] the maximum number of orde structures to retrieve
382
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
382
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
383
383
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
384
384
  */
385
385
  await this.loadMarkets();
@@ -404,9 +404,9 @@ export default class krakenfutures extends krakenfuturesRest {
404
404
  * @param {string} symbol not used by krakenfutures watchBalance
405
405
  * @param {int} [since] not used by krakenfutures watchBalance
406
406
  * @param {int} [limit] not used by krakenfutures watchBalance
407
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
407
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
408
408
  * @param {string} [params.account] can be either 'futures' or 'flex_futures'
409
- * @returns {object[]} a list of [balance structures]{@link https://docs.ccxt.com/#/?id=balance-structure}
409
+ * @returns {object} a object of wallet types each with a balance structure {@link https://docs.ccxt.com/#/?id=balance-structure}
410
410
  */
411
411
  await this.loadMarkets();
412
412
  const name = 'balances';
@@ -1271,6 +1271,7 @@ export default class krakenfutures extends krakenfuturesRest {
1271
1271
  holdingResult[code] = newAccount;
1272
1272
  }
1273
1273
  this.balance['cash'] = holdingResult;
1274
+ this.balance['cash'] = this.safeBalance(this.balance['cash']);
1274
1275
  client.resolve(holdingResult, messageHash);
1275
1276
  }
1276
1277
  if (futures !== undefined) {
@@ -1294,6 +1295,7 @@ export default class krakenfutures extends krakenfuturesRest {
1294
1295
  futuresResult[symbol][code] = newAccount;
1295
1296
  }
1296
1297
  this.balance['margin'] = futuresResult;
1298
+ this.balance['margin'] = this.safeBalance(this.balance['margin']);
1297
1299
  client.resolve(this.balance['margin'], messageHash + 'futures');
1298
1300
  }
1299
1301
  if (flexFutures !== undefined) {
@@ -1315,6 +1317,7 @@ export default class krakenfutures extends krakenfuturesRest {
1315
1317
  flexFuturesResult[code] = newAccount;
1316
1318
  }
1317
1319
  this.balance['flex'] = flexFuturesResult;
1320
+ this.balance['flex'] = this.safeBalance(this.balance['flex']);
1318
1321
  client.resolve(this.balance['flex'], messageHash + 'flex_futures');
1319
1322
  }
1320
1323
  client.resolve(this.balance, messageHash);
@@ -130,7 +130,7 @@ export default class kucoin extends kucoinRest {
130
130
  * @name kucoin#watchTicker
131
131
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
132
132
  * @param {string} symbol unified symbol of the market to fetch the ticker for
133
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
133
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
134
134
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
135
135
  */
136
136
  await this.loadMarkets();
@@ -148,7 +148,7 @@ export default class kucoin extends kucoinRest {
148
148
  * @name kucoin#watchTickers
149
149
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
150
150
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
151
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
151
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
152
152
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
153
153
  */
154
154
  await this.loadMarkets();
@@ -266,7 +266,7 @@ export default class kucoin extends kucoinRest {
266
266
  * @param {string} timeframe the length of time each candle represents
267
267
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
268
268
  * @param {int} [limit] the maximum amount of candles to fetch
269
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
269
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
270
270
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
271
271
  */
272
272
  await this.loadMarkets();
@@ -333,7 +333,7 @@ export default class kucoin extends kucoinRest {
333
333
  * @param {string} symbol unified symbol of the market to fetch trades for
334
334
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
335
335
  * @param {int} [limit] the maximum amount of trades to fetch
336
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
336
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
337
337
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
338
338
  */
339
339
  await this.loadMarkets();
@@ -356,7 +356,7 @@ export default class kucoin extends kucoinRest {
356
356
  * @param {string} symbol unified symbol of the market to fetch trades for
357
357
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
358
358
  * @param {int} [limit] the maximum amount of trades to fetch
359
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
359
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
360
360
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
361
361
  */
362
362
  const symbolsLength = symbols.length;
@@ -420,7 +420,7 @@ export default class kucoin extends kucoinRest {
420
420
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
421
421
  * @param {string} symbol unified symbol of the market to fetch the order book for
422
422
  * @param {int} [limit] the maximum amount of order book entries to return
423
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
423
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
424
424
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
425
425
  */
426
426
  //
@@ -464,7 +464,7 @@ export default class kucoin extends kucoinRest {
464
464
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
465
465
  * @param {string[]} symbols unified array of symbols
466
466
  * @param {int} [limit] the maximum amount of order book entries to return
467
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
467
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
468
468
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
469
469
  */
470
470
  const symbolsLength = symbols.length;
@@ -639,7 +639,7 @@ export default class kucoin extends kucoinRest {
639
639
  * @param {string} symbol unified market symbol of the market orders were made in
640
640
  * @param {int} [since] the earliest time in ms to fetch orders for
641
641
  * @param {int} [limit] the maximum number of order structures to retrieve
642
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
642
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
643
643
  * @param {boolean} [params.stop] trigger orders are watched if true
644
644
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
645
645
  */
@@ -804,7 +804,7 @@ export default class kucoin extends kucoinRest {
804
804
  * @param {string} symbol unified market symbol of the market trades were made in
805
805
  * @param {int} [since] the earliest time in ms to fetch trades for
806
806
  * @param {int} [limit] the maximum number of trade structures to retrieve
807
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
807
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
808
808
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
809
809
  */
810
810
  await this.loadMarkets();
@@ -894,7 +894,7 @@ export default class kucoin extends kucoinRest {
894
894
  * @method
895
895
  * @name kucoin#watchBalance
896
896
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
897
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
897
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
898
898
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
899
899
  */
900
900
  await this.loadMarkets();
@@ -146,7 +146,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
146
146
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
147
147
  * @see https://docs.kucoin.com/futures/#get-real-time-symbol-ticker-v2
148
148
  * @param {string} symbol unified symbol of the market to fetch the ticker for
149
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
149
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
150
150
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
151
151
  */
152
152
  await this.loadMarkets();
@@ -194,7 +194,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
194
194
  * @description watch open positions for a specific symbol
195
195
  * @see https://docs.kucoin.com/futures/#position-change-events
196
196
  * @param {string|undefined} symbol unified market symbol
197
- * @param {object} params extra parameters specific to the kucoinfutures api endpoint
197
+ * @param {object} params extra parameters specific to the exchange API endpoint
198
198
  * @returns {object} a [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
199
199
  */
200
200
  if (symbol === undefined) {
@@ -370,7 +370,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
370
370
  * @param {string} symbol unified symbol of the market to fetch trades for
371
371
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
372
372
  * @param {int} [limit] the maximum amount of trades to fetch
373
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
373
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
374
374
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
375
375
  */
376
376
  await this.loadMarkets();
@@ -393,7 +393,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
393
393
  * @param {string} symbol unified symbol of the market to fetch trades for
394
394
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
395
395
  * @param {int} [limit] the maximum amount of trades to fetch
396
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
396
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
397
397
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
398
398
  */
399
399
  const symbolsLength = symbols.length;
@@ -465,7 +465,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
465
465
  * @see https://docs.kucoin.com/futures/#level-2-market-data
466
466
  * @param {string} symbol unified symbol of the market to fetch the order book for
467
467
  * @param {int} [limit] the maximum amount of order book entries to return
468
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
468
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
469
469
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
470
470
  */
471
471
  if (limit !== undefined) {
@@ -494,7 +494,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
494
494
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
495
495
  * @param {string[]} symbols unified array of symbols
496
496
  * @param {int} [limit] the maximum amount of order book entries to return
497
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
497
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
498
498
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
499
499
  */
500
500
  const symbolsLength = symbols.length;
@@ -672,7 +672,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
672
672
  * @param {string} symbol unified market symbol of the market orders were made in
673
673
  * @param {int} [since] the earliest time in ms to fetch orders for
674
674
  * @param {int} [limit] the maximum number of orde structures to retrieve
675
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
675
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
676
676
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
677
677
  */
678
678
  await this.loadMarkets();
@@ -794,7 +794,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
794
794
  * @name kucoinfutures#watchBalance
795
795
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
796
796
  * @see https://docs.kucoin.com/futures/#account-balance-events
797
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
797
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
798
798
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
799
799
  */
800
800
  await this.loadMarkets();
@@ -42,10 +42,10 @@ export default class luno extends lunoRest {
42
42
  * @param {string} symbol unified symbol of the market to fetch trades for
43
43
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
44
44
  * @param {int} [limit] the maximum amount of trades to fetch
45
- * @param {object} [params] extra parameters specific to the luno api endpoint
45
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
46
46
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
47
47
  */
48
- await this.checkRequiredCredentials();
48
+ this.checkRequiredCredentials();
49
49
  await this.loadMarkets();
50
50
  const market = this.market(symbol);
51
51
  symbol = market['symbol'];
@@ -138,11 +138,11 @@ export default class luno extends lunoRest {
138
138
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
139
139
  * @param {string} symbol unified symbol of the market to fetch the order book for
140
140
  * @param {int} [limit] the maximum amount of order book entries to return
141
- * @param {objectConstructor} [params] extra parameters specific to the luno api endpoint
141
+ * @param {objectConstructor} [params] extra parameters specific to the exchange API endpoint
142
142
  * @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
143
143
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
144
144
  */
145
- await this.checkRequiredCredentials();
145
+ this.checkRequiredCredentials();
146
146
  await this.loadMarkets();
147
147
  const market = this.market(symbol);
148
148
  symbol = market['symbol'];
@@ -75,7 +75,7 @@ export default class mexc extends mexcRest {
75
75
  * @name mexc3#watchTicker
76
76
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
77
77
  * @param {string} symbol unified symbol of the market to fetch the ticker for
78
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
78
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
79
79
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
80
80
  */
81
81
  await this.loadMarkets();
@@ -212,7 +212,7 @@ export default class mexc extends mexcRest {
212
212
  * @param {string} timeframe the length of time each candle represents
213
213
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
214
214
  * @param {int} [limit] the maximum amount of candles to fetch
215
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
215
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
216
216
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
217
217
  */
218
218
  await this.loadMarkets();
@@ -356,7 +356,7 @@ export default class mexc extends mexcRest {
356
356
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
357
357
  * @param {string} symbol unified symbol of the market to fetch the order book for
358
358
  * @param {int} [limit] the maximum amount of order book entries to return
359
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
359
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
360
360
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
361
361
  */
362
362
  await this.loadMarkets();
@@ -524,7 +524,7 @@ export default class mexc extends mexcRest {
524
524
  * @param {string} symbol unified symbol of the market to fetch trades for
525
525
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
526
526
  * @param {int} [limit] the maximum amount of trades to fetch
527
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
527
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
528
528
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
529
529
  */
530
530
  await this.loadMarkets();
@@ -613,7 +613,7 @@ export default class mexc extends mexcRest {
613
613
  * @param {string} symbol unified market symbol of the market trades were made in
614
614
  * @param {int} [since] the earliest time in ms to fetch trades for
615
615
  * @param {int} [limit] the maximum number of trade structures to retrieve
616
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
616
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
617
617
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
618
618
  */
619
619
  await this.loadMarkets();
@@ -741,7 +741,7 @@ export default class mexc extends mexcRest {
741
741
  * @param {string} symbol unified market symbol of the market orders were made in
742
742
  * @param {int} [since] the earliest time in ms to fetch orders for
743
743
  * @param {int} [limit] the maximum number of orde structures to retrieve
744
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
744
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
745
745
  * @params {string|undefined} params.type the type of orders to retrieve, can be 'spot' or 'margin'
746
746
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
747
747
  */
@@ -989,7 +989,7 @@ export default class mexc extends mexcRest {
989
989
  * @name mexc3#watchBalance
990
990
  * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#spot-account-upadte
991
991
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
992
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
992
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
993
993
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
994
994
  */
995
995
  await this.loadMarkets();