ccxt 4.0.74 → 4.0.76

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 (299) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2635 -2383
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +11 -11
  6. package/dist/cjs/src/alpaca.js +7 -7
  7. package/dist/cjs/src/ascendex.js +25 -25
  8. package/dist/cjs/src/base/Exchange.js +4 -4
  9. package/dist/cjs/src/bigone.js +19 -19
  10. package/dist/cjs/src/binance.js +56 -56
  11. package/dist/cjs/src/bingx.js +85 -40
  12. package/dist/cjs/src/bit2c.js +12 -12
  13. package/dist/cjs/src/bitbank.js +13 -13
  14. package/dist/cjs/src/bitbns.js +14 -14
  15. package/dist/cjs/src/bitfinex.js +21 -21
  16. package/dist/cjs/src/bitfinex2.js +29 -29
  17. package/dist/cjs/src/bitflyer.js +17 -17
  18. package/dist/cjs/src/bitforex.js +11 -11
  19. package/dist/cjs/src/bitget.js +39 -39
  20. package/dist/cjs/src/bithumb.js +11 -11
  21. package/dist/cjs/src/bitmart.js +44 -31
  22. package/dist/cjs/src/bitmex.js +24 -24
  23. package/dist/cjs/src/bitopro.js +21 -21
  24. package/dist/cjs/src/bitpanda.js +21 -21
  25. package/dist/cjs/src/bitrue.js +18 -18
  26. package/dist/cjs/src/bitso.js +21 -21
  27. package/dist/cjs/src/bitstamp.js +21 -21
  28. package/dist/cjs/src/bitstamp1.js +8 -8
  29. package/dist/cjs/src/bittrex.js +27 -27
  30. package/dist/cjs/src/bitvavo.js +19 -19
  31. package/dist/cjs/src/bkex.js +21 -21
  32. package/dist/cjs/src/bl3p.js +8 -8
  33. package/dist/cjs/src/blockchaincom.js +21 -21
  34. package/dist/cjs/src/btcalpha.js +15 -15
  35. package/dist/cjs/src/btcbox.js +10 -10
  36. package/dist/cjs/src/btcmarkets.js +17 -17
  37. package/dist/cjs/src/btctradeua.js +8 -8
  38. package/dist/cjs/src/btcturk.js +11 -11
  39. package/dist/cjs/src/bybit.js +153 -121
  40. package/dist/cjs/src/cex.js +14 -14
  41. package/dist/cjs/src/coinbase.js +23 -23
  42. package/dist/cjs/src/coinbasepro.js +24 -24
  43. package/dist/cjs/src/coincheck.js +12 -12
  44. package/dist/cjs/src/coinex.js +87 -41
  45. package/dist/cjs/src/coinfalcon.js +16 -16
  46. package/dist/cjs/src/coinmate.js +14 -14
  47. package/dist/cjs/src/coinone.js +12 -12
  48. package/dist/cjs/src/coinsph.js +27 -22
  49. package/dist/cjs/src/coinspot.js +8 -8
  50. package/dist/cjs/src/cryptocom.js +29 -29
  51. package/dist/cjs/src/currencycom.js +20 -20
  52. package/dist/cjs/src/delta.js +25 -25
  53. package/dist/cjs/src/deribit.js +30 -30
  54. package/dist/cjs/src/digifinex.js +31 -31
  55. package/dist/cjs/src/exmo.js +26 -26
  56. package/dist/cjs/src/gate.js +38 -38
  57. package/dist/cjs/src/gemini.js +17 -17
  58. package/dist/cjs/src/hitbtc.js +34 -34
  59. package/dist/cjs/src/hollaex.js +23 -23
  60. package/dist/cjs/src/huobi.js +45 -45
  61. package/dist/cjs/src/huobijp.js +20 -20
  62. package/dist/cjs/src/idex.js +19 -19
  63. package/dist/cjs/src/independentreserve.js +12 -12
  64. package/dist/cjs/src/indodax.js +14 -14
  65. package/dist/cjs/src/kraken.js +27 -27
  66. package/dist/cjs/src/krakenfutures.js +12 -12
  67. package/dist/cjs/src/kucoin.js +33 -33
  68. package/dist/cjs/src/kucoinfutures.js +24 -24
  69. package/dist/cjs/src/kuna.js +12 -12
  70. package/dist/cjs/src/latoken.js +17 -17
  71. package/dist/cjs/src/lbank.js +12 -12
  72. package/dist/cjs/src/lbank2.js +23 -23
  73. package/dist/cjs/src/luno.js +16 -16
  74. package/dist/cjs/src/lykke.js +16 -16
  75. package/dist/cjs/src/mercado.js +12 -12
  76. package/dist/cjs/src/mexc.js +44 -42
  77. package/dist/cjs/src/ndax.js +20 -20
  78. package/dist/cjs/src/novadax.js +20 -20
  79. package/dist/cjs/src/oceanex.js +16 -16
  80. package/dist/cjs/src/okcoin.js +21 -21
  81. package/dist/cjs/src/okx.js +52 -52
  82. package/dist/cjs/src/paymium.js +11 -11
  83. package/dist/cjs/src/phemex.js +26 -26
  84. package/dist/cjs/src/poloniex.js +237 -136
  85. package/dist/cjs/src/poloniexfutures.js +18 -18
  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/bitfinex.js +4 -4
  90. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  91. package/dist/cjs/src/pro/bitget.js +6 -6
  92. package/dist/cjs/src/pro/bitmart.js +4 -4
  93. package/dist/cjs/src/pro/bitmex.js +6 -6
  94. package/dist/cjs/src/pro/bitopro.js +4 -4
  95. package/dist/cjs/src/pro/bitpanda.js +6 -6
  96. package/dist/cjs/src/pro/bitrue.js +2 -2
  97. package/dist/cjs/src/pro/bitstamp.js +3 -3
  98. package/dist/cjs/src/pro/bittrex.js +6 -6
  99. package/dist/cjs/src/pro/bitvavo.js +5 -5
  100. package/dist/cjs/src/pro/blockchaincom.js +5 -5
  101. package/dist/cjs/src/pro/bybit.js +6 -6
  102. package/dist/cjs/src/pro/cex.js +7 -7
  103. package/dist/cjs/src/pro/coinbase.js +5 -5
  104. package/dist/cjs/src/pro/coinbasepro.js +6 -6
  105. package/dist/cjs/src/pro/coinex.js +5 -5
  106. package/dist/cjs/src/pro/cryptocom.js +10 -10
  107. package/dist/cjs/src/pro/currencycom.js +4 -4
  108. package/dist/cjs/src/pro/deribit.js +6 -6
  109. package/dist/cjs/src/pro/exmo.js +5 -5
  110. package/dist/cjs/src/pro/gate.js +7 -7
  111. package/dist/cjs/src/pro/gemini.js +3 -3
  112. package/dist/cjs/src/pro/hitbtc.js +3 -3
  113. package/dist/cjs/src/pro/hollaex.js +5 -5
  114. package/dist/cjs/src/pro/huobi.js +6 -6
  115. package/dist/cjs/src/pro/huobijp.js +3 -3
  116. package/dist/cjs/src/pro/idex.js +4 -4
  117. package/dist/cjs/src/pro/independentreserve.js +2 -2
  118. package/dist/cjs/src/pro/kraken.js +12 -12
  119. package/dist/cjs/src/pro/krakenfutures.js +7 -7
  120. package/dist/cjs/src/pro/kucoin.js +6 -6
  121. package/dist/cjs/src/pro/kucoinfutures.js +6 -5
  122. package/dist/cjs/src/pro/luno.js +2 -2
  123. package/dist/cjs/src/pro/mexc.js +6 -6
  124. package/dist/cjs/src/pro/ndax.js +3 -3
  125. package/dist/cjs/src/pro/okcoin.js +5 -5
  126. package/dist/cjs/src/pro/okx.js +19 -18
  127. package/dist/cjs/src/pro/phemex.js +6 -6
  128. package/dist/cjs/src/pro/poloniex.js +7 -7
  129. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  130. package/dist/cjs/src/pro/probit.js +6 -6
  131. package/dist/cjs/src/pro/upbit.js +3 -3
  132. package/dist/cjs/src/pro/wazirx.js +6 -6
  133. package/dist/cjs/src/pro/whitebit.js +6 -6
  134. package/dist/cjs/src/probit.js +19 -19
  135. package/dist/cjs/src/tidex.js +13 -13
  136. package/dist/cjs/src/timex.js +16 -16
  137. package/dist/cjs/src/tokocrypto.js +18 -18
  138. package/dist/cjs/src/upbit.js +20 -20
  139. package/dist/cjs/src/wavesexchange.js +16 -16
  140. package/dist/cjs/src/wazirx.js +12 -12
  141. package/dist/cjs/src/whitebit.js +24 -24
  142. package/dist/cjs/src/woo.js +30 -24
  143. package/dist/cjs/src/yobit.js +16 -16
  144. package/dist/cjs/src/zaif.js +10 -10
  145. package/dist/cjs/src/zonda.js +15 -15
  146. package/js/ccxt.d.ts +1 -1
  147. package/js/ccxt.js +1 -1
  148. package/js/src/abstract/bingx.d.ts +2 -0
  149. package/js/src/abstract/bitmart.d.ts +13 -0
  150. package/js/src/abstract/bybit.d.ts +33 -21
  151. package/js/src/abstract/coinsph.d.ts +5 -0
  152. package/js/src/abstract/woo.d.ts +6 -0
  153. package/js/src/ace.js +11 -11
  154. package/js/src/alpaca.js +7 -7
  155. package/js/src/ascendex.js +25 -25
  156. package/js/src/base/Exchange.js +4 -4
  157. package/js/src/bigone.js +19 -19
  158. package/js/src/binance.js +56 -56
  159. package/js/src/bingx.d.ts +1 -0
  160. package/js/src/bingx.js +85 -40
  161. package/js/src/bit2c.js +12 -12
  162. package/js/src/bitbank.js +13 -13
  163. package/js/src/bitbns.js +14 -14
  164. package/js/src/bitfinex.js +21 -21
  165. package/js/src/bitfinex2.js +29 -29
  166. package/js/src/bitflyer.js +17 -17
  167. package/js/src/bitforex.js +11 -11
  168. package/js/src/bitget.js +39 -39
  169. package/js/src/bithumb.js +11 -11
  170. package/js/src/bitmart.js +44 -31
  171. package/js/src/bitmex.js +24 -24
  172. package/js/src/bitopro.js +21 -21
  173. package/js/src/bitpanda.js +21 -21
  174. package/js/src/bitrue.js +18 -18
  175. package/js/src/bitso.js +21 -21
  176. package/js/src/bitstamp.js +21 -21
  177. package/js/src/bitstamp1.js +8 -8
  178. package/js/src/bittrex.js +27 -27
  179. package/js/src/bitvavo.js +19 -19
  180. package/js/src/bkex.js +21 -21
  181. package/js/src/bl3p.js +8 -8
  182. package/js/src/blockchaincom.js +21 -21
  183. package/js/src/btcalpha.js +15 -15
  184. package/js/src/btcbox.js +10 -10
  185. package/js/src/btcmarkets.js +17 -17
  186. package/js/src/btctradeua.js +8 -8
  187. package/js/src/btcturk.js +11 -11
  188. package/js/src/bybit.js +153 -121
  189. package/js/src/cex.js +14 -14
  190. package/js/src/coinbase.js +23 -23
  191. package/js/src/coinbasepro.js +24 -24
  192. package/js/src/coincheck.js +12 -12
  193. package/js/src/coinex.d.ts +1 -0
  194. package/js/src/coinex.js +87 -41
  195. package/js/src/coinfalcon.js +16 -16
  196. package/js/src/coinmate.js +14 -14
  197. package/js/src/coinone.js +12 -12
  198. package/js/src/coinsph.js +27 -22
  199. package/js/src/coinspot.js +8 -8
  200. package/js/src/cryptocom.js +29 -29
  201. package/js/src/currencycom.js +20 -20
  202. package/js/src/delta.js +25 -25
  203. package/js/src/deribit.js +30 -30
  204. package/js/src/digifinex.js +31 -31
  205. package/js/src/exmo.js +26 -26
  206. package/js/src/gate.js +38 -38
  207. package/js/src/gemini.js +17 -17
  208. package/js/src/hitbtc.js +34 -34
  209. package/js/src/hollaex.js +23 -23
  210. package/js/src/huobi.js +45 -45
  211. package/js/src/huobijp.js +20 -20
  212. package/js/src/idex.js +19 -19
  213. package/js/src/independentreserve.js +12 -12
  214. package/js/src/indodax.js +14 -14
  215. package/js/src/kraken.js +27 -27
  216. package/js/src/krakenfutures.js +12 -12
  217. package/js/src/kucoin.js +33 -33
  218. package/js/src/kucoinfutures.js +24 -24
  219. package/js/src/kuna.js +12 -12
  220. package/js/src/latoken.js +17 -17
  221. package/js/src/lbank.js +12 -12
  222. package/js/src/lbank2.js +23 -23
  223. package/js/src/luno.js +16 -16
  224. package/js/src/lykke.js +16 -16
  225. package/js/src/mercado.js +12 -12
  226. package/js/src/mexc.js +45 -43
  227. package/js/src/ndax.js +20 -20
  228. package/js/src/novadax.js +20 -20
  229. package/js/src/oceanex.js +16 -16
  230. package/js/src/okcoin.js +21 -21
  231. package/js/src/okx.js +52 -52
  232. package/js/src/paymium.js +11 -11
  233. package/js/src/phemex.js +26 -26
  234. package/js/src/poloniex.d.ts +1 -1
  235. package/js/src/poloniex.js +237 -136
  236. package/js/src/poloniexfutures.js +18 -18
  237. package/js/src/pro/alpaca.js +5 -5
  238. package/js/src/pro/ascendex.js +4 -4
  239. package/js/src/pro/binance.js +16 -16
  240. package/js/src/pro/bitfinex.js +4 -4
  241. package/js/src/pro/bitfinex2.js +6 -6
  242. package/js/src/pro/bitget.js +6 -6
  243. package/js/src/pro/bitmart.js +4 -4
  244. package/js/src/pro/bitmex.js +6 -6
  245. package/js/src/pro/bitopro.js +4 -4
  246. package/js/src/pro/bitpanda.js +6 -6
  247. package/js/src/pro/bitrue.js +2 -2
  248. package/js/src/pro/bitstamp.js +3 -3
  249. package/js/src/pro/bittrex.js +6 -6
  250. package/js/src/pro/bitvavo.js +5 -5
  251. package/js/src/pro/blockchaincom.js +5 -5
  252. package/js/src/pro/bybit.js +6 -6
  253. package/js/src/pro/cex.js +7 -7
  254. package/js/src/pro/coinbase.js +5 -5
  255. package/js/src/pro/coinbasepro.js +6 -6
  256. package/js/src/pro/coinex.js +5 -5
  257. package/js/src/pro/cryptocom.js +10 -10
  258. package/js/src/pro/currencycom.js +4 -4
  259. package/js/src/pro/deribit.js +6 -6
  260. package/js/src/pro/exmo.js +5 -5
  261. package/js/src/pro/gate.js +7 -7
  262. package/js/src/pro/gemini.js +3 -3
  263. package/js/src/pro/hitbtc.js +3 -3
  264. package/js/src/pro/hollaex.js +5 -5
  265. package/js/src/pro/huobi.js +6 -6
  266. package/js/src/pro/huobijp.js +3 -3
  267. package/js/src/pro/idex.js +4 -4
  268. package/js/src/pro/independentreserve.js +2 -2
  269. package/js/src/pro/kraken.js +12 -12
  270. package/js/src/pro/krakenfutures.js +7 -7
  271. package/js/src/pro/kucoin.js +6 -6
  272. package/js/src/pro/kucoinfutures.js +6 -5
  273. package/js/src/pro/luno.js +2 -2
  274. package/js/src/pro/mexc.js +6 -6
  275. package/js/src/pro/ndax.js +3 -3
  276. package/js/src/pro/okcoin.js +5 -5
  277. package/js/src/pro/okx.d.ts +1 -1
  278. package/js/src/pro/okx.js +19 -18
  279. package/js/src/pro/phemex.js +6 -6
  280. package/js/src/pro/poloniex.js +7 -7
  281. package/js/src/pro/poloniexfutures.js +5 -5
  282. package/js/src/pro/probit.js +6 -6
  283. package/js/src/pro/upbit.js +3 -3
  284. package/js/src/pro/wazirx.js +6 -6
  285. package/js/src/pro/whitebit.js +6 -6
  286. package/js/src/probit.js +19 -19
  287. package/js/src/tidex.js +13 -13
  288. package/js/src/timex.js +16 -16
  289. package/js/src/tokocrypto.js +18 -18
  290. package/js/src/upbit.js +20 -20
  291. package/js/src/wavesexchange.js +16 -16
  292. package/js/src/wazirx.js +12 -12
  293. package/js/src/whitebit.js +24 -24
  294. package/js/src/woo.js +30 -24
  295. package/js/src/yobit.js +16 -16
  296. package/js/src/zaif.js +10 -10
  297. package/js/src/zonda.js +15 -15
  298. package/package.json +1 -1
  299. package/skip-tests.json +2 -0
@@ -156,7 +156,7 @@ class bitbns extends bitbns$1 {
156
156
  * @name bitbns#fetchStatus
157
157
  * @description the latest known information on the availability of the exchange API
158
158
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
159
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
159
+ * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
160
160
  */
161
161
  const response = await this.v1GetPlatformStatus(params);
162
162
  //
@@ -288,7 +288,7 @@ class bitbns extends bitbns$1 {
288
288
  * @param {string} symbol unified symbol of the market to fetch the order book for
289
289
  * @param {int} [limit] the maximum amount of order book entries to return
290
290
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
291
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
291
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
292
292
  */
293
293
  await this.loadMarkets();
294
294
  const market = this.market(symbol);
@@ -384,7 +384,7 @@ class bitbns extends bitbns$1 {
384
384
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
385
385
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
386
386
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
387
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
387
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
388
388
  */
389
389
  await this.loadMarkets();
390
390
  const response = await this.wwwGetOrderFetchTickers(params);
@@ -456,7 +456,7 @@ class bitbns extends bitbns$1 {
456
456
  * @name bitbns#fetchBalance
457
457
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
458
458
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
459
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
459
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
460
460
  */
461
461
  await this.loadMarkets();
462
462
  const response = await this.v1PostCurrentCoinBalanceEVERYTHING(params);
@@ -592,9 +592,9 @@ class bitbns extends bitbns$1 {
592
592
  * @param {string} type 'market' or 'limit'
593
593
  * @param {string} side 'buy' or 'sell'
594
594
  * @param {float} amount how much of currency you want to trade in units of base currency
595
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
595
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
596
596
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
597
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
597
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
598
598
  */
599
599
  if (type !== 'limit' && type !== 'market') {
600
600
  throw new errors.ExchangeError(this.id + ' allows limit and market orders only');
@@ -643,7 +643,7 @@ class bitbns extends bitbns$1 {
643
643
  * @param {string} id order id
644
644
  * @param {string} symbol unified symbol of the market the order was made in
645
645
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
646
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
646
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
647
647
  */
648
648
  if (symbol === undefined) {
649
649
  throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
@@ -666,7 +666,7 @@ class bitbns extends bitbns$1 {
666
666
  * @description fetches information on an order made by the user
667
667
  * @param {string} symbol unified symbol of the market the order was made in
668
668
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
669
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
669
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
670
670
  */
671
671
  if (symbol === undefined) {
672
672
  throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
@@ -716,7 +716,7 @@ class bitbns extends bitbns$1 {
716
716
  * @param {int} [since] the earliest time in ms to fetch open orders for
717
717
  * @param {int} [limit] the maximum number of open orders structures to retrieve
718
718
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
719
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
719
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
720
720
  */
721
721
  if (symbol === undefined) {
722
722
  throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
@@ -841,7 +841,7 @@ class bitbns extends bitbns$1 {
841
841
  * @param {int} [since] the earliest time in ms to fetch trades for
842
842
  * @param {int} [limit] the maximum number of trades structures to retrieve
843
843
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
844
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
844
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
845
845
  */
846
846
  if (symbol === undefined) {
847
847
  throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
@@ -909,7 +909,7 @@ class bitbns extends bitbns$1 {
909
909
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
910
910
  * @param {int} [limit] the maximum amount of trades to fetch
911
911
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
912
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
912
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
913
913
  */
914
914
  if (symbol === undefined) {
915
915
  throw new errors.ArgumentsRequired(this.id + ' fetchTrades() requires a symbol argument');
@@ -939,7 +939,7 @@ class bitbns extends bitbns$1 {
939
939
  * @param {int} [since] the earliest time in ms to fetch deposits for
940
940
  * @param {int} [limit] the maximum number of deposits structures to retrieve
941
941
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
942
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
942
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
943
943
  */
944
944
  if (code === undefined) {
945
945
  throw new errors.ArgumentsRequired(this.id + ' fetchDeposits() requires a currency code argument');
@@ -986,7 +986,7 @@ class bitbns extends bitbns$1 {
986
986
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
987
987
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
988
988
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
989
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
989
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
990
990
  */
991
991
  if (code === undefined) {
992
992
  throw new errors.ArgumentsRequired(this.id + ' fetchWithdrawals() requires a currency code argument');
@@ -1097,7 +1097,7 @@ class bitbns extends bitbns$1 {
1097
1097
  * @description fetch the deposit address for a currency associated with this account
1098
1098
  * @param {string} code unified currency code
1099
1099
  * @param {object} [params] extra parameters specific to the bitbns api endpoint
1100
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1100
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1101
1101
  */
1102
1102
  await this.loadMarkets();
1103
1103
  const currency = this.currency(code);
@@ -402,7 +402,7 @@ class bitfinex extends bitfinex$1 {
402
402
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
403
403
  * @param {string[]|undefined} codes list of unified currency codes
404
404
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
405
- * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
405
+ * @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
406
406
  */
407
407
  await this.loadMarkets();
408
408
  const result = {};
@@ -438,7 +438,7 @@ class bitfinex extends bitfinex$1 {
438
438
  * @see https://docs.bitfinex.com/v1/reference/rest-auth-fees
439
439
  * @param {string[]|undefined} codes list of unified currency codes
440
440
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
441
- * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
441
+ * @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
442
442
  */
443
443
  await this.loadMarkets();
444
444
  const response = await this.privatePostAccountFees(params);
@@ -476,7 +476,7 @@ class bitfinex extends bitfinex$1 {
476
476
  * @name bitfinex#fetchTradingFees
477
477
  * @description fetch the trading fees for multiple markets
478
478
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
479
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
479
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
480
480
  */
481
481
  await this.loadMarkets();
482
482
  const response = await this.privatePostSummary(params);
@@ -681,7 +681,7 @@ class bitfinex extends bitfinex$1 {
681
681
  * @name bitfinex#fetchBalance
682
682
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
683
683
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
684
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
684
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
685
685
  */
686
686
  await this.loadMarkets();
687
687
  const accountsByType = this.safeValue(this.options, 'accountsByType', {});
@@ -742,7 +742,7 @@ class bitfinex extends bitfinex$1 {
742
742
  * @param {string} fromAccount account to transfer from
743
743
  * @param {string} toAccount account to transfer to
744
744
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
745
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
745
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
746
746
  */
747
747
  // transferring between derivatives wallet and regular wallet is not documented in their API
748
748
  // however we support it in CCXT (from just looking at web inspector)
@@ -826,7 +826,7 @@ class bitfinex extends bitfinex$1 {
826
826
  * @param {string} symbol unified symbol of the market to fetch the order book for
827
827
  * @param {int} [limit] the maximum amount of order book entries to return
828
828
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
829
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
829
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
830
830
  */
831
831
  await this.loadMarkets();
832
832
  const market = this.market(symbol);
@@ -847,7 +847,7 @@ class bitfinex extends bitfinex$1 {
847
847
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
848
848
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
849
849
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
850
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
850
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
851
851
  */
852
852
  await this.loadMarkets();
853
853
  symbols = this.marketSymbols(symbols);
@@ -867,7 +867,7 @@ class bitfinex extends bitfinex$1 {
867
867
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
868
868
  * @param {string} symbol unified symbol of the market to fetch the ticker for
869
869
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
870
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
870
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
871
871
  */
872
872
  await this.loadMarkets();
873
873
  const market = this.market(symbol);
@@ -993,7 +993,7 @@ class bitfinex extends bitfinex$1 {
993
993
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
994
994
  * @param {int} [limit] the maximum amount of trades to fetch
995
995
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
996
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
996
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
997
997
  */
998
998
  await this.loadMarkets();
999
999
  const market = this.market(symbol);
@@ -1016,7 +1016,7 @@ class bitfinex extends bitfinex$1 {
1016
1016
  * @param {int} [since] the earliest time in ms to fetch trades for
1017
1017
  * @param {int} [limit] the maximum number of trades structures to retrieve
1018
1018
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1019
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1019
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1020
1020
  */
1021
1021
  if (symbol === undefined) {
1022
1022
  throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a `symbol` argument');
@@ -1044,9 +1044,9 @@ class bitfinex extends bitfinex$1 {
1044
1044
  * @param {string} type 'market' or 'limit'
1045
1045
  * @param {string} side 'buy' or 'sell'
1046
1046
  * @param {float} amount how much of currency you want to trade in units of base currency
1047
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1047
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1048
1048
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1049
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1049
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1050
1050
  */
1051
1051
  await this.loadMarkets();
1052
1052
  const market = this.market(symbol);
@@ -1110,7 +1110,7 @@ class bitfinex extends bitfinex$1 {
1110
1110
  * @param {string} id order id
1111
1111
  * @param {string} symbol not used by bitfinex cancelOrder ()
1112
1112
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1113
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1113
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1114
1114
  */
1115
1115
  await this.loadMarkets();
1116
1116
  const request = {
@@ -1211,7 +1211,7 @@ class bitfinex extends bitfinex$1 {
1211
1211
  * @param {int} [since] the earliest time in ms to fetch open orders for
1212
1212
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1213
1213
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1214
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1214
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1215
1215
  */
1216
1216
  await this.loadMarkets();
1217
1217
  if (symbol !== undefined) {
@@ -1235,7 +1235,7 @@ class bitfinex extends bitfinex$1 {
1235
1235
  * @param {int} [since] the earliest time in ms to fetch orders for
1236
1236
  * @param {int} [limit] the maximum number of orde structures to retrieve
1237
1237
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1238
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1238
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1239
1239
  */
1240
1240
  await this.loadMarkets();
1241
1241
  symbol = this.symbol(symbol);
@@ -1258,7 +1258,7 @@ class bitfinex extends bitfinex$1 {
1258
1258
  * @description fetches information on an order made by the user
1259
1259
  * @param {string} symbol not used by bitfinex fetchOrder
1260
1260
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1261
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1261
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1262
1262
  */
1263
1263
  await this.loadMarkets();
1264
1264
  const request = {
@@ -1338,7 +1338,7 @@ class bitfinex extends bitfinex$1 {
1338
1338
  * @description create a currency deposit address
1339
1339
  * @param {string} code unified currency code of the currency for the deposit address
1340
1340
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1341
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1341
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1342
1342
  */
1343
1343
  await this.loadMarkets();
1344
1344
  const request = {
@@ -1353,7 +1353,7 @@ class bitfinex extends bitfinex$1 {
1353
1353
  * @description fetch the deposit address for a currency associated with this account
1354
1354
  * @param {string} code unified currency code
1355
1355
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1356
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1356
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1357
1357
  */
1358
1358
  await this.loadMarkets();
1359
1359
  // todo rewrite for https://api-pub.bitfinex.com//v2/conf/pub:map:tx:method
@@ -1388,7 +1388,7 @@ class bitfinex extends bitfinex$1 {
1388
1388
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
1389
1389
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
1390
1390
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1391
- * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1391
+ * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1392
1392
  */
1393
1393
  await this.loadMarkets();
1394
1394
  let currencyId = this.safeString(params, 'currency');
@@ -1524,7 +1524,7 @@ class bitfinex extends bitfinex$1 {
1524
1524
  * @param {string} address the address to withdraw to
1525
1525
  * @param {string} tag
1526
1526
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1527
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1527
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1528
1528
  */
1529
1529
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1530
1530
  this.checkAddress(address);
@@ -1571,7 +1571,7 @@ class bitfinex extends bitfinex$1 {
1571
1571
  * @description fetch all open positions
1572
1572
  * @param {string[]|undefined} symbols list of unified market symbols
1573
1573
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
1574
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
1574
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
1575
1575
  */
1576
1576
  await this.loadMarkets();
1577
1577
  const response = await this.privatePostPositions(params);
@@ -432,7 +432,7 @@ class bitfinex2 extends bitfinex2$1 {
432
432
  * @name bitfinex2#fetchStatus
433
433
  * @description the latest known information on the availability of the exchange API
434
434
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
435
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
435
+ * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
436
436
  */
437
437
  //
438
438
  // [1] // operative
@@ -791,7 +791,7 @@ class bitfinex2 extends bitfinex2$1 {
791
791
  * @name bitfinex2#fetchBalance
792
792
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
793
793
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
794
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
794
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
795
795
  */
796
796
  // this api call does not return the 'used' amount - use the v1 version instead (which also returns zero balances)
797
797
  // there is a difference between this and the v1 api, namely trading wallet is called margin in v2
@@ -835,7 +835,7 @@ class bitfinex2 extends bitfinex2$1 {
835
835
  * @param {string} fromAccount account to transfer from
836
836
  * @param {string} toAccount account to transfer to
837
837
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
838
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
838
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
839
839
  */
840
840
  // transferring between derivatives wallet and regular wallet is not documented in their API
841
841
  // however we support it in CCXT (from just looking at web inspector)
@@ -978,7 +978,7 @@ class bitfinex2 extends bitfinex2$1 {
978
978
  * @param {string} symbol unified symbol of the market to fetch the order book for
979
979
  * @param {int} [limit] the maximum amount of order book entries to return
980
980
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
981
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
981
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
982
982
  */
983
983
  await this.loadMarkets();
984
984
  const precision = this.safeValue(this.options, 'precision', 'R0');
@@ -1066,9 +1066,9 @@ class bitfinex2 extends bitfinex2$1 {
1066
1066
  'high': this.safeString(ticker, length - 2),
1067
1067
  'low': this.safeString(ticker, length - 1),
1068
1068
  'bid': this.safeString(ticker, length - 10),
1069
- 'bidVolume': undefined,
1069
+ 'bidVolume': this.safeString(ticker, length - 9),
1070
1070
  'ask': this.safeString(ticker, length - 8),
1071
- 'askVolume': undefined,
1071
+ 'askVolume': this.safeString(ticker, length - 7),
1072
1072
  'vwap': undefined,
1073
1073
  'open': undefined,
1074
1074
  'close': last,
@@ -1089,7 +1089,7 @@ class bitfinex2 extends bitfinex2$1 {
1089
1089
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1090
1090
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1091
1091
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1092
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1092
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1093
1093
  */
1094
1094
  await this.loadMarkets();
1095
1095
  symbols = this.marketSymbols(symbols);
@@ -1158,7 +1158,7 @@ class bitfinex2 extends bitfinex2$1 {
1158
1158
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1159
1159
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1160
1160
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1161
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1161
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1162
1162
  */
1163
1163
  await this.loadMarkets();
1164
1164
  const market = this.market(symbol);
@@ -1260,7 +1260,7 @@ class bitfinex2 extends bitfinex2$1 {
1260
1260
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1261
1261
  * @param {int} [limit] the maximum amount of trades to fetch
1262
1262
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1263
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
1263
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1264
1264
  */
1265
1265
  await this.loadMarkets();
1266
1266
  const market = this.market(symbol);
@@ -1465,7 +1465,7 @@ class bitfinex2 extends bitfinex2$1 {
1465
1465
  * @param {string} type 'limit' or 'market'
1466
1466
  * @param {string} side 'buy' or 'sell'
1467
1467
  * @param {float} amount the amount of currency to trade
1468
- * @param {float} price price of order
1468
+ * @param {float} [price] price of order
1469
1469
  * @param {object} [params] Extra parameters specific to the exchange API endpoint
1470
1470
  * @param {float} [params.stopPrice] The price at which a trigger order is triggered at
1471
1471
  * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
@@ -1476,7 +1476,7 @@ class bitfinex2 extends bitfinex2$1 {
1476
1476
  * @param {string} [params.price_traling] The trailing price for a trailing stop order
1477
1477
  * @param {string} [params.price_aux_limit] Order price for stop limit orders
1478
1478
  * @param {string} [params.price_oco_stop] OCO stop price
1479
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1479
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1480
1480
  */
1481
1481
  await this.loadMarkets();
1482
1482
  const market = this.market(symbol);
@@ -1627,7 +1627,7 @@ class bitfinex2 extends bitfinex2$1 {
1627
1627
  * @description cancel all open orders
1628
1628
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1629
1629
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1630
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1630
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1631
1631
  */
1632
1632
  const request = {
1633
1633
  'all': 1,
@@ -1644,7 +1644,7 @@ class bitfinex2 extends bitfinex2$1 {
1644
1644
  * @param {string} id order id
1645
1645
  * @param {string} symbol Not used by bitfinex2 cancelOrder ()
1646
1646
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1647
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1647
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1648
1648
  */
1649
1649
  const cid = this.safeValue2(params, 'cid', 'clientOrderId'); // client order id
1650
1650
  let request = undefined;
@@ -1676,7 +1676,7 @@ class bitfinex2 extends bitfinex2$1 {
1676
1676
  * @param {string} id order id
1677
1677
  * @param {string} symbol unified market symbol, default is undefined
1678
1678
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1679
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1679
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1680
1680
  */
1681
1681
  const request = {
1682
1682
  'id': [parseInt(id)],
@@ -1696,7 +1696,7 @@ class bitfinex2 extends bitfinex2$1 {
1696
1696
  * @param {string} id order id
1697
1697
  * @param {string} symbol unified market symbol, default is undefined
1698
1698
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1699
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1699
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1700
1700
  */
1701
1701
  const request = {
1702
1702
  'id': [parseInt(id)],
@@ -1717,7 +1717,7 @@ class bitfinex2 extends bitfinex2$1 {
1717
1717
  * @param {int} [since] the earliest time in ms to fetch open orders for
1718
1718
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1719
1719
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1720
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1720
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1721
1721
  */
1722
1722
  await this.loadMarkets();
1723
1723
  const request = {};
@@ -1780,7 +1780,7 @@ class bitfinex2 extends bitfinex2$1 {
1780
1780
  * @param {int} [since] the earliest time in ms to fetch orders for
1781
1781
  * @param {int} [limit] the maximum number of orde structures to retrieve
1782
1782
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1783
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1783
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1784
1784
  */
1785
1785
  // returns the most recent closed or canceled orders up to circa two weeks ago
1786
1786
  await this.loadMarkets();
@@ -1851,7 +1851,7 @@ class bitfinex2 extends bitfinex2$1 {
1851
1851
  * @param {int} [since] the earliest time in ms to fetch trades for
1852
1852
  * @param {int} [limit] the maximum number of trades to retrieve
1853
1853
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1854
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1854
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1855
1855
  */
1856
1856
  if (symbol === undefined) {
1857
1857
  throw new errors.ArgumentsRequired(this.id + ' fetchOrderTrades() requires a symbol argument');
@@ -1876,7 +1876,7 @@ class bitfinex2 extends bitfinex2$1 {
1876
1876
  * @param {int} [since] the earliest time in ms to fetch trades for
1877
1877
  * @param {int} [limit] the maximum number of trades structures to retrieve
1878
1878
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1879
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1879
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1880
1880
  */
1881
1881
  await this.loadMarkets();
1882
1882
  let market = undefined;
@@ -1905,7 +1905,7 @@ class bitfinex2 extends bitfinex2$1 {
1905
1905
  * @description create a currency deposit address
1906
1906
  * @param {string} code unified currency code of the currency for the deposit address
1907
1907
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1908
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1908
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1909
1909
  */
1910
1910
  await this.loadMarkets();
1911
1911
  const request = {
@@ -1920,7 +1920,7 @@ class bitfinex2 extends bitfinex2$1 {
1920
1920
  * @description fetch the deposit address for a currency associated with this account
1921
1921
  * @param {string} code unified currency code
1922
1922
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
1923
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1923
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1924
1924
  */
1925
1925
  await this.loadMarkets();
1926
1926
  const currency = this.currency(code);
@@ -2133,7 +2133,7 @@ class bitfinex2 extends bitfinex2$1 {
2133
2133
  * @name bitfinex2#fetchTradingFees
2134
2134
  * @description fetch the trading fees for multiple markets
2135
2135
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
2136
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
2136
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
2137
2137
  */
2138
2138
  await this.loadMarkets();
2139
2139
  const response = await this.privatePostAuthRSummary(params);
@@ -2249,7 +2249,7 @@ class bitfinex2 extends bitfinex2$1 {
2249
2249
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
2250
2250
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
2251
2251
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
2252
- * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2252
+ * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2253
2253
  */
2254
2254
  await this.loadMarkets();
2255
2255
  let currency = undefined;
@@ -2307,7 +2307,7 @@ class bitfinex2 extends bitfinex2$1 {
2307
2307
  * @param {string} address the address to withdraw to
2308
2308
  * @param {string} tag
2309
2309
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
2310
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2310
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2311
2311
  */
2312
2312
  this.checkAddress(address);
2313
2313
  await this.loadMarkets();
@@ -2394,7 +2394,7 @@ class bitfinex2 extends bitfinex2$1 {
2394
2394
  * @see https://docs.bitfinex.com/reference/rest-auth-positions
2395
2395
  * @param {string[]|undefined} symbols list of unified market symbols
2396
2396
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
2397
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
2397
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
2398
2398
  */
2399
2399
  await this.loadMarkets();
2400
2400
  symbols = this.marketSymbols(symbols);
@@ -2644,7 +2644,7 @@ class bitfinex2 extends bitfinex2$1 {
2644
2644
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
2645
2645
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
2646
2646
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
2647
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
2647
+ * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
2648
2648
  */
2649
2649
  await this.loadMarkets();
2650
2650
  await this.loadMarkets();
@@ -2688,7 +2688,7 @@ class bitfinex2 extends bitfinex2$1 {
2688
2688
  * @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
2689
2689
  * @param {string} symbol unified market symbol
2690
2690
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2691
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
2691
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
2692
2692
  */
2693
2693
  return this.fetchFundingRates([symbol], params);
2694
2694
  }
@@ -2700,7 +2700,7 @@ class bitfinex2 extends bitfinex2$1 {
2700
2700
  * @see https://docs.bitfinex.com/reference/rest-public-derivatives-status
2701
2701
  * @param {string[]} symbols list of unified market symbols
2702
2702
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2703
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
2703
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
2704
2704
  */
2705
2705
  if (symbols === undefined) {
2706
2706
  throw new errors.ArgumentsRequired(this.id + ' fetchFundingRates() requires a symbols argument');
@@ -2751,7 +2751,7 @@ class bitfinex2 extends bitfinex2$1 {
2751
2751
  * @see https://docs.bitfinex.com/reference/rest-public-derivatives-status-history
2752
2752
  * @param {string} symbol unified market symbol
2753
2753
  * @param {object} [params] extra parameters specific to the bingx api endpoint
2754
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
2754
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
2755
2755
  */
2756
2756
  await this.loadMarkets();
2757
2757
  this.checkRequiredSymbol('fetchFundingRateHistory', symbol);