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
package/js/src/tidex.js CHANGED
@@ -35,17 +35,18 @@ export default class tidex extends Exchange {
35
35
  'createOrder': true,
36
36
  'createReduceOnlyOrder': false,
37
37
  'fetchBalance': true,
38
- 'fetchBorrowRate': false,
39
38
  'fetchBorrowRateHistories': false,
40
39
  'fetchBorrowRateHistory': false,
41
- 'fetchBorrowRates': false,
42
- 'fetchBorrowRatesPerSymbol': false,
40
+ 'fetchCrossBorrowRate': false,
41
+ 'fetchCrossBorrowRates': false,
43
42
  'fetchCurrencies': true,
44
43
  'fetchFundingHistory': false,
45
44
  'fetchFundingRate': false,
46
45
  'fetchFundingRateHistory': false,
47
46
  'fetchFundingRates': false,
48
47
  'fetchIndexOHLCV': false,
48
+ 'fetchIsolatedBorrowRate': false,
49
+ 'fetchIsolatedBorrowRates': false,
49
50
  'fetchLeverage': false,
50
51
  'fetchLeverageTiers': false,
51
52
  'fetchMarginMode': false,
@@ -370,7 +371,7 @@ export default class tidex extends Exchange {
370
371
  * @name tidex#fetchBalance
371
372
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
372
373
  * @param {object} [params] extra parameters specific to the tidex api endpoint
373
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
374
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
374
375
  */
375
376
  await this.loadMarkets();
376
377
  const response = await this.privatePostGetInfoExt(params);
@@ -410,7 +411,7 @@ export default class tidex extends Exchange {
410
411
  * @param {string} symbol unified symbol of the market to fetch the order book for
411
412
  * @param {int} [limit] the maximum amount of order book entries to return
412
413
  * @param {object} [params] extra parameters specific to the tidex api endpoint
413
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
414
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
414
415
  */
415
416
  await this.loadMarkets();
416
417
  const market = this.market(symbol);
@@ -436,7 +437,7 @@ export default class tidex extends Exchange {
436
437
  * @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
437
438
  * @param {int} [limit] max number of entries per orderbook to return, default is undefined
438
439
  * @param {object} [params] extra parameters specific to the tidex api endpoint
439
- * @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
440
+ * @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
440
441
  */
441
442
  await this.loadMarkets();
442
443
  let ids = undefined;
@@ -515,7 +516,7 @@ export default class tidex extends Exchange {
515
516
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
516
517
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
517
518
  * @param {object} [params] extra parameters specific to the tidex api endpoint
518
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
519
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
519
520
  */
520
521
  await this.loadMarkets();
521
522
  symbols = this.marketSymbols(symbols);
@@ -554,7 +555,7 @@ export default class tidex extends Exchange {
554
555
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
555
556
  * @param {string} symbol unified symbol of the market to fetch the ticker for
556
557
  * @param {object} [params] extra parameters specific to the tidex api endpoint
557
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
558
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
558
559
  */
559
560
  const tickers = await this.fetchTickers([symbol], params);
560
561
  return tickers[symbol];
@@ -624,7 +625,7 @@ export default class tidex extends Exchange {
624
625
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
625
626
  * @param {int} [limit] the maximum amount of trades to fetch
626
627
  * @param {object} [params] extra parameters specific to the tidex api endpoint
627
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
628
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
628
629
  */
629
630
  await this.loadMarkets();
630
631
  const market = this.market(symbol);
@@ -654,7 +655,7 @@ export default class tidex extends Exchange {
654
655
  * @param {float} amount how much of currency you want to trade in units of base currency
655
656
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
656
657
  * @param {object} [params] extra parameters specific to the tidex api endpoint
657
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
658
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
658
659
  */
659
660
  if (type === 'market') {
660
661
  throw new ExchangeError(this.id + ' createOrder() allows limit orders only');
@@ -715,7 +716,7 @@ export default class tidex extends Exchange {
715
716
  * @param {string} id order id
716
717
  * @param {string} symbol not used by tidex cancelOrder ()
717
718
  * @param {object} [params] extra parameters specific to the tidex api endpoint
718
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
719
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
719
720
  */
720
721
  await this.loadMarkets();
721
722
  const request = {
@@ -781,7 +782,7 @@ export default class tidex extends Exchange {
781
782
  * @description fetches information on an order made by the user
782
783
  * @param {string} symbol not used by tidex fetchOrder
783
784
  * @param {object} [params] extra parameters specific to the tidex api endpoint
784
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
785
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
785
786
  */
786
787
  await this.loadMarkets();
787
788
  const request = {
@@ -802,7 +803,7 @@ export default class tidex extends Exchange {
802
803
  * @param {int} [since] the earliest time in ms to fetch open orders for
803
804
  * @param {int} [limit] the maximum number of open orders structures to retrieve
804
805
  * @param {object} [params] extra parameters specific to the tidex api endpoint
805
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
806
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
806
807
  */
807
808
  await this.loadMarkets();
808
809
  const request = {};
@@ -846,7 +847,7 @@ export default class tidex extends Exchange {
846
847
  * @param {int} [since] the earliest time in ms to fetch trades for
847
848
  * @param {int} [limit] the maximum number of trades structures to retrieve
848
849
  * @param {object} [params] extra parameters specific to the tidex api endpoint
849
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
850
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
850
851
  */
851
852
  await this.loadMarkets();
852
853
  let market = undefined;
@@ -885,7 +886,7 @@ export default class tidex extends Exchange {
885
886
  * @param {string} address the address to withdraw to
886
887
  * @param {string} tag
887
888
  * @param {object} [params] extra parameters specific to the tidex api endpoint
888
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
889
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
889
890
  */
890
891
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
891
892
  this.checkAddress(address);
package/js/src/timex.js CHANGED
@@ -37,12 +37,11 @@ export default class timex extends Exchange {
37
37
  'createStopOrder': false,
38
38
  'editOrder': true,
39
39
  'fetchBalance': true,
40
- 'fetchBorrowRate': false,
41
40
  'fetchBorrowRateHistories': false,
42
41
  'fetchBorrowRateHistory': false,
43
- 'fetchBorrowRates': false,
44
- 'fetchBorrowRatesPerSymbol': false,
45
42
  'fetchClosedOrders': true,
43
+ 'fetchCrossBorrowRate': false,
44
+ 'fetchCrossBorrowRates': false,
46
45
  'fetchCurrencies': true,
47
46
  'fetchDeposit': false,
48
47
  'fetchDeposits': true,
@@ -51,6 +50,8 @@ export default class timex extends Exchange {
51
50
  'fetchFundingRateHistory': false,
52
51
  'fetchFundingRates': false,
53
52
  'fetchIndexOHLCV': false,
53
+ 'fetchIsolatedBorrowRate': false,
54
+ 'fetchIsolatedBorrowRates': false,
54
55
  'fetchLeverage': false,
55
56
  'fetchLeverageTiers': false,
56
57
  'fetchMarginMode': false,
@@ -346,7 +347,7 @@ export default class timex extends Exchange {
346
347
  * @param {int} [since] the earliest time in ms to fetch deposits for
347
348
  * @param {int} [limit] the maximum number of deposits structures to retrieve
348
349
  * @param {object} [params] extra parameters specific to the timex api endpoint
349
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
350
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
350
351
  */
351
352
  const address = this.safeString(params, 'address');
352
353
  params = this.omit(params, 'address');
@@ -381,7 +382,7 @@ export default class timex extends Exchange {
381
382
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
382
383
  * @param {int} [limit] the maximum number of transaction structures to retrieve
383
384
  * @param {object} [params] extra parameters specific to the timex api endpoint
384
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
385
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
385
386
  */
386
387
  const address = this.safeString(params, 'address');
387
388
  params = this.omit(params, 'address');
@@ -463,7 +464,7 @@ export default class timex extends Exchange {
463
464
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
464
465
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
465
466
  * @param {object} [params] extra parameters specific to the timex api endpoint
466
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
467
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
467
468
  */
468
469
  await this.loadMarkets();
469
470
  const period = this.safeString(this.options['fetchTickers'], 'period', '1d');
@@ -497,7 +498,7 @@ export default class timex extends Exchange {
497
498
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
498
499
  * @param {string} symbol unified symbol of the market to fetch the ticker for
499
500
  * @param {object} [params] extra parameters specific to the timex api endpoint
500
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
501
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
501
502
  */
502
503
  await this.loadMarkets();
503
504
  const market = this.market(symbol);
@@ -535,7 +536,7 @@ export default class timex extends Exchange {
535
536
  * @param {string} symbol unified symbol of the market to fetch the order book for
536
537
  * @param {int} [limit] the maximum amount of order book entries to return
537
538
  * @param {object} [params] extra parameters specific to the timex api endpoint
538
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
539
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
539
540
  */
540
541
  await this.loadMarkets();
541
542
  const market = this.market(symbol);
@@ -582,7 +583,7 @@ export default class timex extends Exchange {
582
583
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
583
584
  * @param {int} [limit] the maximum amount of trades to fetch
584
585
  * @param {object} [params] extra parameters specific to the timex api endpoint
585
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
586
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
586
587
  */
587
588
  await this.loadMarkets();
588
589
  const market = this.market(symbol);
@@ -691,7 +692,7 @@ export default class timex extends Exchange {
691
692
  * @name timex#fetchBalance
692
693
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
693
694
  * @param {object} [params] extra parameters specific to the timex api endpoint
694
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
695
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
695
696
  */
696
697
  await this.loadMarkets();
697
698
  const response = await this.tradingGetBalances(params);
@@ -717,7 +718,7 @@ export default class timex extends Exchange {
717
718
  * @param {float} amount how much of currency you want to trade in units of base currency
718
719
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
719
720
  * @param {object} [params] extra parameters specific to the timex api endpoint
720
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
721
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
721
722
  */
722
723
  await this.loadMarkets();
723
724
  const market = this.market(symbol);
@@ -842,7 +843,7 @@ export default class timex extends Exchange {
842
843
  * @param {string} id order id
843
844
  * @param {string} symbol not used by timex cancelOrder ()
844
845
  * @param {object} [params] extra parameters specific to the timex api endpoint
845
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
846
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
846
847
  */
847
848
  await this.loadMarkets();
848
849
  return await this.cancelOrders([id], symbol, params);
@@ -855,7 +856,7 @@ export default class timex extends Exchange {
855
856
  * @param {string[]} ids order ids
856
857
  * @param {string} symbol unified market symbol, default is undefined
857
858
  * @param {object} [params] extra parameters specific to the timex api endpoint
858
- * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
859
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
859
860
  */
860
861
  await this.loadMarkets();
861
862
  const request = {
@@ -895,7 +896,7 @@ export default class timex extends Exchange {
895
896
  * @description fetches information on an order made by the user
896
897
  * @param {string} symbol not used by timex fetchOrder
897
898
  * @param {object} [params] extra parameters specific to the timex api endpoint
898
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
899
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
899
900
  */
900
901
  await this.loadMarkets();
901
902
  const request = {
@@ -948,7 +949,7 @@ export default class timex extends Exchange {
948
949
  * @param {int} [since] the earliest time in ms to fetch open orders for
949
950
  * @param {int} [limit] the maximum number of open orders structures to retrieve
950
951
  * @param {object} [params] extra parameters specific to the timex api endpoint
951
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
952
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
952
953
  */
953
954
  await this.loadMarkets();
954
955
  const options = this.safeValue(this.options, 'fetchOpenOrders', {});
@@ -1002,7 +1003,7 @@ export default class timex extends Exchange {
1002
1003
  * @param {int} [since] the earliest time in ms to fetch orders for
1003
1004
  * @param {int} [limit] the maximum number of orde structures to retrieve
1004
1005
  * @param {object} [params] extra parameters specific to the timex api endpoint
1005
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1006
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1006
1007
  */
1007
1008
  await this.loadMarkets();
1008
1009
  const options = this.safeValue(this.options, 'fetchClosedOrders', {});
@@ -1061,7 +1062,7 @@ export default class timex extends Exchange {
1061
1062
  * @param {int} [since] the earliest time in ms to fetch trades for
1062
1063
  * @param {int} [limit] the maximum number of trades structures to retrieve
1063
1064
  * @param {object} [params] extra parameters specific to the timex api endpoint
1064
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1065
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1065
1066
  */
1066
1067
  await this.loadMarkets();
1067
1068
  const options = this.safeValue(this.options, 'fetchMyTrades', {});
@@ -1137,7 +1138,7 @@ export default class timex extends Exchange {
1137
1138
  * @description fetch the trading fees for a market
1138
1139
  * @param {string} symbol unified market symbol
1139
1140
  * @param {object} [params] extra parameters specific to the timex api endpoint
1140
- * @returns {object} a [fee structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
1141
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
1141
1142
  */
1142
1143
  await this.loadMarkets();
1143
1144
  const market = this.market(symbol);
@@ -7,7 +7,7 @@
7
7
  // ---------------------------------------------------------------------------
8
8
  import Exchange from './abstract/tokocrypto.js';
9
9
  import { TRUNCATE, DECIMAL_PLACES } from './base/functions/number.js';
10
- import { ExchangeError, ExchangeNotAvailable, InsufficientFunds, OrderNotFound, InvalidOrder, DDoSProtection, InvalidNonce, AuthenticationError, RateLimitExceeded, PermissionDenied, NotSupported, BadRequest, BadSymbol, AccountSuspended, OrderImmediatelyFillable, OnMaintenance, BadResponse, RequestTimeout, OrderNotFillable, MarginModeAlreadySet } from './base/errors.js';
10
+ import { ExchangeError, ExchangeNotAvailable, InsufficientFunds, OrderNotFound, InvalidOrder, DDoSProtection, InvalidNonce, AuthenticationError, RateLimitExceeded, PermissionDenied, NotSupported, BadRequest, BadSymbol, AccountSuspended, OrderImmediatelyFillable, OnMaintenance, BadResponse, RequestTimeout, OrderNotFillable, MarginModeAlreadySet, ArgumentsRequired } from './base/errors.js';
11
11
  import { Precise } from './base/Precise.js';
12
12
  import { sha256 } from './static_dependencies/noble-hashes/sha256.js';
13
13
  // ---------------------------------------------------------------------------
@@ -47,14 +47,13 @@ export default class tokocrypto extends Exchange {
47
47
  'fetchBalance': true,
48
48
  'fetchBidsAsks': true,
49
49
  'fetchBorrowInterest': undefined,
50
- 'fetchBorrowRate': undefined,
51
50
  'fetchBorrowRateHistories': undefined,
52
51
  'fetchBorrowRateHistory': undefined,
53
- 'fetchBorrowRates': undefined,
54
- 'fetchBorrowRatesPerSymbol': undefined,
55
52
  'fetchCanceledOrders': false,
56
53
  'fetchClosedOrder': false,
57
54
  'fetchClosedOrders': 'emulated',
55
+ 'fetchCrossBorrowRate': false,
56
+ 'fetchCrossBorrowRates': false,
58
57
  'fetchCurrencies': false,
59
58
  'fetchDeposit': false,
60
59
  'fetchDepositAddress': true,
@@ -67,6 +66,8 @@ export default class tokocrypto extends Exchange {
67
66
  'fetchFundingRateHistory': false,
68
67
  'fetchFundingRates': false,
69
68
  'fetchIndexOHLCV': false,
69
+ 'fetchIsolatedBorrowRate': false,
70
+ 'fetchIsolatedBorrowRates': false,
70
71
  'fetchL3OrderBook': false,
71
72
  'fetchLedger': undefined,
72
73
  'fetchLeverage': false,
@@ -788,7 +789,7 @@ export default class tokocrypto extends Exchange {
788
789
  * @param {string} symbol unified symbol of the market to fetch the order book for
789
790
  * @param {int} [limit] the maximum amount of order book entries to return
790
791
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
791
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
792
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
792
793
  */
793
794
  await this.loadMarkets();
794
795
  const market = this.market(symbol);
@@ -998,7 +999,7 @@ export default class tokocrypto extends Exchange {
998
999
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
999
1000
  * @param {int} [limit] the maximum amount of trades to fetch
1000
1001
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1001
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
1002
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1002
1003
  */
1003
1004
  await this.loadMarkets();
1004
1005
  const market = this.market(symbol);
@@ -1162,7 +1163,7 @@ export default class tokocrypto extends Exchange {
1162
1163
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
1163
1164
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1164
1165
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1165
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1166
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1166
1167
  */
1167
1168
  await this.loadMarkets();
1168
1169
  const defaultMethod = 'binanceGetTicker24hr';
@@ -1184,7 +1185,7 @@ export default class tokocrypto extends Exchange {
1184
1185
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1185
1186
  * @param {string} symbol unified symbol of the market to fetch the ticker for
1186
1187
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1187
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1188
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1188
1189
  */
1189
1190
  await this.loadMarkets();
1190
1191
  const market = this.market(symbol);
@@ -1206,7 +1207,7 @@ export default class tokocrypto extends Exchange {
1206
1207
  * @description fetches the bid and ask price and volume for multiple markets
1207
1208
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
1208
1209
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1209
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
1210
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1210
1211
  */
1211
1212
  await this.loadMarkets();
1212
1213
  const response = await this.binanceGetTickerBookTicker(params);
@@ -1325,7 +1326,7 @@ export default class tokocrypto extends Exchange {
1325
1326
  * @param {string} [params.type] 'future', 'delivery', 'savings', 'funding', or 'spot'
1326
1327
  * @param {string} [params.marginMode] 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null
1327
1328
  * @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
1328
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1329
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1329
1330
  */
1330
1331
  await this.loadMarkets();
1331
1332
  const defaultType = this.safeString2(this.options, 'fetchBalance', 'defaultType', 'spot');
@@ -1578,7 +1579,7 @@ export default class tokocrypto extends Exchange {
1578
1579
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1579
1580
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1580
1581
  * @param {float} [params.triggerPrice] the price at which a trigger order would be triggered
1581
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1582
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1582
1583
  */
1583
1584
  await this.loadMarkets();
1584
1585
  const market = this.market(symbol);
@@ -1753,7 +1754,7 @@ export default class tokocrypto extends Exchange {
1753
1754
  * @description fetches information on an order made by the user
1754
1755
  * @param {string} symbol unified symbol of the market the order was made in
1755
1756
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1756
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1757
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1757
1758
  */
1758
1759
  const request = {
1759
1760
  'orderId': id,
@@ -1804,9 +1805,11 @@ export default class tokocrypto extends Exchange {
1804
1805
  * @param {int} [since] the earliest time in ms to fetch orders for
1805
1806
  * @param {int} [limit] the maximum number of order structures to retrieve
1806
1807
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1807
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1808
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1808
1809
  */
1809
- this.checkRequiredSymbol('fetchOrders', symbol);
1810
+ if (symbol === undefined) {
1811
+ throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
1812
+ }
1810
1813
  await this.loadMarkets();
1811
1814
  const market = this.market(symbol);
1812
1815
  const request = {
@@ -1873,7 +1876,7 @@ export default class tokocrypto extends Exchange {
1873
1876
  * @param {int} [since] the earliest time in ms to fetch open orders for
1874
1877
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1875
1878
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1876
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1879
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1877
1880
  */
1878
1881
  const request = { 'type': 1 }; // -1 = all, 1 = open, 2 = closed
1879
1882
  return await this.fetchOrders(symbol, since, limit, this.extend(request, params));
@@ -1888,7 +1891,7 @@ export default class tokocrypto extends Exchange {
1888
1891
  * @param {int} [since] the earliest time in ms to fetch orders for
1889
1892
  * @param {int} [limit] the maximum number of orde structures to retrieve
1890
1893
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1891
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1894
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1892
1895
  */
1893
1896
  const request = { 'type': 2 }; // -1 = all, 1 = open, 2 = closed
1894
1897
  return await this.fetchOrders(symbol, since, limit, this.extend(request, params));
@@ -1902,7 +1905,7 @@ export default class tokocrypto extends Exchange {
1902
1905
  * @param {string} id order id
1903
1906
  * @param {string} symbol unified symbol of the market the order was made in
1904
1907
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1905
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1908
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1906
1909
  */
1907
1910
  const request = {
1908
1911
  'orderId': id,
@@ -1948,9 +1951,11 @@ export default class tokocrypto extends Exchange {
1948
1951
  * @param {int} [since] the earliest time in ms to fetch trades for
1949
1952
  * @param {int} [limit] the maximum number of trades structures to retrieve
1950
1953
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
1951
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
1954
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1952
1955
  */
1953
- this.checkRequiredSymbol('fetchMyTrades', symbol);
1956
+ if (symbol === undefined) {
1957
+ throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
1958
+ }
1954
1959
  await this.loadMarkets();
1955
1960
  const market = this.market(symbol);
1956
1961
  const request = {
@@ -2005,7 +2010,7 @@ export default class tokocrypto extends Exchange {
2005
2010
  * @description fetch the deposit address for a currency associated with this account
2006
2011
  * @param {string} code unified currency code
2007
2012
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
2008
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
2013
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2009
2014
  */
2010
2015
  await this.loadMarkets();
2011
2016
  const currency = this.currency(code);
@@ -2064,7 +2069,7 @@ export default class tokocrypto extends Exchange {
2064
2069
  * @param {int} [limit] the maximum number of deposits structures to retrieve
2065
2070
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
2066
2071
  * @param {int} [params.until] the latest time in ms to fetch deposits for
2067
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2072
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2068
2073
  */
2069
2074
  await this.loadMarkets();
2070
2075
  let currency = undefined;
@@ -2124,7 +2129,7 @@ export default class tokocrypto extends Exchange {
2124
2129
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
2125
2130
  * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2126
2131
  * @param {object} [params] extra parameters specific to the tokocrypto api endpoint
2127
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2132
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2128
2133
  */
2129
2134
  await this.loadMarkets();
2130
2135
  const request = {};
@@ -2317,7 +2322,7 @@ export default class tokocrypto extends Exchange {
2317
2322
  * @param {string} address the address to withdraw to
2318
2323
  * @param {string} tag
2319
2324
  * @param {object} [params] extra parameters specific to the bybit api endpoint
2320
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
2325
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2321
2326
  */
2322
2327
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2323
2328
  await this.loadMarkets();