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/bittrex.js CHANGED
@@ -44,12 +44,11 @@ export default class bittrex extends Exchange {
44
44
  'createStopOrder': true,
45
45
  'fetchBalance': true,
46
46
  'fetchBidsAsks': true,
47
- 'fetchBorrowRate': false,
48
47
  'fetchBorrowRateHistories': false,
49
48
  'fetchBorrowRateHistory': false,
50
- 'fetchBorrowRates': false,
51
- 'fetchBorrowRatesPerSymbol': false,
52
49
  'fetchClosedOrders': true,
50
+ 'fetchCrossBorrowRate': false,
51
+ 'fetchCrossBorrowRates': false,
53
52
  'fetchCurrencies': true,
54
53
  'fetchDeposit': true,
55
54
  'fetchDepositAddress': true,
@@ -61,6 +60,8 @@ export default class bittrex extends Exchange {
61
60
  'fetchFundingRateHistory': false,
62
61
  'fetchFundingRates': false,
63
62
  'fetchIndexOHLCV': false,
63
+ 'fetchIsolatedBorrowRate': false,
64
+ 'fetchIsolatedBorrowRates': false,
64
65
  'fetchLeverage': false,
65
66
  'fetchLeverageTiers': false,
66
67
  'fetchMarginMode': false,
@@ -394,7 +395,7 @@ export default class bittrex extends Exchange {
394
395
  * @name bittrex#fetchBalance
395
396
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
396
397
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
397
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
398
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
398
399
  */
399
400
  await this.loadMarkets();
400
401
  const response = await this.privateGetBalances(params);
@@ -408,7 +409,7 @@ export default class bittrex extends Exchange {
408
409
  * @param {string} symbol unified symbol of the market to fetch the order book for
409
410
  * @param {int} [limit] the maximum amount of order book entries to return
410
411
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
411
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
412
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
412
413
  */
413
414
  await this.loadMarkets();
414
415
  const market = this.market(symbol);
@@ -573,7 +574,7 @@ export default class bittrex extends Exchange {
573
574
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
574
575
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
575
576
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
576
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
577
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
577
578
  */
578
579
  await this.loadMarkets();
579
580
  symbols = this.marketSymbols(symbols);
@@ -622,7 +623,7 @@ export default class bittrex extends Exchange {
622
623
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
623
624
  * @param {string} symbol unified symbol of the market to fetch the ticker for
624
625
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
625
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
626
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
626
627
  */
627
628
  await this.loadMarkets();
628
629
  const market = this.market(symbol);
@@ -666,7 +667,7 @@ export default class bittrex extends Exchange {
666
667
  * @description fetches the bid and ask price and volume for multiple markets
667
668
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
668
669
  * @param {object} [params] extra parameters specific to the binance api endpoint
669
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
670
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
670
671
  */
671
672
  await this.loadMarkets();
672
673
  const response = await this.publicGetMarketsTickers(params);
@@ -789,7 +790,7 @@ export default class bittrex extends Exchange {
789
790
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
790
791
  * @param {int} [limit] the maximum amount of trades to fetch
791
792
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
792
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
793
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
793
794
  */
794
795
  await this.loadMarkets();
795
796
  const market = this.market(symbol);
@@ -817,7 +818,7 @@ export default class bittrex extends Exchange {
817
818
  * @description fetch the trading fees for a market
818
819
  * @param {string} symbol unified market symbol
819
820
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
820
- * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
821
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
821
822
  */
822
823
  await this.loadMarkets();
823
824
  const market = this.market(symbol);
@@ -840,7 +841,7 @@ export default class bittrex extends Exchange {
840
841
  * @name bittrex#fetchTradingFees
841
842
  * @description fetch the trading fees for multiple markets
842
843
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
843
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
844
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
844
845
  */
845
846
  await this.loadMarkets();
846
847
  const response = await this.privateGetAccountFeesTrading(params);
@@ -977,7 +978,7 @@ export default class bittrex extends Exchange {
977
978
  * @param {int} [since] the earliest time in ms to fetch open orders for
978
979
  * @param {int} [limit] the maximum number of open orders structures to retrieve
979
980
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
980
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
981
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
981
982
  */
982
983
  await this.loadMarkets();
983
984
  const request = {};
@@ -1048,7 +1049,7 @@ export default class bittrex extends Exchange {
1048
1049
  * @param {int} [since] the earliest time in ms to fetch trades for
1049
1050
  * @param {int} [limit] the maximum number of trades to retrieve
1050
1051
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
1051
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1052
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1052
1053
  */
1053
1054
  await this.loadMarkets();
1054
1055
  const request = {
@@ -1072,7 +1073,7 @@ export default class bittrex extends Exchange {
1072
1073
  * @param {float} amount how much of currency you want to trade in units of base currency
1073
1074
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1074
1075
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
1075
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1076
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1076
1077
  */
1077
1078
  // A ceiling order is a market or limit order that allows you to specify
1078
1079
  // the amount of quote currency you want to spend (or receive, if selling)
@@ -1262,7 +1263,7 @@ export default class bittrex extends Exchange {
1262
1263
  * @param {string} id order id
1263
1264
  * @param {string} symbol unified symbol of the market the order was made in
1264
1265
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
1265
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1266
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1266
1267
  */
1267
1268
  await this.loadMarkets();
1268
1269
  const stop = this.safeValue(params, 'stop');
@@ -1343,7 +1344,7 @@ export default class bittrex extends Exchange {
1343
1344
  * @description cancel all open orders
1344
1345
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1345
1346
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
1346
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1347
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1347
1348
  */
1348
1349
  await this.loadMarkets();
1349
1350
  const request = {};
@@ -1392,7 +1393,7 @@ export default class bittrex extends Exchange {
1392
1393
  * @param {string} id deposit id
1393
1394
  * @param {string} code filter by currency code
1394
1395
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
1395
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1396
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1396
1397
  */
1397
1398
  await this.loadMarkets();
1398
1399
  const request = {
@@ -1418,7 +1419,7 @@ export default class bittrex extends Exchange {
1418
1419
  * @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
1419
1420
  * @param {string} [params.nextPageToken] The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
1420
1421
  * @param {string} [params.previousPageToken] The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
1421
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1422
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1422
1423
  */
1423
1424
  await this.loadMarkets();
1424
1425
  // https://support.bittrex.com/hc/en-us/articles/115003723911
@@ -1464,7 +1465,7 @@ export default class bittrex extends Exchange {
1464
1465
  * @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
1465
1466
  * @param {string} [params.nextPageToken] The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
1466
1467
  * @param {string} [params.previousPageToken] The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
1467
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1468
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1468
1469
  */
1469
1470
  await this.loadMarkets();
1470
1471
  return this.fetchDeposits(code, since, limit, this.extend(params, { 'status': 'pending' }));
@@ -1477,7 +1478,7 @@ export default class bittrex extends Exchange {
1477
1478
  * @param {string} id withdrawal id
1478
1479
  * @param {string} code filter by currency code
1479
1480
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
1480
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1481
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1481
1482
  */
1482
1483
  await this.loadMarkets();
1483
1484
  const request = {
@@ -1503,7 +1504,7 @@ export default class bittrex extends Exchange {
1503
1504
  * @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
1504
1505
  * @param {string} [params.nextPageToken] The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
1505
1506
  * @param {string} [params.previousPageToken] The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
1506
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1507
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1507
1508
  */
1508
1509
  await this.loadMarkets();
1509
1510
  // https://support.bittrex.com/hc/en-us/articles/115003723911
@@ -1546,7 +1547,7 @@ export default class bittrex extends Exchange {
1546
1547
  * @param {int} [params.endDate] Filters out result after this timestamp. Uses ISO-8602 format.
1547
1548
  * @param {string} [params.nextPageToken] The unique identifier of the item that the resulting query result should start after, in the sort order of the given endpoint. Used for traversing a paginated set in the forward direction.
1548
1549
  * @param {string} [params.previousPageToken] The unique identifier of the item that the resulting query result should end before, in the sort order of the given endpoint. Used for traversing a paginated set in the reverse direction.
1549
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1550
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1550
1551
  */
1551
1552
  await this.loadMarkets();
1552
1553
  return this.fetchWithdrawals(code, since, limit, this.extend(params, { 'status': 'pending' }));
@@ -1844,7 +1845,7 @@ export default class bittrex extends Exchange {
1844
1845
  * @description fetches information on an order made by the user
1845
1846
  * @param {string} symbol unified symbol of the market the order was made in
1846
1847
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
1847
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1848
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1848
1849
  */
1849
1850
  await this.loadMarkets();
1850
1851
  const stop = this.safeValue(params, 'stop');
@@ -1887,7 +1888,7 @@ export default class bittrex extends Exchange {
1887
1888
  * @param {int} [since] the earliest time in ms to fetch trades for
1888
1889
  * @param {int} [limit] the maximum number of trades structures to retrieve
1889
1890
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
1890
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1891
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1891
1892
  */
1892
1893
  await this.loadMarkets();
1893
1894
  const request = {};
@@ -1914,7 +1915,7 @@ export default class bittrex extends Exchange {
1914
1915
  * @param {int} [since] the earliest time in ms to fetch orders for
1915
1916
  * @param {int} [limit] the maximum number of orde structures to retrieve
1916
1917
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
1917
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1918
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1918
1919
  */
1919
1920
  await this.loadMarkets();
1920
1921
  const stop = this.safeValue(params, 'stop');
@@ -1995,7 +1996,7 @@ export default class bittrex extends Exchange {
1995
1996
  * @description create a currency deposit address
1996
1997
  * @param {string} code unified currency code of the currency for the deposit address
1997
1998
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
1998
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1999
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1999
2000
  */
2000
2001
  await this.loadMarkets();
2001
2002
  const currency = this.currency(code);
@@ -2032,7 +2033,7 @@ export default class bittrex extends Exchange {
2032
2033
  * @description fetch the deposit address for a currency associated with this account
2033
2034
  * @param {string} code unified currency code
2034
2035
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
2035
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
2036
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2036
2037
  */
2037
2038
  await this.loadMarkets();
2038
2039
  const currency = this.currency(code);
@@ -2103,7 +2104,7 @@ export default class bittrex extends Exchange {
2103
2104
  * @description fetch deposit and withdraw fees
2104
2105
  * @param {string[]|undefined} codes list of unified currency codes
2105
2106
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
2106
- * @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
2107
+ * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
2107
2108
  */
2108
2109
  await this.loadMarkets();
2109
2110
  const response = await this.publicGetCurrencies(params);
@@ -2141,7 +2142,7 @@ export default class bittrex extends Exchange {
2141
2142
  * @param {string} address the address to withdraw to
2142
2143
  * @param {string} tag
2143
2144
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
2144
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2145
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2145
2146
  */
2146
2147
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2147
2148
  this.checkAddress(address);
package/js/src/bitvavo.js CHANGED
@@ -42,11 +42,10 @@ export default class bitvavo extends Exchange {
42
42
  'createStopOrder': true,
43
43
  'editOrder': true,
44
44
  'fetchBalance': true,
45
- 'fetchBorrowRate': false,
46
45
  'fetchBorrowRateHistories': false,
47
46
  'fetchBorrowRateHistory': false,
48
- 'fetchBorrowRates': false,
49
- 'fetchBorrowRatesPerSymbol': false,
47
+ 'fetchCrossBorrowRate': false,
48
+ 'fetchCrossBorrowRates': false,
50
49
  'fetchCurrencies': true,
51
50
  'fetchDepositAddress': true,
52
51
  'fetchDeposits': true,
@@ -57,6 +56,8 @@ export default class bitvavo extends Exchange {
57
56
  'fetchFundingRateHistory': false,
58
57
  'fetchFundingRates': false,
59
58
  'fetchIndexOHLCV': false,
59
+ 'fetchIsolatedBorrowRate': false,
60
+ 'fetchIsolatedBorrowRates': false,
60
61
  'fetchLeverage': false,
61
62
  'fetchLeverageTiers': false,
62
63
  'fetchMarginMode': false,
@@ -315,11 +316,6 @@ export default class bitvavo extends Exchange {
315
316
  * @returns {object[]} an array of objects representing market data
316
317
  */
317
318
  const response = await this.publicGetMarkets(params);
318
- let currencies = this.currencies;
319
- if (this.currencies === undefined) {
320
- currencies = await this.fetchCurrencies();
321
- }
322
- const currenciesById = this.indexBy(currencies, 'id');
323
319
  //
324
320
  // [
325
321
  // {
@@ -334,6 +330,8 @@ export default class bitvavo extends Exchange {
334
330
  // }
335
331
  // ]
336
332
  //
333
+ const currencies = this.currencies;
334
+ const currenciesById = this.indexBy(currencies, 'id');
337
335
  const result = [];
338
336
  const fees = this.fees;
339
337
  for (let i = 0; i < response.length; i++) {
@@ -505,6 +503,8 @@ export default class bitvavo extends Exchange {
505
503
  },
506
504
  };
507
505
  }
506
+ // set currencies here to avoid calling publicGetAssets twice
507
+ this.currencies = this.deepExtend(this.currencies, result);
508
508
  return result;
509
509
  }
510
510
  async fetchTicker(symbol, params = {}) {
@@ -515,7 +515,7 @@ export default class bitvavo extends Exchange {
515
515
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
516
516
  * @param {string} symbol unified symbol of the market to fetch the ticker for
517
517
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
518
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
518
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
519
519
  */
520
520
  await this.loadMarkets();
521
521
  const market = this.market(symbol);
@@ -597,7 +597,7 @@ export default class bitvavo extends Exchange {
597
597
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
598
598
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
599
599
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
600
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
600
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
601
601
  */
602
602
  await this.loadMarkets();
603
603
  const response = await this.publicGetTicker24h(params);
@@ -633,7 +633,7 @@ export default class bitvavo extends Exchange {
633
633
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
634
634
  * @param {int} [params.until] the latest time in ms to fetch entries for
635
635
  * @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)
636
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
636
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
637
637
  */
638
638
  await this.loadMarkets();
639
639
  const market = this.market(symbol);
@@ -773,7 +773,7 @@ export default class bitvavo extends Exchange {
773
773
  * @name bitvavo#fetchTradingFees
774
774
  * @description fetch the trading fees for multiple markets
775
775
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
776
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
776
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
777
777
  */
778
778
  await this.loadMarkets();
779
779
  const response = await this.privateGetAccount(params);
@@ -812,7 +812,7 @@ export default class bitvavo extends Exchange {
812
812
  * @param {string} symbol unified symbol of the market to fetch the order book for
813
813
  * @param {int} [limit] the maximum amount of order book entries to return
814
814
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
815
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
815
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
816
816
  */
817
817
  await this.loadMarkets();
818
818
  const market = this.market(symbol);
@@ -938,7 +938,7 @@ export default class bitvavo extends Exchange {
938
938
  * @name bitvavo#fetchBalance
939
939
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
940
940
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
941
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
941
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
942
942
  */
943
943
  await this.loadMarkets();
944
944
  const response = await this.privateGetBalance(params);
@@ -960,7 +960,7 @@ export default class bitvavo extends Exchange {
960
960
  * @description fetch the deposit address for a currency associated with this account
961
961
  * @param {string} code unified currency code
962
962
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
963
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
963
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
964
964
  */
965
965
  await this.loadMarkets();
966
966
  const currency = this.currency(code);
@@ -1008,7 +1008,7 @@ export default class bitvavo extends Exchange {
1008
1008
  * @param {string} [params.selfTradePrevention] "decrementAndCancel", "cancelOldest", "cancelNewest", "cancelBoth"
1009
1009
  * @param {bool} [params.disableMarketProtection] don't cancel if the next fill price is 10% worse than the best fill price
1010
1010
  * @param {bool} [params.responseRequired] Set this to 'false' when only an acknowledgement of success or failure is required, this is faster.
1011
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1011
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1012
1012
  */
1013
1013
  await this.loadMarkets();
1014
1014
  const market = this.market(symbol);
@@ -1151,9 +1151,11 @@ export default class bitvavo extends Exchange {
1151
1151
  * @param {string} id order id
1152
1152
  * @param {string} symbol unified symbol of the market the order was made in
1153
1153
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
1154
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1154
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1155
1155
  */
1156
- this.checkRequiredSymbol('cancelOrder', symbol);
1156
+ if (symbol === undefined) {
1157
+ throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
1158
+ }
1157
1159
  await this.loadMarkets();
1158
1160
  const market = this.market(symbol);
1159
1161
  const request = {
@@ -1175,7 +1177,7 @@ export default class bitvavo extends Exchange {
1175
1177
  * @description cancel all open orders
1176
1178
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1177
1179
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
1178
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1180
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1179
1181
  */
1180
1182
  await this.loadMarkets();
1181
1183
  const request = {};
@@ -1201,9 +1203,11 @@ export default class bitvavo extends Exchange {
1201
1203
  * @description fetches information on an order made by the user
1202
1204
  * @param {string} symbol unified symbol of the market the order was made in
1203
1205
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
1204
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1206
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1205
1207
  */
1206
- this.checkRequiredSymbol('fetchOrder', symbol);
1208
+ if (symbol === undefined) {
1209
+ throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
1210
+ }
1207
1211
  await this.loadMarkets();
1208
1212
  const market = this.market(symbol);
1209
1213
  const request = {
@@ -1259,9 +1263,11 @@ export default class bitvavo extends Exchange {
1259
1263
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
1260
1264
  * @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)
1261
1265
  * @param {int} [params.until] the latest time in ms to fetch entries for
1262
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1266
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1263
1267
  */
1264
- this.checkRequiredSymbol('fetchOrders', symbol);
1268
+ if (symbol === undefined) {
1269
+ throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
1270
+ }
1265
1271
  await this.loadMarkets();
1266
1272
  let paginate = false;
1267
1273
  [paginate, params] = this.handleOptionAndParams(params, 'fetchOrders', 'paginate');
@@ -1332,7 +1338,7 @@ export default class bitvavo extends Exchange {
1332
1338
  * @param {int} [since] the earliest time in ms to fetch open orders for
1333
1339
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1334
1340
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
1335
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1341
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1336
1342
  */
1337
1343
  await this.loadMarkets();
1338
1344
  const request = {
@@ -1516,9 +1522,11 @@ export default class bitvavo extends Exchange {
1516
1522
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
1517
1523
  * @param {int} [params.until] the latest time in ms to fetch entries for
1518
1524
  * @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)
1519
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1525
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1520
1526
  */
1521
- this.checkRequiredSymbol('fetchMyTrades', symbol);
1527
+ if (symbol === undefined) {
1528
+ throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
1529
+ }
1522
1530
  await this.loadMarkets();
1523
1531
  let paginate = false;
1524
1532
  [paginate, params] = this.handleOptionAndParams(params, 'fetchMyTrades', 'paginate');
@@ -1571,7 +1579,7 @@ export default class bitvavo extends Exchange {
1571
1579
  * @param {string} address the address to withdraw to
1572
1580
  * @param {string} tag
1573
1581
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
1574
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1582
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1575
1583
  */
1576
1584
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1577
1585
  this.checkAddress(address);
@@ -1606,7 +1614,7 @@ export default class bitvavo extends Exchange {
1606
1614
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
1607
1615
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
1608
1616
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
1609
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1617
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1610
1618
  */
1611
1619
  await this.loadMarkets();
1612
1620
  const request = {
@@ -1652,7 +1660,7 @@ export default class bitvavo extends Exchange {
1652
1660
  * @param {int} [since] the earliest time in ms to fetch deposits for
1653
1661
  * @param {int} [limit] the maximum number of deposits structures to retrieve
1654
1662
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
1655
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1663
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1656
1664
  */
1657
1665
  await this.loadMarkets();
1658
1666
  const request = {
@@ -1833,7 +1841,7 @@ export default class bitvavo extends Exchange {
1833
1841
  * @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
1834
1842
  * @param {string[]|undefined} codes list of unified currency codes
1835
1843
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
1836
- * @returns {object} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
1844
+ * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
1837
1845
  */
1838
1846
  await this.loadMarkets();
1839
1847
  const response = await this.publicGetAssets(params);
package/js/src/bl3p.js CHANGED
@@ -39,16 +39,17 @@ export default class bl3p extends Exchange {
39
39
  'createStopMarketOrder': false,
40
40
  'createStopOrder': false,
41
41
  'fetchBalance': true,
42
- 'fetchBorrowRate': false,
43
42
  'fetchBorrowRateHistories': false,
44
43
  'fetchBorrowRateHistory': false,
45
- 'fetchBorrowRates': false,
46
- 'fetchBorrowRatesPerSymbol': false,
44
+ 'fetchCrossBorrowRate': false,
45
+ 'fetchCrossBorrowRates': false,
47
46
  'fetchFundingHistory': false,
48
47
  'fetchFundingRate': false,
49
48
  'fetchFundingRateHistory': false,
50
49
  'fetchFundingRates': false,
51
50
  'fetchIndexOHLCV': false,
51
+ 'fetchIsolatedBorrowRate': false,
52
+ 'fetchIsolatedBorrowRates': false,
52
53
  'fetchLeverage': false,
53
54
  'fetchMarginMode': false,
54
55
  'fetchMarkOHLCV': false,
@@ -140,7 +141,7 @@ export default class bl3p extends Exchange {
140
141
  * @name bl3p#fetchBalance
141
142
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
142
143
  * @param {object} [params] extra parameters specific to the bl3p api endpoint
143
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
144
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
144
145
  */
145
146
  await this.loadMarkets();
146
147
  const response = await this.privatePostGENMKTMoneyInfo(params);
@@ -162,7 +163,7 @@ export default class bl3p extends Exchange {
162
163
  * @param {string} symbol unified symbol of the market to fetch the order book for
163
164
  * @param {int} [limit] the maximum amount of order book entries to return
164
165
  * @param {object} [params] extra parameters specific to the bl3p api endpoint
165
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
166
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
166
167
  */
167
168
  const market = this.market(symbol);
168
169
  const request = {
@@ -222,7 +223,7 @@ export default class bl3p extends Exchange {
222
223
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
223
224
  * @param {string} symbol unified symbol of the market to fetch the ticker for
224
225
  * @param {object} [params] extra parameters specific to the bl3p api endpoint
225
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
226
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
226
227
  */
227
228
  const market = this.market(symbol);
228
229
  const request = {
@@ -287,7 +288,7 @@ export default class bl3p extends Exchange {
287
288
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
288
289
  * @param {int} [limit] the maximum amount of trades to fetch
289
290
  * @param {object} [params] extra parameters specific to the bl3p api endpoint
290
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
291
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
291
292
  */
292
293
  const market = this.market(symbol);
293
294
  const response = await this.publicGetMarketTrades(this.extend({
@@ -316,7 +317,7 @@ export default class bl3p extends Exchange {
316
317
  * @name bl3p#fetchTradingFees
317
318
  * @description fetch the trading fees for multiple markets
318
319
  * @param {object} [params] extra parameters specific to the bl3p api endpoint
319
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
320
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
320
321
  */
321
322
  await this.loadMarkets();
322
323
  const response = await this.privatePostGENMKTMoneyInfo(params);
@@ -381,7 +382,7 @@ export default class bl3p extends Exchange {
381
382
  * EXCHANGE SPECIFIC PARAMETERS
382
383
  * @param {int} [params.amount_funds] maximal EUR amount to spend (*1e5)
383
384
  * @param {string} [params.fee_currency] 'EUR' or 'BTC'
384
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
385
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
385
386
  */
386
387
  const market = this.market(symbol);
387
388
  const amountString = this.numberToString(amount);
@@ -410,7 +411,7 @@ export default class bl3p extends Exchange {
410
411
  * @param {string} id order id
411
412
  * @param {string} symbol unified symbol of the market the order was made in
412
413
  * @param {object} [params] extra parameters specific to the bl3p api endpoint
413
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
414
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
414
415
  */
415
416
  const request = {
416
417
  'order_id': id,