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
@@ -131,7 +131,7 @@ class htx extends htx$1 {
131
131
  * @name huobi#watchTicker
132
132
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
133
133
  * @param {string} symbol unified symbol of the market to fetch the ticker for
134
- * @param {object} [params] extra parameters specific to the huobi api endpoint
134
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
135
135
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
136
136
  */
137
137
  await this.loadMarkets();
@@ -201,7 +201,7 @@ class htx extends htx$1 {
201
201
  * @param {string} symbol unified symbol of the market to fetch trades for
202
202
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
203
203
  * @param {int} [limit] the maximum amount of trades to fetch
204
- * @param {object} [params] extra parameters specific to the huobi api endpoint
204
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
205
205
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
206
206
  */
207
207
  await this.loadMarkets();
@@ -265,7 +265,7 @@ class htx extends htx$1 {
265
265
  * @param {string} timeframe the length of time each candle represents
266
266
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
267
267
  * @param {int} [limit] the maximum amount of candles to fetch
268
- * @param {object} [params] extra parameters specific to the huobi api endpoint
268
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
269
269
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
270
270
  */
271
271
  await this.loadMarkets();
@@ -326,7 +326,7 @@ class htx extends htx$1 {
326
326
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
327
327
  * @param {string} symbol unified symbol of the market to fetch the order book for
328
328
  * @param {int} [limit] the maximum amount of order book entries to return
329
- * @param {object} [params] extra parameters specific to the huobi api endpoint
329
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
330
330
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
331
331
  */
332
332
  await this.loadMarkets();
@@ -663,7 +663,7 @@ class htx extends htx$1 {
663
663
  * @param {string} symbol unified market symbol of the market trades were made in
664
664
  * @param {int} [since] the earliest time in ms to fetch trades for
665
665
  * @param {int} [limit] the maximum number of trade structures to retrieve
666
- * @param {object} [params] extra parameters specific to the huobi api endpoint
666
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
667
667
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
668
668
  */
669
669
  this.checkRequiredCredentials();
@@ -766,7 +766,7 @@ class htx extends htx$1 {
766
766
  * @param {string} symbol unified market symbol of the market orders were made in
767
767
  * @param {int} [since] the earliest time in ms to fetch orders for
768
768
  * @param {int} [limit] the maximum number of orde structures to retrieve
769
- * @param {object} [params] extra parameters specific to the huobi api endpoint
769
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
770
770
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
771
771
  */
772
772
  await this.loadMarkets();
@@ -1216,7 +1216,7 @@ class htx extends htx$1 {
1216
1216
  * @see https://www.huobi.com/en-in/opend/newApiPages/?id=5d5156b5-77b6-11ed-9966-0242ac110003
1217
1217
  * @description watch all open positions. Note: huobi has one channel for each marginMode and type
1218
1218
  * @param {string[]|undefined} symbols list of unified market symbols
1219
- * @param {object} params extra parameters specific to the huobi api endpoint
1219
+ * @param {object} params extra parameters specific to the exchange API endpoint
1220
1220
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
1221
1221
  */
1222
1222
  await this.loadMarkets();
@@ -1332,7 +1332,7 @@ class htx extends htx$1 {
1332
1332
  * @method
1333
1333
  * @name huobi#watchBalance
1334
1334
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
1335
- * @param {object} [params] extra parameters specific to the huobi api endpoint
1335
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1336
1336
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1337
1337
  */
1338
1338
  let type = undefined;
@@ -49,7 +49,7 @@ class huobijp extends huobijp$1 {
49
49
  * @name huobijp#watchTicker
50
50
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
51
51
  * @param {string} symbol unified symbol of the market to fetch the ticker for
52
- * @param {object} [params] extra parameters specific to the huobijp api endpoint
52
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
53
53
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
54
54
  */
55
55
  await this.loadMarkets();
@@ -113,7 +113,7 @@ class huobijp extends huobijp$1 {
113
113
  * @param {string} symbol unified symbol of the market to fetch trades for
114
114
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
115
115
  * @param {int} [limit] the maximum amount of trades to fetch
116
- * @param {object} [params] extra parameters specific to the huobijp api endpoint
116
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
117
117
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
118
118
  */
119
119
  await this.loadMarkets();
@@ -191,7 +191,7 @@ class huobijp extends huobijp$1 {
191
191
  * @param {string} timeframe the length of time each candle represents
192
192
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
193
193
  * @param {int} [limit] the maximum amount of candles to fetch
194
- * @param {object} [params] extra parameters specific to the huobijp api endpoint
194
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
195
195
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
196
196
  */
197
197
  await this.loadMarkets();
@@ -263,7 +263,7 @@ class huobijp extends huobijp$1 {
263
263
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
264
264
  * @param {string} symbol unified symbol of the market to fetch the order book for
265
265
  * @param {int} [limit] the maximum amount of order book entries to return
266
- * @param {object} [params] extra parameters specific to the huobijp api endpoint
266
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
267
267
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
268
268
  */
269
269
  if ((limit !== undefined) && (limit !== 150)) {
@@ -69,7 +69,7 @@ class idex extends idex$1 {
69
69
  * @name idex#watchTicker
70
70
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
71
71
  * @param {string} symbol unified symbol of the market to fetch the ticker for
72
- * @param {object} [params] extra parameters specific to the idex api endpoint
72
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
73
73
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
74
74
  */
75
75
  await this.loadMarkets();
@@ -143,7 +143,7 @@ class idex extends idex$1 {
143
143
  * @param {string} symbol unified symbol of the market to fetch trades for
144
144
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
145
145
  * @param {int} [limit] the maximum amount of trades to fetch
146
- * @param {object} [params] extra parameters specific to the idex api endpoint
146
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
147
147
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
148
148
  */
149
149
  await this.loadMarkets();
@@ -238,7 +238,7 @@ class idex extends idex$1 {
238
238
  * @param {string} timeframe the length of time each candle represents
239
239
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
240
240
  * @param {int} [limit] the maximum amount of candles to fetch
241
- * @param {object} [params] extra parameters specific to the idex api endpoint
241
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
242
242
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
243
243
  */
244
244
  await this.loadMarkets();
@@ -406,7 +406,7 @@ class idex extends idex$1 {
406
406
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
407
407
  * @param {string} symbol unified symbol of the market to fetch the order book for
408
408
  * @param {int} [limit] the maximum amount of order book entries to return
409
- * @param {object} [params] extra parameters specific to the idex api endpoint
409
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
410
410
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
411
411
  */
412
412
  await this.loadMarkets();
@@ -510,7 +510,7 @@ class idex extends idex$1 {
510
510
  * @param {string} symbol unified market symbol of the market orders were made in
511
511
  * @param {int} [since] the earliest time in ms to fetch orders for
512
512
  * @param {int} [limit] the maximum number of orde structures to retrieve
513
- * @param {object} [params] extra parameters specific to the idex api endpoint
513
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
514
514
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
515
515
  */
516
516
  await this.loadMarkets();
@@ -40,7 +40,7 @@ class independentreserve extends independentreserve$1 {
40
40
  * @param {string} symbol unified symbol of the market to fetch trades for
41
41
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
42
42
  * @param {int} [limit] the maximum amount of trades to fetch
43
- * @param {object} [params] extra parameters specific to the independentreserve api endpoint
43
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
44
44
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
45
45
  */
46
46
  await this.loadMarkets();
@@ -123,7 +123,7 @@ class independentreserve extends independentreserve$1 {
123
123
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
124
124
  * @param {string} symbol unified symbol of the market to fetch the order book for
125
125
  * @param {int} [limit] the maximum amount of order book entries to return
126
- * @param {object} [params] extra parameters specific to the independentreserve api endpoint
126
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
127
127
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
128
128
  */
129
129
  await this.loadMarkets();
@@ -114,7 +114,7 @@ class kraken extends kraken$1 {
114
114
  * @param {string} side 'buy' or 'sell'
115
115
  * @param {float} amount how much of currency you want to trade in units of base currency
116
116
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
117
- * @param {object} [params] extra parameters specific to the kraken api endpoint
117
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
118
118
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
119
119
  */
120
120
  await this.loadMarkets();
@@ -171,7 +171,7 @@ class kraken extends kraken$1 {
171
171
  * @param {string} side 'buy' or 'sell'
172
172
  * @param {float} amount how much of the currency you want to trade in units of the base currency
173
173
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
174
- * @param {object} [params] extra parameters specific to the kraken api endpoint
174
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
175
175
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
176
176
  */
177
177
  await this.loadMarkets();
@@ -199,7 +199,7 @@ class kraken extends kraken$1 {
199
199
  * @description cancel multiple orders
200
200
  * @param {string[]} ids order ids
201
201
  * @param {string} symbol unified market symbol, default is undefined
202
- * @param {object} [params] extra parameters specific to the kraken api endpoint
202
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
203
203
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
204
204
  */
205
205
  await this.loadMarkets();
@@ -223,7 +223,7 @@ class kraken extends kraken$1 {
223
223
  * @description cancels an open order
224
224
  * @param {string} id order id
225
225
  * @param {string} symbol unified symbol of the market the order was made in
226
- * @param {object} [params] extra parameters specific to the kraken api endpoint
226
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
227
227
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
228
228
  */
229
229
  await this.loadMarkets();
@@ -260,7 +260,7 @@ class kraken extends kraken$1 {
260
260
  * @see https://docs.kraken.com/websockets/#message-cancelAll
261
261
  * @description cancel all open orders
262
262
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
263
- * @param {object} [params] extra parameters specific to the kraken api endpoint
263
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
264
264
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
265
265
  */
266
266
  if (symbol !== undefined) {
@@ -465,7 +465,7 @@ class kraken extends kraken$1 {
465
465
  * @name kraken#watchTicker
466
466
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
467
467
  * @param {string} symbol unified symbol of the market to fetch the ticker for
468
- * @param {object} [params] extra parameters specific to the kraken api endpoint
468
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
469
469
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
470
470
  */
471
471
  return await this.watchPublic('ticker', symbol, params);
@@ -478,7 +478,7 @@ class kraken extends kraken$1 {
478
478
  * @param {string} symbol unified symbol of the market to fetch trades for
479
479
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
480
480
  * @param {int} [limit] the maximum amount of trades to fetch
481
- * @param {object} [params] extra parameters specific to the kraken api endpoint
481
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
482
482
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
483
483
  */
484
484
  await this.loadMarkets();
@@ -497,7 +497,7 @@ class kraken extends kraken$1 {
497
497
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
498
498
  * @param {string} symbol unified symbol of the market to fetch the order book for
499
499
  * @param {int} [limit] the maximum amount of order book entries to return
500
- * @param {object} [params] extra parameters specific to the kraken api endpoint
500
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
501
501
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
502
502
  */
503
503
  const name = 'book';
@@ -524,7 +524,7 @@ class kraken extends kraken$1 {
524
524
  * @param {string} timeframe the length of time each candle represents
525
525
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
526
526
  * @param {int} [limit] the maximum amount of candles to fetch
527
- * @param {object} [params] extra parameters specific to the kraken api endpoint
527
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
528
528
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
529
529
  */
530
530
  await this.loadMarkets();
@@ -829,7 +829,7 @@ class kraken extends kraken$1 {
829
829
  * @param {string} symbol unified market symbol of the market trades were made in
830
830
  * @param {int} [since] the earliest time in ms to fetch trades for
831
831
  * @param {int} [limit] the maximum number of trade structures to retrieve
832
- * @param {object} [params] extra parameters specific to the kraken api endpoint
832
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
833
833
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
834
834
  */
835
835
  return await this.watchPrivate('ownTrades', symbol, since, limit, params);
@@ -991,7 +991,7 @@ class kraken extends kraken$1 {
991
991
  * @param {string} symbol unified market symbol of the market orders were made in
992
992
  * @param {int} [since] the earliest time in ms to fetch orders for
993
993
  * @param {int} [limit] the maximum number of orde structures to retrieve
994
- * @param {object} [params] extra parameters specific to the kraken api endpoint
994
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
995
995
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
996
996
  */
997
997
  return await this.watchPrivate('openOrders', symbol, since, limit, params);
@@ -155,7 +155,7 @@ class krakenfutures extends krakenfutures$1 {
155
155
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
156
156
  * @see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker
157
157
  * @param {string} symbol unified symbol of the market to fetch the ticker for
158
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
158
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
159
159
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
160
160
  */
161
161
  const options = this.safeValue(this.options, 'watchTicker');
@@ -171,7 +171,7 @@ class krakenfutures extends krakenfutures$1 {
171
171
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
172
172
  * @see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker-lite
173
173
  * @param {string} symbol unified symbol of the market to fetch the ticker for
174
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
174
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
175
175
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
176
176
  */
177
177
  const method = this.safeString(this.options, 'watchTickerMethod', 'ticker'); // or ticker_lite
@@ -189,7 +189,7 @@ class krakenfutures extends krakenfutures$1 {
189
189
  * @param {string} symbol unified symbol of the market to fetch trades for
190
190
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
191
191
  * @param {int} [limit] the maximum amount of trades to fetch
192
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
192
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
193
193
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
194
194
  */
195
195
  await this.loadMarkets();
@@ -208,7 +208,7 @@ class krakenfutures extends krakenfutures$1 {
208
208
  * @see https://docs.futures.kraken.com/#websocket-api-public-feeds-book
209
209
  * @param {string} symbol unified symbol of the market to fetch the order book for
210
210
  * @param {int} [limit] not used by krakenfutures watchOrderBook
211
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
211
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
212
212
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
213
213
  */
214
214
  const orderbook = await this.subscribePublic('book', [symbol], params);
@@ -221,7 +221,7 @@ class krakenfutures extends krakenfutures$1 {
221
221
  * @see https://docs.futures.kraken.com/#websocket-api-private-feeds-open-positions
222
222
  * @description watch all open positions
223
223
  * @param {string[]|undefined} symbols list of unified market symbols
224
- * @param {object} params extra parameters specific to the krakenfutures api endpoint
224
+ * @param {object} params extra parameters specific to the exchange API endpoint
225
225
  * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
226
226
  */
227
227
  await this.loadMarkets();
@@ -351,7 +351,7 @@ class krakenfutures extends krakenfutures$1 {
351
351
  * @param {string} symbol not used by krakenfutures watchOrders
352
352
  * @param {int} [since] not used by krakenfutures watchOrders
353
353
  * @param {int} [limit] not used by krakenfutures watchOrders
354
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
354
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
355
355
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
356
356
  */
357
357
  await this.loadMarkets();
@@ -376,7 +376,7 @@ class krakenfutures extends krakenfutures$1 {
376
376
  * @param {string} symbol unified market symbol of the market orders were made in
377
377
  * @param {int} [since] the earliest time in ms to fetch orders for
378
378
  * @param {int} [limit] the maximum number of orde structures to retrieve
379
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
379
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
380
380
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
381
381
  */
382
382
  await this.loadMarkets();
@@ -401,9 +401,9 @@ class krakenfutures extends krakenfutures$1 {
401
401
  * @param {string} symbol not used by krakenfutures watchBalance
402
402
  * @param {int} [since] not used by krakenfutures watchBalance
403
403
  * @param {int} [limit] not used by krakenfutures watchBalance
404
- * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
404
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
405
405
  * @param {string} [params.account] can be either 'futures' or 'flex_futures'
406
- * @returns {object[]} a list of [balance structures]{@link https://docs.ccxt.com/#/?id=balance-structure}
406
+ * @returns {object} a object of wallet types each with a balance structure {@link https://docs.ccxt.com/#/?id=balance-structure}
407
407
  */
408
408
  await this.loadMarkets();
409
409
  const name = 'balances';
@@ -1268,6 +1268,7 @@ class krakenfutures extends krakenfutures$1 {
1268
1268
  holdingResult[code] = newAccount;
1269
1269
  }
1270
1270
  this.balance['cash'] = holdingResult;
1271
+ this.balance['cash'] = this.safeBalance(this.balance['cash']);
1271
1272
  client.resolve(holdingResult, messageHash);
1272
1273
  }
1273
1274
  if (futures !== undefined) {
@@ -1291,6 +1292,7 @@ class krakenfutures extends krakenfutures$1 {
1291
1292
  futuresResult[symbol][code] = newAccount;
1292
1293
  }
1293
1294
  this.balance['margin'] = futuresResult;
1295
+ this.balance['margin'] = this.safeBalance(this.balance['margin']);
1294
1296
  client.resolve(this.balance['margin'], messageHash + 'futures');
1295
1297
  }
1296
1298
  if (flexFutures !== undefined) {
@@ -1312,6 +1314,7 @@ class krakenfutures extends krakenfutures$1 {
1312
1314
  flexFuturesResult[code] = newAccount;
1313
1315
  }
1314
1316
  this.balance['flex'] = flexFuturesResult;
1317
+ this.balance['flex'] = this.safeBalance(this.balance['flex']);
1315
1318
  client.resolve(this.balance['flex'], messageHash + 'flex_futures');
1316
1319
  }
1317
1320
  client.resolve(this.balance, messageHash);
@@ -127,7 +127,7 @@ class kucoin extends kucoin$1 {
127
127
  * @name kucoin#watchTicker
128
128
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
129
129
  * @param {string} symbol unified symbol of the market to fetch the ticker for
130
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
130
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
131
131
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
132
132
  */
133
133
  await this.loadMarkets();
@@ -145,7 +145,7 @@ class kucoin extends kucoin$1 {
145
145
  * @name kucoin#watchTickers
146
146
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
147
147
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
148
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
148
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
149
149
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
150
150
  */
151
151
  await this.loadMarkets();
@@ -263,7 +263,7 @@ class kucoin extends kucoin$1 {
263
263
  * @param {string} timeframe the length of time each candle represents
264
264
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
265
265
  * @param {int} [limit] the maximum amount of candles to fetch
266
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
266
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
267
267
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
268
268
  */
269
269
  await this.loadMarkets();
@@ -330,7 +330,7 @@ class kucoin extends kucoin$1 {
330
330
  * @param {string} symbol unified symbol of the market to fetch trades for
331
331
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
332
332
  * @param {int} [limit] the maximum amount of trades to fetch
333
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
333
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
334
334
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
335
335
  */
336
336
  await this.loadMarkets();
@@ -353,7 +353,7 @@ class kucoin extends kucoin$1 {
353
353
  * @param {string} symbol unified symbol of the market to fetch trades for
354
354
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
355
355
  * @param {int} [limit] the maximum amount of trades to fetch
356
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
356
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
357
357
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
358
358
  */
359
359
  const symbolsLength = symbols.length;
@@ -417,7 +417,7 @@ class kucoin extends kucoin$1 {
417
417
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
418
418
  * @param {string} symbol unified symbol of the market to fetch the order book for
419
419
  * @param {int} [limit] the maximum amount of order book entries to return
420
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
420
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
421
421
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
422
422
  */
423
423
  //
@@ -461,7 +461,7 @@ class kucoin extends kucoin$1 {
461
461
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
462
462
  * @param {string[]} symbols unified array of symbols
463
463
  * @param {int} [limit] the maximum amount of order book entries to return
464
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
464
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
465
465
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
466
466
  */
467
467
  const symbolsLength = symbols.length;
@@ -636,7 +636,7 @@ class kucoin extends kucoin$1 {
636
636
  * @param {string} symbol unified market symbol of the market orders were made in
637
637
  * @param {int} [since] the earliest time in ms to fetch orders for
638
638
  * @param {int} [limit] the maximum number of order structures to retrieve
639
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
639
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
640
640
  * @param {boolean} [params.stop] trigger orders are watched if true
641
641
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
642
642
  */
@@ -801,7 +801,7 @@ class kucoin extends kucoin$1 {
801
801
  * @param {string} symbol unified market symbol of the market trades were made in
802
802
  * @param {int} [since] the earliest time in ms to fetch trades for
803
803
  * @param {int} [limit] the maximum number of trade structures to retrieve
804
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
804
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
805
805
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
806
806
  */
807
807
  await this.loadMarkets();
@@ -891,7 +891,7 @@ class kucoin extends kucoin$1 {
891
891
  * @method
892
892
  * @name kucoin#watchBalance
893
893
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
894
- * @param {object} [params] extra parameters specific to the kucoin api endpoint
894
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
895
895
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
896
896
  */
897
897
  await this.loadMarkets();
@@ -143,7 +143,7 @@ class kucoinfutures extends kucoinfutures$1 {
143
143
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
144
144
  * @see https://docs.kucoin.com/futures/#get-real-time-symbol-ticker-v2
145
145
  * @param {string} symbol unified symbol of the market to fetch the ticker for
146
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
146
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
147
147
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
148
148
  */
149
149
  await this.loadMarkets();
@@ -191,7 +191,7 @@ class kucoinfutures extends kucoinfutures$1 {
191
191
  * @description watch open positions for a specific symbol
192
192
  * @see https://docs.kucoin.com/futures/#position-change-events
193
193
  * @param {string|undefined} symbol unified market symbol
194
- * @param {object} params extra parameters specific to the kucoinfutures api endpoint
194
+ * @param {object} params extra parameters specific to the exchange API endpoint
195
195
  * @returns {object} a [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
196
196
  */
197
197
  if (symbol === undefined) {
@@ -367,7 +367,7 @@ class kucoinfutures extends kucoinfutures$1 {
367
367
  * @param {string} symbol unified symbol of the market to fetch trades for
368
368
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
369
369
  * @param {int} [limit] the maximum amount of trades to fetch
370
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
370
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
371
371
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
372
372
  */
373
373
  await this.loadMarkets();
@@ -390,7 +390,7 @@ class kucoinfutures extends kucoinfutures$1 {
390
390
  * @param {string} symbol unified symbol of the market to fetch trades for
391
391
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
392
392
  * @param {int} [limit] the maximum amount of trades to fetch
393
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
393
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
394
394
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
395
395
  */
396
396
  const symbolsLength = symbols.length;
@@ -462,7 +462,7 @@ class kucoinfutures extends kucoinfutures$1 {
462
462
  * @see https://docs.kucoin.com/futures/#level-2-market-data
463
463
  * @param {string} symbol unified symbol of the market to fetch the order book for
464
464
  * @param {int} [limit] the maximum amount of order book entries to return
465
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
465
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
466
466
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
467
467
  */
468
468
  if (limit !== undefined) {
@@ -491,7 +491,7 @@ class kucoinfutures extends kucoinfutures$1 {
491
491
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
492
492
  * @param {string[]} symbols unified array of symbols
493
493
  * @param {int} [limit] the maximum amount of order book entries to return
494
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
494
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
495
495
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
496
496
  */
497
497
  const symbolsLength = symbols.length;
@@ -669,7 +669,7 @@ class kucoinfutures extends kucoinfutures$1 {
669
669
  * @param {string} symbol unified market symbol of the market orders were made in
670
670
  * @param {int} [since] the earliest time in ms to fetch orders for
671
671
  * @param {int} [limit] the maximum number of orde structures to retrieve
672
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
672
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
673
673
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
674
674
  */
675
675
  await this.loadMarkets();
@@ -791,7 +791,7 @@ class kucoinfutures extends kucoinfutures$1 {
791
791
  * @name kucoinfutures#watchBalance
792
792
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
793
793
  * @see https://docs.kucoin.com/futures/#account-balance-events
794
- * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
794
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
795
795
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
796
796
  */
797
797
  await this.loadMarkets();
@@ -39,10 +39,10 @@ class luno extends luno$1 {
39
39
  * @param {string} symbol unified symbol of the market to fetch trades for
40
40
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
41
41
  * @param {int} [limit] the maximum amount of trades to fetch
42
- * @param {object} [params] extra parameters specific to the luno api endpoint
42
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
43
43
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
44
44
  */
45
- await this.checkRequiredCredentials();
45
+ this.checkRequiredCredentials();
46
46
  await this.loadMarkets();
47
47
  const market = this.market(symbol);
48
48
  symbol = market['symbol'];
@@ -135,11 +135,11 @@ class luno extends luno$1 {
135
135
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
136
136
  * @param {string} symbol unified symbol of the market to fetch the order book for
137
137
  * @param {int} [limit] the maximum amount of order book entries to return
138
- * @param {objectConstructor} [params] extra parameters specific to the luno api endpoint
138
+ * @param {objectConstructor} [params] extra parameters specific to the exchange API endpoint
139
139
  * @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
140
140
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
141
141
  */
142
- await this.checkRequiredCredentials();
142
+ this.checkRequiredCredentials();
143
143
  await this.loadMarkets();
144
144
  const market = this.market(symbol);
145
145
  symbol = market['symbol'];
@@ -72,7 +72,7 @@ class mexc extends mexc$1 {
72
72
  * @name mexc3#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 mexc3 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();
@@ -209,7 +209,7 @@ class mexc extends mexc$1 {
209
209
  * @param {string} timeframe the length of time each candle represents
210
210
  * @param {int} [since] timestamp in ms of the earliest candle to fetch
211
211
  * @param {int} [limit] the maximum amount of candles to fetch
212
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
212
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
213
213
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
214
214
  */
215
215
  await this.loadMarkets();
@@ -353,7 +353,7 @@ class mexc extends mexc$1 {
353
353
  * @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
354
354
  * @param {string} symbol unified symbol of the market to fetch the order book for
355
355
  * @param {int} [limit] the maximum amount of order book entries to return
356
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
356
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
357
357
  * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
358
358
  */
359
359
  await this.loadMarkets();
@@ -521,7 +521,7 @@ class mexc extends mexc$1 {
521
521
  * @param {string} symbol unified symbol of the market to fetch trades for
522
522
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
523
523
  * @param {int} [limit] the maximum amount of trades to fetch
524
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
524
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
525
525
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
526
526
  */
527
527
  await this.loadMarkets();
@@ -610,7 +610,7 @@ class mexc extends mexc$1 {
610
610
  * @param {string} symbol unified market symbol of the market trades were made in
611
611
  * @param {int} [since] the earliest time in ms to fetch trades for
612
612
  * @param {int} [limit] the maximum number of trade structures to retrieve
613
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
613
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
614
614
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
615
615
  */
616
616
  await this.loadMarkets();
@@ -738,7 +738,7 @@ class mexc extends mexc$1 {
738
738
  * @param {string} symbol unified market symbol of the market orders were made in
739
739
  * @param {int} [since] the earliest time in ms to fetch orders for
740
740
  * @param {int} [limit] the maximum number of orde structures to retrieve
741
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
741
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
742
742
  * @params {string|undefined} params.type the type of orders to retrieve, can be 'spot' or 'margin'
743
743
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
744
744
  */
@@ -986,7 +986,7 @@ class mexc extends mexc$1 {
986
986
  * @name mexc3#watchBalance
987
987
  * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#spot-account-upadte
988
988
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
989
- * @param {object} [params] extra parameters specific to the mexc3 api endpoint
989
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
990
990
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
991
991
  */
992
992
  await this.loadMarkets();