ccxt 4.1.56 → 4.1.58

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 (318) hide show
  1. package/.git-templates/hooks/pre-push +2 -2
  2. package/README.md +3 -3
  3. package/build.sh +30 -18
  4. package/dist/ccxt.browser.js +3893 -3214
  5. package/dist/ccxt.browser.min.js +10 -10
  6. package/dist/cjs/ccxt.js +1 -1
  7. package/dist/cjs/src/ace.js +17 -13
  8. package/dist/cjs/src/alpaca.js +6 -6
  9. package/dist/cjs/src/ascendex.js +35 -29
  10. package/dist/cjs/src/base/Exchange.js +39 -26
  11. package/dist/cjs/src/base/Precise.js +1 -3
  12. package/dist/cjs/src/base/ws/Client.js +1 -1
  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 +16 -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 +110 -89
  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 +100 -77
  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 +132 -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 +87 -82
  82. package/dist/cjs/src/p2b.js +79 -82
  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 +15 -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/bybit.d.ts +1 -0
  152. package/js/src/abstract/cryptocom.d.ts +0 -20
  153. package/js/src/ace.js +18 -14
  154. package/js/src/alpaca.js +6 -6
  155. package/js/src/ascendex.js +35 -29
  156. package/js/src/base/Exchange.d.ts +37 -34
  157. package/js/src/base/Exchange.js +39 -26
  158. package/js/src/base/Precise.d.ts +4 -4
  159. package/js/src/base/Precise.js +1 -3
  160. package/js/src/base/functions/type.d.ts +25 -25
  161. package/js/src/base/types.d.ts +21 -14
  162. package/js/src/base/ws/Client.js +1 -1
  163. package/js/src/bigone.js +25 -21
  164. package/js/src/binance.d.ts +2 -2
  165. package/js/src/binance.js +97 -76
  166. package/js/src/bingx.js +63 -44
  167. package/js/src/bit2c.js +19 -16
  168. package/js/src/bitbank.js +16 -15
  169. package/js/src/bitbns.js +28 -18
  170. package/js/src/bitfinex.js +23 -21
  171. package/js/src/bitfinex2.js +32 -28
  172. package/js/src/bitflyer.js +28 -20
  173. package/js/src/bitforex.js +26 -19
  174. package/js/src/bitget.d.ts +25 -3
  175. package/js/src/bitget.js +184 -147
  176. package/js/src/bithumb.js +23 -16
  177. package/js/src/bitmart.d.ts +1 -1
  178. package/js/src/bitmart.js +110 -89
  179. package/js/src/bitmex.d.ts +2 -2
  180. package/js/src/bitmex.js +104 -64
  181. package/js/src/bitopro.js +38 -26
  182. package/js/src/bitpanda.js +24 -23
  183. package/js/src/bitrue.js +33 -24
  184. package/js/src/bitso.js +24 -23
  185. package/js/src/bitstamp.d.ts +2 -2
  186. package/js/src/bitstamp.js +24 -23
  187. package/js/src/bittrex.js +30 -29
  188. package/js/src/bitvavo.js +38 -30
  189. package/js/src/bl3p.js +11 -10
  190. package/js/src/blockchaincom.js +20 -20
  191. package/js/src/btcalpha.js +18 -17
  192. package/js/src/btcbox.js +13 -12
  193. package/js/src/btcmarkets.js +20 -19
  194. package/js/src/btcturk.js +14 -13
  195. package/js/src/bybit.d.ts +1 -1
  196. package/js/src/bybit.js +84 -54
  197. package/js/src/cex.js +16 -14
  198. package/js/src/coinbase.js +29 -27
  199. package/js/src/coinbasepro.js +27 -25
  200. package/js/src/coincheck.js +15 -14
  201. package/js/src/coinex.d.ts +1 -1
  202. package/js/src/coinex.js +100 -77
  203. package/js/src/coinlist.js +28 -27
  204. package/js/src/coinmate.js +21 -18
  205. package/js/src/coinone.js +21 -16
  206. package/js/src/coinsph.js +37 -28
  207. package/js/src/coinspot.js +12 -11
  208. package/js/src/cryptocom.d.ts +0 -23
  209. package/js/src/cryptocom.js +40 -202
  210. package/js/src/currencycom.js +32 -25
  211. package/js/src/delta.js +35 -29
  212. package/js/src/deribit.js +39 -36
  213. package/js/src/digifinex.d.ts +2 -2
  214. package/js/src/digifinex.js +65 -45
  215. package/js/src/exmo.js +29 -27
  216. package/js/src/gate.d.ts +1 -1
  217. package/js/src/gate.js +67 -53
  218. package/js/src/gemini.js +23 -20
  219. package/js/src/hitbtc.d.ts +1 -0
  220. package/js/src/hitbtc.js +65 -56
  221. package/js/src/hollaex.js +30 -27
  222. package/js/src/htx.d.ts +11 -3
  223. package/js/src/htx.js +132 -143
  224. package/js/src/huobijp.js +23 -21
  225. package/js/src/idex.js +22 -21
  226. package/js/src/independentreserve.js +15 -14
  227. package/js/src/indodax.js +30 -26
  228. package/js/src/kraken.js +29 -27
  229. package/js/src/krakenfutures.js +29 -22
  230. package/js/src/kucoin.d.ts +1 -1
  231. package/js/src/kucoin.js +48 -43
  232. package/js/src/kucoinfutures.js +33 -28
  233. package/js/src/kuna.js +25 -24
  234. package/js/src/latoken.js +25 -23
  235. package/js/src/lbank.js +46 -31
  236. package/js/src/luno.js +22 -19
  237. package/js/src/lykke.js +19 -17
  238. package/js/src/mercado.js +30 -19
  239. package/js/src/mexc.d.ts +1 -1
  240. package/js/src/mexc.js +60 -49
  241. package/js/src/ndax.js +23 -22
  242. package/js/src/novadax.js +23 -22
  243. package/js/src/oceanex.js +22 -19
  244. package/js/src/okcoin.js +29 -23
  245. package/js/src/okx.d.ts +2 -2
  246. package/js/src/okx.js +87 -82
  247. package/js/src/p2b.d.ts +8 -7
  248. package/js/src/p2b.js +79 -81
  249. package/js/src/paymium.js +10 -10
  250. package/js/src/phemex.js +63 -40
  251. package/js/src/poloniex.js +22 -22
  252. package/js/src/poloniexfutures.js +23 -19
  253. package/js/src/pro/alpaca.js +5 -5
  254. package/js/src/pro/ascendex.js +4 -4
  255. package/js/src/pro/binance.js +16 -16
  256. package/js/src/pro/bingx.js +1 -1
  257. package/js/src/pro/bitfinex.js +4 -4
  258. package/js/src/pro/bitfinex2.d.ts +1 -1
  259. package/js/src/pro/bitfinex2.js +6 -6
  260. package/js/src/pro/bitget.js +7 -7
  261. package/js/src/pro/bitmart.js +7 -5
  262. package/js/src/pro/bitmex.js +6 -6
  263. package/js/src/pro/bitopro.js +4 -4
  264. package/js/src/pro/bitpanda.js +6 -6
  265. package/js/src/pro/bitrue.js +2 -2
  266. package/js/src/pro/bitstamp.js +7 -5
  267. package/js/src/pro/bittrex.js +15 -6
  268. package/js/src/pro/bitvavo.js +12 -8
  269. package/js/src/pro/blockchaincom.js +8 -8
  270. package/js/src/pro/bybit.js +7 -7
  271. package/js/src/pro/cex.js +14 -10
  272. package/js/src/pro/coinbase.js +5 -5
  273. package/js/src/pro/coinbasepro.js +12 -11
  274. package/js/src/pro/coinex.js +7 -9
  275. package/js/src/pro/cryptocom.js +9 -9
  276. package/js/src/pro/currencycom.js +4 -4
  277. package/js/src/pro/deribit.js +6 -6
  278. package/js/src/pro/exmo.js +12 -14
  279. package/js/src/pro/gate.js +7 -7
  280. package/js/src/pro/gemini.js +3 -3
  281. package/js/src/pro/hitbtc.d.ts +8 -1
  282. package/js/src/pro/hitbtc.js +264 -5
  283. package/js/src/pro/hollaex.js +5 -5
  284. package/js/src/pro/htx.js +6 -6
  285. package/js/src/pro/huobijp.js +3 -3
  286. package/js/src/pro/idex.js +4 -4
  287. package/js/src/pro/independentreserve.js +2 -2
  288. package/js/src/pro/kraken.js +10 -10
  289. package/js/src/pro/krakenfutures.d.ts +1 -0
  290. package/js/src/pro/krakenfutures.js +42 -18
  291. package/js/src/pro/kucoin.js +7 -7
  292. package/js/src/pro/kucoinfutures.js +8 -6
  293. package/js/src/pro/luno.js +2 -2
  294. package/js/src/pro/mexc.js +6 -6
  295. package/js/src/pro/ndax.js +3 -3
  296. package/js/src/pro/okcoin.js +5 -5
  297. package/js/src/pro/okx.js +12 -12
  298. package/js/src/pro/phemex.js +6 -6
  299. package/js/src/pro/poloniex.js +7 -7
  300. package/js/src/pro/poloniexfutures.js +5 -5
  301. package/js/src/pro/probit.js +6 -6
  302. package/js/src/pro/upbit.js +3 -3
  303. package/js/src/pro/wazirx.js +8 -8
  304. package/js/src/pro/whitebit.js +13 -9
  305. package/js/src/pro/woo.js +1 -1
  306. package/js/src/probit.js +29 -24
  307. package/js/src/tidex.js +16 -15
  308. package/js/src/timex.js +19 -18
  309. package/js/src/tokocrypto.js +28 -23
  310. package/js/src/upbit.js +19 -19
  311. package/js/src/wavesexchange.js +23 -20
  312. package/js/src/wazirx.js +25 -18
  313. package/js/src/whitebit.js +33 -27
  314. package/js/src/woo.js +45 -35
  315. package/js/src/yobit.js +25 -20
  316. package/js/src/zaif.js +9 -9
  317. package/js/src/zonda.js +18 -17
  318. package/package.json +1 -1
@@ -48,14 +48,13 @@ export default class coinlist extends Exchange {
48
48
  'fetchBalance': true,
49
49
  'fetchBidsAsks': false,
50
50
  'fetchBorrowInterest': false,
51
- 'fetchBorrowRate': false,
52
51
  'fetchBorrowRateHistories': false,
53
52
  'fetchBorrowRateHistory': false,
54
- 'fetchBorrowRates': false,
55
- 'fetchBorrowRatesPerSymbol': false,
56
53
  'fetchCanceledOrders': true,
57
54
  'fetchClosedOrder': false,
58
55
  'fetchClosedOrders': true,
56
+ 'fetchCrossBorrowRate': false,
57
+ 'fetchCrossBorrowRates': false,
59
58
  'fetchCurrencies': true,
60
59
  'fetchDeposit': false,
61
60
  'fetchDepositAddress': false,
@@ -70,6 +69,8 @@ export default class coinlist extends Exchange {
70
69
  'fetchFundingRateHistory': false,
71
70
  'fetchFundingRates': false,
72
71
  'fetchIndexOHLCV': false,
72
+ 'fetchIsolatedBorrowRate': false,
73
+ 'fetchIsolatedBorrowRates': false,
73
74
  'fetchL3OrderBook': false,
74
75
  'fetchLedger': true,
75
76
  'fetchLeverage': false,
@@ -484,7 +485,7 @@ export default class coinlist extends Exchange {
484
485
  * @see https://trade-docs.coinlist.co/?javascript--nodejs#get-symbol-summaries
485
486
  * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
486
487
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
487
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
488
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
488
489
  */
489
490
  await this.loadMarkets();
490
491
  const request = {};
@@ -521,7 +522,7 @@ export default class coinlist extends Exchange {
521
522
  * @see https://trade-docs.coinlist.co/?javascript--nodejs#get-market-summary
522
523
  * @param {string} symbol unified symbol of the market to fetch the ticker for
523
524
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
524
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
525
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
525
526
  */
526
527
  await this.loadMarkets();
527
528
  const market = this.market(symbol);
@@ -613,7 +614,7 @@ export default class coinlist extends Exchange {
613
614
  * @param {string} symbol unified symbol of the market to fetch the order book for
614
615
  * @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
615
616
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
616
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
617
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
617
618
  */
618
619
  await this.loadMarkets();
619
620
  const market = this.market(symbol);
@@ -739,7 +740,7 @@ export default class coinlist extends Exchange {
739
740
  * @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
740
741
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
741
742
  * @param {int} [params.until] the latest time in ms to fetch entries for
742
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
743
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
743
744
  */
744
745
  await this.loadMarkets();
745
746
  const market = this.market(symbol);
@@ -870,7 +871,7 @@ export default class coinlist extends Exchange {
870
871
  * @description fetch the trading fees for multiple markets
871
872
  * @see https://trade-docs.coinlist.co/?javascript--nodejs#list-fees
872
873
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
873
- * @returns {object} a dictionary of [fee structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure} indexed by market symbols
874
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
874
875
  */
875
876
  await this.loadMarkets();
876
877
  const response = await this.privateGetV1Fees(params);
@@ -1051,7 +1052,7 @@ export default class coinlist extends Exchange {
1051
1052
  * @description fetch all the accounts associated with a profile
1052
1053
  * @see https://trade-docs.coinlist.co/?javascript--nodejs#list-accounts
1053
1054
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1054
- * @returns {object} a dictionary of [account structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#account-structure} indexed by the account type
1055
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
1055
1056
  */
1056
1057
  await this.loadMarkets();
1057
1058
  const response = await this.privateGetV1Accounts(params);
@@ -1089,7 +1090,7 @@ export default class coinlist extends Exchange {
1089
1090
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
1090
1091
  * @see https://trade-docs.coinlist.co/?javascript--nodejs#list-balances
1091
1092
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1092
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1093
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1093
1094
  */
1094
1095
  await this.loadMarkets();
1095
1096
  const response = await this.privateGetV1Balances(params);
@@ -1139,7 +1140,7 @@ export default class coinlist extends Exchange {
1139
1140
  * @param {int} [limit] the maximum number of trades structures to retrieve (default 200, max 500)
1140
1141
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1141
1142
  * @param {int} [params.until] the latest time in ms to fetch entries for
1142
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1143
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1143
1144
  */
1144
1145
  await this.loadMarkets();
1145
1146
  const request = {};
@@ -1202,7 +1203,7 @@ export default class coinlist extends Exchange {
1202
1203
  * @param {int} [since] the earliest time in ms to fetch trades for
1203
1204
  * @param {int} [limit] the maximum number of trades to retrieve
1204
1205
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1205
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1206
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1206
1207
  */
1207
1208
  const request = {
1208
1209
  'order_id': id,
@@ -1221,7 +1222,7 @@ export default class coinlist extends Exchange {
1221
1222
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1222
1223
  * @param {int} [params.until] the latest time in ms to fetch entries for
1223
1224
  * @param {string|string[]} [params.status] the status of the order - 'accepted', 'done', 'canceled', 'rejected', 'pending' (default [ 'accepted', 'done', 'canceled', 'rejected', 'pending' ])
1224
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1225
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1225
1226
  */
1226
1227
  await this.loadMarkets();
1227
1228
  let status = this.safeString(params, 'status');
@@ -1286,7 +1287,7 @@ export default class coinlist extends Exchange {
1286
1287
  * @param {int|string} id order id
1287
1288
  * @param {string} symbol not used by coinlist fetchOrder ()
1288
1289
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1289
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1290
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1290
1291
  */
1291
1292
  await this.loadMarkets();
1292
1293
  const request = {
@@ -1330,7 +1331,7 @@ export default class coinlist extends Exchange {
1330
1331
  * @param {int} [limit] the maximum number of open order structures to retrieve (default 200, max 500)
1331
1332
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1332
1333
  * @param {int} [params.until] the latest time in ms to fetch entries for
1333
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1334
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1334
1335
  */
1335
1336
  await this.loadMarkets();
1336
1337
  const request = {
@@ -1349,7 +1350,7 @@ export default class coinlist extends Exchange {
1349
1350
  * @param {int} [limit] the maximum number of closed order structures to retrieve (default 200, max 500)
1350
1351
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1351
1352
  * @param {int} [params.until] the latest time in ms to fetch entries for
1352
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1353
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1353
1354
  */
1354
1355
  await this.loadMarkets();
1355
1356
  const request = {
@@ -1368,7 +1369,7 @@ export default class coinlist extends Exchange {
1368
1369
  * @param {int} [limit] the maximum number of canceled order structures to retrieve (default 200, max 500)
1369
1370
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1370
1371
  * @param {int} [params.until] the latest time in ms to fetch entries for
1371
- * @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1372
+ * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1372
1373
  */
1373
1374
  await this.loadMarkets();
1374
1375
  const request = {
@@ -1384,7 +1385,7 @@ export default class coinlist extends Exchange {
1384
1385
  * @see https://trade-docs.coinlist.co/?javascript--nodejs#cancel-all-orders
1385
1386
  * @param {string} symbol unified market symbol
1386
1387
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1387
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1388
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1388
1389
  */
1389
1390
  await this.loadMarkets();
1390
1391
  let market = undefined;
@@ -1412,7 +1413,7 @@ export default class coinlist extends Exchange {
1412
1413
  * @param {string} id order id
1413
1414
  * @param {string} symbol not used by coinlist cancelOrder ()
1414
1415
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1415
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1416
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1416
1417
  */
1417
1418
  await this.loadMarkets();
1418
1419
  const request = {
@@ -1437,7 +1438,7 @@ export default class coinlist extends Exchange {
1437
1438
  * @param {string[]} ids order ids
1438
1439
  * @param {string} symbol not used by coinlist cancelOrders ()
1439
1440
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1440
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1441
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1441
1442
  */
1442
1443
  await this.loadMarkets();
1443
1444
  params = ids;
@@ -1459,7 +1460,7 @@ export default class coinlist extends Exchange {
1459
1460
  * @param {bool} [params.postOnly] if true, the order will only be posted to the order book and not executed immediately (default false)
1460
1461
  * @param {float} [params.triggerPrice] only for the 'stop_market', 'stop_limit', 'take_market' or 'take_limit' orders (the price at which an order is triggered)
1461
1462
  * @param {string} [params.clientOrderId] client order id (default undefined)
1462
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1463
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1463
1464
  */
1464
1465
  await this.loadMarkets();
1465
1466
  const market = this.market(symbol);
@@ -1533,7 +1534,7 @@ export default class coinlist extends Exchange {
1533
1534
  * @param {float} amount how much of currency you want to trade in units of base currency
1534
1535
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1535
1536
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1536
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1537
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1537
1538
  */
1538
1539
  await this.loadMarkets();
1539
1540
  if (amount === undefined) {
@@ -1712,7 +1713,7 @@ export default class coinlist extends Exchange {
1712
1713
  * @param {string} fromAccount account to transfer from
1713
1714
  * @param {string} toAccount account to transfer to
1714
1715
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1715
- * @returns {object} a [transfer structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1716
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1716
1717
  */
1717
1718
  await this.loadMarkets();
1718
1719
  const currency = this.currency(code);
@@ -1764,7 +1765,7 @@ export default class coinlist extends Exchange {
1764
1765
  * @param {int} [limit] the maximum number of transfer structures to retrieve (default 200, max 500)
1765
1766
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1766
1767
  * @param {int} [params.until] the latest time in ms to fetch entries for
1767
- * @returns {object[]} a list of [transfer structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transfer-structure}
1768
+ * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
1768
1769
  */
1769
1770
  await this.loadMarkets();
1770
1771
  let currency = undefined;
@@ -1883,7 +1884,7 @@ export default class coinlist extends Exchange {
1883
1884
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal
1884
1885
  * @param {int} [limit] max number of deposit/withdrawals to return (default 200, max 500)
1885
1886
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1886
- * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1887
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1887
1888
  */
1888
1889
  if (code === undefined) {
1889
1890
  throw new ArgumentsRequired(this.id + ' fetchDepositsWithdrawals() requires a code argument');
@@ -1961,7 +1962,7 @@ export default class coinlist extends Exchange {
1961
1962
  * @param {string} address the address to withdraw to
1962
1963
  * @param {string} tag
1963
1964
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
1964
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1965
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1965
1966
  */
1966
1967
  await this.loadMarkets();
1967
1968
  const currency = this.currency(code);
@@ -2060,7 +2061,7 @@ export default class coinlist extends Exchange {
2060
2061
  * @param {int} [limit] max number of ledger entrys to return (default 200, max 500)
2061
2062
  * @param {object} [params] extra parameters specific to the coinlist api endpoint
2062
2063
  * @param {int} [params.until] the latest time in ms to fetch entries for
2063
- * @returns {object} a [ledger structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ledger-structure}
2064
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
2064
2065
  */
2065
2066
  const traderId = this.safeString2(params, 'trader_id', 'traderId');
2066
2067
  if (traderId === undefined) {
@@ -6,7 +6,7 @@
6
6
 
7
7
  // ---------------------------------------------------------------------------
8
8
  import Exchange from './abstract/coinmate.js';
9
- import { ExchangeError, InvalidOrder, OrderNotFound, RateLimitExceeded, InsufficientFunds, AuthenticationError } from './base/errors.js';
9
+ import { ExchangeError, InvalidOrder, OrderNotFound, RateLimitExceeded, InsufficientFunds, AuthenticationError, ArgumentsRequired } from './base/errors.js';
10
10
  import { Precise } from './base/Precise.js';
11
11
  import { TICK_SIZE } from './base/functions/number.js';
12
12
  import { sha256 } from './static_dependencies/noble-hashes/sha256.js';
@@ -34,17 +34,18 @@ export default class coinmate extends Exchange {
34
34
  'createOrder': true,
35
35
  'createReduceOnlyOrder': false,
36
36
  'fetchBalance': true,
37
- 'fetchBorrowRate': false,
38
37
  'fetchBorrowRateHistories': false,
39
38
  'fetchBorrowRateHistory': false,
40
- 'fetchBorrowRates': false,
41
- 'fetchBorrowRatesPerSymbol': false,
39
+ 'fetchCrossBorrowRate': false,
40
+ 'fetchCrossBorrowRates': false,
42
41
  'fetchDepositsWithdrawals': true,
43
42
  'fetchFundingHistory': false,
44
43
  'fetchFundingRate': false,
45
44
  'fetchFundingRateHistory': false,
46
45
  'fetchFundingRates': false,
47
46
  'fetchIndexOHLCV': false,
47
+ 'fetchIsolatedBorrowRate': false,
48
+ 'fetchIsolatedBorrowRates': false,
48
49
  'fetchLeverage': false,
49
50
  'fetchLeverageTiers': false,
50
51
  'fetchMarginMode': false,
@@ -319,7 +320,7 @@ export default class coinmate extends Exchange {
319
320
  * @name coinmate#fetchBalance
320
321
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
321
322
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
322
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
323
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
323
324
  */
324
325
  await this.loadMarkets();
325
326
  const response = await this.privatePostBalances(params);
@@ -333,7 +334,7 @@ export default class coinmate extends Exchange {
333
334
  * @param {string} symbol unified symbol of the market to fetch the order book for
334
335
  * @param {int} [limit] the maximum amount of order book entries to return
335
336
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
336
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
337
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
337
338
  */
338
339
  await this.loadMarkets();
339
340
  const market = this.market(symbol);
@@ -353,7 +354,7 @@ export default class coinmate extends Exchange {
353
354
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
354
355
  * @param {string} symbol unified symbol of the market to fetch the ticker for
355
356
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
356
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
357
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
357
358
  */
358
359
  await this.loadMarkets();
359
360
  const market = this.market(symbol);
@@ -396,7 +397,7 @@ export default class coinmate extends Exchange {
396
397
  * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
397
398
  * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
398
399
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
399
- * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
400
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
400
401
  */
401
402
  await this.loadMarkets();
402
403
  const request = {
@@ -509,7 +510,7 @@ export default class coinmate extends Exchange {
509
510
  * @param {string} address the address to withdraw to
510
511
  * @param {string} tag
511
512
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
512
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
513
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
513
514
  */
514
515
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
515
516
  this.checkAddress(address);
@@ -561,7 +562,7 @@ export default class coinmate extends Exchange {
561
562
  * @param {int} [since] the earliest time in ms to fetch trades for
562
563
  * @param {int} [limit] the maximum number of trades structures to retrieve
563
564
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
564
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
565
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
565
566
  */
566
567
  await this.loadMarkets();
567
568
  if (limit === undefined) {
@@ -653,7 +654,7 @@ export default class coinmate extends Exchange {
653
654
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
654
655
  * @param {int} [limit] the maximum amount of trades to fetch
655
656
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
656
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
657
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
657
658
  */
658
659
  await this.loadMarkets();
659
660
  const market = this.market(symbol);
@@ -688,7 +689,7 @@ export default class coinmate extends Exchange {
688
689
  * @description fetch the trading fees for a market
689
690
  * @param {string} symbol unified market symbol
690
691
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
691
- * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
692
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
692
693
  */
693
694
  await this.loadMarkets();
694
695
  const market = this.market(symbol);
@@ -726,7 +727,7 @@ export default class coinmate extends Exchange {
726
727
  * @param {int} [since] the earliest time in ms to fetch open orders for
727
728
  * @param {int} [limit] the maximum number of open orders structures to retrieve
728
729
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
729
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
730
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
730
731
  */
731
732
  const response = await this.privatePostOpenOrders(this.extend({}, params));
732
733
  const extension = { 'status': 'open' };
@@ -741,9 +742,11 @@ export default class coinmate extends Exchange {
741
742
  * @param {int} [since] the earliest time in ms to fetch orders for
742
743
  * @param {int} [limit] the maximum number of order structures to retrieve
743
744
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
744
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
745
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
745
746
  */
746
- this.checkRequiredSymbol('fetchOrders', symbol);
747
+ if (symbol === undefined) {
748
+ throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
749
+ }
747
750
  await this.loadMarkets();
748
751
  const market = this.market(symbol);
749
752
  const request = {
@@ -864,7 +867,7 @@ export default class coinmate extends Exchange {
864
867
  * @param {float} amount how much of currency you want to trade in units of base currency
865
868
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
866
869
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
867
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
870
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
868
871
  */
869
872
  await this.loadMarkets();
870
873
  let method = 'privatePost' + this.capitalize(side);
@@ -900,7 +903,7 @@ export default class coinmate extends Exchange {
900
903
  * @description fetches information on an order made by the user
901
904
  * @param {string} symbol unified symbol of the market the order was made in
902
905
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
903
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
906
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
904
907
  */
905
908
  await this.loadMarkets();
906
909
  const request = {
@@ -922,7 +925,7 @@ export default class coinmate extends Exchange {
922
925
  * @param {string} id order id
923
926
  * @param {string} symbol not used by coinmate cancelOrder ()
924
927
  * @param {object} [params] extra parameters specific to the coinmate api endpoint
925
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
928
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
926
929
  */
927
930
  // {"error":false,"errorMessage":null,"data":{"success":true,"remainingAmount":0.01}}
928
931
  const request = { 'orderId': id };
package/js/src/coinone.js CHANGED
@@ -41,18 +41,19 @@ export default class coinone extends Exchange {
41
41
  'createStopMarketOrder': false,
42
42
  'createStopOrder': false,
43
43
  'fetchBalance': true,
44
- 'fetchBorrowRate': false,
45
44
  'fetchBorrowRateHistories': false,
46
45
  'fetchBorrowRateHistory': false,
47
- 'fetchBorrowRates': false,
48
- 'fetchBorrowRatesPerSymbol': false,
49
46
  'fetchClosedOrders': false,
47
+ 'fetchCrossBorrowRate': false,
48
+ 'fetchCrossBorrowRates': false,
50
49
  'fetchDepositAddresses': true,
51
50
  'fetchFundingHistory': false,
52
51
  'fetchFundingRate': false,
53
52
  'fetchFundingRateHistory': false,
54
53
  'fetchFundingRates': false,
55
54
  'fetchIndexOHLCV': false,
55
+ 'fetchIsolatedBorrowRate': false,
56
+ 'fetchIsolatedBorrowRates': false,
56
57
  'fetchLeverage': false,
57
58
  'fetchLeverageTiers': false,
58
59
  'fetchMarginMode': false,
@@ -263,7 +264,7 @@ export default class coinone extends Exchange {
263
264
  * @name coinone#fetchBalance
264
265
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
265
266
  * @param {object} [params] extra parameters specific to the coinone api endpoint
266
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
267
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
267
268
  */
268
269
  await this.loadMarkets();
269
270
  const response = await this.privatePostAccountBalance(params);
@@ -277,7 +278,7 @@ export default class coinone extends Exchange {
277
278
  * @param {string} symbol unified symbol of the market to fetch the order book for
278
279
  * @param {int} [limit] the maximum amount of order book entries to return
279
280
  * @param {object} [params] extra parameters specific to the coinone api endpoint
280
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
281
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
281
282
  */
282
283
  await this.loadMarkets();
283
284
  const market = this.market(symbol);
@@ -296,7 +297,7 @@ export default class coinone extends Exchange {
296
297
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
297
298
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
298
299
  * @param {object} [params] extra parameters specific to the coinone api endpoint
299
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
300
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
300
301
  */
301
302
  await this.loadMarkets();
302
303
  symbols = this.marketSymbols(symbols);
@@ -325,7 +326,7 @@ export default class coinone extends Exchange {
325
326
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
326
327
  * @param {string} symbol unified symbol of the market to fetch the ticker for
327
328
  * @param {object} [params] extra parameters specific to the coinone api endpoint
328
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
329
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
329
330
  */
330
331
  await this.loadMarkets();
331
332
  const market = this.market(symbol);
@@ -464,7 +465,7 @@ export default class coinone extends Exchange {
464
465
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
465
466
  * @param {int} [limit] the maximum amount of trades to fetch
466
467
  * @param {object} [params] extra parameters specific to the coinone api endpoint
467
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
468
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
468
469
  */
469
470
  await this.loadMarkets();
470
471
  const market = this.market(symbol);
@@ -505,7 +506,7 @@ export default class coinone extends Exchange {
505
506
  * @param {float} amount how much of currency you want to trade in units of base currency
506
507
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
507
508
  * @param {object} [params] extra parameters specific to the coinone api endpoint
508
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
509
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
509
510
  */
510
511
  if (type !== 'limit') {
511
512
  throw new ExchangeError(this.id + ' createOrder() allows limit orders only');
@@ -535,9 +536,11 @@ export default class coinone extends Exchange {
535
536
  * @description fetches information on an order made by the user
536
537
  * @param {string} symbol unified symbol of the market the order was made in
537
538
  * @param {object} [params] extra parameters specific to the coinone api endpoint
538
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
539
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
539
540
  */
540
- this.checkRequiredSymbol('fetchOrder', symbol);
541
+ if (symbol === undefined) {
542
+ throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
543
+ }
541
544
  await this.loadMarkets();
542
545
  const market = this.market(symbol);
543
546
  const request = {
@@ -703,7 +706,7 @@ export default class coinone extends Exchange {
703
706
  * @param {int} [since] the earliest time in ms to fetch open orders for
704
707
  * @param {int} [limit] the maximum number of open orders structures to retrieve
705
708
  * @param {object} [params] extra parameters specific to the coinone api endpoint
706
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
709
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
707
710
  */
708
711
  // The returned amount might not be same as the ordered amount. If an order is partially filled, the returned amount means the remaining amount.
709
712
  // For the same reason, the returned amount and remaining are always same, and the returned filled and cost are always zero.
@@ -745,9 +748,11 @@ export default class coinone extends Exchange {
745
748
  * @param {int} [since] the earliest time in ms to fetch trades for
746
749
  * @param {int} [limit] the maximum number of trades structures to retrieve
747
750
  * @param {object} [params] extra parameters specific to the coinone api endpoint
748
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
751
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
749
752
  */
750
- this.checkRequiredSymbol('fetchMyTrades', symbol);
753
+ if (symbol === undefined) {
754
+ throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
755
+ }
751
756
  await this.loadMarkets();
752
757
  const market = this.market(symbol);
753
758
  const request = {
@@ -785,7 +790,7 @@ export default class coinone extends Exchange {
785
790
  * @param {string} id order id
786
791
  * @param {string} symbol unified symbol of the market the order was made in
787
792
  * @param {object} [params] extra parameters specific to the coinone api endpoint
788
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
793
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
789
794
  */
790
795
  if (symbol === undefined) {
791
796
  // eslint-disable-next-line quotes
@@ -822,7 +827,7 @@ export default class coinone extends Exchange {
822
827
  * @description fetch deposit addresses for multiple currencies and chain types
823
828
  * @param {string[]|undefined} codes list of unified currency codes, default is undefined
824
829
  * @param {object} [params] extra parameters specific to the coinone api endpoint
825
- * @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
830
+ * @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
826
831
  */
827
832
  await this.loadMarkets();
828
833
  const response = await this.privatePostAccountDepositAddress(params);