ccxt 4.1.56 → 4.1.57

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 (316) hide show
  1. package/.git-templates/hooks/pre-push +2 -2
  2. package/README.md +3 -3
  3. package/build.sh +30 -18
  4. package/dist/ccxt.browser.js +3872 -3202
  5. package/dist/ccxt.browser.min.js +10 -10
  6. package/dist/cjs/ccxt.js +1 -1
  7. package/dist/cjs/src/ace.js +17 -13
  8. package/dist/cjs/src/alpaca.js +6 -6
  9. package/dist/cjs/src/ascendex.js +35 -29
  10. package/dist/cjs/src/base/Exchange.js +39 -26
  11. package/dist/cjs/src/base/Precise.js +1 -3
  12. package/dist/cjs/src/bigone.js +24 -20
  13. package/dist/cjs/src/binance.js +97 -76
  14. package/dist/cjs/src/bingx.js +63 -44
  15. package/dist/cjs/src/bit2c.js +18 -15
  16. package/dist/cjs/src/bitbank.js +16 -15
  17. package/dist/cjs/src/bitbns.js +28 -18
  18. package/dist/cjs/src/bitfinex.js +23 -21
  19. package/dist/cjs/src/bitfinex2.js +32 -28
  20. package/dist/cjs/src/bitflyer.js +28 -20
  21. package/dist/cjs/src/bitforex.js +25 -18
  22. package/dist/cjs/src/bitget.js +184 -147
  23. package/dist/cjs/src/bithumb.js +23 -16
  24. package/dist/cjs/src/bitmart.js +106 -85
  25. package/dist/cjs/src/bitmex.js +104 -64
  26. package/dist/cjs/src/bitopro.js +38 -26
  27. package/dist/cjs/src/bitpanda.js +24 -23
  28. package/dist/cjs/src/bitrue.js +33 -24
  29. package/dist/cjs/src/bitso.js +24 -23
  30. package/dist/cjs/src/bitstamp.js +24 -23
  31. package/dist/cjs/src/bittrex.js +30 -29
  32. package/dist/cjs/src/bitvavo.js +38 -30
  33. package/dist/cjs/src/bl3p.js +11 -10
  34. package/dist/cjs/src/blockchaincom.js +20 -20
  35. package/dist/cjs/src/btcalpha.js +18 -17
  36. package/dist/cjs/src/btcbox.js +13 -12
  37. package/dist/cjs/src/btcmarkets.js +20 -19
  38. package/dist/cjs/src/btcturk.js +14 -13
  39. package/dist/cjs/src/bybit.js +84 -54
  40. package/dist/cjs/src/cex.js +16 -14
  41. package/dist/cjs/src/coinbase.js +29 -27
  42. package/dist/cjs/src/coinbasepro.js +27 -25
  43. package/dist/cjs/src/coincheck.js +15 -14
  44. package/dist/cjs/src/coinex.js +100 -77
  45. package/dist/cjs/src/coinlist.js +28 -27
  46. package/dist/cjs/src/coinmate.js +20 -17
  47. package/dist/cjs/src/coinone.js +21 -16
  48. package/dist/cjs/src/coinsph.js +37 -28
  49. package/dist/cjs/src/coinspot.js +12 -11
  50. package/dist/cjs/src/cryptocom.js +40 -202
  51. package/dist/cjs/src/currencycom.js +32 -25
  52. package/dist/cjs/src/delta.js +34 -28
  53. package/dist/cjs/src/deribit.js +39 -36
  54. package/dist/cjs/src/digifinex.js +64 -44
  55. package/dist/cjs/src/exmo.js +29 -27
  56. package/dist/cjs/src/gate.js +67 -53
  57. package/dist/cjs/src/gemini.js +23 -20
  58. package/dist/cjs/src/hitbtc.js +65 -56
  59. package/dist/cjs/src/hollaex.js +30 -27
  60. package/dist/cjs/src/htx.js +132 -143
  61. package/dist/cjs/src/huobijp.js +22 -20
  62. package/dist/cjs/src/idex.js +22 -21
  63. package/dist/cjs/src/independentreserve.js +15 -14
  64. package/dist/cjs/src/indodax.js +30 -26
  65. package/dist/cjs/src/kraken.js +29 -27
  66. package/dist/cjs/src/krakenfutures.js +29 -22
  67. package/dist/cjs/src/kucoin.js +48 -43
  68. package/dist/cjs/src/kucoinfutures.js +33 -28
  69. package/dist/cjs/src/kuna.js +25 -24
  70. package/dist/cjs/src/latoken.js +24 -22
  71. package/dist/cjs/src/lbank.js +45 -30
  72. package/dist/cjs/src/luno.js +22 -19
  73. package/dist/cjs/src/lykke.js +19 -17
  74. package/dist/cjs/src/mercado.js +30 -19
  75. package/dist/cjs/src/mexc.js +60 -49
  76. package/dist/cjs/src/ndax.js +23 -22
  77. package/dist/cjs/src/novadax.js +23 -22
  78. package/dist/cjs/src/oceanex.js +22 -19
  79. package/dist/cjs/src/okcoin.js +29 -23
  80. package/dist/cjs/src/okx.js +87 -82
  81. package/dist/cjs/src/p2b.js +79 -82
  82. package/dist/cjs/src/paymium.js +10 -10
  83. package/dist/cjs/src/phemex.js +63 -40
  84. package/dist/cjs/src/poloniex.js +22 -22
  85. package/dist/cjs/src/poloniexfutures.js +23 -19
  86. package/dist/cjs/src/pro/alpaca.js +5 -5
  87. package/dist/cjs/src/pro/ascendex.js +4 -4
  88. package/dist/cjs/src/pro/binance.js +16 -16
  89. package/dist/cjs/src/pro/bingx.js +1 -1
  90. package/dist/cjs/src/pro/bitfinex.js +4 -4
  91. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  92. package/dist/cjs/src/pro/bitget.js +7 -7
  93. package/dist/cjs/src/pro/bitmart.js +7 -5
  94. package/dist/cjs/src/pro/bitmex.js +6 -6
  95. package/dist/cjs/src/pro/bitopro.js +4 -4
  96. package/dist/cjs/src/pro/bitpanda.js +6 -6
  97. package/dist/cjs/src/pro/bitrue.js +2 -2
  98. package/dist/cjs/src/pro/bitstamp.js +6 -4
  99. package/dist/cjs/src/pro/bittrex.js +6 -6
  100. package/dist/cjs/src/pro/bitvavo.js +11 -7
  101. package/dist/cjs/src/pro/blockchaincom.js +8 -8
  102. package/dist/cjs/src/pro/bybit.js +7 -7
  103. package/dist/cjs/src/pro/cex.js +13 -9
  104. package/dist/cjs/src/pro/coinbase.js +5 -5
  105. package/dist/cjs/src/pro/coinbasepro.js +11 -10
  106. package/dist/cjs/src/pro/coinex.js +7 -9
  107. package/dist/cjs/src/pro/cryptocom.js +9 -9
  108. package/dist/cjs/src/pro/currencycom.js +4 -4
  109. package/dist/cjs/src/pro/deribit.js +6 -6
  110. package/dist/cjs/src/pro/exmo.js +12 -14
  111. package/dist/cjs/src/pro/gate.js +7 -7
  112. package/dist/cjs/src/pro/gemini.js +3 -3
  113. package/dist/cjs/src/pro/hitbtc.js +263 -4
  114. package/dist/cjs/src/pro/hollaex.js +5 -5
  115. package/dist/cjs/src/pro/htx.js +6 -6
  116. package/dist/cjs/src/pro/huobijp.js +3 -3
  117. package/dist/cjs/src/pro/idex.js +4 -4
  118. package/dist/cjs/src/pro/independentreserve.js +2 -2
  119. package/dist/cjs/src/pro/kraken.js +10 -10
  120. package/dist/cjs/src/pro/krakenfutures.js +41 -17
  121. package/dist/cjs/src/pro/kucoin.js +7 -7
  122. package/dist/cjs/src/pro/kucoinfutures.js +8 -6
  123. package/dist/cjs/src/pro/luno.js +2 -2
  124. package/dist/cjs/src/pro/mexc.js +6 -6
  125. package/dist/cjs/src/pro/ndax.js +3 -3
  126. package/dist/cjs/src/pro/okcoin.js +5 -5
  127. package/dist/cjs/src/pro/okx.js +12 -12
  128. package/dist/cjs/src/pro/phemex.js +6 -6
  129. package/dist/cjs/src/pro/poloniex.js +7 -7
  130. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  131. package/dist/cjs/src/pro/probit.js +6 -6
  132. package/dist/cjs/src/pro/upbit.js +3 -3
  133. package/dist/cjs/src/pro/wazirx.js +8 -8
  134. package/dist/cjs/src/pro/whitebit.js +12 -8
  135. package/dist/cjs/src/pro/woo.js +1 -1
  136. package/dist/cjs/src/probit.js +28 -23
  137. package/dist/cjs/src/tidex.js +16 -15
  138. package/dist/cjs/src/timex.js +19 -18
  139. package/dist/cjs/src/tokocrypto.js +27 -22
  140. package/dist/cjs/src/upbit.js +19 -19
  141. package/dist/cjs/src/wavesexchange.js +22 -19
  142. package/dist/cjs/src/wazirx.js +24 -17
  143. package/dist/cjs/src/whitebit.js +33 -27
  144. package/dist/cjs/src/woo.js +44 -34
  145. package/dist/cjs/src/yobit.js +25 -20
  146. package/dist/cjs/src/zaif.js +9 -9
  147. package/dist/cjs/src/zonda.js +18 -17
  148. package/js/ccxt.d.ts +1 -1
  149. package/js/ccxt.js +1 -1
  150. package/js/src/abstract/bybit.d.ts +1 -0
  151. package/js/src/abstract/cryptocom.d.ts +0 -20
  152. package/js/src/ace.js +18 -14
  153. package/js/src/alpaca.js +6 -6
  154. package/js/src/ascendex.js +35 -29
  155. package/js/src/base/Exchange.d.ts +37 -34
  156. package/js/src/base/Exchange.js +39 -26
  157. package/js/src/base/Precise.d.ts +4 -4
  158. package/js/src/base/Precise.js +1 -3
  159. package/js/src/base/functions/type.d.ts +25 -25
  160. package/js/src/base/types.d.ts +21 -14
  161. package/js/src/bigone.js +25 -21
  162. package/js/src/binance.d.ts +2 -2
  163. package/js/src/binance.js +97 -76
  164. package/js/src/bingx.js +63 -44
  165. package/js/src/bit2c.js +19 -16
  166. package/js/src/bitbank.js +16 -15
  167. package/js/src/bitbns.js +28 -18
  168. package/js/src/bitfinex.js +23 -21
  169. package/js/src/bitfinex2.js +32 -28
  170. package/js/src/bitflyer.js +28 -20
  171. package/js/src/bitforex.js +26 -19
  172. package/js/src/bitget.d.ts +25 -3
  173. package/js/src/bitget.js +184 -147
  174. package/js/src/bithumb.js +23 -16
  175. package/js/src/bitmart.d.ts +1 -1
  176. package/js/src/bitmart.js +106 -85
  177. package/js/src/bitmex.d.ts +2 -2
  178. package/js/src/bitmex.js +104 -64
  179. package/js/src/bitopro.js +38 -26
  180. package/js/src/bitpanda.js +24 -23
  181. package/js/src/bitrue.js +33 -24
  182. package/js/src/bitso.js +24 -23
  183. package/js/src/bitstamp.d.ts +2 -2
  184. package/js/src/bitstamp.js +24 -23
  185. package/js/src/bittrex.js +30 -29
  186. package/js/src/bitvavo.js +38 -30
  187. package/js/src/bl3p.js +11 -10
  188. package/js/src/blockchaincom.js +20 -20
  189. package/js/src/btcalpha.js +18 -17
  190. package/js/src/btcbox.js +13 -12
  191. package/js/src/btcmarkets.js +20 -19
  192. package/js/src/btcturk.js +14 -13
  193. package/js/src/bybit.d.ts +1 -1
  194. package/js/src/bybit.js +84 -54
  195. package/js/src/cex.js +16 -14
  196. package/js/src/coinbase.js +29 -27
  197. package/js/src/coinbasepro.js +27 -25
  198. package/js/src/coincheck.js +15 -14
  199. package/js/src/coinex.d.ts +1 -1
  200. package/js/src/coinex.js +100 -77
  201. package/js/src/coinlist.js +28 -27
  202. package/js/src/coinmate.js +21 -18
  203. package/js/src/coinone.js +21 -16
  204. package/js/src/coinsph.js +37 -28
  205. package/js/src/coinspot.js +12 -11
  206. package/js/src/cryptocom.d.ts +0 -23
  207. package/js/src/cryptocom.js +40 -202
  208. package/js/src/currencycom.js +32 -25
  209. package/js/src/delta.js +35 -29
  210. package/js/src/deribit.js +39 -36
  211. package/js/src/digifinex.d.ts +2 -2
  212. package/js/src/digifinex.js +65 -45
  213. package/js/src/exmo.js +29 -27
  214. package/js/src/gate.d.ts +1 -1
  215. package/js/src/gate.js +67 -53
  216. package/js/src/gemini.js +23 -20
  217. package/js/src/hitbtc.d.ts +1 -0
  218. package/js/src/hitbtc.js +65 -56
  219. package/js/src/hollaex.js +30 -27
  220. package/js/src/htx.d.ts +11 -3
  221. package/js/src/htx.js +132 -143
  222. package/js/src/huobijp.js +23 -21
  223. package/js/src/idex.js +22 -21
  224. package/js/src/independentreserve.js +15 -14
  225. package/js/src/indodax.js +30 -26
  226. package/js/src/kraken.js +29 -27
  227. package/js/src/krakenfutures.js +29 -22
  228. package/js/src/kucoin.d.ts +1 -1
  229. package/js/src/kucoin.js +48 -43
  230. package/js/src/kucoinfutures.js +33 -28
  231. package/js/src/kuna.js +25 -24
  232. package/js/src/latoken.js +25 -23
  233. package/js/src/lbank.js +46 -31
  234. package/js/src/luno.js +22 -19
  235. package/js/src/lykke.js +19 -17
  236. package/js/src/mercado.js +30 -19
  237. package/js/src/mexc.d.ts +1 -1
  238. package/js/src/mexc.js +60 -49
  239. package/js/src/ndax.js +23 -22
  240. package/js/src/novadax.js +23 -22
  241. package/js/src/oceanex.js +22 -19
  242. package/js/src/okcoin.js +29 -23
  243. package/js/src/okx.d.ts +2 -2
  244. package/js/src/okx.js +87 -82
  245. package/js/src/p2b.d.ts +8 -7
  246. package/js/src/p2b.js +79 -81
  247. package/js/src/paymium.js +10 -10
  248. package/js/src/phemex.js +63 -40
  249. package/js/src/poloniex.js +22 -22
  250. package/js/src/poloniexfutures.js +23 -19
  251. package/js/src/pro/alpaca.js +5 -5
  252. package/js/src/pro/ascendex.js +4 -4
  253. package/js/src/pro/binance.js +16 -16
  254. package/js/src/pro/bingx.js +1 -1
  255. package/js/src/pro/bitfinex.js +4 -4
  256. package/js/src/pro/bitfinex2.d.ts +1 -1
  257. package/js/src/pro/bitfinex2.js +6 -6
  258. package/js/src/pro/bitget.js +7 -7
  259. package/js/src/pro/bitmart.js +7 -5
  260. package/js/src/pro/bitmex.js +6 -6
  261. package/js/src/pro/bitopro.js +4 -4
  262. package/js/src/pro/bitpanda.js +6 -6
  263. package/js/src/pro/bitrue.js +2 -2
  264. package/js/src/pro/bitstamp.js +7 -5
  265. package/js/src/pro/bittrex.js +6 -6
  266. package/js/src/pro/bitvavo.js +12 -8
  267. package/js/src/pro/blockchaincom.js +8 -8
  268. package/js/src/pro/bybit.js +7 -7
  269. package/js/src/pro/cex.js +14 -10
  270. package/js/src/pro/coinbase.js +5 -5
  271. package/js/src/pro/coinbasepro.js +12 -11
  272. package/js/src/pro/coinex.js +7 -9
  273. package/js/src/pro/cryptocom.js +9 -9
  274. package/js/src/pro/currencycom.js +4 -4
  275. package/js/src/pro/deribit.js +6 -6
  276. package/js/src/pro/exmo.js +12 -14
  277. package/js/src/pro/gate.js +7 -7
  278. package/js/src/pro/gemini.js +3 -3
  279. package/js/src/pro/hitbtc.d.ts +8 -1
  280. package/js/src/pro/hitbtc.js +264 -5
  281. package/js/src/pro/hollaex.js +5 -5
  282. package/js/src/pro/htx.js +6 -6
  283. package/js/src/pro/huobijp.js +3 -3
  284. package/js/src/pro/idex.js +4 -4
  285. package/js/src/pro/independentreserve.js +2 -2
  286. package/js/src/pro/kraken.js +10 -10
  287. package/js/src/pro/krakenfutures.d.ts +1 -0
  288. package/js/src/pro/krakenfutures.js +42 -18
  289. package/js/src/pro/kucoin.js +7 -7
  290. package/js/src/pro/kucoinfutures.js +8 -6
  291. package/js/src/pro/luno.js +2 -2
  292. package/js/src/pro/mexc.js +6 -6
  293. package/js/src/pro/ndax.js +3 -3
  294. package/js/src/pro/okcoin.js +5 -5
  295. package/js/src/pro/okx.js +12 -12
  296. package/js/src/pro/phemex.js +6 -6
  297. package/js/src/pro/poloniex.js +7 -7
  298. package/js/src/pro/poloniexfutures.js +5 -5
  299. package/js/src/pro/probit.js +6 -6
  300. package/js/src/pro/upbit.js +3 -3
  301. package/js/src/pro/wazirx.js +8 -8
  302. package/js/src/pro/whitebit.js +13 -9
  303. package/js/src/pro/woo.js +1 -1
  304. package/js/src/probit.js +29 -24
  305. package/js/src/tidex.js +16 -15
  306. package/js/src/timex.js +19 -18
  307. package/js/src/tokocrypto.js +28 -23
  308. package/js/src/upbit.js +19 -19
  309. package/js/src/wavesexchange.js +23 -20
  310. package/js/src/wazirx.js +25 -18
  311. package/js/src/whitebit.js +33 -27
  312. package/js/src/woo.js +45 -35
  313. package/js/src/yobit.js +25 -20
  314. package/js/src/zaif.js +9 -9
  315. package/js/src/zonda.js +18 -17
  316. package/package.json +1 -1
package/js/src/indodax.js CHANGED
@@ -41,12 +41,11 @@ export default class indodax extends Exchange {
41
41
  'createStopMarketOrder': false,
42
42
  'createStopOrder': false,
43
43
  'fetchBalance': true,
44
- 'fetchBorrowRate': false,
45
44
  'fetchBorrowRateHistories': false,
46
45
  'fetchBorrowRateHistory': false,
47
- 'fetchBorrowRates': false,
48
- 'fetchBorrowRatesPerSymbol': false,
49
46
  'fetchClosedOrders': true,
47
+ 'fetchCrossBorrowRate': false,
48
+ 'fetchCrossBorrowRates': false,
50
49
  'fetchDeposit': false,
51
50
  'fetchDeposits': false,
52
51
  'fetchDepositsWithdrawals': true,
@@ -55,6 +54,8 @@ export default class indodax extends Exchange {
55
54
  'fetchFundingRateHistory': false,
56
55
  'fetchFundingRates': false,
57
56
  'fetchIndexOHLCV': false,
57
+ 'fetchIsolatedBorrowRate': false,
58
+ 'fetchIsolatedBorrowRates': false,
58
59
  'fetchLeverage': false,
59
60
  'fetchLeverageTiers': false,
60
61
  'fetchMarginMode': false,
@@ -315,7 +316,7 @@ export default class indodax extends Exchange {
315
316
  * @name indodax#fetchBalance
316
317
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
317
318
  * @param {object} [params] extra parameters specific to the indodax api endpoint
318
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
319
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
319
320
  */
320
321
  await this.loadMarkets();
321
322
  const response = await this.privatePostGetInfo(params);
@@ -359,7 +360,7 @@ export default class indodax extends Exchange {
359
360
  * @param {string} symbol unified symbol of the market to fetch the order book for
360
361
  * @param {int} [limit] the maximum amount of order book entries to return
361
362
  * @param {object} [params] extra parameters specific to the indodax api endpoint
362
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
363
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
363
364
  */
364
365
  await this.loadMarkets();
365
366
  const market = this.market(symbol);
@@ -417,7 +418,7 @@ export default class indodax extends Exchange {
417
418
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
418
419
  * @param {string} symbol unified symbol of the market to fetch the ticker for
419
420
  * @param {object} [params] extra parameters specific to the indodax api endpoint
420
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
421
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
421
422
  */
422
423
  await this.loadMarkets();
423
424
  const market = this.market(symbol);
@@ -450,7 +451,7 @@ export default class indodax extends Exchange {
450
451
  * @see https://github.com/btcid/indodax-official-api-docs/blob/master/Public-RestAPI.md#ticker-all
451
452
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
452
453
  * @param {object} [params] extra parameters specific to the indodax api endpoint
453
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
454
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
454
455
  */
455
456
  await this.loadMarkets();
456
457
  //
@@ -500,7 +501,7 @@ export default class indodax extends Exchange {
500
501
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
501
502
  * @param {int} [limit] the maximum amount of trades to fetch
502
503
  * @param {object} [params] extra parameters specific to the indodax api endpoint
503
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
504
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
504
505
  */
505
506
  await this.loadMarkets();
506
507
  const market = this.market(symbol);
@@ -603,9 +604,11 @@ export default class indodax extends Exchange {
603
604
  * @description fetches information on an order made by the user
604
605
  * @param {string} symbol unified symbol of the market the order was made in
605
606
  * @param {object} [params] extra parameters specific to the indodax api endpoint
606
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
607
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
607
608
  */
608
- this.checkRequiredSymbol('fetchOrder', symbol);
609
+ if (symbol === undefined) {
610
+ throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
611
+ }
609
612
  await this.loadMarkets();
610
613
  const market = this.market(symbol);
611
614
  const request = {
@@ -627,7 +630,7 @@ export default class indodax extends Exchange {
627
630
  * @param {int} [since] the earliest time in ms to fetch open orders for
628
631
  * @param {int} [limit] the maximum number of open orders structures to retrieve
629
632
  * @param {object} [params] extra parameters specific to the indodax api endpoint
630
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
633
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
631
634
  */
632
635
  await this.loadMarkets();
633
636
  let market = undefined;
@@ -667,17 +670,16 @@ export default class indodax extends Exchange {
667
670
  * @param {int} [since] the earliest time in ms to fetch orders for
668
671
  * @param {int} [limit] the maximum number of order structures to retrieve
669
672
  * @param {object} [params] extra parameters specific to the indodax api endpoint
670
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
673
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
671
674
  */
672
- this.checkRequiredSymbol('fetchClosedOrders', symbol);
673
- await this.loadMarkets();
674
- const request = {};
675
- let market = undefined;
676
- if (symbol !== undefined) {
677
- market = this.market(symbol);
678
- symbol = market['symbol'];
679
- request['pair'] = market['id'];
675
+ if (symbol === undefined) {
676
+ throw new ArgumentsRequired(this.id + ' fetchClosedOrders() requires a symbol argument');
680
677
  }
678
+ await this.loadMarkets();
679
+ const market = this.market(symbol);
680
+ const request = {
681
+ 'pair': market['id'],
682
+ };
681
683
  const response = await this.privatePostOrderHistory(this.extend(request, params));
682
684
  let orders = this.parseOrders(response['return']['orders'], market);
683
685
  orders = this.filterBy(orders, 'status', 'closed');
@@ -694,7 +696,7 @@ export default class indodax extends Exchange {
694
696
  * @param {float} amount how much of currency you want to trade in units of base currency
695
697
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
696
698
  * @param {object} [params] extra parameters specific to the indodax api endpoint
697
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
699
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
698
700
  */
699
701
  if (type !== 'limit') {
700
702
  throw new ExchangeError(this.id + ' createOrder() allows limit orders only');
@@ -730,9 +732,11 @@ export default class indodax extends Exchange {
730
732
  * @param {string} id order id
731
733
  * @param {string} symbol unified symbol of the market the order was made in
732
734
  * @param {object} [params] extra parameters specific to the indodax api endpoint
733
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
735
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
734
736
  */
735
- this.checkRequiredSymbol('cancelOrder', symbol);
737
+ if (symbol === undefined) {
738
+ throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
739
+ }
736
740
  const side = this.safeValue(params, 'side');
737
741
  if (side === undefined) {
738
742
  throw new ArgumentsRequired(this.id + ' cancelOrder() requires an extra "side" param');
@@ -753,7 +757,7 @@ export default class indodax extends Exchange {
753
757
  * @description fetch the fee for a transaction
754
758
  * @param {string} code unified currency code
755
759
  * @param {object} [params] extra parameters specific to the indodax api endpoint
756
- * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
760
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
757
761
  */
758
762
  await this.loadMarkets();
759
763
  const currency = this.currency(code);
@@ -788,7 +792,7 @@ export default class indodax extends Exchange {
788
792
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
789
793
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
790
794
  * @param {object} [params] extra parameters specific to the indodax api endpoint
791
- * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
795
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
792
796
  */
793
797
  await this.loadMarkets();
794
798
  const request = {};
@@ -890,7 +894,7 @@ export default class indodax extends Exchange {
890
894
  * @param {string} address the address to withdraw to
891
895
  * @param {string} tag
892
896
  * @param {object} [params] extra parameters specific to the indodax api endpoint
893
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
897
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
894
898
  */
895
899
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
896
900
  this.checkAddress(address);
package/js/src/kraken.js CHANGED
@@ -45,11 +45,11 @@ export default class kraken extends Exchange {
45
45
  'editOrder': true,
46
46
  'fetchBalance': true,
47
47
  'fetchBorrowInterest': false,
48
- 'fetchBorrowRate': false,
49
48
  'fetchBorrowRateHistories': false,
50
49
  'fetchBorrowRateHistory': false,
51
- 'fetchBorrowRates': false,
52
50
  'fetchClosedOrders': true,
51
+ 'fetchCrossBorrowRate': false,
52
+ 'fetchCrossBorrowRates': false,
53
53
  'fetchCurrencies': true,
54
54
  'fetchDepositAddress': true,
55
55
  'fetchDeposits': true,
@@ -58,6 +58,8 @@ export default class kraken extends Exchange {
58
58
  'fetchFundingRateHistory': false,
59
59
  'fetchFundingRates': false,
60
60
  'fetchIndexOHLCV': false,
61
+ 'fetchIsolatedBorrowRate': false,
62
+ 'fetchIsolatedBorrowRates': false,
61
63
  'fetchLedger': true,
62
64
  'fetchLedgerEntry': true,
63
65
  'fetchLeverageTiers': false,
@@ -610,7 +612,7 @@ export default class kraken extends Exchange {
610
612
  * @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getTradeVolume
611
613
  * @param {string} symbol unified market symbol
612
614
  * @param {object} [params] extra parameters specific to the kraken api endpoint
613
- * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
615
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
614
616
  */
615
617
  await this.loadMarkets();
616
618
  const market = this.market(symbol);
@@ -680,7 +682,7 @@ export default class kraken extends Exchange {
680
682
  * @param {string} symbol unified symbol of the market to fetch the order book for
681
683
  * @param {int} [limit] the maximum amount of order book entries to return
682
684
  * @param {object} [params] extra parameters specific to the kraken api endpoint
683
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
685
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
684
686
  */
685
687
  await this.loadMarkets();
686
688
  const market = this.market(symbol);
@@ -782,7 +784,7 @@ export default class kraken extends Exchange {
782
784
  * @see https://docs.kraken.com/rest/#tag/Market-Data/operation/getTickerInformation
783
785
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
784
786
  * @param {object} [params] extra parameters specific to the kraken api endpoint
785
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
787
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
786
788
  */
787
789
  await this.loadMarkets();
788
790
  const request = {};
@@ -819,7 +821,7 @@ export default class kraken extends Exchange {
819
821
  * @see https://docs.kraken.com/rest/#tag/Market-Data/operation/getTickerInformation
820
822
  * @param {string} symbol unified symbol of the market to fetch the ticker for
821
823
  * @param {object} [params] extra parameters specific to the kraken api endpoint
822
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
824
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
823
825
  */
824
826
  await this.loadMarkets();
825
827
  const darkpool = symbol.indexOf('.d') >= 0;
@@ -982,7 +984,7 @@ export default class kraken extends Exchange {
982
984
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
983
985
  * @param {object} [params] extra parameters specific to the kraken api endpoint
984
986
  * @param {int} [params.until] timestamp in ms of the latest ledger entry
985
- * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
987
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
986
988
  */
987
989
  // https://www.kraken.com/features/api#get-ledgers-info
988
990
  await this.loadMarkets();
@@ -1162,7 +1164,7 @@ export default class kraken extends Exchange {
1162
1164
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1163
1165
  * @param {int} [limit] the maximum amount of trades to fetch
1164
1166
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1165
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1167
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1166
1168
  */
1167
1169
  await this.loadMarkets();
1168
1170
  const market = this.market(symbol);
@@ -1235,7 +1237,7 @@ export default class kraken extends Exchange {
1235
1237
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1236
1238
  * @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getExtendedBalance
1237
1239
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1238
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1240
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1239
1241
  */
1240
1242
  await this.loadMarkets();
1241
1243
  const response = await this.privatePostBalanceEx(params);
@@ -1270,7 +1272,7 @@ export default class kraken extends Exchange {
1270
1272
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1271
1273
  * @param {bool} params.postOnly
1272
1274
  * @param {bool} params.reduceOnly
1273
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1275
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1274
1276
  */
1275
1277
  await this.loadMarkets();
1276
1278
  const market = this.market(symbol);
@@ -1611,7 +1613,7 @@ export default class kraken extends Exchange {
1611
1613
  * @param {float} amount how much of the currency you want to trade in units of the base currency
1612
1614
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1613
1615
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1614
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1616
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1615
1617
  */
1616
1618
  await this.loadMarkets();
1617
1619
  const market = this.market(symbol);
@@ -1654,7 +1656,7 @@ export default class kraken extends Exchange {
1654
1656
  * @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOrdersInfo
1655
1657
  * @param {string} symbol not used by kraken fetchOrder
1656
1658
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1657
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1659
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1658
1660
  */
1659
1661
  await this.loadMarkets();
1660
1662
  const clientOrderId = this.safeValue2(params, 'userref', 'clientOrderId');
@@ -1726,7 +1728,7 @@ export default class kraken extends Exchange {
1726
1728
  * @param {int} [since] the earliest time in ms to fetch trades for
1727
1729
  * @param {int} [limit] the maximum number of trades to retrieve
1728
1730
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1729
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1731
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1730
1732
  */
1731
1733
  const orderTrades = this.safeValue(params, 'trades');
1732
1734
  const tradeIds = [];
@@ -1825,7 +1827,7 @@ export default class kraken extends Exchange {
1825
1827
  * @param {int} [since] the earliest time in ms to fetch trades for
1826
1828
  * @param {int} [limit] the maximum number of trades structures to retrieve
1827
1829
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1828
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1830
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1829
1831
  */
1830
1832
  await this.loadMarkets();
1831
1833
  const request = {
@@ -1884,7 +1886,7 @@ export default class kraken extends Exchange {
1884
1886
  * @param {string} id order id
1885
1887
  * @param {string} symbol unified symbol of the market the order was made in
1886
1888
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1887
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1889
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1888
1890
  */
1889
1891
  await this.loadMarkets();
1890
1892
  let response = undefined;
@@ -1915,7 +1917,7 @@ export default class kraken extends Exchange {
1915
1917
  * @param {string[]} ids open orders transaction ID (txid) or user reference (userref)
1916
1918
  * @param {string} symbol unified market symbol
1917
1919
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1918
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1920
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1919
1921
  */
1920
1922
  const request = {
1921
1923
  'orders': ids,
@@ -1939,7 +1941,7 @@ export default class kraken extends Exchange {
1939
1941
  * @see https://docs.kraken.com/rest/#tag/Trading/operation/cancelAllOrders
1940
1942
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1941
1943
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1942
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1944
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1943
1945
  */
1944
1946
  await this.loadMarkets();
1945
1947
  return await this.privatePostCancelAll(params);
@@ -1954,7 +1956,7 @@ export default class kraken extends Exchange {
1954
1956
  * @param {int} [since] the earliest time in ms to fetch open orders for
1955
1957
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1956
1958
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1957
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1959
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1958
1960
  */
1959
1961
  await this.loadMarkets();
1960
1962
  const request = {};
@@ -1987,7 +1989,7 @@ export default class kraken extends Exchange {
1987
1989
  * @param {int} [limit] the maximum number of orde structures to retrieve
1988
1990
  * @param {object} [params] extra parameters specific to the kraken api endpoint
1989
1991
  * @param {int} [params.until] timestamp in ms of the latest entry
1990
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1992
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1991
1993
  */
1992
1994
  await this.loadMarkets();
1993
1995
  let request = {};
@@ -2188,7 +2190,7 @@ export default class kraken extends Exchange {
2188
2190
  * @param {int} [since] the earliest time in ms to fetch deposits for
2189
2191
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2190
2192
  * @param {object} [params] extra parameters specific to the kraken api endpoint
2191
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2193
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2192
2194
  */
2193
2195
  // https://www.kraken.com/en-us/help/api#deposit-status
2194
2196
  if (code === undefined) {
@@ -2251,7 +2253,7 @@ export default class kraken extends Exchange {
2251
2253
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2252
2254
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2253
2255
  * @param {object} [params] extra parameters specific to the kraken api endpoint
2254
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2256
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2255
2257
  */
2256
2258
  // https://www.kraken.com/en-us/help/api#withdraw-status
2257
2259
  if (code === undefined) {
@@ -2286,7 +2288,7 @@ export default class kraken extends Exchange {
2286
2288
  * @see https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
2287
2289
  * @param {string} code unified currency code of the currency for the deposit address
2288
2290
  * @param {object} [params] extra parameters specific to the kraken api endpoint
2289
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
2291
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2290
2292
  */
2291
2293
  const request = {
2292
2294
  'new': 'true',
@@ -2333,7 +2335,7 @@ export default class kraken extends Exchange {
2333
2335
  * @see https://docs.kraken.com/rest/#tag/Funding/operation/getDepositAddresses
2334
2336
  * @param {string} code unified currency code
2335
2337
  * @param {object} [params] extra parameters specific to the kraken api endpoint
2336
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
2338
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2337
2339
  */
2338
2340
  await this.loadMarkets();
2339
2341
  const currency = this.currency(code);
@@ -2418,7 +2420,7 @@ export default class kraken extends Exchange {
2418
2420
  * @param {string} address the address to withdraw to
2419
2421
  * @param {string} tag
2420
2422
  * @param {object} [params] extra parameters specific to the kraken api endpoint
2421
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2423
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2422
2424
  */
2423
2425
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2424
2426
  this.checkAddress(address);
@@ -2452,7 +2454,7 @@ export default class kraken extends Exchange {
2452
2454
  * @see https://docs.kraken.com/rest/#tag/Account-Data/operation/getOpenPositions
2453
2455
  * @param {string[]|undefined} symbols not used by kraken fetchPositions ()
2454
2456
  * @param {object} [params] extra parameters specific to the kraken api endpoint
2455
- * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
2457
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
2456
2458
  */
2457
2459
  await this.loadMarkets();
2458
2460
  const request = {
@@ -2525,7 +2527,7 @@ export default class kraken extends Exchange {
2525
2527
  * @param {str} code Unified currency code
2526
2528
  * @param {float} amount Size of the transfer
2527
2529
  * @param {dict} [params] Exchange specific parameters
2528
- * @returns a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
2530
+ * @returns a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
2529
2531
  */
2530
2532
  return await this.transfer(code, amount, 'spot', 'swap', params);
2531
2533
  }
@@ -2540,7 +2542,7 @@ export default class kraken extends Exchange {
2540
2542
  * @param {string} fromAccount 'spot' or 'Spot Wallet'
2541
2543
  * @param {string} toAccount 'swap' or 'Futures Wallet'
2542
2544
  * @param {object} [params] Exchange specific parameters
2543
- * @returns a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
2545
+ * @returns a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
2544
2546
  */
2545
2547
  await this.loadMarkets();
2546
2548
  const currency = this.currency(code);
@@ -40,17 +40,18 @@ export default class krakenfutures extends Exchange {
40
40
  'createOrder': true,
41
41
  'editOrder': true,
42
42
  'fetchBalance': true,
43
- 'fetchBorrowRate': false,
44
43
  'fetchBorrowRateHistories': false,
45
44
  'fetchBorrowRateHistory': false,
46
- 'fetchBorrowRates': false,
47
- 'fetchBorrowRatesPerSymbol': false,
48
45
  'fetchClosedOrders': undefined,
46
+ 'fetchCrossBorrowRate': false,
47
+ 'fetchCrossBorrowRates': false,
49
48
  'fetchFundingHistory': undefined,
50
49
  'fetchFundingRate': 'emulated',
51
50
  'fetchFundingRateHistory': true,
52
51
  'fetchFundingRates': true,
53
52
  'fetchIndexOHLCV': false,
53
+ 'fetchIsolatedBorrowRate': false,
54
+ 'fetchIsolatedBorrowRates': false,
54
55
  'fetchIsolatedPositions': false,
55
56
  'fetchLeverage': true,
56
57
  'fetchLeverageTiers': true,
@@ -420,7 +421,7 @@ export default class krakenfutures extends Exchange {
420
421
  * @param {string} symbol Unified market symbol
421
422
  * @param {int} [limit] Not used by krakenfutures
422
423
  * @param {object} [params] exchange specific params
423
- * @returns An [order book structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure}
424
+ * @returns An [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
424
425
  */
425
426
  await this.loadMarkets();
426
427
  const market = this.market(symbol);
@@ -469,7 +470,7 @@ export default class krakenfutures extends Exchange {
469
470
  * @see https://docs.futures.kraken.com/#http-api-trading-v3-api-market-data-get-tickers
470
471
  * @param {string[]} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
471
472
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
472
- * @returns {object} an array of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
473
+ * @returns {object} an array of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
473
474
  */
474
475
  await this.loadMarkets();
475
476
  const response = await this.publicGetTickers(params);
@@ -678,7 +679,7 @@ export default class krakenfutures extends Exchange {
678
679
  * @param {object} [params] Exchange specific params
679
680
  * @param {int} [params.until] Timestamp in ms of latest trade
680
681
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
681
- * @returns An array of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
682
+ * @returns An array of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
682
683
  */
683
684
  await this.loadMarkets();
684
685
  let paginate = false;
@@ -944,7 +945,7 @@ export default class krakenfutures extends Exchange {
944
945
  * @description create a list of trade orders
945
946
  * @see https://docs.futures.kraken.com/#http-api-trading-v3-api-order-management-batch-order-management
946
947
  * @param {array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
947
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
948
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
948
949
  */
949
950
  await this.loadMarkets();
950
951
  const ordersRequests = [];
@@ -1001,7 +1002,7 @@ export default class krakenfutures extends Exchange {
1001
1002
  * @param {float} amount Order size
1002
1003
  * @param {float} [price] Price to fill order at
1003
1004
  * @param {object} [params] Exchange specific params
1004
- * @returns An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1005
+ * @returns An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1005
1006
  */
1006
1007
  await this.loadMarkets();
1007
1008
  const request = {
@@ -1029,7 +1030,7 @@ export default class krakenfutures extends Exchange {
1029
1030
  * @param {string} id Order id
1030
1031
  * @param {string} symbol Not used by Krakenfutures
1031
1032
  * @param {object} [params] Exchange specific params
1032
- * @returns An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1033
+ * @returns An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1033
1034
  */
1034
1035
  await this.loadMarkets();
1035
1036
  const response = await this.privatePostCancelorder(this.extend({ 'order_id': id }, params));
@@ -1132,7 +1133,7 @@ export default class krakenfutures extends Exchange {
1132
1133
  * @param {int} [since] Timestamp (ms) of earliest order. (Not used by kraken api but filtered internally by CCXT)
1133
1134
  * @param {int} [limit] How many orders to return. (Not used by kraken api but filtered internally by CCXT)
1134
1135
  * @param {object} [params] Exchange specific parameters
1135
- * @returns An array of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1136
+ * @returns An array of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1136
1137
  */
1137
1138
  await this.loadMarkets();
1138
1139
  let market = undefined;
@@ -1544,7 +1545,7 @@ export default class krakenfutures extends Exchange {
1544
1545
  * @param {int} [limit] the maximum number of trades structures to retrieve
1545
1546
  * @param {object} [params] extra parameters specific to the bybit api endpoint
1546
1547
  * @param {int} [params.until] the latest time in ms to fetch entries for
1547
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1548
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1548
1549
  */
1549
1550
  await this.loadMarkets();
1550
1551
  let market = undefined;
@@ -1583,7 +1584,7 @@ export default class krakenfutures extends Exchange {
1583
1584
  * @param {object} [params] Exchange specific parameters
1584
1585
  * @param {string} [params.type] The sub-account type to query the balance of, possible values include 'flex', 'cash'/'main'/'funding', or a market symbol * defaults to 'flex' *
1585
1586
  * @param {string} [params.symbol] A unified market symbol, when assigned the balance for a trading market that matches the symbol is returned
1586
- * @returns A [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1587
+ * @returns A [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1587
1588
  */
1588
1589
  await this.loadMarkets();
1589
1590
  let type = this.safeString2(params, 'type', 'account');
@@ -1805,7 +1806,7 @@ export default class krakenfutures extends Exchange {
1805
1806
  * @description fetch the current funding rates
1806
1807
  * @param {string[]} symbols unified market symbols
1807
1808
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
1808
- * @returns {Order[]} an array of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
1809
+ * @returns {Order[]} an array of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
1809
1810
  */
1810
1811
  await this.loadMarkets();
1811
1812
  const marketIds = this.marketIds(symbols);
@@ -1890,11 +1891,13 @@ export default class krakenfutures extends Exchange {
1890
1891
  * @see https://docs.futures.kraken.com/#http-api-trading-v3-api-historical-funding-rates-historical-funding-rates
1891
1892
  * @param {string} symbol unified symbol of the market to fetch the funding rate history for
1892
1893
  * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
1893
- * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure} to fetch
1894
+ * @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
1894
1895
  * @param {object} [params] extra parameters specific to the api endpoint
1895
- * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
1896
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
1896
1897
  */
1897
- this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
1898
+ if (symbol === undefined) {
1899
+ throw new ArgumentsRequired(this.id + ' fetchFundingRateHistory() requires a symbol argument');
1900
+ }
1898
1901
  await this.loadMarkets();
1899
1902
  const market = this.market(symbol);
1900
1903
  if (!market['swap']) {
@@ -2036,7 +2039,7 @@ export default class krakenfutures extends Exchange {
2036
2039
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
2037
2040
  * @param {string[]|undefined} symbols list of unified market symbols
2038
2041
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
2039
- * @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
2042
+ * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
2040
2043
  */
2041
2044
  await this.loadMarkets();
2042
2045
  const response = await this.publicGetInstruments(params);
@@ -2209,7 +2212,7 @@ export default class krakenfutures extends Exchange {
2209
2212
  * @param {str} code Unified currency code
2210
2213
  * @param {float} amount Size of the transfer
2211
2214
  * @param {dict} [params] Exchange specific parameters
2212
- * @returns a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
2215
+ * @returns a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
2213
2216
  */
2214
2217
  return await this.transfer(code, amount, 'future', 'spot', params);
2215
2218
  }
@@ -2225,7 +2228,7 @@ export default class krakenfutures extends Exchange {
2225
2228
  * @param {string} fromAccount 'main'/'funding'/'future', 'flex', or a unified market symbol
2226
2229
  * @param {string} toAccount 'main'/'funding', 'flex', 'spot' or a unified market symbol
2227
2230
  * @param {object} [params] Exchange specific parameters
2228
- * @returns a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
2231
+ * @returns a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
2229
2232
  */
2230
2233
  await this.loadMarkets();
2231
2234
  const currency = this.currency(code);
@@ -2273,7 +2276,9 @@ export default class krakenfutures extends Exchange {
2273
2276
  * @param {object} [params] extra parameters specific to the delta api endpoint
2274
2277
  * @returns {object} response from the exchange
2275
2278
  */
2276
- this.checkRequiredSymbol('setLeverage', symbol);
2279
+ if (symbol === undefined) {
2280
+ throw new ArgumentsRequired(this.id + ' setLeverage() requires a symbol argument');
2281
+ }
2277
2282
  await this.loadMarkets();
2278
2283
  const request = {
2279
2284
  'maxLeverage': leverage,
@@ -2292,9 +2297,11 @@ export default class krakenfutures extends Exchange {
2292
2297
  * @see https://docs.futures.kraken.com/#http-api-trading-v3-api-multi-collateral-get-the-leverage-setting-for-a-market
2293
2298
  * @param {string} symbol unified market symbol
2294
2299
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
2295
- * @returns {object} a [leverage structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-structure}
2300
+ * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
2296
2301
  */
2297
- this.checkRequiredSymbol('fetchLeverage', symbol);
2302
+ if (symbol === undefined) {
2303
+ throw new ArgumentsRequired(this.id + ' fetchLeverage() requires a symbol argument');
2304
+ }
2298
2305
  await this.loadMarkets();
2299
2306
  const request = {
2300
2307
  'symbol': this.marketId(symbol).toUpperCase(),
@@ -105,7 +105,7 @@ export default class kucoin extends Exchange {
105
105
  parseTransaction(transaction: any, currency?: Currency): Transaction;
106
106
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
107
107
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
108
- parseBalanceHelper(entry: any): import("./base/types.js").Balance;
108
+ parseBalanceHelper(entry: any): import("./base/types.js").Account;
109
109
  fetchBalance(params?: {}): Promise<Balances>;
110
110
  transfer(code: string, amount: any, fromAccount: any, toAccount: any, params?: {}): Promise<{
111
111
  id: string;