ccxt 4.1.55 → 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 (328) hide show
  1. package/.git-templates/hooks/pre-push +2 -2
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +6 -6
  4. package/build.sh +30 -8
  5. package/dist/ccxt.browser.js +5592 -4907
  6. package/dist/ccxt.browser.min.js +13 -13
  7. package/dist/cjs/ccxt.js +1 -1
  8. package/dist/cjs/src/ace.js +17 -13
  9. package/dist/cjs/src/alpaca.js +6 -6
  10. package/dist/cjs/src/ascendex.js +35 -29
  11. package/dist/cjs/src/base/Exchange.js +39 -26
  12. package/dist/cjs/src/base/Precise.js +1 -3
  13. package/dist/cjs/src/bigone.js +24 -20
  14. package/dist/cjs/src/binance.js +97 -76
  15. package/dist/cjs/src/bingx.js +63 -44
  16. package/dist/cjs/src/bit2c.js +18 -15
  17. package/dist/cjs/src/bitbank.js +17 -15
  18. package/dist/cjs/src/bitbns.js +28 -18
  19. package/dist/cjs/src/bitfinex.js +23 -21
  20. package/dist/cjs/src/bitfinex2.js +32 -28
  21. package/dist/cjs/src/bitflyer.js +28 -20
  22. package/dist/cjs/src/bitforex.js +25 -18
  23. package/dist/cjs/src/bitget.js +184 -147
  24. package/dist/cjs/src/bithumb.js +23 -16
  25. package/dist/cjs/src/bitmart.js +129 -94
  26. package/dist/cjs/src/bitmex.js +104 -64
  27. package/dist/cjs/src/bitopro.js +38 -26
  28. package/dist/cjs/src/bitpanda.js +24 -23
  29. package/dist/cjs/src/bitrue.js +33 -24
  30. package/dist/cjs/src/bitso.js +24 -23
  31. package/dist/cjs/src/bitstamp.js +24 -23
  32. package/dist/cjs/src/bittrex.js +30 -29
  33. package/dist/cjs/src/bitvavo.js +38 -30
  34. package/dist/cjs/src/bl3p.js +11 -10
  35. package/dist/cjs/src/blockchaincom.js +20 -20
  36. package/dist/cjs/src/btcalpha.js +18 -17
  37. package/dist/cjs/src/btcbox.js +13 -12
  38. package/dist/cjs/src/btcmarkets.js +20 -19
  39. package/dist/cjs/src/btcturk.js +14 -13
  40. package/dist/cjs/src/bybit.js +84 -54
  41. package/dist/cjs/src/cex.js +16 -14
  42. package/dist/cjs/src/coinbase.js +29 -27
  43. package/dist/cjs/src/coinbasepro.js +27 -25
  44. package/dist/cjs/src/coincheck.js +15 -14
  45. package/dist/cjs/src/coinex.js +101 -78
  46. package/dist/cjs/src/coinlist.js +28 -27
  47. package/dist/cjs/src/coinmate.js +20 -17
  48. package/dist/cjs/src/coinone.js +21 -16
  49. package/dist/cjs/src/coinsph.js +37 -28
  50. package/dist/cjs/src/coinspot.js +12 -11
  51. package/dist/cjs/src/cryptocom.js +40 -202
  52. package/dist/cjs/src/currencycom.js +32 -25
  53. package/dist/cjs/src/delta.js +34 -28
  54. package/dist/cjs/src/deribit.js +39 -36
  55. package/dist/cjs/src/digifinex.js +64 -44
  56. package/dist/cjs/src/exmo.js +29 -27
  57. package/dist/cjs/src/gate.js +67 -53
  58. package/dist/cjs/src/gemini.js +23 -20
  59. package/dist/cjs/src/hitbtc.js +65 -56
  60. package/dist/cjs/src/hollaex.js +30 -27
  61. package/dist/cjs/src/htx.js +135 -143
  62. package/dist/cjs/src/huobijp.js +22 -20
  63. package/dist/cjs/src/idex.js +22 -21
  64. package/dist/cjs/src/independentreserve.js +15 -14
  65. package/dist/cjs/src/indodax.js +30 -26
  66. package/dist/cjs/src/kraken.js +29 -27
  67. package/dist/cjs/src/krakenfutures.js +29 -22
  68. package/dist/cjs/src/kucoin.js +48 -43
  69. package/dist/cjs/src/kucoinfutures.js +33 -28
  70. package/dist/cjs/src/kuna.js +25 -24
  71. package/dist/cjs/src/latoken.js +24 -22
  72. package/dist/cjs/src/lbank.js +45 -30
  73. package/dist/cjs/src/luno.js +22 -19
  74. package/dist/cjs/src/lykke.js +19 -17
  75. package/dist/cjs/src/mercado.js +30 -19
  76. package/dist/cjs/src/mexc.js +60 -49
  77. package/dist/cjs/src/ndax.js +23 -22
  78. package/dist/cjs/src/novadax.js +23 -22
  79. package/dist/cjs/src/oceanex.js +22 -19
  80. package/dist/cjs/src/okcoin.js +29 -23
  81. package/dist/cjs/src/okx.js +92 -84
  82. package/dist/cjs/src/p2b.js +80 -83
  83. package/dist/cjs/src/paymium.js +10 -10
  84. package/dist/cjs/src/phemex.js +63 -40
  85. package/dist/cjs/src/poloniex.js +22 -22
  86. package/dist/cjs/src/poloniexfutures.js +23 -19
  87. package/dist/cjs/src/pro/alpaca.js +5 -5
  88. package/dist/cjs/src/pro/ascendex.js +4 -4
  89. package/dist/cjs/src/pro/binance.js +16 -16
  90. package/dist/cjs/src/pro/bingx.js +1 -1
  91. package/dist/cjs/src/pro/bitfinex.js +4 -4
  92. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  93. package/dist/cjs/src/pro/bitget.js +7 -7
  94. package/dist/cjs/src/pro/bitmart.js +7 -5
  95. package/dist/cjs/src/pro/bitmex.js +6 -6
  96. package/dist/cjs/src/pro/bitopro.js +4 -4
  97. package/dist/cjs/src/pro/bitpanda.js +6 -6
  98. package/dist/cjs/src/pro/bitrue.js +2 -2
  99. package/dist/cjs/src/pro/bitstamp.js +6 -4
  100. package/dist/cjs/src/pro/bittrex.js +6 -6
  101. package/dist/cjs/src/pro/bitvavo.js +11 -7
  102. package/dist/cjs/src/pro/blockchaincom.js +8 -8
  103. package/dist/cjs/src/pro/bybit.js +7 -7
  104. package/dist/cjs/src/pro/cex.js +13 -9
  105. package/dist/cjs/src/pro/coinbase.js +5 -5
  106. package/dist/cjs/src/pro/coinbasepro.js +11 -10
  107. package/dist/cjs/src/pro/coinex.js +7 -9
  108. package/dist/cjs/src/pro/cryptocom.js +9 -9
  109. package/dist/cjs/src/pro/currencycom.js +4 -4
  110. package/dist/cjs/src/pro/deribit.js +6 -6
  111. package/dist/cjs/src/pro/exmo.js +12 -14
  112. package/dist/cjs/src/pro/gate.js +7 -7
  113. package/dist/cjs/src/pro/gemini.js +3 -3
  114. package/dist/cjs/src/pro/hitbtc.js +263 -4
  115. package/dist/cjs/src/pro/hollaex.js +5 -5
  116. package/dist/cjs/src/pro/htx.js +6 -6
  117. package/dist/cjs/src/pro/huobijp.js +3 -3
  118. package/dist/cjs/src/pro/idex.js +4 -4
  119. package/dist/cjs/src/pro/independentreserve.js +2 -2
  120. package/dist/cjs/src/pro/kraken.js +10 -10
  121. package/dist/cjs/src/pro/krakenfutures.js +41 -17
  122. package/dist/cjs/src/pro/kucoin.js +7 -7
  123. package/dist/cjs/src/pro/kucoinfutures.js +8 -6
  124. package/dist/cjs/src/pro/luno.js +2 -2
  125. package/dist/cjs/src/pro/mexc.js +6 -6
  126. package/dist/cjs/src/pro/ndax.js +3 -3
  127. package/dist/cjs/src/pro/okcoin.js +5 -5
  128. package/dist/cjs/src/pro/okx.js +12 -12
  129. package/dist/cjs/src/pro/phemex.js +6 -6
  130. package/dist/cjs/src/pro/poloniex.js +7 -7
  131. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  132. package/dist/cjs/src/pro/probit.js +6 -6
  133. package/dist/cjs/src/pro/upbit.js +3 -3
  134. package/dist/cjs/src/pro/wazirx.js +8 -8
  135. package/dist/cjs/src/pro/whitebit.js +12 -8
  136. package/dist/cjs/src/pro/woo.js +1 -1
  137. package/dist/cjs/src/probit.js +28 -23
  138. package/dist/cjs/src/tidex.js +16 -15
  139. package/dist/cjs/src/timex.js +19 -18
  140. package/dist/cjs/src/tokocrypto.js +27 -22
  141. package/dist/cjs/src/upbit.js +19 -19
  142. package/dist/cjs/src/wavesexchange.js +22 -19
  143. package/dist/cjs/src/wazirx.js +24 -17
  144. package/dist/cjs/src/whitebit.js +33 -27
  145. package/dist/cjs/src/woo.js +44 -34
  146. package/dist/cjs/src/yobit.js +25 -20
  147. package/dist/cjs/src/zaif.js +9 -9
  148. package/dist/cjs/src/zonda.js +18 -17
  149. package/js/ccxt.d.ts +1 -1
  150. package/js/ccxt.js +1 -1
  151. package/js/src/abstract/bitbank.d.ts +1 -0
  152. package/js/src/abstract/bybit.d.ts +1 -0
  153. package/js/src/abstract/cryptocom.d.ts +0 -20
  154. package/js/src/abstract/htx.d.ts +3 -0
  155. package/js/src/abstract/huobi.d.ts +3 -0
  156. package/js/src/abstract/huobipro.d.ts +3 -0
  157. package/js/src/abstract/okex.d.ts +3 -1
  158. package/js/src/abstract/okex5.d.ts +3 -1
  159. package/js/src/abstract/okx.d.ts +3 -1
  160. package/js/src/ace.js +18 -14
  161. package/js/src/alpaca.js +6 -6
  162. package/js/src/ascendex.js +35 -29
  163. package/js/src/base/Exchange.d.ts +37 -34
  164. package/js/src/base/Exchange.js +39 -26
  165. package/js/src/base/Precise.d.ts +4 -4
  166. package/js/src/base/Precise.js +1 -3
  167. package/js/src/base/functions/type.d.ts +25 -25
  168. package/js/src/base/types.d.ts +21 -14
  169. package/js/src/bigone.js +25 -21
  170. package/js/src/binance.d.ts +2 -2
  171. package/js/src/binance.js +97 -76
  172. package/js/src/bingx.js +63 -44
  173. package/js/src/bit2c.js +19 -16
  174. package/js/src/bitbank.js +17 -15
  175. package/js/src/bitbns.js +28 -18
  176. package/js/src/bitfinex.js +23 -21
  177. package/js/src/bitfinex2.js +32 -28
  178. package/js/src/bitflyer.js +28 -20
  179. package/js/src/bitforex.js +26 -19
  180. package/js/src/bitget.d.ts +25 -3
  181. package/js/src/bitget.js +184 -147
  182. package/js/src/bithumb.js +23 -16
  183. package/js/src/bitmart.d.ts +1 -1
  184. package/js/src/bitmart.js +129 -94
  185. package/js/src/bitmex.d.ts +2 -2
  186. package/js/src/bitmex.js +104 -64
  187. package/js/src/bitopro.js +38 -26
  188. package/js/src/bitpanda.js +24 -23
  189. package/js/src/bitrue.js +33 -24
  190. package/js/src/bitso.js +24 -23
  191. package/js/src/bitstamp.d.ts +2 -2
  192. package/js/src/bitstamp.js +24 -23
  193. package/js/src/bittrex.js +30 -29
  194. package/js/src/bitvavo.js +38 -30
  195. package/js/src/bl3p.js +11 -10
  196. package/js/src/blockchaincom.js +20 -20
  197. package/js/src/btcalpha.js +18 -17
  198. package/js/src/btcbox.js +13 -12
  199. package/js/src/btcmarkets.js +20 -19
  200. package/js/src/btcturk.js +14 -13
  201. package/js/src/bybit.d.ts +1 -1
  202. package/js/src/bybit.js +84 -54
  203. package/js/src/cex.js +16 -14
  204. package/js/src/coinbase.js +29 -27
  205. package/js/src/coinbasepro.js +27 -25
  206. package/js/src/coincheck.js +15 -14
  207. package/js/src/coinex.d.ts +1 -1
  208. package/js/src/coinex.js +101 -78
  209. package/js/src/coinlist.js +28 -27
  210. package/js/src/coinmate.js +21 -18
  211. package/js/src/coinone.js +21 -16
  212. package/js/src/coinsph.js +37 -28
  213. package/js/src/coinspot.js +12 -11
  214. package/js/src/cryptocom.d.ts +0 -23
  215. package/js/src/cryptocom.js +40 -202
  216. package/js/src/currencycom.js +32 -25
  217. package/js/src/delta.js +35 -29
  218. package/js/src/deribit.js +39 -36
  219. package/js/src/digifinex.d.ts +2 -2
  220. package/js/src/digifinex.js +65 -45
  221. package/js/src/exmo.js +29 -27
  222. package/js/src/gate.d.ts +1 -1
  223. package/js/src/gate.js +67 -53
  224. package/js/src/gemini.js +23 -20
  225. package/js/src/hitbtc.d.ts +1 -0
  226. package/js/src/hitbtc.js +65 -56
  227. package/js/src/hollaex.js +30 -27
  228. package/js/src/htx.d.ts +11 -3
  229. package/js/src/htx.js +135 -143
  230. package/js/src/huobijp.js +23 -21
  231. package/js/src/idex.js +22 -21
  232. package/js/src/independentreserve.js +15 -14
  233. package/js/src/indodax.js +30 -26
  234. package/js/src/kraken.js +29 -27
  235. package/js/src/krakenfutures.js +29 -22
  236. package/js/src/kucoin.d.ts +1 -1
  237. package/js/src/kucoin.js +48 -43
  238. package/js/src/kucoinfutures.js +33 -28
  239. package/js/src/kuna.js +25 -24
  240. package/js/src/latoken.js +25 -23
  241. package/js/src/lbank.js +46 -31
  242. package/js/src/luno.js +22 -19
  243. package/js/src/lykke.js +19 -17
  244. package/js/src/mercado.js +30 -19
  245. package/js/src/mexc.d.ts +1 -1
  246. package/js/src/mexc.js +60 -49
  247. package/js/src/ndax.js +23 -22
  248. package/js/src/novadax.js +23 -22
  249. package/js/src/oceanex.js +22 -19
  250. package/js/src/okcoin.js +29 -23
  251. package/js/src/okx.d.ts +2 -2
  252. package/js/src/okx.js +92 -84
  253. package/js/src/p2b.d.ts +8 -7
  254. package/js/src/p2b.js +80 -82
  255. package/js/src/paymium.js +10 -10
  256. package/js/src/phemex.js +63 -40
  257. package/js/src/poloniex.js +22 -22
  258. package/js/src/poloniexfutures.js +23 -19
  259. package/js/src/pro/alpaca.js +5 -5
  260. package/js/src/pro/ascendex.js +4 -4
  261. package/js/src/pro/binance.js +16 -16
  262. package/js/src/pro/bingx.js +1 -1
  263. package/js/src/pro/bitfinex.js +4 -4
  264. package/js/src/pro/bitfinex2.d.ts +1 -1
  265. package/js/src/pro/bitfinex2.js +6 -6
  266. package/js/src/pro/bitget.js +7 -7
  267. package/js/src/pro/bitmart.js +7 -5
  268. package/js/src/pro/bitmex.js +6 -6
  269. package/js/src/pro/bitopro.js +4 -4
  270. package/js/src/pro/bitpanda.js +6 -6
  271. package/js/src/pro/bitrue.js +2 -2
  272. package/js/src/pro/bitstamp.js +7 -5
  273. package/js/src/pro/bittrex.js +6 -6
  274. package/js/src/pro/bitvavo.js +12 -8
  275. package/js/src/pro/blockchaincom.js +8 -8
  276. package/js/src/pro/bybit.js +7 -7
  277. package/js/src/pro/cex.js +14 -10
  278. package/js/src/pro/coinbase.js +5 -5
  279. package/js/src/pro/coinbasepro.js +12 -11
  280. package/js/src/pro/coinex.js +7 -9
  281. package/js/src/pro/cryptocom.js +9 -9
  282. package/js/src/pro/currencycom.js +4 -4
  283. package/js/src/pro/deribit.js +6 -6
  284. package/js/src/pro/exmo.js +12 -14
  285. package/js/src/pro/gate.js +7 -7
  286. package/js/src/pro/gemini.js +3 -3
  287. package/js/src/pro/hitbtc.d.ts +8 -1
  288. package/js/src/pro/hitbtc.js +264 -5
  289. package/js/src/pro/hollaex.js +5 -5
  290. package/js/src/pro/htx.js +6 -6
  291. package/js/src/pro/huobijp.js +3 -3
  292. package/js/src/pro/idex.js +4 -4
  293. package/js/src/pro/independentreserve.js +2 -2
  294. package/js/src/pro/kraken.js +10 -10
  295. package/js/src/pro/krakenfutures.d.ts +1 -0
  296. package/js/src/pro/krakenfutures.js +42 -18
  297. package/js/src/pro/kucoin.js +7 -7
  298. package/js/src/pro/kucoinfutures.js +8 -6
  299. package/js/src/pro/luno.js +2 -2
  300. package/js/src/pro/mexc.js +6 -6
  301. package/js/src/pro/ndax.js +3 -3
  302. package/js/src/pro/okcoin.js +5 -5
  303. package/js/src/pro/okx.js +12 -12
  304. package/js/src/pro/phemex.js +6 -6
  305. package/js/src/pro/poloniex.js +7 -7
  306. package/js/src/pro/poloniexfutures.js +5 -5
  307. package/js/src/pro/probit.js +6 -6
  308. package/js/src/pro/upbit.js +3 -3
  309. package/js/src/pro/wazirx.js +8 -8
  310. package/js/src/pro/whitebit.js +13 -9
  311. package/js/src/pro/woo.js +1 -1
  312. package/js/src/probit.js +29 -24
  313. package/js/src/tidex.js +16 -15
  314. package/js/src/timex.js +19 -18
  315. package/js/src/tokocrypto.js +28 -23
  316. package/js/src/upbit.js +19 -19
  317. package/js/src/wavesexchange.js +23 -20
  318. package/js/src/wazirx.js +25 -18
  319. package/js/src/whitebit.js +33 -27
  320. package/js/src/woo.js +45 -35
  321. package/js/src/yobit.js +25 -20
  322. package/js/src/zaif.js +9 -9
  323. package/js/src/zonda.js +18 -17
  324. package/package.json +2 -2
  325. package/js/src/bitstamp1.d.ts +0 -28
  326. package/js/src/bitstamp1.js +0 -430
  327. package/js/src/lbank2.d.ts +0 -90
  328. package/js/src/lbank2.js +0 -2779
@@ -362,7 +362,7 @@ export default class blockchaincom extends Exchange {
362
362
  * @param {string} symbol unified symbol of the market to fetch the order book for
363
363
  * @param {int} [limit] the maximum amount of order book entries to return
364
364
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
365
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
365
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
366
366
  */
367
367
  return await this.fetchL3OrderBook(symbol, limit, params);
368
368
  }
@@ -374,7 +374,7 @@ export default class blockchaincom extends Exchange {
374
374
  * @param {string} symbol unified market symbol
375
375
  * @param {int} [limit] max number of orders to return, default is undefined
376
376
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
377
- * @returns {object} an [order book structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure}
377
+ * @returns {object} an [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
378
378
  */
379
379
  await this.loadMarkets();
380
380
  const market = this.market(symbol);
@@ -443,7 +443,7 @@ export default class blockchaincom extends Exchange {
443
443
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
444
444
  * @param {string} symbol unified symbol of the market to fetch the ticker for
445
445
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
446
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
446
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
447
447
  */
448
448
  await this.loadMarkets();
449
449
  const market = this.market(symbol);
@@ -460,7 +460,7 @@ export default class blockchaincom extends Exchange {
460
460
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
461
461
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
462
462
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
463
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
463
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
464
464
  */
465
465
  await this.loadMarkets();
466
466
  const tickers = await this.publicGetTickers(params);
@@ -544,7 +544,7 @@ export default class blockchaincom extends Exchange {
544
544
  * @param {float} amount how much of currency you want to trade in units of base currency
545
545
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
546
546
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
547
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
547
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
548
548
  */
549
549
  await this.loadMarkets();
550
550
  const market = this.market(symbol);
@@ -603,7 +603,7 @@ export default class blockchaincom extends Exchange {
603
603
  * @param {string} id order id
604
604
  * @param {string} symbol unified symbol of the market the order was made in
605
605
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
606
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
606
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
607
607
  */
608
608
  const request = {
609
609
  'orderId': id,
@@ -621,7 +621,7 @@ export default class blockchaincom extends Exchange {
621
621
  * @description cancel all open orders
622
622
  * @param {string} symbol unified market symbol of the market to cancel orders in, all markets are used if undefined, default is undefined
623
623
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
624
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
624
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
625
625
  */
626
626
  // cancels all open orders if no symbol specified
627
627
  // cancels all open orders of specified symbol, if symbol is specified
@@ -645,7 +645,7 @@ export default class blockchaincom extends Exchange {
645
645
  * @name blockchaincom#fetchTradingFees
646
646
  * @description fetch the trading fees for multiple markets
647
647
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
648
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
648
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
649
649
  */
650
650
  await this.loadMarkets();
651
651
  const response = await this.privateGetFees(params);
@@ -679,7 +679,7 @@ export default class blockchaincom extends Exchange {
679
679
  * @param {int} [since] timestamp in ms of the earliest order, default is undefined
680
680
  * @param {int} [limit] max number of orders to return, default is undefined
681
681
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
682
- * @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
682
+ * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
683
683
  */
684
684
  const state = 'CANCELED';
685
685
  return await this.fetchOrdersByState(state, symbol, since, limit, params);
@@ -693,7 +693,7 @@ export default class blockchaincom extends Exchange {
693
693
  * @param {int} [since] the earliest time in ms to fetch orders for
694
694
  * @param {int} [limit] the maximum number of orde structures to retrieve
695
695
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
696
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
696
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
697
697
  */
698
698
  const state = 'FILLED';
699
699
  return await this.fetchOrdersByState(state, symbol, since, limit, params);
@@ -707,7 +707,7 @@ export default class blockchaincom extends Exchange {
707
707
  * @param {int} [since] the earliest time in ms to fetch open orders for
708
708
  * @param {int} [limit] the maximum number of open orders structures to retrieve
709
709
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
710
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
710
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
711
711
  */
712
712
  const state = 'OPEN';
713
713
  return await this.fetchOrdersByState(state, symbol, since, limit, params);
@@ -783,7 +783,7 @@ export default class blockchaincom extends Exchange {
783
783
  * @param {int} [since] the earliest time in ms to fetch trades for
784
784
  * @param {int} [limit] the maximum number of trades structures to retrieve
785
785
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
786
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
786
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
787
787
  */
788
788
  await this.loadMarkets();
789
789
  const request = {};
@@ -805,7 +805,7 @@ export default class blockchaincom extends Exchange {
805
805
  * @description fetch the deposit address for a currency associated with this account
806
806
  * @param {string} code unified currency code
807
807
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
808
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
808
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
809
809
  */
810
810
  await this.loadMarkets();
811
811
  const currency = this.currency(code);
@@ -960,7 +960,7 @@ export default class blockchaincom extends Exchange {
960
960
  * @param {string} address the address to withdraw to
961
961
  * @param {string} tag
962
962
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
963
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
963
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
964
964
  */
965
965
  await this.loadMarkets();
966
966
  const currency = this.currency(code);
@@ -993,7 +993,7 @@ export default class blockchaincom extends Exchange {
993
993
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
994
994
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
995
995
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
996
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
996
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
997
997
  */
998
998
  await this.loadMarkets();
999
999
  const request = {
@@ -1018,7 +1018,7 @@ export default class blockchaincom extends Exchange {
1018
1018
  * @param {string} id withdrawal id
1019
1019
  * @param {string} code not used by blockchaincom.fetchWithdrawal
1020
1020
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
1021
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1021
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1022
1022
  */
1023
1023
  await this.loadMarkets();
1024
1024
  const request = {
@@ -1036,7 +1036,7 @@ export default class blockchaincom extends Exchange {
1036
1036
  * @param {int} [since] the earliest time in ms to fetch deposits for
1037
1037
  * @param {int} [limit] the maximum number of deposits structures to retrieve
1038
1038
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
1039
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1039
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1040
1040
  */
1041
1041
  await this.loadMarkets();
1042
1042
  const request = {
@@ -1061,7 +1061,7 @@ export default class blockchaincom extends Exchange {
1061
1061
  * @param {string} id deposit id
1062
1062
  * @param {string} code not used by blockchaincom fetchDeposit ()
1063
1063
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
1064
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1064
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1065
1065
  */
1066
1066
  await this.loadMarkets();
1067
1067
  const depositId = this.safeString(params, 'depositId', id);
@@ -1077,7 +1077,7 @@ export default class blockchaincom extends Exchange {
1077
1077
  * @name blockchaincom#fetchBalance
1078
1078
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1079
1079
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
1080
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1080
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1081
1081
  */
1082
1082
  await this.loadMarkets();
1083
1083
  const accountName = this.safeString(params, 'account', 'primary');
@@ -1124,7 +1124,7 @@ export default class blockchaincom extends Exchange {
1124
1124
  * @description fetches information on an order made by the user
1125
1125
  * @param {string} symbol not used by blockchaincom fetchOrder
1126
1126
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
1127
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1127
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1128
1128
  */
1129
1129
  // note: only works with exchange-order-id
1130
1130
  // does not work with clientOrderId
@@ -37,12 +37,11 @@ export default class btcalpha extends Exchange {
37
37
  'createStopMarketOrder': false,
38
38
  'createStopOrder': false,
39
39
  'fetchBalance': true,
40
- 'fetchBorrowRate': false,
41
40
  'fetchBorrowRateHistories': false,
42
41
  'fetchBorrowRateHistory': false,
43
- 'fetchBorrowRates': false,
44
- 'fetchBorrowRatesPerSymbol': false,
45
42
  'fetchClosedOrders': true,
43
+ 'fetchCrossBorrowRate': false,
44
+ 'fetchCrossBorrowRates': false,
46
45
  'fetchDeposit': false,
47
46
  'fetchDeposits': true,
48
47
  'fetchFundingHistory': false,
@@ -50,6 +49,8 @@ export default class btcalpha extends Exchange {
50
49
  'fetchFundingRateHistory': false,
51
50
  'fetchFundingRates': false,
52
51
  'fetchIndexOHLCV': false,
52
+ 'fetchIsolatedBorrowRate': false,
53
+ 'fetchIsolatedBorrowRates': false,
53
54
  'fetchL2OrderBook': true,
54
55
  'fetchLeverage': false,
55
56
  'fetchMarginMode': false,
@@ -241,7 +242,7 @@ export default class btcalpha extends Exchange {
241
242
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
242
243
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
243
244
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
244
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
245
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
245
246
  */
246
247
  await this.loadMarkets();
247
248
  const response = await this.publicGetTicker(params);
@@ -271,7 +272,7 @@ export default class btcalpha extends Exchange {
271
272
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
272
273
  * @param {string} symbol unified symbol of the market to fetch the ticker for
273
274
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
274
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
275
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
275
276
  */
276
277
  await this.loadMarkets();
277
278
  const market = this.market(symbol);
@@ -345,7 +346,7 @@ export default class btcalpha extends Exchange {
345
346
  * @param {string} symbol unified symbol of the market to fetch the order book for
346
347
  * @param {int} [limit] the maximum amount of order book entries to return
347
348
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
348
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
349
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
349
350
  */
350
351
  await this.loadMarkets();
351
352
  const market = this.market(symbol);
@@ -427,7 +428,7 @@ export default class btcalpha extends Exchange {
427
428
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
428
429
  * @param {int} [limit] the maximum amount of trades to fetch
429
430
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
430
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
431
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
431
432
  */
432
433
  await this.loadMarkets();
433
434
  let market = undefined;
@@ -451,7 +452,7 @@ export default class btcalpha extends Exchange {
451
452
  * @param {int} [since] the earliest time in ms to fetch deposits for
452
453
  * @param {int} [limit] the maximum number of deposits structures to retrieve
453
454
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
454
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
455
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
455
456
  */
456
457
  await this.loadMarkets();
457
458
  let currency = undefined;
@@ -480,7 +481,7 @@ export default class btcalpha extends Exchange {
480
481
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
481
482
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
482
483
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
483
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
484
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
484
485
  */
485
486
  await this.loadMarkets();
486
487
  let currency = undefined;
@@ -631,7 +632,7 @@ export default class btcalpha extends Exchange {
631
632
  * @name btcalpha#fetchBalance
632
633
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
633
634
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
634
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
635
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
635
636
  */
636
637
  await this.loadMarkets();
637
638
  const response = await this.privateGetWallets(params);
@@ -730,7 +731,7 @@ export default class btcalpha extends Exchange {
730
731
  * @param {float} amount how much of currency you want to trade in units of base currency
731
732
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
732
733
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
733
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
734
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
734
735
  */
735
736
  if (type === 'market') {
736
737
  throw new InvalidOrder(this.id + ' only limits orders are supported');
@@ -762,7 +763,7 @@ export default class btcalpha extends Exchange {
762
763
  * @param {string} id order id
763
764
  * @param {string} symbol unified symbol of the market the order was made in
764
765
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
765
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
766
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
766
767
  */
767
768
  const request = {
768
769
  'order': id,
@@ -778,7 +779,7 @@ export default class btcalpha extends Exchange {
778
779
  * @description fetches information on an order made by the user
779
780
  * @param {string} symbol not used by btcalpha fetchOrder
780
781
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
781
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
782
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
782
783
  */
783
784
  await this.loadMarkets();
784
785
  const request = {
@@ -797,7 +798,7 @@ export default class btcalpha extends Exchange {
797
798
  * @param {int} [since] the earliest time in ms to fetch orders for
798
799
  * @param {int} [limit] the maximum number of orde structures to retrieve
799
800
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
800
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
801
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
801
802
  */
802
803
  await this.loadMarkets();
803
804
  const request = {};
@@ -821,7 +822,7 @@ export default class btcalpha extends Exchange {
821
822
  * @param {int} [since] the earliest time in ms to fetch open orders for
822
823
  * @param {int} [limit] the maximum number of open orders structures to retrieve
823
824
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
824
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
825
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
825
826
  */
826
827
  const request = {
827
828
  'status': '1',
@@ -837,7 +838,7 @@ export default class btcalpha extends Exchange {
837
838
  * @param {int} [since] the earliest time in ms to fetch orders for
838
839
  * @param {int} [limit] the maximum number of orde structures to retrieve
839
840
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
840
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
841
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
841
842
  */
842
843
  const request = {
843
844
  'status': '3',
@@ -853,7 +854,7 @@ export default class btcalpha extends Exchange {
853
854
  * @param {int} [since] the earliest time in ms to fetch trades for
854
855
  * @param {int} [limit] the maximum number of trades structures to retrieve
855
856
  * @param {object} [params] extra parameters specific to the btcalpha api endpoint
856
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
857
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
857
858
  */
858
859
  await this.loadMarkets();
859
860
  const request = {};
package/js/src/btcbox.js CHANGED
@@ -36,16 +36,17 @@ export default class btcbox extends Exchange {
36
36
  'createOrder': true,
37
37
  'createReduceOnlyOrder': false,
38
38
  'fetchBalance': true,
39
- 'fetchBorrowRate': false,
40
39
  'fetchBorrowRateHistories': false,
41
40
  'fetchBorrowRateHistory': false,
42
- 'fetchBorrowRates': false,
43
- 'fetchBorrowRatesPerSymbol': false,
41
+ 'fetchCrossBorrowRate': false,
42
+ 'fetchCrossBorrowRates': false,
44
43
  'fetchFundingHistory': false,
45
44
  'fetchFundingRate': false,
46
45
  'fetchFundingRateHistory': false,
47
46
  'fetchFundingRates': false,
48
47
  'fetchIndexOHLCV': false,
48
+ 'fetchIsolatedBorrowRate': false,
49
+ 'fetchIsolatedBorrowRates': false,
49
50
  'fetchLeverage': false,
50
51
  'fetchMarginMode': false,
51
52
  'fetchMarkOHLCV': false,
@@ -147,7 +148,7 @@ export default class btcbox extends Exchange {
147
148
  * @name btcbox#fetchBalance
148
149
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
149
150
  * @param {object} [params] extra parameters specific to the btcbox api endpoint
150
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
151
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
151
152
  */
152
153
  await this.loadMarkets();
153
154
  const response = await this.privatePostBalance(params);
@@ -161,7 +162,7 @@ export default class btcbox extends Exchange {
161
162
  * @param {string} symbol unified symbol of the market to fetch the order book for
162
163
  * @param {int} [limit] the maximum amount of order book entries to return
163
164
  * @param {object} [params] extra parameters specific to the btcbox api endpoint
164
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
165
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
165
166
  */
166
167
  await this.loadMarkets();
167
168
  const market = this.market(symbol);
@@ -207,7 +208,7 @@ export default class btcbox extends Exchange {
207
208
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
208
209
  * @param {string} symbol unified symbol of the market to fetch the ticker for
209
210
  * @param {object} [params] extra parameters specific to the btcbox api endpoint
210
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
211
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
211
212
  */
212
213
  await this.loadMarkets();
213
214
  const market = this.market(symbol);
@@ -263,7 +264,7 @@ export default class btcbox extends Exchange {
263
264
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
264
265
  * @param {int} [limit] the maximum amount of trades to fetch
265
266
  * @param {object} [params] extra parameters specific to the btcbox api endpoint
266
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
267
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
267
268
  */
268
269
  await this.loadMarkets();
269
270
  const market = this.market(symbol);
@@ -297,7 +298,7 @@ export default class btcbox extends Exchange {
297
298
  * @param {float} amount how much of currency you want to trade in units of base currency
298
299
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
299
300
  * @param {object} [params] extra parameters specific to the btcbox api endpoint
300
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
301
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
301
302
  */
302
303
  await this.loadMarkets();
303
304
  const market = this.market(symbol);
@@ -324,7 +325,7 @@ export default class btcbox extends Exchange {
324
325
  * @param {string} id order id
325
326
  * @param {string} symbol unified symbol of the market the order was made in
326
327
  * @param {object} [params] extra parameters specific to the btcbox api endpoint
327
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
328
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
328
329
  */
329
330
  await this.loadMarkets();
330
331
  // a special case for btcbox – default symbol is BTC/JPY
@@ -418,7 +419,7 @@ export default class btcbox extends Exchange {
418
419
  * @description fetches information on an order made by the user
419
420
  * @param {string} symbol unified symbol of the market the order was made in
420
421
  * @param {object} [params] extra parameters specific to the btcbox api endpoint
421
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
422
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
422
423
  */
423
424
  await this.loadMarkets();
424
425
  // a special case for btcbox – default symbol is BTC/JPY
@@ -488,7 +489,7 @@ export default class btcbox extends Exchange {
488
489
  * @param {int} [since] the earliest time in ms to fetch orders for
489
490
  * @param {int} [limit] the maximum number of orde structures to retrieve
490
491
  * @param {object} [params] extra parameters specific to the btcbox api endpoint
491
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
492
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
492
493
  */
493
494
  return await this.fetchOrdersByType('all', symbol, since, limit, params);
494
495
  }
@@ -501,7 +502,7 @@ export default class btcbox extends Exchange {
501
502
  * @param {int} [since] the earliest time in ms to fetch open orders for
502
503
  * @param {int} [limit] the maximum number of open orders structures to retrieve
503
504
  * @param {object} [params] extra parameters specific to the btcbox api endpoint
504
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
505
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
505
506
  */
506
507
  return await this.fetchOrdersByType('open', symbol, since, limit, params);
507
508
  }
@@ -36,12 +36,11 @@ export default class btcmarkets extends Exchange {
36
36
  'createOrder': true,
37
37
  'createReduceOnlyOrder': false,
38
38
  'fetchBalance': true,
39
- 'fetchBorrowRate': false,
40
39
  'fetchBorrowRateHistories': false,
41
40
  'fetchBorrowRateHistory': false,
42
- 'fetchBorrowRates': false,
43
- 'fetchBorrowRatesPerSymbol': false,
44
41
  'fetchClosedOrders': 'emulated',
42
+ 'fetchCrossBorrowRate': false,
43
+ 'fetchCrossBorrowRates': false,
45
44
  'fetchDeposits': true,
46
45
  'fetchDepositsWithdrawals': true,
47
46
  'fetchFundingHistory': false,
@@ -49,6 +48,8 @@ export default class btcmarkets extends Exchange {
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
  'fetchMarkets': true,
@@ -198,7 +199,7 @@ export default class btcmarkets extends Exchange {
198
199
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
199
200
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
200
201
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
201
- * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
202
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
202
203
  */
203
204
  return await this.fetchTransactionsWithMethod('privateGetTransfers', code, since, limit, params);
204
205
  }
@@ -211,7 +212,7 @@ export default class btcmarkets extends Exchange {
211
212
  * @param {int} [since] the earliest time in ms to fetch deposits for
212
213
  * @param {int} [limit] the maximum number of deposits structures to retrieve
213
214
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
214
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
215
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
215
216
  */
216
217
  return await this.fetchTransactionsWithMethod('privateGetDeposits', code, since, limit, params);
217
218
  }
@@ -224,7 +225,7 @@ export default class btcmarkets extends Exchange {
224
225
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
225
226
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
226
227
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
227
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
228
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
228
229
  */
229
230
  return await this.fetchTransactionsWithMethod('privateGetWithdrawals', code, since, limit, params);
230
231
  }
@@ -474,7 +475,7 @@ export default class btcmarkets extends Exchange {
474
475
  * @name btcmarkets#fetchBalance
475
476
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
476
477
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
477
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
478
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
478
479
  */
479
480
  await this.loadMarkets();
480
481
  const response = await this.privateGetAccountsMeBalances(params);
@@ -547,7 +548,7 @@ export default class btcmarkets extends Exchange {
547
548
  * @param {string} symbol unified symbol of the market to fetch the order book for
548
549
  * @param {int} [limit] the maximum amount of order book entries to return
549
550
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
550
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
551
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
551
552
  */
552
553
  await this.loadMarkets();
553
554
  const market = this.market(symbol);
@@ -633,7 +634,7 @@ export default class btcmarkets extends Exchange {
633
634
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
634
635
  * @param {string} symbol unified symbol of the market to fetch the ticker for
635
636
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
636
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
637
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
637
638
  */
638
639
  await this.loadMarkets();
639
640
  const market = this.market(symbol);
@@ -743,7 +744,7 @@ export default class btcmarkets extends Exchange {
743
744
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
744
745
  * @param {int} [limit] the maximum amount of trades to fetch
745
746
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
746
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
747
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
747
748
  */
748
749
  await this.loadMarkets();
749
750
  const market = this.market(symbol);
@@ -772,7 +773,7 @@ export default class btcmarkets extends Exchange {
772
773
  * @param {float} amount how much of currency you want to trade in units of base currency
773
774
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
774
775
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
775
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
776
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
776
777
  */
777
778
  await this.loadMarkets();
778
779
  const market = this.market(symbol);
@@ -869,7 +870,7 @@ export default class btcmarkets extends Exchange {
869
870
  * @param {string[]} ids order ids
870
871
  * @param {string} symbol not used by btcmarkets cancelOrders ()
871
872
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
872
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
873
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
873
874
  */
874
875
  await this.loadMarkets();
875
876
  for (let i = 0; i < ids.length; i++) {
@@ -888,7 +889,7 @@ export default class btcmarkets extends Exchange {
888
889
  * @param {string} id order id
889
890
  * @param {string} symbol not used by btcmarket cancelOrder ()
890
891
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
891
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
892
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
892
893
  */
893
894
  await this.loadMarkets();
894
895
  const request = {
@@ -1006,7 +1007,7 @@ export default class btcmarkets extends Exchange {
1006
1007
  * @description fetches information on an order made by the user
1007
1008
  * @param {string} symbol not used by btcmarkets fetchOrder
1008
1009
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
1009
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1010
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1010
1011
  */
1011
1012
  await this.loadMarkets();
1012
1013
  const request = {
@@ -1024,7 +1025,7 @@ export default class btcmarkets extends Exchange {
1024
1025
  * @param {int} [since] the earliest time in ms to fetch orders for
1025
1026
  * @param {int} [limit] the maximum number of orde structures to retrieve
1026
1027
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
1027
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1028
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1028
1029
  */
1029
1030
  await this.loadMarkets();
1030
1031
  const request = {
@@ -1053,7 +1054,7 @@ export default class btcmarkets extends Exchange {
1053
1054
  * @param {int} [since] the earliest time in ms to fetch open orders for
1054
1055
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1055
1056
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
1056
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1057
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1057
1058
  */
1058
1059
  const request = { 'status': 'open' };
1059
1060
  return await this.fetchOrders(symbol, since, limit, this.extend(request, params));
@@ -1067,7 +1068,7 @@ export default class btcmarkets extends Exchange {
1067
1068
  * @param {int} [since] the earliest time in ms to fetch orders for
1068
1069
  * @param {int} [limit] the maximum number of orde structures to retrieve
1069
1070
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
1070
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1071
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1071
1072
  */
1072
1073
  const orders = await this.fetchOrders(symbol, since, limit, params);
1073
1074
  return this.filterBy(orders, 'status', 'closed');
@@ -1081,7 +1082,7 @@ export default class btcmarkets extends Exchange {
1081
1082
  * @param {int} [since] the earliest time in ms to fetch trades for
1082
1083
  * @param {int} [limit] the maximum number of trades structures to retrieve
1083
1084
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
1084
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1085
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1085
1086
  */
1086
1087
  await this.loadMarkets();
1087
1088
  const request = {};
@@ -1136,7 +1137,7 @@ export default class btcmarkets extends Exchange {
1136
1137
  * @param {string} address the address to withdraw to
1137
1138
  * @param {string} tag
1138
1139
  * @param {object} [params] extra parameters specific to the btcmarkets api endpoint
1139
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1140
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1140
1141
  */
1141
1142
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1142
1143
  await this.loadMarkets();