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
@@ -715,6 +715,7 @@ class mexc extends mexc$1 {
715
715
  '2003': errors.InvalidOrder,
716
716
  '2005': errors.InsufficientFunds,
717
717
  '400': errors.BadRequest,
718
+ // '500': OnMaintenance, // {"code": 500,"message": "Under maintenance, please try again later","announcement": "https://www.mexc.com/support/articles/17827791510263"}
718
719
  '600': errors.BadRequest,
719
720
  '70011': errors.PermissionDenied,
720
721
  '88004': errors.InsufficientFunds,
@@ -808,7 +809,8 @@ class mexc extends mexc$1 {
808
809
  'Insufficient balance!': errors.InsufficientFunds,
809
810
  'Bid price is great than max allow price': errors.InvalidOrder,
810
811
  'Invalid symbol.': errors.BadSymbol,
811
- 'Param error!': errors.BadRequest, // code:600
812
+ 'Param error!': errors.BadRequest,
813
+ 'maintenance': errors.OnMaintenance, // {"code": 500,"message": "Under maintenance, please try again later","announcement": "https://www.mexc.com/support/articles/17827791510263"}
812
814
  },
813
815
  },
814
816
  });
@@ -819,7 +821,7 @@ class mexc extends mexc$1 {
819
821
  * @name mexc3#fetchStatus
820
822
  * @description the latest known information on the availability of the exchange API
821
823
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
822
- * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
824
+ * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
823
825
  */
824
826
  const [marketType, query] = this.handleMarketTypeAndParams('fetchStatus', undefined, params);
825
827
  let response = undefined;
@@ -1283,7 +1285,7 @@ class mexc extends mexc$1 {
1283
1285
  * @param {string} symbol unified symbol of the market to fetch the order book for
1284
1286
  * @param {int} [limit] the maximum amount of order book entries to return
1285
1287
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1286
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1288
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
1287
1289
  */
1288
1290
  await this.loadMarkets();
1289
1291
  const market = this.market(symbol);
@@ -1357,7 +1359,7 @@ class mexc extends mexc$1 {
1357
1359
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
1358
1360
  * @param {int} [limit] the maximum amount of trades to fetch
1359
1361
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1360
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
1362
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1361
1363
  */
1362
1364
  await this.loadMarkets();
1363
1365
  const market = this.market(symbol);
@@ -1693,7 +1695,7 @@ class mexc extends mexc$1 {
1693
1695
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1694
1696
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1695
1697
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1696
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1698
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1697
1699
  */
1698
1700
  await this.loadMarkets();
1699
1701
  const request = {};
@@ -1781,7 +1783,7 @@ class mexc extends mexc$1 {
1781
1783
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1782
1784
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1783
1785
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1784
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1786
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1785
1787
  */
1786
1788
  await this.loadMarkets();
1787
1789
  const market = this.market(symbol);
@@ -1971,7 +1973,7 @@ class mexc extends mexc$1 {
1971
1973
  * @description fetches the bid and ask price and volume for multiple markets
1972
1974
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
1973
1975
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1974
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1976
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1975
1977
  */
1976
1978
  await this.loadMarkets();
1977
1979
  let market = undefined;
@@ -2015,10 +2017,10 @@ class mexc extends mexc$1 {
2015
2017
  * @param {string} type 'market' or 'limit'
2016
2018
  * @param {string} side 'buy' or 'sell'
2017
2019
  * @param {float} amount how much of currency you want to trade in units of base currency
2018
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2020
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2019
2021
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2020
2022
  * @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
2021
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2023
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2022
2024
  */
2023
2025
  await this.loadMarkets();
2024
2026
  const market = this.market(symbol);
@@ -2221,7 +2223,7 @@ class mexc extends mexc$1 {
2221
2223
  * @param {string} symbol unified symbol of the market the order was made in
2222
2224
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2223
2225
  * @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
2224
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2226
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2225
2227
  */
2226
2228
  if (symbol === undefined) {
2227
2229
  throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
@@ -2344,7 +2346,7 @@ class mexc extends mexc$1 {
2344
2346
  * @param {int} [limit] the maximum number of orde structures to retrieve
2345
2347
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2346
2348
  * @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
2347
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2349
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2348
2350
  */
2349
2351
  await this.loadMarkets();
2350
2352
  const request = {};
@@ -2574,7 +2576,7 @@ class mexc extends mexc$1 {
2574
2576
  * @param {int} [limit] the maximum number of open orders structures to retrieve
2575
2577
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2576
2578
  * @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
2577
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2579
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2578
2580
  */
2579
2581
  await this.loadMarkets();
2580
2582
  const request = {};
@@ -2662,7 +2664,7 @@ class mexc extends mexc$1 {
2662
2664
  * @param {int} [since] the earliest time in ms to fetch orders for
2663
2665
  * @param {int} [limit] the maximum number of orde structures to retrieve
2664
2666
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2665
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2667
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2666
2668
  */
2667
2669
  return await this.fetchOrdersByState(3, symbol, since, limit, params);
2668
2670
  }
@@ -2675,7 +2677,7 @@ class mexc extends mexc$1 {
2675
2677
  * @param {int} [since] timestamp in ms of the earliest order, default is undefined
2676
2678
  * @param {int} [limit] max number of orders to return, default is undefined
2677
2679
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2678
- * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2680
+ * @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2679
2681
  */
2680
2682
  return await this.fetchOrdersByState(4, symbol, since, limit, params);
2681
2683
  }
@@ -2705,7 +2707,7 @@ class mexc extends mexc$1 {
2705
2707
  * @param {string} symbol unified symbol of the market the order was made in
2706
2708
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2707
2709
  * @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
2708
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2710
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2709
2711
  */
2710
2712
  await this.loadMarkets();
2711
2713
  let market = undefined;
@@ -2810,7 +2812,7 @@ class mexc extends mexc$1 {
2810
2812
  * @param {string[]} ids order ids
2811
2813
  * @param {string} symbol unified market symbol, default is undefined
2812
2814
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2813
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2815
+ * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2814
2816
  */
2815
2817
  await this.loadMarkets();
2816
2818
  const market = (symbol !== undefined) ? this.market(symbol) : undefined;
@@ -2845,7 +2847,7 @@ class mexc extends mexc$1 {
2845
2847
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
2846
2848
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2847
2849
  * @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
2848
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2850
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2849
2851
  */
2850
2852
  await this.loadMarkets();
2851
2853
  const market = (symbol !== undefined) ? this.market(symbol) : undefined;
@@ -3221,7 +3223,7 @@ class mexc extends mexc$1 {
3221
3223
  * @name mexc3#fetchAccounts
3222
3224
  * @description fetch all the accounts associated with a profile
3223
3225
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3224
- * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
3226
+ * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
3225
3227
  */
3226
3228
  // TODO: is the below endpoints suitable for fetchAccounts?
3227
3229
  const [marketType, query] = this.handleMarketTypeAndParams('fetchAccounts', undefined, params);
@@ -3248,7 +3250,7 @@ class mexc extends mexc$1 {
3248
3250
  * @name mexc3#fetchTradingFees
3249
3251
  * @description fetch the trading fees for multiple markets
3250
3252
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3251
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
3253
+ * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
3252
3254
  */
3253
3255
  await this.loadMarkets();
3254
3256
  const response = await this.fetchAccountHelper('spot', params);
@@ -3403,7 +3405,7 @@ class mexc extends mexc$1 {
3403
3405
  * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#isolated-account
3404
3406
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3405
3407
  * @param {string} [params.symbols] // required for margin, market id's separated by commas
3406
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
3408
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
3407
3409
  */
3408
3410
  await this.loadMarkets();
3409
3411
  let marketType = undefined;
@@ -3531,7 +3533,7 @@ class mexc extends mexc$1 {
3531
3533
  * @param {int} [since] the earliest time in ms to fetch trades for
3532
3534
  * @param {int} [limit] the maximum number of trades structures to retrieve
3533
3535
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3534
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3536
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
3535
3537
  */
3536
3538
  if (symbol === undefined) {
3537
3539
  throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
@@ -3622,7 +3624,7 @@ class mexc extends mexc$1 {
3622
3624
  * @param {int} [since] the earliest time in ms to fetch trades for
3623
3625
  * @param {int} [limit] the maximum number of trades to retrieve
3624
3626
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3625
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3627
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
3626
3628
  */
3627
3629
  await this.loadMarkets();
3628
3630
  const request = {};
@@ -3718,7 +3720,7 @@ class mexc extends mexc$1 {
3718
3720
  * @param {string} symbol unified market symbol
3719
3721
  * @param {float} amount the amount of margin to remove
3720
3722
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3721
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
3723
+ * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
3722
3724
  */
3723
3725
  return await this.modifyMarginHelper(symbol, amount, 'SUB', params);
3724
3726
  }
@@ -3730,7 +3732,7 @@ class mexc extends mexc$1 {
3730
3732
  * @param {string} symbol unified market symbol
3731
3733
  * @param {float} amount amount of margin to add
3732
3734
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3733
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
3735
+ * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
3734
3736
  */
3735
3737
  return await this.modifyMarginHelper(symbol, amount, 'ADD', params);
3736
3738
  }
@@ -3776,7 +3778,7 @@ class mexc extends mexc$1 {
3776
3778
  * @param {int} [since] the earliest time in ms to fetch funding history for
3777
3779
  * @param {int} [limit] the maximum number of funding history structures to retrieve
3778
3780
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3779
- * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
3781
+ * @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
3780
3782
  */
3781
3783
  await this.loadMarkets();
3782
3784
  let market = undefined;
@@ -3889,7 +3891,7 @@ class mexc extends mexc$1 {
3889
3891
  * @description fetch the current funding rate
3890
3892
  * @param {string} symbol unified market symbol
3891
3893
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3892
- * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
3894
+ * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
3893
3895
  */
3894
3896
  await this.loadMarkets();
3895
3897
  const market = this.market(symbol);
@@ -3924,7 +3926,7 @@ class mexc extends mexc$1 {
3924
3926
  * @param {int} [since] not used by mexc, but filtered internally by ccxt
3925
3927
  * @param {int} [limit] mexc limit is page_size default 20, maximum is 100
3926
3928
  * @param {object} [params] extra parameters specific to the mexc api endpoint
3927
- * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/en/latest/manual.html?#funding-rate-history-structure}
3929
+ * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
3928
3930
  */
3929
3931
  if (symbol === undefined) {
3930
3932
  throw new errors.ArgumentsRequired(this.id + ' fetchFundingRateHistory() requires a symbol argument');
@@ -3990,7 +3992,7 @@ class mexc extends mexc$1 {
3990
3992
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
3991
3993
  * @param {string[]|undefined} symbols list of unified market symbols
3992
3994
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3993
- * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
3995
+ * @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
3994
3996
  */
3995
3997
  await this.loadMarkets();
3996
3998
  const response = await this.contractPublicGetDetail(params);
@@ -4103,7 +4105,7 @@ class mexc extends mexc$1 {
4103
4105
  * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4104
4106
  * @param {string} code unified currency code of the currency for the deposit address
4105
4107
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4106
- * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
4108
+ * @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
4107
4109
  */
4108
4110
  await this.loadMarkets();
4109
4111
  const currency = this.currency(code);
@@ -4144,7 +4146,7 @@ class mexc extends mexc$1 {
4144
4146
  * @param {string} code unified currency code of the currency for the deposit address
4145
4147
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4146
4148
  * @param {string} [params.network] the blockchain network name
4147
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
4149
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
4148
4150
  */
4149
4151
  await this.loadMarkets();
4150
4152
  const currency = this.currency(code);
@@ -4183,7 +4185,7 @@ class mexc extends mexc$1 {
4183
4185
  * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4184
4186
  * @param {string} code unified currency code
4185
4187
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4186
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
4188
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
4187
4189
  */
4188
4190
  const rawNetwork = this.safeStringUpper(params, 'network');
4189
4191
  params = this.omit(params, 'network');
@@ -4213,7 +4215,7 @@ class mexc extends mexc$1 {
4213
4215
  * @param {int} [since] the earliest time in ms to fetch deposits for
4214
4216
  * @param {int} [limit] the maximum number of deposits structures to retrieve
4215
4217
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4216
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4218
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4217
4219
  */
4218
4220
  await this.loadMarkets();
4219
4221
  const request = {
@@ -4273,7 +4275,7 @@ class mexc extends mexc$1 {
4273
4275
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
4274
4276
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
4275
4277
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4276
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4278
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4277
4279
  */
4278
4280
  await this.loadMarkets();
4279
4281
  const request = {
@@ -4445,7 +4447,7 @@ class mexc extends mexc$1 {
4445
4447
  * @description fetch data on a single open contract trade position
4446
4448
  * @param {string} symbol unified market symbol of the market the position is held in, default is undefined
4447
4449
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4448
- * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
4450
+ * @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
4449
4451
  */
4450
4452
  await this.loadMarkets();
4451
4453
  const market = this.market(symbol);
@@ -4462,7 +4464,7 @@ class mexc extends mexc$1 {
4462
4464
  * @description fetch all open positions
4463
4465
  * @param {string[]|undefined} symbols list of unified market symbols
4464
4466
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4465
- * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
4467
+ * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
4466
4468
  */
4467
4469
  await this.loadMarkets();
4468
4470
  const response = await this.contractPrivateGetPositionOpenPositions(params);
@@ -4604,7 +4606,7 @@ class mexc extends mexc$1 {
4604
4606
  * @param {int} [since] the earliest time in ms to fetch transfers for
4605
4607
  * @param {int} [limit] the maximum number of transfers structures to retrieve
4606
4608
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4607
- * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
4609
+ * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
4608
4610
  */
4609
4611
  const [marketType, query] = this.handleMarketTypeAndParams('fetchTransfers', undefined, params);
4610
4612
  await this.loadMarkets();
@@ -4694,7 +4696,7 @@ class mexc extends mexc$1 {
4694
4696
  * @param {string} toAccount account to transfer to
4695
4697
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4696
4698
  * @param {string} [params.symbol] market symbol required for margin account transfers eg:BTCUSDT
4697
- * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
4699
+ * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
4698
4700
  */
4699
4701
  await this.loadMarkets();
4700
4702
  const currency = this.currency(code);
@@ -4826,7 +4828,7 @@ class mexc extends mexc$1 {
4826
4828
  * @param {string} address the address to withdraw to
4827
4829
  * @param {string} tag
4828
4830
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4829
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4831
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4830
4832
  */
4831
4833
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
4832
4834
  const networks = this.safeValue(this.options, 'networks', {});
@@ -4893,7 +4895,7 @@ class mexc extends mexc$1 {
4893
4895
  * @param {float} amount the amount to borrow
4894
4896
  * @param {string} symbol unified market symbol
4895
4897
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4896
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
4898
+ * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
4897
4899
  */
4898
4900
  await this.loadMarkets();
4899
4901
  if (symbol === undefined) {
@@ -4929,7 +4931,7 @@ class mexc extends mexc$1 {
4929
4931
  * @param {string} symbol unified market symbol
4930
4932
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4931
4933
  * @param {string} [params.borrowId] transaction id '762407666453712896'
4932
- * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
4934
+ * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
4933
4935
  */
4934
4936
  await this.loadMarkets();
4935
4937
  if (symbol === undefined) {
@@ -4967,7 +4969,7 @@ class mexc extends mexc$1 {
4967
4969
  * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
4968
4970
  * @param {string[]|undefined} codes returns fees for all currencies if undefined
4969
4971
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4970
- * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
4972
+ * @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
4971
4973
  */
4972
4974
  await this.loadMarkets();
4973
4975
  const response = await this.spotPrivateGetCapitalConfigGetall(params);
@@ -5065,7 +5067,7 @@ class mexc extends mexc$1 {
5065
5067
  * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5066
5068
  * @param {string[]|undefined} codes returns fees for all currencies if undefined
5067
5069
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
5068
- * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
5070
+ * @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
5069
5071
  */
5070
5072
  await this.loadMarkets();
5071
5073
  const response = await this.spotPrivateGetCapitalConfigGetall(params);
@@ -557,7 +557,7 @@ class ndax extends ndax$1 {
557
557
  * @param {string} symbol unified symbol of the market to fetch the order book for
558
558
  * @param {int} [limit] the maximum amount of order book entries to return
559
559
  * @param {object} [params] extra parameters specific to the ndax api endpoint
560
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
560
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
561
561
  */
562
562
  const omsId = this.safeInteger(this.options, 'omsId', 1);
563
563
  await this.loadMarkets();
@@ -666,7 +666,7 @@ class ndax extends ndax$1 {
666
666
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
667
667
  * @param {string} symbol unified symbol of the market to fetch the ticker for
668
668
  * @param {object} [params] extra parameters specific to the ndax api endpoint
669
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
669
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
670
670
  */
671
671
  const omsId = this.safeInteger(this.options, 'omsId', 1);
672
672
  await this.loadMarkets();
@@ -955,7 +955,7 @@ class ndax extends ndax$1 {
955
955
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
956
956
  * @param {int} [limit] the maximum amount of trades to fetch
957
957
  * @param {object} [params] extra parameters specific to the ndax api endpoint
958
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
958
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
959
959
  */
960
960
  const omsId = this.safeInteger(this.options, 'omsId', 1);
961
961
  await this.loadMarkets();
@@ -983,7 +983,7 @@ class ndax extends ndax$1 {
983
983
  * @name ndax#fetchAccounts
984
984
  * @description fetch all the accounts associated with a profile
985
985
  * @param {object} [params] extra parameters specific to the ndax api endpoint
986
- * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
986
+ * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
987
987
  */
988
988
  if (!this.login) {
989
989
  throw new errors.AuthenticationError(this.id + ' fetchAccounts() requires exchange.login email credential');
@@ -1036,7 +1036,7 @@ class ndax extends ndax$1 {
1036
1036
  * @name ndax#fetchBalance
1037
1037
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1038
1038
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1039
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
1039
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1040
1040
  */
1041
1041
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1042
1042
  await this.loadMarkets();
@@ -1166,7 +1166,7 @@ class ndax extends ndax$1 {
1166
1166
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
1167
1167
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
1168
1168
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1169
- * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
1169
+ * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
1170
1170
  */
1171
1171
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1172
1172
  await this.loadMarkets();
@@ -1320,10 +1320,10 @@ class ndax extends ndax$1 {
1320
1320
  * @param {string} type 'market' or 'limit'
1321
1321
  * @param {string} side 'buy' or 'sell'
1322
1322
  * @param {float} amount how much of currency you want to trade in units of base currency
1323
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1323
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1324
1324
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1325
1325
  * @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
1326
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1326
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1327
1327
  */
1328
1328
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1329
1329
  await this.loadMarkets();
@@ -1438,7 +1438,7 @@ class ndax extends ndax$1 {
1438
1438
  * @param {int} [since] the earliest time in ms to fetch trades for
1439
1439
  * @param {int} [limit] the maximum number of trades structures to retrieve
1440
1440
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1441
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1441
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1442
1442
  */
1443
1443
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1444
1444
  await this.loadMarkets();
@@ -1523,7 +1523,7 @@ class ndax extends ndax$1 {
1523
1523
  * @description cancel all open orders
1524
1524
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1525
1525
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1526
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1526
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1527
1527
  */
1528
1528
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1529
1529
  await this.loadMarkets();
@@ -1558,7 +1558,7 @@ class ndax extends ndax$1 {
1558
1558
  * @param {string} id order id
1559
1559
  * @param {string} symbol unified symbol of the market the order was made in
1560
1560
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1561
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1561
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1562
1562
  */
1563
1563
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1564
1564
  await this.loadMarkets();
@@ -1598,7 +1598,7 @@ class ndax extends ndax$1 {
1598
1598
  * @param {int} [since] the earliest time in ms to fetch open orders for
1599
1599
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1600
1600
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1601
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1601
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1602
1602
  */
1603
1603
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1604
1604
  await this.loadMarkets();
@@ -1676,7 +1676,7 @@ class ndax extends ndax$1 {
1676
1676
  * @param {int} [since] the earliest time in ms to fetch orders for
1677
1677
  * @param {int} [limit] the maximum number of orde structures to retrieve
1678
1678
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1679
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1679
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1680
1680
  */
1681
1681
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1682
1682
  await this.loadMarkets();
@@ -1768,7 +1768,7 @@ class ndax extends ndax$1 {
1768
1768
  * @description fetches information on an order made by the user
1769
1769
  * @param {string} symbol unified symbol of the market the order was made in
1770
1770
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1771
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1771
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1772
1772
  */
1773
1773
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1774
1774
  await this.loadMarkets();
@@ -1846,7 +1846,7 @@ class ndax extends ndax$1 {
1846
1846
  * @param {int} [since] the earliest time in ms to fetch trades for
1847
1847
  * @param {int} [limit] the maximum number of trades to retrieve
1848
1848
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1849
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1849
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1850
1850
  */
1851
1851
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1852
1852
  await this.loadMarkets();
@@ -1925,7 +1925,7 @@ class ndax extends ndax$1 {
1925
1925
  * @description fetch the deposit address for a currency associated with this account
1926
1926
  * @param {string} code unified currency code
1927
1927
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1928
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1928
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1929
1929
  */
1930
1930
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1931
1931
  await this.loadMarkets();
@@ -1997,7 +1997,7 @@ class ndax extends ndax$1 {
1997
1997
  * @description create a currency deposit address
1998
1998
  * @param {string} code unified currency code of the currency for the deposit address
1999
1999
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2000
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2000
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
2001
2001
  */
2002
2002
  const request = {
2003
2003
  'GenerateNewKey': true,
@@ -2014,7 +2014,7 @@ class ndax extends ndax$1 {
2014
2014
  * @param {int} [since] not used by ndax fetchDeposits
2015
2015
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2016
2016
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2017
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2017
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2018
2018
  */
2019
2019
  const omsId = this.safeInteger(this.options, 'omsId', 1);
2020
2020
  await this.loadMarkets();
@@ -2073,7 +2073,7 @@ class ndax extends ndax$1 {
2073
2073
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2074
2074
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2075
2075
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2076
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2076
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2077
2077
  */
2078
2078
  const omsId = this.safeInteger(this.options, 'omsId', 1);
2079
2079
  await this.loadMarkets();
@@ -2270,7 +2270,7 @@ class ndax extends ndax$1 {
2270
2270
  * @param {string} address the address to withdraw to
2271
2271
  * @param {string} tag
2272
2272
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2273
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2273
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2274
2274
  */
2275
2275
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2276
2276
  // this method required login, password and twofa key