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
@@ -34,16 +34,17 @@ class luno extends luno$1 {
34
34
  'createReduceOnlyOrder': false,
35
35
  'fetchAccounts': true,
36
36
  'fetchBalance': true,
37
- 'fetchBorrowRate': false,
38
37
  'fetchBorrowRateHistory': false,
39
- 'fetchBorrowRates': false,
40
- 'fetchBorrowRatesPerSymbol': false,
41
38
  'fetchClosedOrders': true,
39
+ 'fetchCrossBorrowRate': false,
40
+ 'fetchCrossBorrowRates': false,
42
41
  'fetchFundingHistory': false,
43
42
  'fetchFundingRate': false,
44
43
  'fetchFundingRateHistory': false,
45
44
  'fetchFundingRates': false,
46
45
  'fetchIndexOHLCV': false,
46
+ 'fetchIsolatedBorrowRate': false,
47
+ 'fetchIsolatedBorrowRates': false,
47
48
  'fetchLedger': true,
48
49
  'fetchLeverage': false,
49
50
  'fetchLeverageTiers': false,
@@ -252,7 +253,7 @@ class luno extends luno$1 {
252
253
  * @name luno#fetchAccounts
253
254
  * @description fetch all the accounts associated with a profile
254
255
  * @param {object} [params] extra parameters specific to the luno api endpoint
255
- * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
256
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
256
257
  */
257
258
  const response = await this.privateGetBalance(params);
258
259
  const wallets = this.safeValue(response, 'balance', []);
@@ -306,7 +307,7 @@ class luno extends luno$1 {
306
307
  * @name luno#fetchBalance
307
308
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
308
309
  * @param {object} [params] extra parameters specific to the luno api endpoint
309
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
310
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
310
311
  */
311
312
  await this.loadMarkets();
312
313
  const response = await this.privateGetBalance(params);
@@ -330,7 +331,7 @@ class luno extends luno$1 {
330
331
  * @param {string} symbol unified symbol of the market to fetch the order book for
331
332
  * @param {int} [limit] the maximum amount of order book entries to return
332
333
  * @param {object} [params] extra parameters specific to the luno api endpoint
333
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
334
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
334
335
  */
335
336
  await this.loadMarkets();
336
337
  let method = 'publicGetOrderbook';
@@ -437,7 +438,7 @@ class luno extends luno$1 {
437
438
  * @description fetches information on an order made by the user
438
439
  * @param {string} symbol not used by luno fetchOrder
439
440
  * @param {object} [params] extra parameters specific to the luno api endpoint
440
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
441
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
441
442
  */
442
443
  await this.loadMarkets();
443
444
  const request = {
@@ -470,7 +471,7 @@ class luno extends luno$1 {
470
471
  * @param {int} [since] the earliest time in ms to fetch orders for
471
472
  * @param {int} [limit] the maximum number of orde structures to retrieve
472
473
  * @param {object} [params] extra parameters specific to the luno api endpoint
473
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
474
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
474
475
  */
475
476
  return await this.fetchOrdersByState(undefined, symbol, since, limit, params);
476
477
  }
@@ -483,7 +484,7 @@ class luno extends luno$1 {
483
484
  * @param {int} [since] the earliest time in ms to fetch open orders for
484
485
  * @param {int} [limit] the maximum number of open orders structures to retrieve
485
486
  * @param {object} [params] extra parameters specific to the luno api endpoint
486
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
487
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
487
488
  */
488
489
  return await this.fetchOrdersByState('PENDING', symbol, since, limit, params);
489
490
  }
@@ -496,7 +497,7 @@ class luno extends luno$1 {
496
497
  * @param {int} [since] the earliest time in ms to fetch orders for
497
498
  * @param {int} [limit] the maximum number of orde structures to retrieve
498
499
  * @param {object} [params] extra parameters specific to the luno api endpoint
499
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
500
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
500
501
  */
501
502
  return await this.fetchOrdersByState('COMPLETE', symbol, since, limit, params);
502
503
  }
@@ -544,7 +545,7 @@ class luno extends luno$1 {
544
545
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
545
546
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
546
547
  * @param {object} [params] extra parameters specific to the luno api endpoint
547
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
548
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
548
549
  */
549
550
  await this.loadMarkets();
550
551
  symbols = this.marketSymbols(symbols);
@@ -568,7 +569,7 @@ class luno extends luno$1 {
568
569
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
569
570
  * @param {string} symbol unified symbol of the market to fetch the ticker for
570
571
  * @param {object} [params] extra parameters specific to the luno api endpoint
571
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
572
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
572
573
  */
573
574
  await this.loadMarkets();
574
575
  const market = this.market(symbol);
@@ -691,7 +692,7 @@ class luno extends luno$1 {
691
692
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
692
693
  * @param {int} [limit] the maximum amount of trades to fetch
693
694
  * @param {object} [params] extra parameters specific to the luno api endpoint
694
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
695
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
695
696
  */
696
697
  await this.loadMarkets();
697
698
  const market = this.market(symbol);
@@ -727,9 +728,11 @@ class luno extends luno$1 {
727
728
  * @param {int} [since] the earliest time in ms to fetch trades for
728
729
  * @param {int} [limit] the maximum number of trades structures to retrieve
729
730
  * @param {object} [params] extra parameters specific to the luno api endpoint
730
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
731
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
731
732
  */
732
- this.checkRequiredSymbol('fetchMyTrades', symbol);
733
+ if (symbol === undefined) {
734
+ throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
735
+ }
733
736
  await this.loadMarkets();
734
737
  const market = this.market(symbol);
735
738
  const request = {
@@ -773,7 +776,7 @@ class luno extends luno$1 {
773
776
  * @description fetch the trading fees for a market
774
777
  * @param {string} symbol unified market symbol
775
778
  * @param {object} [params] extra parameters specific to the luno api endpoint
776
- * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
779
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
777
780
  */
778
781
  await this.loadMarkets();
779
782
  const market = this.market(symbol);
@@ -806,7 +809,7 @@ class luno extends luno$1 {
806
809
  * @param {float} amount how much of currency you want to trade in units of base currency
807
810
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
808
811
  * @param {object} [params] extra parameters specific to the luno api endpoint
809
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
812
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
810
813
  */
811
814
  await this.loadMarkets();
812
815
  let method = 'privatePost';
@@ -845,7 +848,7 @@ class luno extends luno$1 {
845
848
  * @param {string} id order id
846
849
  * @param {string} symbol unified symbol of the market the order was made in
847
850
  * @param {object} [params] extra parameters specific to the luno api endpoint
848
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
851
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
849
852
  */
850
853
  await this.loadMarkets();
851
854
  const request = {
@@ -877,7 +880,7 @@ class luno extends luno$1 {
877
880
  * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
878
881
  * @param {int} [limit] max number of ledger entrys to return, default is undefined
879
882
  * @param {object} [params] extra parameters specific to the luno api endpoint
880
- * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
883
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
881
884
  */
882
885
  await this.loadMarkets();
883
886
  await this.loadAccounts();
@@ -36,11 +36,11 @@ class lykke extends lykke$1 {
36
36
  'createStopOrder': false,
37
37
  'editOrder': false,
38
38
  'fetchBalance': true,
39
- 'fetchBorrowRate': false,
40
39
  'fetchBorrowRateHistories': false,
41
40
  'fetchBorrowRateHistory': false,
42
- 'fetchBorrowRates': false,
43
41
  'fetchClosedOrders': true,
42
+ 'fetchCrossBorrowRate': false,
43
+ 'fetchCrossBorrowRates': false,
44
44
  'fetchCurrencies': true,
45
45
  'fetchDepositAddress': true,
46
46
  'fetchDeposits': false,
@@ -50,6 +50,8 @@ class lykke extends lykke$1 {
50
50
  'fetchFundingRateHistory': false,
51
51
  'fetchFundingRates': false,
52
52
  'fetchIndexOHLCV': false,
53
+ 'fetchIsolatedBorrowRate': false,
54
+ 'fetchIsolatedBorrowRates': false,
53
55
  'fetchMarginMode': false,
54
56
  'fetchMarkets': true,
55
57
  'fetchMarkOHLCV': false,
@@ -421,7 +423,7 @@ class lykke extends lykke$1 {
421
423
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
422
424
  * @param {string} symbol unified symbol of the market to fetch the ticker for
423
425
  * @param {object} [params] extra parameters specific to the lykke api endpoint
424
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
426
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
425
427
  */
426
428
  await this.loadMarkets();
427
429
  const market = this.market(symbol);
@@ -474,7 +476,7 @@ class lykke extends lykke$1 {
474
476
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
475
477
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
476
478
  * @param {object} [params] extra parameters specific to the lykke api endpoint
477
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
479
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
478
480
  */
479
481
  await this.loadMarkets();
480
482
  const response = await this.publicGetTickers(params);
@@ -506,7 +508,7 @@ class lykke extends lykke$1 {
506
508
  * @param {string} symbol unified symbol of the market to fetch the order book for
507
509
  * @param {int} [limit] the maximum amount of order book entries to return
508
510
  * @param {object} [params] extra parameters specific to the lykke api endpoint
509
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
511
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
510
512
  */
511
513
  await this.loadMarkets();
512
514
  const market = this.market(symbol);
@@ -611,7 +613,7 @@ class lykke extends lykke$1 {
611
613
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
612
614
  * @param {int} [limit] the maximum amount of trades to fetch
613
615
  * @param {object} [params] extra parameters specific to the lykke api endpoint
614
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
616
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
615
617
  */
616
618
  await this.loadMarkets();
617
619
  const market = this.market(symbol);
@@ -672,7 +674,7 @@ class lykke extends lykke$1 {
672
674
  * @name lykke#fetchBalance
673
675
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
674
676
  * @param {object} [params] extra parameters specific to the lykke api endpoint
675
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
677
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
676
678
  */
677
679
  await this.loadMarkets();
678
680
  const response = await this.privateGetBalance(params);
@@ -772,7 +774,7 @@ class lykke extends lykke$1 {
772
774
  * @param {float} amount how much of currency you want to trade in units of base currency
773
775
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
774
776
  * @param {object} [params] extra parameters specific to the lykke api endpoint
775
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
777
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
776
778
  */
777
779
  await this.loadMarkets();
778
780
  const market = this.market(symbol);
@@ -840,7 +842,7 @@ class lykke extends lykke$1 {
840
842
  * @param {string} id order id
841
843
  * @param {string} symbol unified symbol of the market the order was made in
842
844
  * @param {object} [params] extra parameters specific to the lykke api endpoint
843
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
845
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
844
846
  */
845
847
  const request = {
846
848
  'orderId': id,
@@ -860,7 +862,7 @@ class lykke extends lykke$1 {
860
862
  * @description cancel all open orders
861
863
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
862
864
  * @param {object} [params] extra parameters specific to the lykke api endpoint
863
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
865
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
864
866
  */
865
867
  await this.loadMarkets();
866
868
  const request = {
@@ -886,7 +888,7 @@ class lykke extends lykke$1 {
886
888
  * @description fetches information on an order made by the user
887
889
  * @param {string} symbol not used by lykke fetchOrder
888
890
  * @param {object} [params] extra parameters specific to the lykke api endpoint
889
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
891
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
890
892
  */
891
893
  await this.loadMarkets();
892
894
  const request = {
@@ -924,7 +926,7 @@ class lykke extends lykke$1 {
924
926
  * @param {int} [since] the earliest time in ms to fetch open orders for
925
927
  * @param {int} [limit] the maximum number of open orders structures to retrieve
926
928
  * @param {object} [params] extra parameters specific to the lykke api endpoint
927
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
929
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
928
930
  */
929
931
  await this.loadMarkets();
930
932
  let market = undefined;
@@ -972,7 +974,7 @@ class lykke extends lykke$1 {
972
974
  * @param {int} [since] the earliest time in ms to fetch orders for
973
975
  * @param {int} [limit] the maximum number of orde structures to retrieve
974
976
  * @param {object} [params] extra parameters specific to the lykke api endpoint
975
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
977
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
976
978
  */
977
979
  await this.loadMarkets();
978
980
  let market = undefined;
@@ -1020,7 +1022,7 @@ class lykke extends lykke$1 {
1020
1022
  * @param {int} [since] the earliest time in ms to fetch trades for
1021
1023
  * @param {int} [limit] the maximum number of trades structures to retrieve
1022
1024
  * @param {object} [params] extra parameters specific to the lykke api endpoint
1023
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1025
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1024
1026
  */
1025
1027
  await this.loadMarkets();
1026
1028
  const request = {
@@ -1077,7 +1079,7 @@ class lykke extends lykke$1 {
1077
1079
  * @description fetch the deposit address for a currency associated with this account
1078
1080
  * @param {string} code unified currency code
1079
1081
  * @param {object} [params] extra parameters specific to the lykke api endpoint
1080
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1082
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1081
1083
  */
1082
1084
  await this.loadMarkets();
1083
1085
  const currency = this.currency(code);
@@ -1176,7 +1178,7 @@ class lykke extends lykke$1 {
1176
1178
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
1177
1179
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
1178
1180
  * @param {object} [params] extra parameters specific to the lykke api endpoint
1179
- * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1181
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1180
1182
  */
1181
1183
  await this.loadMarkets();
1182
1184
  const request = {
@@ -1219,7 +1221,7 @@ class lykke extends lykke$1 {
1219
1221
  * @param {string} address the address to withdraw to
1220
1222
  * @param {string} tag
1221
1223
  * @param {object} [params] extra parameters specific to the lykke api endpoint
1222
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1224
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1223
1225
  */
1224
1226
  await this.loadMarkets();
1225
1227
  this.checkAddress(address);
@@ -35,15 +35,16 @@ class mercado extends mercado$1 {
35
35
  'createStopMarketOrder': false,
36
36
  'createStopOrder': false,
37
37
  'fetchBalance': true,
38
- 'fetchBorrowRate': false,
39
38
  'fetchBorrowRateHistory': false,
40
- 'fetchBorrowRates': false,
41
- 'fetchBorrowRatesPerSymbol': false,
39
+ 'fetchCrossBorrowRate': false,
40
+ 'fetchCrossBorrowRates': false,
42
41
  'fetchFundingHistory': false,
43
42
  'fetchFundingRate': false,
44
43
  'fetchFundingRateHistory': false,
45
44
  'fetchFundingRates': false,
46
45
  'fetchIndexOHLCV': false,
46
+ 'fetchIsolatedBorrowRate': false,
47
+ 'fetchIsolatedBorrowRates': false,
47
48
  'fetchLeverage': false,
48
49
  'fetchLeverageTiers': false,
49
50
  'fetchMarginMode': false,
@@ -250,7 +251,7 @@ class mercado extends mercado$1 {
250
251
  * @param {string} symbol unified symbol of the market to fetch the order book for
251
252
  * @param {int} [limit] the maximum amount of order book entries to return
252
253
  * @param {object} [params] extra parameters specific to the mercado api endpoint
253
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
254
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
254
255
  */
255
256
  await this.loadMarkets();
256
257
  const market = this.market(symbol);
@@ -306,7 +307,7 @@ class mercado extends mercado$1 {
306
307
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
307
308
  * @param {string} symbol unified symbol of the market to fetch the ticker for
308
309
  * @param {object} [params] extra parameters specific to the mercado api endpoint
309
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
310
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
310
311
  */
311
312
  await this.loadMarkets();
312
313
  const market = this.market(symbol);
@@ -372,7 +373,7 @@ class mercado extends mercado$1 {
372
373
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
373
374
  * @param {int} [limit] the maximum amount of trades to fetch
374
375
  * @param {object} [params] extra parameters specific to the mercado api endpoint
375
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
376
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
376
377
  */
377
378
  await this.loadMarkets();
378
379
  const market = this.market(symbol);
@@ -415,7 +416,7 @@ class mercado extends mercado$1 {
415
416
  * @name mercado#fetchBalance
416
417
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
417
418
  * @param {object} [params] extra parameters specific to the mercado api endpoint
418
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
419
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
419
420
  */
420
421
  await this.loadMarkets();
421
422
  const response = await this.privatePostGetAccountInfo(params);
@@ -432,7 +433,7 @@ class mercado extends mercado$1 {
432
433
  * @param {float} amount how much of currency you want to trade in units of base currency
433
434
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
434
435
  * @param {object} [params] extra parameters specific to the mercado api endpoint
435
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
436
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
436
437
  */
437
438
  await this.loadMarkets();
438
439
  const market = this.market(symbol);
@@ -472,9 +473,11 @@ class mercado extends mercado$1 {
472
473
  * @param {string} id order id
473
474
  * @param {string} symbol unified symbol of the market the order was made in
474
475
  * @param {object} [params] extra parameters specific to the mercado api endpoint
475
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
476
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
476
477
  */
477
- this.checkRequiredSymbol('cancelOrder', symbol);
478
+ if (symbol === undefined) {
479
+ throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
480
+ }
478
481
  await this.loadMarkets();
479
482
  const market = this.market(symbol);
480
483
  const request = {
@@ -596,9 +599,11 @@ class mercado extends mercado$1 {
596
599
  * @description fetches information on an order made by the user
597
600
  * @param {string} symbol unified symbol of the market the order was made in
598
601
  * @param {object} [params] extra parameters specific to the mercado api endpoint
599
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
602
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
600
603
  */
601
- this.checkRequiredSymbol('fetchOrder', symbol);
604
+ if (symbol === undefined) {
605
+ throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
606
+ }
602
607
  await this.loadMarkets();
603
608
  const market = this.market(symbol);
604
609
  const request = {
@@ -620,7 +625,7 @@ class mercado extends mercado$1 {
620
625
  * @param {string} address the address to withdraw to
621
626
  * @param {string} tag
622
627
  * @param {object} [params] extra parameters specific to the mercado api endpoint
623
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
628
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
624
629
  */
625
630
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
626
631
  this.checkAddress(address);
@@ -767,9 +772,11 @@ class mercado extends mercado$1 {
767
772
  * @param {int} [since] the earliest time in ms to fetch orders for
768
773
  * @param {int} [limit] the maximum number of order structures to retrieve
769
774
  * @param {object} [params] extra parameters specific to the mercado api endpoint
770
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
775
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
771
776
  */
772
- this.checkRequiredSymbol('fetchOrders', symbol);
777
+ if (symbol === undefined) {
778
+ throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
779
+ }
773
780
  await this.loadMarkets();
774
781
  const market = this.market(symbol);
775
782
  const request = {
@@ -789,9 +796,11 @@ class mercado extends mercado$1 {
789
796
  * @param {int} [since] the earliest time in ms to fetch open orders for
790
797
  * @param {int} [limit] the maximum number of open order structures to retrieve
791
798
  * @param {object} [params] extra parameters specific to the mercado api endpoint
792
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
799
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
793
800
  */
794
- this.checkRequiredSymbol('fetchOpenOrders', symbol);
801
+ if (symbol === undefined) {
802
+ throw new errors.ArgumentsRequired(this.id + ' fetchOpenOrders() requires a symbol argument');
803
+ }
795
804
  await this.loadMarkets();
796
805
  const market = this.market(symbol);
797
806
  const request = {
@@ -812,9 +821,11 @@ class mercado extends mercado$1 {
812
821
  * @param {int} [since] the earliest time in ms to fetch trades for
813
822
  * @param {int} [limit] the maximum number of trades structures to retrieve
814
823
  * @param {object} [params] extra parameters specific to the mercado api endpoint
815
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
824
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
816
825
  */
817
- this.checkRequiredSymbol('fetchMyTrades', symbol);
826
+ if (symbol === undefined) {
827
+ throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
828
+ }
818
829
  await this.loadMarkets();
819
830
  const market = this.market(symbol);
820
831
  const request = {