ccxt 4.1.55 → 4.1.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (328) hide show
  1. package/.git-templates/hooks/pre-push +2 -2
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +6 -6
  4. package/build.sh +30 -8
  5. package/dist/ccxt.browser.js +5592 -4907
  6. package/dist/ccxt.browser.min.js +13 -13
  7. package/dist/cjs/ccxt.js +1 -1
  8. package/dist/cjs/src/ace.js +17 -13
  9. package/dist/cjs/src/alpaca.js +6 -6
  10. package/dist/cjs/src/ascendex.js +35 -29
  11. package/dist/cjs/src/base/Exchange.js +39 -26
  12. package/dist/cjs/src/base/Precise.js +1 -3
  13. package/dist/cjs/src/bigone.js +24 -20
  14. package/dist/cjs/src/binance.js +97 -76
  15. package/dist/cjs/src/bingx.js +63 -44
  16. package/dist/cjs/src/bit2c.js +18 -15
  17. package/dist/cjs/src/bitbank.js +17 -15
  18. package/dist/cjs/src/bitbns.js +28 -18
  19. package/dist/cjs/src/bitfinex.js +23 -21
  20. package/dist/cjs/src/bitfinex2.js +32 -28
  21. package/dist/cjs/src/bitflyer.js +28 -20
  22. package/dist/cjs/src/bitforex.js +25 -18
  23. package/dist/cjs/src/bitget.js +184 -147
  24. package/dist/cjs/src/bithumb.js +23 -16
  25. package/dist/cjs/src/bitmart.js +129 -94
  26. package/dist/cjs/src/bitmex.js +104 -64
  27. package/dist/cjs/src/bitopro.js +38 -26
  28. package/dist/cjs/src/bitpanda.js +24 -23
  29. package/dist/cjs/src/bitrue.js +33 -24
  30. package/dist/cjs/src/bitso.js +24 -23
  31. package/dist/cjs/src/bitstamp.js +24 -23
  32. package/dist/cjs/src/bittrex.js +30 -29
  33. package/dist/cjs/src/bitvavo.js +38 -30
  34. package/dist/cjs/src/bl3p.js +11 -10
  35. package/dist/cjs/src/blockchaincom.js +20 -20
  36. package/dist/cjs/src/btcalpha.js +18 -17
  37. package/dist/cjs/src/btcbox.js +13 -12
  38. package/dist/cjs/src/btcmarkets.js +20 -19
  39. package/dist/cjs/src/btcturk.js +14 -13
  40. package/dist/cjs/src/bybit.js +84 -54
  41. package/dist/cjs/src/cex.js +16 -14
  42. package/dist/cjs/src/coinbase.js +29 -27
  43. package/dist/cjs/src/coinbasepro.js +27 -25
  44. package/dist/cjs/src/coincheck.js +15 -14
  45. package/dist/cjs/src/coinex.js +101 -78
  46. package/dist/cjs/src/coinlist.js +28 -27
  47. package/dist/cjs/src/coinmate.js +20 -17
  48. package/dist/cjs/src/coinone.js +21 -16
  49. package/dist/cjs/src/coinsph.js +37 -28
  50. package/dist/cjs/src/coinspot.js +12 -11
  51. package/dist/cjs/src/cryptocom.js +40 -202
  52. package/dist/cjs/src/currencycom.js +32 -25
  53. package/dist/cjs/src/delta.js +34 -28
  54. package/dist/cjs/src/deribit.js +39 -36
  55. package/dist/cjs/src/digifinex.js +64 -44
  56. package/dist/cjs/src/exmo.js +29 -27
  57. package/dist/cjs/src/gate.js +67 -53
  58. package/dist/cjs/src/gemini.js +23 -20
  59. package/dist/cjs/src/hitbtc.js +65 -56
  60. package/dist/cjs/src/hollaex.js +30 -27
  61. package/dist/cjs/src/htx.js +135 -143
  62. package/dist/cjs/src/huobijp.js +22 -20
  63. package/dist/cjs/src/idex.js +22 -21
  64. package/dist/cjs/src/independentreserve.js +15 -14
  65. package/dist/cjs/src/indodax.js +30 -26
  66. package/dist/cjs/src/kraken.js +29 -27
  67. package/dist/cjs/src/krakenfutures.js +29 -22
  68. package/dist/cjs/src/kucoin.js +48 -43
  69. package/dist/cjs/src/kucoinfutures.js +33 -28
  70. package/dist/cjs/src/kuna.js +25 -24
  71. package/dist/cjs/src/latoken.js +24 -22
  72. package/dist/cjs/src/lbank.js +45 -30
  73. package/dist/cjs/src/luno.js +22 -19
  74. package/dist/cjs/src/lykke.js +19 -17
  75. package/dist/cjs/src/mercado.js +30 -19
  76. package/dist/cjs/src/mexc.js +60 -49
  77. package/dist/cjs/src/ndax.js +23 -22
  78. package/dist/cjs/src/novadax.js +23 -22
  79. package/dist/cjs/src/oceanex.js +22 -19
  80. package/dist/cjs/src/okcoin.js +29 -23
  81. package/dist/cjs/src/okx.js +92 -84
  82. package/dist/cjs/src/p2b.js +80 -83
  83. package/dist/cjs/src/paymium.js +10 -10
  84. package/dist/cjs/src/phemex.js +63 -40
  85. package/dist/cjs/src/poloniex.js +22 -22
  86. package/dist/cjs/src/poloniexfutures.js +23 -19
  87. package/dist/cjs/src/pro/alpaca.js +5 -5
  88. package/dist/cjs/src/pro/ascendex.js +4 -4
  89. package/dist/cjs/src/pro/binance.js +16 -16
  90. package/dist/cjs/src/pro/bingx.js +1 -1
  91. package/dist/cjs/src/pro/bitfinex.js +4 -4
  92. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  93. package/dist/cjs/src/pro/bitget.js +7 -7
  94. package/dist/cjs/src/pro/bitmart.js +7 -5
  95. package/dist/cjs/src/pro/bitmex.js +6 -6
  96. package/dist/cjs/src/pro/bitopro.js +4 -4
  97. package/dist/cjs/src/pro/bitpanda.js +6 -6
  98. package/dist/cjs/src/pro/bitrue.js +2 -2
  99. package/dist/cjs/src/pro/bitstamp.js +6 -4
  100. package/dist/cjs/src/pro/bittrex.js +6 -6
  101. package/dist/cjs/src/pro/bitvavo.js +11 -7
  102. package/dist/cjs/src/pro/blockchaincom.js +8 -8
  103. package/dist/cjs/src/pro/bybit.js +7 -7
  104. package/dist/cjs/src/pro/cex.js +13 -9
  105. package/dist/cjs/src/pro/coinbase.js +5 -5
  106. package/dist/cjs/src/pro/coinbasepro.js +11 -10
  107. package/dist/cjs/src/pro/coinex.js +7 -9
  108. package/dist/cjs/src/pro/cryptocom.js +9 -9
  109. package/dist/cjs/src/pro/currencycom.js +4 -4
  110. package/dist/cjs/src/pro/deribit.js +6 -6
  111. package/dist/cjs/src/pro/exmo.js +12 -14
  112. package/dist/cjs/src/pro/gate.js +7 -7
  113. package/dist/cjs/src/pro/gemini.js +3 -3
  114. package/dist/cjs/src/pro/hitbtc.js +263 -4
  115. package/dist/cjs/src/pro/hollaex.js +5 -5
  116. package/dist/cjs/src/pro/htx.js +6 -6
  117. package/dist/cjs/src/pro/huobijp.js +3 -3
  118. package/dist/cjs/src/pro/idex.js +4 -4
  119. package/dist/cjs/src/pro/independentreserve.js +2 -2
  120. package/dist/cjs/src/pro/kraken.js +10 -10
  121. package/dist/cjs/src/pro/krakenfutures.js +41 -17
  122. package/dist/cjs/src/pro/kucoin.js +7 -7
  123. package/dist/cjs/src/pro/kucoinfutures.js +8 -6
  124. package/dist/cjs/src/pro/luno.js +2 -2
  125. package/dist/cjs/src/pro/mexc.js +6 -6
  126. package/dist/cjs/src/pro/ndax.js +3 -3
  127. package/dist/cjs/src/pro/okcoin.js +5 -5
  128. package/dist/cjs/src/pro/okx.js +12 -12
  129. package/dist/cjs/src/pro/phemex.js +6 -6
  130. package/dist/cjs/src/pro/poloniex.js +7 -7
  131. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  132. package/dist/cjs/src/pro/probit.js +6 -6
  133. package/dist/cjs/src/pro/upbit.js +3 -3
  134. package/dist/cjs/src/pro/wazirx.js +8 -8
  135. package/dist/cjs/src/pro/whitebit.js +12 -8
  136. package/dist/cjs/src/pro/woo.js +1 -1
  137. package/dist/cjs/src/probit.js +28 -23
  138. package/dist/cjs/src/tidex.js +16 -15
  139. package/dist/cjs/src/timex.js +19 -18
  140. package/dist/cjs/src/tokocrypto.js +27 -22
  141. package/dist/cjs/src/upbit.js +19 -19
  142. package/dist/cjs/src/wavesexchange.js +22 -19
  143. package/dist/cjs/src/wazirx.js +24 -17
  144. package/dist/cjs/src/whitebit.js +33 -27
  145. package/dist/cjs/src/woo.js +44 -34
  146. package/dist/cjs/src/yobit.js +25 -20
  147. package/dist/cjs/src/zaif.js +9 -9
  148. package/dist/cjs/src/zonda.js +18 -17
  149. package/js/ccxt.d.ts +1 -1
  150. package/js/ccxt.js +1 -1
  151. package/js/src/abstract/bitbank.d.ts +1 -0
  152. package/js/src/abstract/bybit.d.ts +1 -0
  153. package/js/src/abstract/cryptocom.d.ts +0 -20
  154. package/js/src/abstract/htx.d.ts +3 -0
  155. package/js/src/abstract/huobi.d.ts +3 -0
  156. package/js/src/abstract/huobipro.d.ts +3 -0
  157. package/js/src/abstract/okex.d.ts +3 -1
  158. package/js/src/abstract/okex5.d.ts +3 -1
  159. package/js/src/abstract/okx.d.ts +3 -1
  160. package/js/src/ace.js +18 -14
  161. package/js/src/alpaca.js +6 -6
  162. package/js/src/ascendex.js +35 -29
  163. package/js/src/base/Exchange.d.ts +37 -34
  164. package/js/src/base/Exchange.js +39 -26
  165. package/js/src/base/Precise.d.ts +4 -4
  166. package/js/src/base/Precise.js +1 -3
  167. package/js/src/base/functions/type.d.ts +25 -25
  168. package/js/src/base/types.d.ts +21 -14
  169. package/js/src/bigone.js +25 -21
  170. package/js/src/binance.d.ts +2 -2
  171. package/js/src/binance.js +97 -76
  172. package/js/src/bingx.js +63 -44
  173. package/js/src/bit2c.js +19 -16
  174. package/js/src/bitbank.js +17 -15
  175. package/js/src/bitbns.js +28 -18
  176. package/js/src/bitfinex.js +23 -21
  177. package/js/src/bitfinex2.js +32 -28
  178. package/js/src/bitflyer.js +28 -20
  179. package/js/src/bitforex.js +26 -19
  180. package/js/src/bitget.d.ts +25 -3
  181. package/js/src/bitget.js +184 -147
  182. package/js/src/bithumb.js +23 -16
  183. package/js/src/bitmart.d.ts +1 -1
  184. package/js/src/bitmart.js +129 -94
  185. package/js/src/bitmex.d.ts +2 -2
  186. package/js/src/bitmex.js +104 -64
  187. package/js/src/bitopro.js +38 -26
  188. package/js/src/bitpanda.js +24 -23
  189. package/js/src/bitrue.js +33 -24
  190. package/js/src/bitso.js +24 -23
  191. package/js/src/bitstamp.d.ts +2 -2
  192. package/js/src/bitstamp.js +24 -23
  193. package/js/src/bittrex.js +30 -29
  194. package/js/src/bitvavo.js +38 -30
  195. package/js/src/bl3p.js +11 -10
  196. package/js/src/blockchaincom.js +20 -20
  197. package/js/src/btcalpha.js +18 -17
  198. package/js/src/btcbox.js +13 -12
  199. package/js/src/btcmarkets.js +20 -19
  200. package/js/src/btcturk.js +14 -13
  201. package/js/src/bybit.d.ts +1 -1
  202. package/js/src/bybit.js +84 -54
  203. package/js/src/cex.js +16 -14
  204. package/js/src/coinbase.js +29 -27
  205. package/js/src/coinbasepro.js +27 -25
  206. package/js/src/coincheck.js +15 -14
  207. package/js/src/coinex.d.ts +1 -1
  208. package/js/src/coinex.js +101 -78
  209. package/js/src/coinlist.js +28 -27
  210. package/js/src/coinmate.js +21 -18
  211. package/js/src/coinone.js +21 -16
  212. package/js/src/coinsph.js +37 -28
  213. package/js/src/coinspot.js +12 -11
  214. package/js/src/cryptocom.d.ts +0 -23
  215. package/js/src/cryptocom.js +40 -202
  216. package/js/src/currencycom.js +32 -25
  217. package/js/src/delta.js +35 -29
  218. package/js/src/deribit.js +39 -36
  219. package/js/src/digifinex.d.ts +2 -2
  220. package/js/src/digifinex.js +65 -45
  221. package/js/src/exmo.js +29 -27
  222. package/js/src/gate.d.ts +1 -1
  223. package/js/src/gate.js +67 -53
  224. package/js/src/gemini.js +23 -20
  225. package/js/src/hitbtc.d.ts +1 -0
  226. package/js/src/hitbtc.js +65 -56
  227. package/js/src/hollaex.js +30 -27
  228. package/js/src/htx.d.ts +11 -3
  229. package/js/src/htx.js +135 -143
  230. package/js/src/huobijp.js +23 -21
  231. package/js/src/idex.js +22 -21
  232. package/js/src/independentreserve.js +15 -14
  233. package/js/src/indodax.js +30 -26
  234. package/js/src/kraken.js +29 -27
  235. package/js/src/krakenfutures.js +29 -22
  236. package/js/src/kucoin.d.ts +1 -1
  237. package/js/src/kucoin.js +48 -43
  238. package/js/src/kucoinfutures.js +33 -28
  239. package/js/src/kuna.js +25 -24
  240. package/js/src/latoken.js +25 -23
  241. package/js/src/lbank.js +46 -31
  242. package/js/src/luno.js +22 -19
  243. package/js/src/lykke.js +19 -17
  244. package/js/src/mercado.js +30 -19
  245. package/js/src/mexc.d.ts +1 -1
  246. package/js/src/mexc.js +60 -49
  247. package/js/src/ndax.js +23 -22
  248. package/js/src/novadax.js +23 -22
  249. package/js/src/oceanex.js +22 -19
  250. package/js/src/okcoin.js +29 -23
  251. package/js/src/okx.d.ts +2 -2
  252. package/js/src/okx.js +92 -84
  253. package/js/src/p2b.d.ts +8 -7
  254. package/js/src/p2b.js +80 -82
  255. package/js/src/paymium.js +10 -10
  256. package/js/src/phemex.js +63 -40
  257. package/js/src/poloniex.js +22 -22
  258. package/js/src/poloniexfutures.js +23 -19
  259. package/js/src/pro/alpaca.js +5 -5
  260. package/js/src/pro/ascendex.js +4 -4
  261. package/js/src/pro/binance.js +16 -16
  262. package/js/src/pro/bingx.js +1 -1
  263. package/js/src/pro/bitfinex.js +4 -4
  264. package/js/src/pro/bitfinex2.d.ts +1 -1
  265. package/js/src/pro/bitfinex2.js +6 -6
  266. package/js/src/pro/bitget.js +7 -7
  267. package/js/src/pro/bitmart.js +7 -5
  268. package/js/src/pro/bitmex.js +6 -6
  269. package/js/src/pro/bitopro.js +4 -4
  270. package/js/src/pro/bitpanda.js +6 -6
  271. package/js/src/pro/bitrue.js +2 -2
  272. package/js/src/pro/bitstamp.js +7 -5
  273. package/js/src/pro/bittrex.js +6 -6
  274. package/js/src/pro/bitvavo.js +12 -8
  275. package/js/src/pro/blockchaincom.js +8 -8
  276. package/js/src/pro/bybit.js +7 -7
  277. package/js/src/pro/cex.js +14 -10
  278. package/js/src/pro/coinbase.js +5 -5
  279. package/js/src/pro/coinbasepro.js +12 -11
  280. package/js/src/pro/coinex.js +7 -9
  281. package/js/src/pro/cryptocom.js +9 -9
  282. package/js/src/pro/currencycom.js +4 -4
  283. package/js/src/pro/deribit.js +6 -6
  284. package/js/src/pro/exmo.js +12 -14
  285. package/js/src/pro/gate.js +7 -7
  286. package/js/src/pro/gemini.js +3 -3
  287. package/js/src/pro/hitbtc.d.ts +8 -1
  288. package/js/src/pro/hitbtc.js +264 -5
  289. package/js/src/pro/hollaex.js +5 -5
  290. package/js/src/pro/htx.js +6 -6
  291. package/js/src/pro/huobijp.js +3 -3
  292. package/js/src/pro/idex.js +4 -4
  293. package/js/src/pro/independentreserve.js +2 -2
  294. package/js/src/pro/kraken.js +10 -10
  295. package/js/src/pro/krakenfutures.d.ts +1 -0
  296. package/js/src/pro/krakenfutures.js +42 -18
  297. package/js/src/pro/kucoin.js +7 -7
  298. package/js/src/pro/kucoinfutures.js +8 -6
  299. package/js/src/pro/luno.js +2 -2
  300. package/js/src/pro/mexc.js +6 -6
  301. package/js/src/pro/ndax.js +3 -3
  302. package/js/src/pro/okcoin.js +5 -5
  303. package/js/src/pro/okx.js +12 -12
  304. package/js/src/pro/phemex.js +6 -6
  305. package/js/src/pro/poloniex.js +7 -7
  306. package/js/src/pro/poloniexfutures.js +5 -5
  307. package/js/src/pro/probit.js +6 -6
  308. package/js/src/pro/upbit.js +3 -3
  309. package/js/src/pro/wazirx.js +8 -8
  310. package/js/src/pro/whitebit.js +13 -9
  311. package/js/src/pro/woo.js +1 -1
  312. package/js/src/probit.js +29 -24
  313. package/js/src/tidex.js +16 -15
  314. package/js/src/timex.js +19 -18
  315. package/js/src/tokocrypto.js +28 -23
  316. package/js/src/upbit.js +19 -19
  317. package/js/src/wavesexchange.js +23 -20
  318. package/js/src/wazirx.js +25 -18
  319. package/js/src/whitebit.js +33 -27
  320. package/js/src/woo.js +45 -35
  321. package/js/src/yobit.js +25 -20
  322. package/js/src/zaif.js +9 -9
  323. package/js/src/zonda.js +18 -17
  324. package/package.json +2 -2
  325. package/js/src/bitstamp1.d.ts +0 -28
  326. package/js/src/bitstamp1.js +0 -430
  327. package/js/src/lbank2.d.ts +0 -90
  328. package/js/src/lbank2.js +0 -2779
@@ -43,13 +43,12 @@ class mexc extends mexc$1 {
43
43
  'fetchAccounts': true,
44
44
  'fetchBalance': true,
45
45
  'fetchBidsAsks': true,
46
- 'fetchBorrowRate': undefined,
47
46
  'fetchBorrowRateHistory': undefined,
48
- 'fetchBorrowRates': undefined,
49
- 'fetchBorrowRatesPerSymbol': undefined,
50
47
  'fetchCanceledOrders': true,
51
48
  'fetchClosedOrder': undefined,
52
49
  'fetchClosedOrders': true,
50
+ 'fetchCrossBorrowRate': false,
51
+ 'fetchCrossBorrowRates': false,
53
52
  'fetchCurrencies': true,
54
53
  'fetchDeposit': undefined,
55
54
  'fetchDepositAddress': true,
@@ -63,6 +62,8 @@ class mexc extends mexc$1 {
63
62
  'fetchFundingRateHistory': true,
64
63
  'fetchFundingRates': undefined,
65
64
  'fetchIndexOHLCV': true,
65
+ 'fetchIsolatedBorrowRate': false,
66
+ 'fetchIsolatedBorrowRates': false,
66
67
  'fetchL2OrderBook': true,
67
68
  'fetchLedger': undefined,
68
69
  'fetchLedgerEntry': undefined,
@@ -821,7 +822,7 @@ class mexc extends mexc$1 {
821
822
  * @name mexc3#fetchStatus
822
823
  * @description the latest known information on the availability of the exchange API
823
824
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
824
- * @returns {object} a [status structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#exchange-status-structure}
825
+ * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
825
826
  */
826
827
  const [marketType, query] = this.handleMarketTypeAndParams('fetchStatus', undefined, params);
827
828
  let response = undefined;
@@ -1289,7 +1290,7 @@ class mexc extends mexc$1 {
1289
1290
  * @param {string} symbol unified symbol of the market to fetch the order book for
1290
1291
  * @param {int} [limit] the maximum amount of order book entries to return
1291
1292
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1292
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
1293
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1293
1294
  */
1294
1295
  await this.loadMarkets();
1295
1296
  const market = this.market(symbol);
@@ -1367,7 +1368,7 @@ class mexc extends mexc$1 {
1367
1368
  * @param {int} [limit] the maximum amount of trades to fetch
1368
1369
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1369
1370
  * @param {int} [params.until] *spot only* *since must be defined* the latest time in ms to fetch entries for
1370
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1371
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1371
1372
  */
1372
1373
  await this.loadMarkets();
1373
1374
  const market = this.market(symbol);
@@ -1740,7 +1741,7 @@ class mexc extends mexc$1 {
1740
1741
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1741
1742
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1742
1743
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1743
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1744
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1744
1745
  */
1745
1746
  await this.loadMarkets();
1746
1747
  const request = {};
@@ -1828,7 +1829,7 @@ class mexc extends mexc$1 {
1828
1829
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1829
1830
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1830
1831
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
1831
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1832
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1832
1833
  */
1833
1834
  await this.loadMarkets();
1834
1835
  const market = this.market(symbol);
@@ -2018,7 +2019,7 @@ class mexc extends mexc$1 {
2018
2019
  * @description fetches the bid and ask price and volume for multiple markets
2019
2020
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
2020
2021
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2021
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
2022
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
2022
2023
  */
2023
2024
  await this.loadMarkets();
2024
2025
  let market = undefined;
@@ -2065,7 +2066,7 @@ class mexc extends mexc$1 {
2065
2066
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
2066
2067
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2067
2068
  * @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
2068
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2069
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2069
2070
  */
2070
2071
  await this.loadMarkets();
2071
2072
  const market = this.market(symbol);
@@ -2276,7 +2277,7 @@ class mexc extends mexc$1 {
2276
2277
  * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#batch-orders
2277
2278
  * @param {array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
2278
2279
  * @param {object} [params] extra parameters specific to api endpoint
2279
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2280
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2280
2281
  */
2281
2282
  await this.loadMarkets();
2282
2283
  const ordersRequests = [];
@@ -2340,9 +2341,11 @@ class mexc extends mexc$1 {
2340
2341
  * @param {string} symbol unified symbol of the market the order was made in
2341
2342
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2342
2343
  * @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
2343
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2344
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2344
2345
  */
2345
- this.checkRequiredSymbol('fetchOrder', symbol);
2346
+ if (symbol === undefined) {
2347
+ throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
2348
+ }
2346
2349
  await this.loadMarkets();
2347
2350
  const market = this.market(symbol);
2348
2351
  const request = {
@@ -2461,7 +2464,7 @@ class mexc extends mexc$1 {
2461
2464
  * @param {int} [limit] the maximum number of orde structures to retrieve
2462
2465
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2463
2466
  * @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
2464
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2467
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2465
2468
  */
2466
2469
  await this.loadMarkets();
2467
2470
  const request = {};
@@ -2691,7 +2694,7 @@ class mexc extends mexc$1 {
2691
2694
  * @param {int} [limit] the maximum number of open orders structures to retrieve
2692
2695
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2693
2696
  * @param {string} [params.marginMode] only 'isolated' is supported, for spot-margin trading
2694
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2697
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2695
2698
  */
2696
2699
  await this.loadMarkets();
2697
2700
  const request = {};
@@ -2779,7 +2782,7 @@ class mexc extends mexc$1 {
2779
2782
  * @param {int} [since] the earliest time in ms to fetch orders for
2780
2783
  * @param {int} [limit] the maximum number of orde structures to retrieve
2781
2784
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2782
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2785
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2783
2786
  */
2784
2787
  return await this.fetchOrdersByState(3, symbol, since, limit, params);
2785
2788
  }
@@ -2792,7 +2795,7 @@ class mexc extends mexc$1 {
2792
2795
  * @param {int} [since] timestamp in ms of the earliest order, default is undefined
2793
2796
  * @param {int} [limit] max number of orders to return, default is undefined
2794
2797
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2795
- * @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2798
+ * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2796
2799
  */
2797
2800
  return await this.fetchOrdersByState(4, symbol, since, limit, params);
2798
2801
  }
@@ -2821,7 +2824,7 @@ class mexc extends mexc$1 {
2821
2824
  * @param {string} symbol unified symbol of the market the order was made in
2822
2825
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2823
2826
  * @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
2824
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2827
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2825
2828
  */
2826
2829
  await this.loadMarkets();
2827
2830
  let market = undefined;
@@ -2926,7 +2929,7 @@ class mexc extends mexc$1 {
2926
2929
  * @param {string[]} ids order ids
2927
2930
  * @param {string} symbol unified market symbol, default is undefined
2928
2931
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2929
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2932
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2930
2933
  */
2931
2934
  await this.loadMarkets();
2932
2935
  const market = (symbol !== undefined) ? this.market(symbol) : undefined;
@@ -2961,7 +2964,7 @@ class mexc extends mexc$1 {
2961
2964
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
2962
2965
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
2963
2966
  * @param {string} [params.marginMode] only 'isolated' is supported for spot-margin trading
2964
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
2967
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
2965
2968
  */
2966
2969
  await this.loadMarkets();
2967
2970
  const market = (symbol !== undefined) ? this.market(symbol) : undefined;
@@ -3354,7 +3357,7 @@ class mexc extends mexc$1 {
3354
3357
  * @name mexc3#fetchAccounts
3355
3358
  * @description fetch all the accounts associated with a profile
3356
3359
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3357
- * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
3360
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
3358
3361
  */
3359
3362
  // TODO: is the below endpoints suitable for fetchAccounts?
3360
3363
  const [marketType, query] = this.handleMarketTypeAndParams('fetchAccounts', undefined, params);
@@ -3381,7 +3384,7 @@ class mexc extends mexc$1 {
3381
3384
  * @name mexc3#fetchTradingFees
3382
3385
  * @description fetch the trading fees for multiple markets
3383
3386
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3384
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
3387
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
3385
3388
  */
3386
3389
  await this.loadMarkets();
3387
3390
  const response = await this.fetchAccountHelper('spot', params);
@@ -3536,7 +3539,7 @@ class mexc extends mexc$1 {
3536
3539
  * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#isolated-account
3537
3540
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3538
3541
  * @param {string} [params.symbols] // required for margin, market id's separated by commas
3539
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
3542
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
3540
3543
  */
3541
3544
  await this.loadMarkets();
3542
3545
  let marketType = undefined;
@@ -3664,9 +3667,11 @@ class mexc extends mexc$1 {
3664
3667
  * @param {int} [since] the earliest time in ms to fetch trades for
3665
3668
  * @param {int} [limit] the maximum number of trades structures to retrieve
3666
3669
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3667
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
3670
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3668
3671
  */
3669
- this.checkRequiredSymbol('fetchMyTrades', symbol);
3672
+ if (symbol === undefined) {
3673
+ throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
3674
+ }
3670
3675
  await this.loadMarkets();
3671
3676
  const market = this.market(symbol);
3672
3677
  const [marketType, query] = this.handleMarketTypeAndParams('fetchMyTrades', market, params);
@@ -3753,7 +3758,7 @@ class mexc extends mexc$1 {
3753
3758
  * @param {int} [since] the earliest time in ms to fetch trades for
3754
3759
  * @param {int} [limit] the maximum number of trades to retrieve
3755
3760
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3756
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
3761
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
3757
3762
  */
3758
3763
  await this.loadMarkets();
3759
3764
  const request = {};
@@ -3849,7 +3854,7 @@ class mexc extends mexc$1 {
3849
3854
  * @param {string} symbol unified market symbol
3850
3855
  * @param {float} amount the amount of margin to remove
3851
3856
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3852
- * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#reduce-margin-structure}
3857
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
3853
3858
  */
3854
3859
  return await this.modifyMarginHelper(symbol, amount, 'SUB', params);
3855
3860
  }
@@ -3861,7 +3866,7 @@ class mexc extends mexc$1 {
3861
3866
  * @param {string} symbol unified market symbol
3862
3867
  * @param {float} amount amount of margin to add
3863
3868
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3864
- * @returns {object} a [margin structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#add-margin-structure}
3869
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
3865
3870
  */
3866
3871
  return await this.modifyMarginHelper(symbol, amount, 'ADD', params);
3867
3872
  }
@@ -3907,7 +3912,7 @@ class mexc extends mexc$1 {
3907
3912
  * @param {int} [since] the earliest time in ms to fetch funding history for
3908
3913
  * @param {int} [limit] the maximum number of funding history structures to retrieve
3909
3914
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
3910
- * @returns {object} a [funding history structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-history-structure}
3915
+ * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
3911
3916
  */
3912
3917
  await this.loadMarkets();
3913
3918
  let market = undefined;
@@ -4020,7 +4025,7 @@ class mexc extends mexc$1 {
4020
4025
  * @description fetch the current funding rate
4021
4026
  * @param {string} symbol unified market symbol
4022
4027
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4023
- * @returns {object} a [funding rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-structure}
4028
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
4024
4029
  */
4025
4030
  await this.loadMarkets();
4026
4031
  const market = this.market(symbol);
@@ -4055,9 +4060,11 @@ class mexc extends mexc$1 {
4055
4060
  * @param {int} [since] not used by mexc, but filtered internally by ccxt
4056
4061
  * @param {int} [limit] mexc limit is page_size default 20, maximum is 100
4057
4062
  * @param {object} [params] extra parameters specific to the mexc api endpoint
4058
- * @returns {object[]} a list of [funding rate structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#funding-rate-history-structure}
4063
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
4059
4064
  */
4060
- this.checkRequiredSymbol('fetchFundingRateHistory', symbol);
4065
+ if (symbol === undefined) {
4066
+ throw new errors.ArgumentsRequired(this.id + ' fetchFundingRateHistory() requires a symbol argument');
4067
+ }
4061
4068
  await this.loadMarkets();
4062
4069
  const market = this.market(symbol);
4063
4070
  const request = {
@@ -4119,7 +4126,7 @@ class mexc extends mexc$1 {
4119
4126
  * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
4120
4127
  * @param {string[]|undefined} symbols list of unified market symbols
4121
4128
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4122
- * @returns {object} a dictionary of [leverage tiers structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#leverage-tiers-structure}, indexed by market symbols
4129
+ * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
4123
4130
  */
4124
4131
  await this.loadMarkets();
4125
4132
  symbols = this.marketSymbols(symbols, 'swap', true, true);
@@ -4233,7 +4240,7 @@ class mexc extends mexc$1 {
4233
4240
  * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4234
4241
  * @param {string} code unified currency code of the currency for the deposit address
4235
4242
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4236
- * @returns {object} a dictionary of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure} indexed by the network
4243
+ * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
4237
4244
  */
4238
4245
  await this.loadMarkets();
4239
4246
  const currency = this.currency(code);
@@ -4274,7 +4281,7 @@ class mexc extends mexc$1 {
4274
4281
  * @param {string} code unified currency code of the currency for the deposit address
4275
4282
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4276
4283
  * @param {string} [params.network] the blockchain network name
4277
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
4284
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
4278
4285
  */
4279
4286
  await this.loadMarkets();
4280
4287
  const currency = this.currency(code);
@@ -4313,7 +4320,7 @@ class mexc extends mexc$1 {
4313
4320
  * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#deposit-address-supporting-network
4314
4321
  * @param {string} code unified currency code
4315
4322
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4316
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
4323
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
4317
4324
  */
4318
4325
  const rawNetwork = this.safeStringUpper(params, 'network');
4319
4326
  params = this.omit(params, 'network');
@@ -4343,7 +4350,7 @@ class mexc extends mexc$1 {
4343
4350
  * @param {int} [since] the earliest time in ms to fetch deposits for
4344
4351
  * @param {int} [limit] the maximum number of deposits structures to retrieve
4345
4352
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4346
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4353
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4347
4354
  */
4348
4355
  await this.loadMarkets();
4349
4356
  const request = {
@@ -4403,7 +4410,7 @@ class mexc extends mexc$1 {
4403
4410
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
4404
4411
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
4405
4412
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4406
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4413
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4407
4414
  */
4408
4415
  await this.loadMarkets();
4409
4416
  const request = {
@@ -4577,7 +4584,7 @@ class mexc extends mexc$1 {
4577
4584
  * @description fetch data on a single open contract trade position
4578
4585
  * @param {string} symbol unified market symbol of the market the position is held in, default is undefined
4579
4586
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4580
- * @returns {object} a [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
4587
+ * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
4581
4588
  */
4582
4589
  await this.loadMarkets();
4583
4590
  const market = this.market(symbol);
@@ -4594,7 +4601,7 @@ class mexc extends mexc$1 {
4594
4601
  * @description fetch all open positions
4595
4602
  * @param {string[]|undefined} symbols list of unified market symbols
4596
4603
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4597
- * @returns {object[]} a list of [position structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#position-structure}
4604
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
4598
4605
  */
4599
4606
  await this.loadMarkets();
4600
4607
  const response = await this.contractPrivateGetPositionOpenPositions(params);
@@ -4736,7 +4743,7 @@ class mexc extends mexc$1 {
4736
4743
  * @param {int} [since] the earliest time in ms to fetch transfers for
4737
4744
  * @param {int} [limit] the maximum number of transfers structures to retrieve
4738
4745
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4739
- * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
4746
+ * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
4740
4747
  */
4741
4748
  const [marketType, query] = this.handleMarketTypeAndParams('fetchTransfers', undefined, params);
4742
4749
  await this.loadMarkets();
@@ -4826,7 +4833,7 @@ class mexc extends mexc$1 {
4826
4833
  * @param {string} toAccount account to transfer to
4827
4834
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4828
4835
  * @param {string} [params.symbol] market symbol required for margin account transfers eg:BTCUSDT
4829
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
4836
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
4830
4837
  */
4831
4838
  await this.loadMarkets();
4832
4839
  const currency = this.currency(code);
@@ -4958,7 +4965,7 @@ class mexc extends mexc$1 {
4958
4965
  * @param {string} address the address to withdraw to
4959
4966
  * @param {string} tag
4960
4967
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
4961
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
4968
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
4962
4969
  */
4963
4970
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
4964
4971
  const networks = this.safeValue(this.options, 'networks', {});
@@ -5025,9 +5032,11 @@ class mexc extends mexc$1 {
5025
5032
  * @param {float} amount the amount to borrow
5026
5033
  * @param {string} symbol unified market symbol
5027
5034
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
5028
- * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
5035
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
5029
5036
  */
5030
- this.checkRequiredSymbol('borrowMargin', symbol);
5037
+ if (symbol === undefined) {
5038
+ throw new errors.ArgumentsRequired(this.id + ' borrowMargin() requires a symbol argument');
5039
+ }
5031
5040
  await this.loadMarkets();
5032
5041
  const market = this.market(symbol);
5033
5042
  const currency = this.currency(code);
@@ -5059,9 +5068,11 @@ class mexc extends mexc$1 {
5059
5068
  * @param {string} symbol unified market symbol
5060
5069
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
5061
5070
  * @param {string} [params.borrowId] transaction id '762407666453712896'
5062
- * @returns {object} a [margin loan structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#margin-loan-structure}
5071
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
5063
5072
  */
5064
- this.checkRequiredSymbol('repayMargin', symbol);
5073
+ if (symbol === undefined) {
5074
+ throw new errors.ArgumentsRequired(this.id + ' repayMargin() requires a symbol argument');
5075
+ }
5065
5076
  await this.loadMarkets();
5066
5077
  const id = this.safeString2(params, 'id', 'borrowId');
5067
5078
  if (id === undefined) {
@@ -5095,7 +5106,7 @@ class mexc extends mexc$1 {
5095
5106
  * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5096
5107
  * @param {string[]|undefined} codes returns fees for all currencies if undefined
5097
5108
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
5098
- * @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
5109
+ * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
5099
5110
  */
5100
5111
  await this.loadMarkets();
5101
5112
  const response = await this.spotPrivateGetCapitalConfigGetall(params);
@@ -5193,7 +5204,7 @@ class mexc extends mexc$1 {
5193
5204
  * @see https://mexcdevelop.github.io/apidocs/spot_v3_en/#query-the-currency-information
5194
5205
  * @param {string[]|undefined} codes returns fees for all currencies if undefined
5195
5206
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
5196
- * @returns {object[]} a list of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
5207
+ * @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
5197
5208
  */
5198
5209
  await this.loadMarkets();
5199
5210
  const response = await this.spotPrivateGetCapitalConfigGetall(params);
@@ -40,11 +40,10 @@ class ndax extends ndax$1 {
40
40
  'editOrder': true,
41
41
  'fetchAccounts': true,
42
42
  'fetchBalance': true,
43
- 'fetchBorrowRate': false,
44
43
  'fetchBorrowRateHistories': false,
45
44
  'fetchBorrowRateHistory': false,
46
- 'fetchBorrowRates': false,
47
- 'fetchBorrowRatesPerSymbol': false,
45
+ 'fetchCrossBorrowRate': false,
46
+ 'fetchCrossBorrowRates': false,
48
47
  'fetchCurrencies': true,
49
48
  'fetchDepositAddress': true,
50
49
  'fetchDeposits': true,
@@ -53,6 +52,8 @@ class ndax extends ndax$1 {
53
52
  'fetchFundingRateHistory': false,
54
53
  'fetchFundingRates': false,
55
54
  'fetchIndexOHLCV': false,
55
+ 'fetchIsolatedBorrowRate': false,
56
+ 'fetchIsolatedBorrowRates': false,
56
57
  'fetchLedger': true,
57
58
  'fetchLeverage': false,
58
59
  'fetchLeverageTiers': false,
@@ -561,7 +562,7 @@ class ndax extends ndax$1 {
561
562
  * @param {string} symbol unified symbol of the market to fetch the order book for
562
563
  * @param {int} [limit] the maximum amount of order book entries to return
563
564
  * @param {object} [params] extra parameters specific to the ndax api endpoint
564
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
565
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
565
566
  */
566
567
  const omsId = this.safeInteger(this.options, 'omsId', 1);
567
568
  await this.loadMarkets();
@@ -670,7 +671,7 @@ class ndax extends ndax$1 {
670
671
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
671
672
  * @param {string} symbol unified symbol of the market to fetch the ticker for
672
673
  * @param {object} [params] extra parameters specific to the ndax api endpoint
673
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
674
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
674
675
  */
675
676
  const omsId = this.safeInteger(this.options, 'omsId', 1);
676
677
  await this.loadMarkets();
@@ -959,7 +960,7 @@ class ndax extends ndax$1 {
959
960
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
960
961
  * @param {int} [limit] the maximum amount of trades to fetch
961
962
  * @param {object} [params] extra parameters specific to the ndax api endpoint
962
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
963
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
963
964
  */
964
965
  const omsId = this.safeInteger(this.options, 'omsId', 1);
965
966
  await this.loadMarkets();
@@ -987,7 +988,7 @@ class ndax extends ndax$1 {
987
988
  * @name ndax#fetchAccounts
988
989
  * @description fetch all the accounts associated with a profile
989
990
  * @param {object} [params] extra parameters specific to the ndax api endpoint
990
- * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
991
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
991
992
  */
992
993
  if (!this.login) {
993
994
  throw new errors.AuthenticationError(this.id + ' fetchAccounts() requires exchange.login email credential');
@@ -1040,7 +1041,7 @@ class ndax extends ndax$1 {
1040
1041
  * @name ndax#fetchBalance
1041
1042
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1042
1043
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1043
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1044
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1044
1045
  */
1045
1046
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1046
1047
  await this.loadMarkets();
@@ -1170,7 +1171,7 @@ class ndax extends ndax$1 {
1170
1171
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
1171
1172
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
1172
1173
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1173
- * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
1174
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
1174
1175
  */
1175
1176
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1176
1177
  await this.loadMarkets();
@@ -1327,7 +1328,7 @@ class ndax extends ndax$1 {
1327
1328
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1328
1329
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1329
1330
  * @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
1330
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1331
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1331
1332
  */
1332
1333
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1333
1334
  await this.loadMarkets();
@@ -1442,7 +1443,7 @@ class ndax extends ndax$1 {
1442
1443
  * @param {int} [since] the earliest time in ms to fetch trades for
1443
1444
  * @param {int} [limit] the maximum number of trades structures to retrieve
1444
1445
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1445
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1446
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1446
1447
  */
1447
1448
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1448
1449
  await this.loadMarkets();
@@ -1527,7 +1528,7 @@ class ndax extends ndax$1 {
1527
1528
  * @description cancel all open orders
1528
1529
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1529
1530
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1530
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1531
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1531
1532
  */
1532
1533
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1533
1534
  await this.loadMarkets();
@@ -1562,7 +1563,7 @@ class ndax extends ndax$1 {
1562
1563
  * @param {string} id order id
1563
1564
  * @param {string} symbol unified symbol of the market the order was made in
1564
1565
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1565
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1566
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1566
1567
  */
1567
1568
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1568
1569
  await this.loadMarkets();
@@ -1602,7 +1603,7 @@ class ndax extends ndax$1 {
1602
1603
  * @param {int} [since] the earliest time in ms to fetch open orders for
1603
1604
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1604
1605
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1605
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1606
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1606
1607
  */
1607
1608
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1608
1609
  await this.loadMarkets();
@@ -1680,7 +1681,7 @@ class ndax extends ndax$1 {
1680
1681
  * @param {int} [since] the earliest time in ms to fetch orders for
1681
1682
  * @param {int} [limit] the maximum number of orde structures to retrieve
1682
1683
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1683
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1684
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1684
1685
  */
1685
1686
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1686
1687
  await this.loadMarkets();
@@ -1772,7 +1773,7 @@ class ndax extends ndax$1 {
1772
1773
  * @description fetches information on an order made by the user
1773
1774
  * @param {string} symbol unified symbol of the market the order was made in
1774
1775
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1775
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1776
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1776
1777
  */
1777
1778
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1778
1779
  await this.loadMarkets();
@@ -1850,7 +1851,7 @@ class ndax extends ndax$1 {
1850
1851
  * @param {int} [since] the earliest time in ms to fetch trades for
1851
1852
  * @param {int} [limit] the maximum number of trades to retrieve
1852
1853
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1853
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1854
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1854
1855
  */
1855
1856
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1856
1857
  await this.loadMarkets();
@@ -1929,7 +1930,7 @@ class ndax extends ndax$1 {
1929
1930
  * @description fetch the deposit address for a currency associated with this account
1930
1931
  * @param {string} code unified currency code
1931
1932
  * @param {object} [params] extra parameters specific to the ndax api endpoint
1932
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1933
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1933
1934
  */
1934
1935
  const omsId = this.safeInteger(this.options, 'omsId', 1);
1935
1936
  await this.loadMarkets();
@@ -2001,7 +2002,7 @@ class ndax extends ndax$1 {
2001
2002
  * @description create a currency deposit address
2002
2003
  * @param {string} code unified currency code of the currency for the deposit address
2003
2004
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2004
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
2005
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2005
2006
  */
2006
2007
  const request = {
2007
2008
  'GenerateNewKey': true,
@@ -2018,7 +2019,7 @@ class ndax extends ndax$1 {
2018
2019
  * @param {int} [since] not used by ndax fetchDeposits
2019
2020
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2020
2021
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2021
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2022
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2022
2023
  */
2023
2024
  const omsId = this.safeInteger(this.options, 'omsId', 1);
2024
2025
  await this.loadMarkets();
@@ -2077,7 +2078,7 @@ class ndax extends ndax$1 {
2077
2078
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2078
2079
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2079
2080
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2080
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2081
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2081
2082
  */
2082
2083
  const omsId = this.safeInteger(this.options, 'omsId', 1);
2083
2084
  await this.loadMarkets();
@@ -2277,7 +2278,7 @@ class ndax extends ndax$1 {
2277
2278
  * @param {string} address the address to withdraw to
2278
2279
  * @param {string} tag
2279
2280
  * @param {object} [params] extra parameters specific to the ndax api endpoint
2280
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2281
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2281
2282
  */
2282
2283
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2283
2284
  // this method required login, password and twofa key