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
@@ -402,7 +402,7 @@ export default class poloniexfutures extends Exchange {
402
402
  * @see https://futures-docs.poloniex.com/#get-real-time-ticker-2-0
403
403
  * @param {string} symbol unified symbol of the market to fetch the ticker for
404
404
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
405
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
405
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
406
406
  */
407
407
  await this.loadMarkets();
408
408
  const market = this.market(symbol);
@@ -438,7 +438,7 @@ export default class poloniexfutures extends Exchange {
438
438
  * @see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
439
439
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
440
440
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
441
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
441
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
442
442
  */
443
443
  await this.loadMarkets();
444
444
  const response = await this.publicGetTickers(params);
@@ -454,7 +454,7 @@ export default class poloniexfutures extends Exchange {
454
454
  * @param {string} symbol unified symbol of the market to fetch the order book for
455
455
  * @param {int} [limit] the maximum amount of order book entries to return
456
456
  * @param {object} [params] extra parameters specific to the poloniexfuturesfutures api endpoint
457
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
457
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
458
458
  */
459
459
  await this.loadMarkets();
460
460
  const level = this.safeNumber(params, 'level');
@@ -540,7 +540,7 @@ export default class poloniexfutures extends Exchange {
540
540
  * @param {string} symbol unified market symbol
541
541
  * @param {int} [limit] max number of orders to return, default is undefined
542
542
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
543
- * @returns {object} an [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
543
+ * @returns {object} an [order book structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure}
544
544
  */
545
545
  await this.loadMarkets();
546
546
  const market = this.market(symbol);
@@ -648,7 +648,7 @@ export default class poloniexfutures extends Exchange {
648
648
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
649
649
  * @param {int} [limit] the maximum amount of trades to fetch
650
650
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
651
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
651
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
652
652
  */
653
653
  await this.loadMarkets();
654
654
  const market = this.market(symbol);
@@ -770,7 +770,7 @@ export default class poloniexfutures extends Exchange {
770
770
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
771
771
  * @see https://futures-docs.poloniex.com/#get-account-overview
772
772
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
773
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
773
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
774
774
  */
775
775
  await this.loadMarkets();
776
776
  const currencyId = this.safeString(params, 'currency');
@@ -809,7 +809,7 @@ export default class poloniexfutures extends Exchange {
809
809
  * @param {string} type 'limit' or 'market'
810
810
  * @param {string} side 'buy' or 'sell'
811
811
  * @param {float} amount the amount of currency to trade
812
- * @param {float} price *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
812
+ * @param {float} [price] *ignored in "market" orders* the price at which the order is to be fullfilled at in units of the quote currency
813
813
  * @param {object} [params] Extra parameters specific to the exchange API endpoint
814
814
  * @param {float} [params.leverage] Leverage size of the order
815
815
  * @param {float} [params.stopPrice] The price at which a trigger order is triggered at
@@ -822,7 +822,7 @@ export default class poloniexfutures extends Exchange {
822
822
  * @param {string} [params.stopPriceType] TP, IP or MP, defaults to TP
823
823
  * @param {bool} [params.closeOrder] set to true to close position
824
824
  * @param {bool} [params.forceHold] A mark to forcely hold the funds for an order, even though it's an order to reduce the position size. This helps the order stay on the order book and not get canceled when the position size changes. Set to false by default.
825
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
825
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
826
826
  */
827
827
  await this.loadMarkets();
828
828
  const market = this.market(symbol);
@@ -916,7 +916,7 @@ export default class poloniexfutures extends Exchange {
916
916
  * @param {string} id order id
917
917
  * @param {string} symbol unified symbol of the market the order was made in
918
918
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
919
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
919
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
920
920
  */
921
921
  await this.loadMarkets();
922
922
  const request = {
@@ -955,7 +955,7 @@ export default class poloniexfutures extends Exchange {
955
955
  * @see https://futures-docs.poloniex.com/#get-position-list
956
956
  * @param {string[]|undefined} symbols list of unified market symbols
957
957
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
958
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
958
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
959
959
  */
960
960
  await this.loadMarkets();
961
961
  const response = await this.privateGetPositions(params);
@@ -1111,7 +1111,7 @@ export default class poloniexfutures extends Exchange {
1111
1111
  * @param {int} [since] the earliest time in ms to fetch funding history for
1112
1112
  * @param {int} [limit] the maximum number of funding history structures to retrieve
1113
1113
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
1114
- * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
1114
+ * @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
1115
1115
  */
1116
1116
  if (symbol === undefined) {
1117
1117
  throw new ArgumentsRequired(this.id + ' fetchFundingHistory() requires a symbol argument');
@@ -1182,7 +1182,7 @@ export default class poloniexfutures extends Exchange {
1182
1182
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1183
1183
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
1184
1184
  * @param {object} [params.stop] When true, all the trigger orders will be cancelled
1185
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1185
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1186
1186
  */
1187
1187
  await this.loadMarkets();
1188
1188
  const request = {};
@@ -1250,7 +1250,7 @@ export default class poloniexfutures extends Exchange {
1250
1250
  * @param {int} [params.until] End time in ms
1251
1251
  * @param {string} [params.side] buy or sell
1252
1252
  * @param {string} [params.type] limit or market
1253
- * @returns An [array of order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1253
+ * @returns An [array of order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1254
1254
  */
1255
1255
  await this.loadMarkets();
1256
1256
  const stop = this.safeValue(params, 'stop');
@@ -1353,7 +1353,7 @@ export default class poloniexfutures extends Exchange {
1353
1353
  * @param {int} [params.till] end time in ms
1354
1354
  * @param {string} [params.side] buy or sell
1355
1355
  * @param {string} [params.type] limit, or market
1356
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1356
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1357
1357
  */
1358
1358
  return await this.fetchOrdersByStatus('open', symbol, since, limit, params);
1359
1359
  }
@@ -1371,7 +1371,7 @@ export default class poloniexfutures extends Exchange {
1371
1371
  * @param {int} [params.till] end time in ms
1372
1372
  * @param {string} [params.side] buy or sell
1373
1373
  * @param {string} [params.type] limit, or market
1374
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1374
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1375
1375
  */
1376
1376
  return await this.fetchOrdersByStatus('closed', symbol, since, limit, params);
1377
1377
  }
@@ -1384,7 +1384,7 @@ export default class poloniexfutures extends Exchange {
1384
1384
  * @see https://futures-docs.poloniex.com/#get-single-order-by-clientoid
1385
1385
  * @param {string} symbol unified symbol of the market the order was made in
1386
1386
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
1387
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1387
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1388
1388
  */
1389
1389
  await this.loadMarkets();
1390
1390
  const request = {};
@@ -1583,7 +1583,7 @@ export default class poloniexfutures extends Exchange {
1583
1583
  * @see https://futures-docs.poloniex.com/#get-premium-index
1584
1584
  * @param {string} symbol unified market symbol
1585
1585
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
1586
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
1586
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
1587
1587
  */
1588
1588
  await this.loadMarkets();
1589
1589
  const market = this.market(symbol);
@@ -1637,7 +1637,7 @@ export default class poloniexfutures extends Exchange {
1637
1637
  * @param {string} side buy or sell
1638
1638
  * @param {string} type limit, market, limit_stop or market_stop
1639
1639
  * @param {int} endAt end time (milisecond)
1640
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1640
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1641
1641
  */
1642
1642
  await this.loadMarkets();
1643
1643
  const request = {};
@@ -54,7 +54,7 @@ export default class alpaca extends alpacaRest {
54
54
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
55
55
  * @param {string} symbol unified symbol of the market to fetch the ticker for
56
56
  * @param {object} [params] extra parameters specific to the alpaca api endpoint
57
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
57
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
58
58
  */
59
59
  const url = this.urls['api']['ws']['crypto'];
60
60
  await this.authenticate(url);
@@ -186,7 +186,7 @@ export default class alpaca extends alpacaRest {
186
186
  * @param {string} symbol unified symbol of the market to fetch the order book for
187
187
  * @param {int} [limit] the maximum amount of order book entries to return.
188
188
  * @param {object} [params] extra parameters specific to the alpaca api endpoint
189
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
189
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
190
190
  */
191
191
  const url = this.urls['api']['ws']['crypto'];
192
192
  await this.authenticate(url);
@@ -266,7 +266,7 @@ export default class alpaca extends alpacaRest {
266
266
  * @param {int} [since] the earliest time in ms to fetch orders for
267
267
  * @param {int} [limit] the maximum number of trade structures to retrieve
268
268
  * @param {object} [params] extra parameters specific to the alpaca api endpoint
269
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
269
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
270
270
  */
271
271
  const url = this.urls['api']['ws']['crypto'];
272
272
  await this.authenticate(url);
@@ -319,7 +319,7 @@ export default class alpaca extends alpacaRest {
319
319
  * @param {int} [limit] the maximum number of trade structures to retrieve
320
320
  * @param {object} [params] extra parameters specific to the alpaca api endpoint
321
321
  * @param {boolean} [params.unifiedMargin] use unified margin account
322
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
322
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
323
323
  */
324
324
  const url = this.urls['api']['ws']['trading'];
325
325
  await this.authenticate(url);
@@ -350,7 +350,7 @@ export default class alpaca extends alpacaRest {
350
350
  * @param {int} [since] the earliest time in ms to fetch orders for
351
351
  * @param {int} [limit] the maximum number of orde structures to retrieve
352
352
  * @param {object} [params] extra parameters specific to the alpaca api endpoint
353
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
353
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
354
354
  */
355
355
  const url = this.urls['api']['ws']['trading'];
356
356
  await this.authenticate(url);
@@ -147,7 +147,7 @@ export default class ascendex extends ascendexRest {
147
147
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
148
148
  * @param {int} [limit] the maximum amount of trades to fetch
149
149
  * @param {object} [params] extra parameters specific to the ascendex api endpoint
150
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
150
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
151
151
  */
152
152
  await this.loadMarkets();
153
153
  const market = this.market(symbol);
@@ -207,7 +207,7 @@ export default class ascendex extends ascendexRest {
207
207
  * @param {string} symbol unified symbol of the market to fetch the order book for
208
208
  * @param {int} [limit] the maximum amount of order book entries to return
209
209
  * @param {object} [params] extra parameters specific to the ascendex api endpoint
210
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
210
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
211
211
  */
212
212
  await this.loadMarkets();
213
213
  const market = this.market(symbol);
@@ -352,7 +352,7 @@ export default class ascendex extends ascendexRest {
352
352
  * @name ascendex#watchBalance
353
353
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
354
354
  * @param {object} [params] extra parameters specific to the ascendex api endpoint
355
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
355
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
356
356
  */
357
357
  await this.loadMarkets();
358
358
  const [type, query] = this.handleMarketTypeAndParams('watchBalance', undefined, params);
@@ -480,7 +480,7 @@ export default class ascendex extends ascendexRest {
480
480
  * @param {int} [since] the earliest time in ms to fetch orders for
481
481
  * @param {int} [limit] the maximum number of orde structures to retrieve
482
482
  * @param {object} [params] extra parameters specific to the ascendex api endpoint
483
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
483
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
484
484
  */
485
485
  await this.loadMarkets();
486
486
  let market = undefined;
@@ -132,7 +132,7 @@ export default class binance extends binanceRest {
132
132
  * @param {string} symbol unified symbol of the market to fetch the order book for
133
133
  * @param {int} [limit] the maximum amount of order book entries to return
134
134
  * @param {object} [params] extra parameters specific to the binance api endpoint
135
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
135
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
136
136
  */
137
137
  //
138
138
  // todo add support for <levels>-snapshots (depth)
@@ -422,7 +422,7 @@ export default class binance extends binanceRest {
422
422
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
423
423
  * @param {int} [limit] the maximum amount of trades to fetch
424
424
  * @param {object} [params] extra parameters specific to the binance api endpoint
425
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
425
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
426
426
  */
427
427
  await this.loadMarkets();
428
428
  const market = this.market(symbol);
@@ -755,7 +755,7 @@ export default class binance extends binanceRest {
755
755
  * @param {string} symbol unified symbol of the market to fetch the ticker for
756
756
  * @param {object} [params] extra parameters specific to the binance api endpoint
757
757
  * @param {string} [params.name] stream to use can be ticker or bookTicker
758
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
758
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
759
759
  */
760
760
  await this.loadMarkets();
761
761
  const market = this.market(symbol);
@@ -790,7 +790,7 @@ export default class binance extends binanceRest {
790
790
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
791
791
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
792
792
  * @param {object} [params] extra parameters specific to the binance api endpoint
793
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
793
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
794
794
  */
795
795
  await this.loadMarkets();
796
796
  symbols = this.marketSymbols(symbols);
@@ -1186,7 +1186,7 @@ export default class binance extends binanceRest {
1186
1186
  * @param {string|undefined} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
1187
1187
  * @param {string|undefined} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
1188
1188
  * @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
1189
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
1189
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1190
1190
  */
1191
1191
  await this.loadMarkets();
1192
1192
  const url = this.urls['api']['ws']['ws'];
@@ -1263,7 +1263,7 @@ export default class binance extends binanceRest {
1263
1263
  * @name binance#watchBalance
1264
1264
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
1265
1265
  * @param {object} [params] extra parameters specific to the binance api endpoint
1266
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
1266
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1267
1267
  */
1268
1268
  await this.loadMarkets();
1269
1269
  await this.authenticate(params);
@@ -1427,7 +1427,7 @@ export default class binance extends binanceRest {
1427
1427
  * @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1428
1428
  * @param {object} [params] extra parameters specific to the binance api endpoint
1429
1429
  * @param {boolean} params.test test order, default false
1430
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
1430
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1431
1431
  */
1432
1432
  await this.loadMarkets();
1433
1433
  this.checkIsSpot('createOrderWs', symbol, params);
@@ -1561,7 +1561,7 @@ export default class binance extends binanceRest {
1561
1561
  * @param {float} amount how much of the currency you want to trade in units of the base currency
1562
1562
  * @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1563
1563
  * @param {object} [params] extra parameters specific to the binance api endpoint
1564
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
1564
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1565
1565
  */
1566
1566
  await this.loadMarkets();
1567
1567
  this.checkIsSpot('editOrderWs', symbol, params);
@@ -1665,7 +1665,7 @@ export default class binance extends binanceRest {
1665
1665
  * @param {string} symbol unified market symbol, default is undefined
1666
1666
  * @param {object} [params] extra parameters specific to the binance api endpoint
1667
1667
  * @param {string|undefined} [params.cancelRestrictions] Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW. ONLY_PARTIALLY_FILLED - Cancel will succeed if order status is PARTIALLY_FILLED.
1668
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
1668
+ * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1669
1669
  */
1670
1670
  await this.loadMarkets();
1671
1671
  if (symbol === undefined) {
@@ -1707,7 +1707,7 @@ export default class binance extends binanceRest {
1707
1707
  * @description cancel all open orders in a market
1708
1708
  * @param {string} symbol unified market symbol of the market to cancel orders in
1709
1709
  * @param {object} [params] extra parameters specific to the binance api endpoint
1710
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1710
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1711
1711
  */
1712
1712
  await this.loadMarkets();
1713
1713
  const url = this.urls['api']['ws']['ws'];
@@ -1737,7 +1737,7 @@ export default class binance extends binanceRest {
1737
1737
  * @description fetches information on an order made by the user
1738
1738
  * @param {string} symbol unified symbol of the market the order was made in
1739
1739
  * @param {object} params extra parameters specific to the binance api endpoint
1740
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1740
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1741
1741
  */
1742
1742
  await this.loadMarkets();
1743
1743
  if (symbol === undefined) {
@@ -1784,7 +1784,7 @@ export default class binance extends binanceRest {
1784
1784
  * @param {int} [params.startTime] earliest time in ms to retrieve orders for
1785
1785
  * @param {int} [params.endTime] latest time in ms to retrieve orders for
1786
1786
  * @param {int} [params.limit] the maximum number of order structures to retrieve
1787
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1787
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1788
1788
  */
1789
1789
  await this.loadMarkets();
1790
1790
  if (symbol === undefined) {
@@ -1821,7 +1821,7 @@ export default class binance extends binanceRest {
1821
1821
  * @param {int|undefined} [since] the earliest time in ms to fetch open orders for
1822
1822
  * @param {int|undefined} [limit] the maximum number of open orders structures to retrieve
1823
1823
  * @param {object} [params] extra parameters specific to the binance api endpoint
1824
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1824
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1825
1825
  */
1826
1826
  await this.loadMarkets();
1827
1827
  this.checkIsSpot('fetchOpenOrdersWs', symbol);
@@ -1856,7 +1856,7 @@ export default class binance extends binanceRest {
1856
1856
  * @param {int} [since] the earliest time in ms to fetch orders for
1857
1857
  * @param {int} [limit] the maximum number of orde structures to retrieve
1858
1858
  * @param {object} [params] extra parameters specific to the binance api endpoint
1859
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1859
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1860
1860
  */
1861
1861
  await this.loadMarkets();
1862
1862
  let messageHash = 'orders';
@@ -2140,7 +2140,7 @@ export default class binance extends binanceRest {
2140
2140
  * @param {object} [params] extra parameters specific to the binance api endpoint
2141
2141
  * @param {int} [params.endTime] the latest time in ms to fetch trades for
2142
2142
  * @param {int} [params.fromId] first trade Id to fetch
2143
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
2143
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
2144
2144
  */
2145
2145
  await this.loadMarkets();
2146
2146
  if (symbol === undefined) {
@@ -2215,7 +2215,7 @@ export default class binance extends binanceRest {
2215
2215
  * @param {int} [since] the earliest time in ms to fetch orders for
2216
2216
  * @param {int} [limit] the maximum number of orde structures to retrieve
2217
2217
  * @param {object} [params] extra parameters specific to the binance api endpoint
2218
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
2218
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
2219
2219
  */
2220
2220
  await this.loadMarkets();
2221
2221
  const defaultType = this.safeString2(this.options, 'watchMyTrades', 'defaultType', 'spot');
@@ -64,7 +64,7 @@ export default class bitfinex extends bitfinexRest {
64
64
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
65
65
  * @param {int} [limit] the maximum amount of trades to fetch
66
66
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
67
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
67
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
68
68
  */
69
69
  await this.loadMarkets();
70
70
  symbol = this.symbol(symbol);
@@ -81,7 +81,7 @@ export default class bitfinex extends bitfinexRest {
81
81
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
82
82
  * @param {string} symbol unified symbol of the market to fetch the ticker for
83
83
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
84
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
84
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
85
85
  */
86
86
  return await this.subscribe('ticker', symbol, params);
87
87
  }
@@ -256,7 +256,7 @@ export default class bitfinex extends bitfinexRest {
256
256
  * @param {string} symbol unified symbol of the market to fetch the order book for
257
257
  * @param {int} [limit] the maximum amount of order book entries to return
258
258
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
259
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
259
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
260
260
  */
261
261
  if (limit !== undefined) {
262
262
  if ((limit !== 25) && (limit !== 100)) {
@@ -463,7 +463,7 @@ export default class bitfinex extends bitfinexRest {
463
463
  * @param {int} [since] the earliest time in ms to fetch orders for
464
464
  * @param {int} [limit] the maximum number of orde structures to retrieve
465
465
  * @param {object} [params] extra parameters specific to the bitfinex api endpoint
466
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
466
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
467
467
  */
468
468
  await this.loadMarkets();
469
469
  await this.authenticate();
@@ -196,7 +196,7 @@ export default class bitfinex2 extends bitfinex2Rest {
196
196
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
197
197
  * @param {int} [limit] the maximum amount of trades to fetch
198
198
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
199
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
199
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
200
200
  */
201
201
  const trades = await this.subscribe('trades', symbol, params);
202
202
  if (this.newUpdates) {
@@ -213,7 +213,7 @@ export default class bitfinex2 extends bitfinex2Rest {
213
213
  * @param {int} [since] the earliest time in ms to fetch trades for
214
214
  * @param {int} [limit] the maximum number of trade structures to retrieve
215
215
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
216
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
216
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
217
217
  */
218
218
  await this.loadMarkets();
219
219
  let messageHash = 'myTrade';
@@ -234,7 +234,7 @@ export default class bitfinex2 extends bitfinex2Rest {
234
234
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
235
235
  * @param {string} symbol unified symbol of the market to fetch the ticker for
236
236
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
237
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
237
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
238
238
  */
239
239
  return await this.subscribe('ticker', symbol, params);
240
240
  }
@@ -524,7 +524,7 @@ export default class bitfinex2 extends bitfinex2Rest {
524
524
  * @param {string} symbol unified symbol of the market to fetch the order book for
525
525
  * @param {int} [limit] the maximum amount of order book entries to return
526
526
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
527
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
527
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
528
528
  */
529
529
  if (limit !== undefined) {
530
530
  if ((limit !== 25) && (limit !== 100)) {
@@ -686,7 +686,7 @@ export default class bitfinex2 extends bitfinex2Rest {
686
686
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
687
687
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
688
688
  * @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
689
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
689
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
690
690
  */
691
691
  await this.loadMarkets();
692
692
  const balanceType = this.safeString(params, 'wallet', 'exchange'); // exchange, margin
@@ -883,7 +883,7 @@ export default class bitfinex2 extends bitfinex2Rest {
883
883
  * @param {int} [since] the earliest time in ms to fetch orders for
884
884
  * @param {int} [limit] the maximum number of orde structures to retrieve
885
885
  * @param {object} [params] extra parameters specific to the bitfinex2 api endpoint
886
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
886
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
887
887
  */
888
888
  await this.loadMarkets();
889
889
  let messageHash = 'orders';
@@ -105,7 +105,7 @@ export default class bitget extends bitgetRest {
105
105
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
106
106
  * @param {string} symbol unified symbol of the market to fetch the ticker for
107
107
  * @param {object} [params] extra parameters specific to the bitget api endpoint
108
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
108
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
109
109
  */
110
110
  await this.loadMarkets();
111
111
  const market = this.market(symbol);
@@ -348,7 +348,7 @@ export default class bitget extends bitgetRest {
348
348
  * @param {string} symbol unified symbol of the market to fetch the order book for
349
349
  * @param {int} [limit] the maximum amount of order book entries to return
350
350
  * @param {object} [params] extra parameters specific to the bitget api endpoint
351
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
351
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
352
352
  */
353
353
  await this.loadMarkets();
354
354
  const market = this.market(symbol);
@@ -481,7 +481,7 @@ export default class bitget extends bitgetRest {
481
481
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
482
482
  * @param {int} [limit] the maximum amount of trades to fetch
483
483
  * @param {object} [params] extra parameters specific to the bitget api endpoint
484
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
484
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
485
485
  */
486
486
  await this.loadMarkets();
487
487
  const market = this.market(symbol);
@@ -576,7 +576,7 @@ export default class bitget extends bitgetRest {
576
576
  * @param {int} [since] the earliest time in ms to fetch orders for
577
577
  * @param {int} [limit] the maximum number of orde structures to retrieve
578
578
  * @param {object} [params] extra parameters specific to the bitget api endpoint
579
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
579
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
580
580
  */
581
581
  await this.loadMarkets();
582
582
  let market = undefined;
@@ -859,7 +859,7 @@ export default class bitget extends bitgetRest {
859
859
  * @param {int} [since] the earliest time in ms to fetch trades for
860
860
  * @param {int} [limit] the maximum number of trades structures to retrieve
861
861
  * @param {object} [params] extra parameters specific to the bitget api endpoint
862
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
862
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
863
863
  */
864
864
  // only contracts stream provides the trade info consistently in between order updates
865
865
  // the spot stream only provides on limit orders updates so we can't support it for spot
@@ -1011,7 +1011,7 @@ export default class bitget extends bitgetRest {
1011
1011
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
1012
1012
  * @param {object} [params] extra parameters specific to the bitget api endpoint
1013
1013
  * @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
1014
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
1014
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1015
1015
  */
1016
1016
  let type = undefined;
1017
1017
  [type, params] = this.handleMarketTypeAndParams('watchOrders', undefined, params);
@@ -90,7 +90,7 @@ export default class bitmart extends bitmartRest {
90
90
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
91
91
  * @param {int} [limit] the maximum amount of trades to fetch
92
92
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
93
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
93
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
94
94
  */
95
95
  await this.loadMarkets();
96
96
  symbol = this.symbol(symbol);
@@ -107,7 +107,7 @@ export default class bitmart extends bitmartRest {
107
107
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
108
108
  * @param {string} symbol unified symbol of the market to fetch the ticker for
109
109
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
110
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
110
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
111
111
  */
112
112
  return await this.subscribe('ticker', symbol, params);
113
113
  }
@@ -120,7 +120,7 @@ export default class bitmart extends bitmartRest {
120
120
  * @param {int} [since] the earliest time in ms to fetch orders for
121
121
  * @param {int} [limit] the maximum number of orde structures to retrieve
122
122
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
123
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
123
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
124
124
  */
125
125
  if (symbol === undefined) {
126
126
  throw new ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
@@ -387,7 +387,7 @@ export default class bitmart extends bitmartRest {
387
387
  * @param {string} symbol unified symbol of the market to fetch the order book for
388
388
  * @param {int} [limit] the maximum amount of order book entries to return
389
389
  * @param {object} [params] extra parameters specific to the bitmart api endpoint
390
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
390
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
391
391
  */
392
392
  const options = this.safeValue(this.options, 'watchOrderBook', {});
393
393
  const depth = this.safeString(options, 'depth', 'depth50');