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
@@ -56,7 +56,7 @@ class bitmex extends bitmex$1 {
56
56
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
57
57
  * @param {string} symbol unified symbol of the market to fetch the ticker for
58
58
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
59
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
59
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
60
60
  */
61
61
  await this.loadMarkets();
62
62
  const market = this.market(symbol);
@@ -320,7 +320,7 @@ class bitmex extends bitmex$1 {
320
320
  * @name bitmex#watchBalance
321
321
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
322
322
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
323
- * @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}
324
324
  */
325
325
  await this.loadMarkets();
326
326
  await this.authenticate();
@@ -531,7 +531,7 @@ class bitmex extends bitmex$1 {
531
531
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
532
532
  * @param {int} [limit] the maximum amount of trades to fetch
533
533
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
534
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
534
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
535
535
  */
536
536
  await this.loadMarkets();
537
537
  const market = this.market(symbol);
@@ -600,7 +600,7 @@ class bitmex extends bitmex$1 {
600
600
  * @param {int} [since] the earliest time in ms to fetch orders for
601
601
  * @param {int} [limit] the maximum number of orde structures to retrieve
602
602
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
603
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
603
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
604
604
  */
605
605
  await this.loadMarkets();
606
606
  await this.authenticate();
@@ -815,7 +815,7 @@ class bitmex extends bitmex$1 {
815
815
  * @param {int} [since] the earliest time in ms to fetch trades for
816
816
  * @param {int} [limit] the maximum number of trade structures to retrieve
817
817
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
818
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
818
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
819
819
  */
820
820
  await this.loadMarkets();
821
821
  await this.authenticate();
@@ -931,7 +931,7 @@ class bitmex extends bitmex$1 {
931
931
  * @param {string} symbol unified symbol of the market to fetch the order book for
932
932
  * @param {int} [limit] the maximum amount of order book entries to return
933
933
  * @param {object} [params] extra parameters specific to the bitmex api endpoint
934
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
934
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
935
935
  */
936
936
  let table = undefined;
937
937
  if (limit === undefined) {
@@ -56,7 +56,7 @@ class bitopro extends bitopro$1 {
56
56
  * @param {string} symbol unified symbol of the market to fetch the order book for
57
57
  * @param {int} [limit] the maximum amount of order book entries to return
58
58
  * @param {object} [params] extra parameters specific to the bitopro api endpoint
59
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
59
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
60
60
  */
61
61
  if (limit !== undefined) {
62
62
  if ((limit !== 5) && (limit !== 10) && (limit !== 20) && (limit !== 50) && (limit !== 100) && (limit !== 500) && (limit !== 1000)) {
@@ -122,7 +122,7 @@ class bitopro extends bitopro$1 {
122
122
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
123
123
  * @param {int} [limit] the maximum amount of trades to fetch
124
124
  * @param {object} [params] extra parameters specific to the bitopro api endpoint
125
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
125
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
126
126
  */
127
127
  await this.loadMarkets();
128
128
  const market = this.market(symbol);
@@ -179,7 +179,7 @@ class bitopro extends bitopro$1 {
179
179
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
180
180
  * @param {string} symbol unified symbol of the market to fetch the ticker for
181
181
  * @param {object} [params] extra parameters specific to the bitopro api endpoint
182
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
182
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
183
183
  */
184
184
  await this.loadMarkets();
185
185
  const market = this.market(symbol);
@@ -257,7 +257,7 @@ class bitopro extends bitopro$1 {
257
257
  * @name bitopro#watchBalance
258
258
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
259
259
  * @param {object} [params] extra parameters specific to the bitopro api endpoint
260
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
260
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
261
261
  */
262
262
  this.checkRequiredCredentials();
263
263
  await this.loadMarkets();
@@ -80,7 +80,7 @@ class bitpanda extends bitpanda$1 {
80
80
  * @see https://developers.bitpanda.com/exchange/#account-history-channel
81
81
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
82
82
  * @param {object} [params] extra parameters specific to the bitpanda api endpoint
83
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
83
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
84
84
  */
85
85
  await this.authenticate(params);
86
86
  const url = this.urls['api']['ws'];
@@ -140,7 +140,7 @@ class bitpanda extends bitpanda$1 {
140
140
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
141
141
  * @param {string} symbol unified symbol of the market to fetch the ticker for
142
142
  * @param {object} [params] extra parameters specific to the bitpanda api endpoint
143
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
143
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
144
144
  */
145
145
  await this.loadMarkets();
146
146
  const market = this.market(symbol);
@@ -166,7 +166,7 @@ class bitpanda extends bitpanda$1 {
166
166
  * @description watches price tickers, a statistical calculation with the information for all markets or those specified.
167
167
  * @param {string} symbols unified symbols of the markets to fetch the ticker for
168
168
  * @param {object} [params] extra parameters specific to the bitpanda api endpoint
169
- * @returns {object} an array of [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
169
+ * @returns {object} an array of [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
170
170
  */
171
171
  await this.loadMarkets();
172
172
  symbols = this.marketSymbols(symbols);
@@ -264,7 +264,7 @@ class bitpanda extends bitpanda$1 {
264
264
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
265
265
  * @param {int} [limit] the maximum amount of trades to fetch
266
266
  * @param {object} [params] extra parameters specific to the bitpanda api endpoint
267
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
267
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
268
268
  */
269
269
  await this.loadMarkets();
270
270
  let messageHash = 'myTrades';
@@ -307,7 +307,7 @@ class bitpanda extends bitpanda$1 {
307
307
  * @param {string} symbol unified symbol of the market to fetch the order book for
308
308
  * @param {int} [limit] the maximum amount of order book entries to return
309
309
  * @param {object} [params] extra parameters specific to the bitpanda api endpoint
310
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
310
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
311
311
  */
312
312
  await this.loadMarkets();
313
313
  const market = this.market(symbol);
@@ -426,7 +426,7 @@ class bitpanda extends bitpanda$1 {
426
426
  * @param {int} [limit] the maximum number of orde structures to retrieve
427
427
  * @param {object} [params] extra parameters specific to the bitpanda api endpoint
428
428
  * @param {string} [params.channel] can listen to orders using ACCOUNT_HISTORY or TRADING
429
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
429
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
430
430
  */
431
431
  await this.loadMarkets();
432
432
  let messageHash = 'orders';
@@ -58,7 +58,7 @@ class bitrue extends bitrue$1 {
58
58
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
59
59
  * @see https://github.com/Bitrue-exchange/Spot-official-api-docs#balance-update
60
60
  * @param {object} [params] extra parameters specific to the bitrue api endpoint
61
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
61
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
62
62
  */
63
63
  const url = await this.authenticate();
64
64
  const messageHash = 'balance';
@@ -173,7 +173,7 @@ class bitrue extends bitrue$1 {
173
173
  * @param {int} [since] timestamp in ms of the earliest order
174
174
  * @param {int} [limit] the maximum amount of orders to return
175
175
  * @param {object} [params] extra parameters specific to the bitrue api endpoint
176
- * @returns {object} A dictionary of [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure} indexed by market symbols
176
+ * @returns {object} A dictionary of [order structure]{@link https://docs.ccxt.com/#/?id=order-structure} indexed by market symbols
177
177
  */
178
178
  await this.loadMarkets();
179
179
  if (symbol !== undefined) {
@@ -49,7 +49,7 @@ class bitstamp extends bitstamp$1 {
49
49
  * @param {string} symbol unified symbol of the market to fetch the order book for
50
50
  * @param {int} [limit] the maximum amount of order book entries to return
51
51
  * @param {object} [params] extra parameters specific to the bitstamp api endpoint
52
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
52
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
53
53
  */
54
54
  await this.loadMarkets();
55
55
  const market = this.market(symbol);
@@ -161,7 +161,7 @@ class bitstamp extends bitstamp$1 {
161
161
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
162
162
  * @param {int} [limit] the maximum amount of trades to fetch
163
163
  * @param {object} [params] extra parameters specific to the bitstamp api endpoint
164
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
164
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
165
165
  */
166
166
  await this.loadMarkets();
167
167
  const market = this.market(symbol);
@@ -268,9 +268,11 @@ class bitstamp extends bitstamp$1 {
268
268
  * @param {int} [since] the earliest time in ms to fetch orders for
269
269
  * @param {int} [limit] the maximum number of order structures to retrieve
270
270
  * @param {object} [params] extra parameters specific to the bitstamp api endpoint
271
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
271
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
272
272
  */
273
- this.checkRequiredSymbol('watchOrders', symbol);
273
+ if (symbol === undefined) {
274
+ throw new errors.ArgumentsRequired(this.id + ' watchOrders() requires a symbol argument');
275
+ }
274
276
  await this.loadMarkets();
275
277
  const market = this.market(symbol);
276
278
  symbol = market['symbol'];
@@ -215,7 +215,7 @@ class bittrex extends bittrex$1 {
215
215
  * @param {int} [since] the earliest time in ms to fetch orders for
216
216
  * @param {int} [limit] the maximum number of orde structures to retrieve
217
217
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
218
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
218
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
219
219
  */
220
220
  await this.loadMarkets();
221
221
  if (symbol !== undefined) {
@@ -271,7 +271,7 @@ class bittrex extends bittrex$1 {
271
271
  * @name bittrex#watchBalance
272
272
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
273
273
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
274
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
274
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
275
275
  */
276
276
  await this.loadMarkets();
277
277
  const authentication = await this.authenticate();
@@ -340,7 +340,7 @@ class bittrex extends bittrex$1 {
340
340
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
341
341
  * @param {string} symbol unified symbol of the market to fetch the ticker for
342
342
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
343
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
343
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
344
344
  */
345
345
  await this.loadMarkets();
346
346
  const negotiation = await this.negotiate();
@@ -461,7 +461,7 @@ class bittrex extends bittrex$1 {
461
461
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
462
462
  * @param {int} [limit] the maximum amount of trades to fetch
463
463
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
464
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
464
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
465
465
  */
466
466
  await this.loadMarkets();
467
467
  symbol = this.symbol(symbol);
@@ -527,7 +527,7 @@ class bittrex extends bittrex$1 {
527
527
  * @param {int} [since] the earliest time in ms to fetch trades for
528
528
  * @param {int} [limit] the maximum number of trade structures to retrieve
529
529
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
530
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
530
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
531
531
  */
532
532
  await this.loadMarkets();
533
533
  if (symbol !== undefined) {
@@ -585,7 +585,7 @@ class bittrex extends bittrex$1 {
585
585
  * @param {string} symbol unified symbol of the market to fetch the order book for
586
586
  * @param {int} [limit] the maximum amount of order book entries to return
587
587
  * @param {object} [params] extra parameters specific to the bittrex api endpoint
588
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
588
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
589
589
  */
590
590
  limit = (limit === undefined) ? 25 : limit; // 25 by default
591
591
  if ((limit !== 1) && (limit !== 25) && (limit !== 500)) {
@@ -57,7 +57,7 @@ class bitvavo extends bitvavo$1 {
57
57
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
58
58
  * @param {string} symbol unified symbol of the market to fetch the ticker for
59
59
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
60
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
60
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
61
61
  */
62
62
  return await this.watchPublic('ticker24h', symbol, params);
63
63
  }
@@ -106,7 +106,7 @@ class bitvavo extends bitvavo$1 {
106
106
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
107
107
  * @param {int} [limit] the maximum amount of trades to fetch
108
108
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
109
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
109
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
110
110
  */
111
111
  await this.loadMarkets();
112
112
  symbol = this.symbol(symbol);
@@ -229,7 +229,7 @@ class bitvavo extends bitvavo$1 {
229
229
  * @param {string} symbol unified symbol of the market to fetch the order book for
230
230
  * @param {int} [limit] the maximum amount of order book entries to return
231
231
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
232
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
232
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
233
233
  */
234
234
  await this.loadMarkets();
235
235
  const market = this.market(symbol);
@@ -420,9 +420,11 @@ class bitvavo extends bitvavo$1 {
420
420
  * @param {int} [since] the earliest time in ms to fetch orders for
421
421
  * @param {int} [limit] the maximum number of order structures to retrieve
422
422
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
423
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
423
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
424
424
  */
425
- this.checkRequiredSymbol('watchOrders', symbol);
425
+ if (symbol === undefined) {
426
+ throw new errors.ArgumentsRequired(this.id + ' watchOrders() requires a symbol argument');
427
+ }
426
428
  await this.loadMarkets();
427
429
  await this.authenticate();
428
430
  const market = this.market(symbol);
@@ -455,9 +457,11 @@ class bitvavo extends bitvavo$1 {
455
457
  * @param {int} [since] the earliest time in ms to fetch trades for
456
458
  * @param {int} [limit] the maximum number of trade structures to retrieve
457
459
  * @param {object} [params] extra parameters specific to the bitvavo api endpoint
458
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ortradeder-structure
460
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=ortradeder-structure
459
461
  */
460
- this.checkRequiredSymbol('watchMyTrades', symbol);
462
+ if (symbol === undefined) {
463
+ throw new errors.ArgumentsRequired(this.id + ' watchMyTrades() requires a symbol argument');
464
+ }
461
465
  await this.loadMarkets();
462
466
  await this.authenticate();
463
467
  const market = this.market(symbol);
@@ -55,7 +55,7 @@ class blockchaincom extends blockchaincom$1 {
55
55
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
56
56
  * @see https://exchange.blockchain.com/api/#balances
57
57
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
58
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
58
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
59
59
  */
60
60
  await this.authenticate(params);
61
61
  const messageHash = 'balance';
@@ -108,12 +108,12 @@ class blockchaincom extends blockchaincom$1 {
108
108
  const currencyId = this.safeString(entry, 'currency');
109
109
  const code = this.safeCurrencyCode(currencyId);
110
110
  const account = this.account();
111
- account['free'] = this.safeNumber(entry, 'available');
112
- account['total'] = this.safeNumber(entry, 'balance');
111
+ account['free'] = this.safeString(entry, 'available');
112
+ account['total'] = this.safeString(entry, 'balance');
113
113
  result[code] = account;
114
114
  }
115
115
  const messageHash = 'balance';
116
- this.balance = result;
116
+ this.balance = this.safeBalance(result);
117
117
  client.resolve(this.balance, messageHash);
118
118
  }
119
119
  async watchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
@@ -205,7 +205,7 @@ class blockchaincom extends blockchaincom$1 {
205
205
  * @see https://exchange.blockchain.com/api/#ticker
206
206
  * @param {string} symbol unified symbol of the market to fetch the ticker for
207
207
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
208
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
208
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
209
209
  */
210
210
  await this.loadMarkets();
211
211
  const market = this.market(symbol);
@@ -314,7 +314,7 @@ class blockchaincom extends blockchaincom$1 {
314
314
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
315
315
  * @param {int} [limit] the maximum amount of trades to fetch
316
316
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
317
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
317
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
318
318
  */
319
319
  await this.loadMarkets();
320
320
  const market = this.market(symbol);
@@ -413,7 +413,7 @@ class blockchaincom extends blockchaincom$1 {
413
413
  * @param {int} [since] the earliest time in ms to fetch orders for
414
414
  * @param {int} [limit] the maximum number of orde structures to retrieve
415
415
  * @param {object} [params] extra parameters specific to the blockchaincom api endpoint
416
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
416
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
417
417
  */
418
418
  await this.loadMarkets();
419
419
  await this.authenticate();
@@ -627,7 +627,7 @@ class blockchaincom extends blockchaincom$1 {
627
627
  * @param {int} [limit] the maximum amount of order book entries to return
628
628
  * @param {objectConstructor} [params] extra parameters specific to the blockchaincom api endpoint
629
629
  * @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
630
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
630
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
631
631
  */
632
632
  await this.loadMarkets();
633
633
  const market = this.market(symbol);
@@ -169,7 +169,7 @@ class bybit extends bybit$1 {
169
169
  * @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
170
170
  * @param {string} symbol unified symbol of the market to fetch the ticker for
171
171
  * @param {object} [params] extra parameters specific to the bybit api endpoint
172
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
172
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
173
173
  */
174
174
  await this.loadMarkets();
175
175
  const market = this.market(symbol);
@@ -195,7 +195,7 @@ class bybit extends bybit$1 {
195
195
  * @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
196
196
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
197
197
  * @param {object} [params] extra parameters specific to the bybit api endpoint
198
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
198
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
199
199
  */
200
200
  await this.loadMarkets();
201
201
  symbols = this.marketSymbols(symbols, undefined, false);
@@ -513,7 +513,7 @@ class bybit extends bybit$1 {
513
513
  * @param {string} symbol unified symbol of the market to fetch the order book for
514
514
  * @param {int} [limit] the maximum amount of order book entries to return.
515
515
  * @param {object} [params] extra parameters specific to the bybit api endpoint
516
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
516
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
517
517
  */
518
518
  await this.loadMarkets();
519
519
  const market = this.market(symbol);
@@ -667,7 +667,7 @@ class bybit extends bybit$1 {
667
667
  * @param {int} [since] the earliest time in ms to fetch trades for
668
668
  * @param {int} [limit] the maximum number of trade structures to retrieve
669
669
  * @param {object} [params] extra parameters specific to the bybit api endpoint
670
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
670
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
671
671
  */
672
672
  await this.loadMarkets();
673
673
  const market = this.market(symbol);
@@ -855,7 +855,7 @@ class bybit extends bybit$1 {
855
855
  * @param {int} [limit] the maximum number of orde structures to retrieve
856
856
  * @param {object} [params] extra parameters specific to the bybit api endpoint
857
857
  * @param {boolean} [params.unifiedMargin] use unified margin account
858
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
858
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
859
859
  */
860
860
  const method = 'watchMyTrades';
861
861
  let messageHash = 'myTrades';
@@ -1119,7 +1119,7 @@ class bybit extends bybit$1 {
1119
1119
  * @param {int} [since] the earliest time in ms to fetch orders for
1120
1120
  * @param {int} [limit] the maximum number of orde structures to retrieve
1121
1121
  * @param {object} [params] extra parameters specific to the bybit api endpoint
1122
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
1122
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
1123
1123
  */
1124
1124
  await this.loadMarkets();
1125
1125
  const method = 'watchOrders';
@@ -1402,7 +1402,7 @@ class bybit extends bybit$1 {
1402
1402
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
1403
1403
  * @see https://bybit-exchange.github.io/docs/v5/websocket/private/wallet
1404
1404
  * @param {object} [params] extra parameters specific to the bybit api endpoint
1405
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
1405
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
1406
1406
  */
1407
1407
  await this.loadMarkets();
1408
1408
  const method = 'watchBalance';
@@ -47,7 +47,7 @@ class cex extends cex$1 {
47
47
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
48
48
  * @see https://cex.io/websocket-api#get-balance
49
49
  * @param {object} [params] extra parameters specific to the cex api endpoint
50
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
50
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
51
51
  */
52
52
  await this.authenticate(params);
53
53
  const messageHash = 'balance';
@@ -109,7 +109,7 @@ class cex extends cex$1 {
109
109
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
110
110
  * @param {int} [limit] the maximum amount of trades to fetch
111
111
  * @param {object} [params] extra parameters specific to the cex api endpoint
112
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
112
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
113
113
  */
114
114
  await this.loadMarkets();
115
115
  const market = this.market(symbol);
@@ -225,7 +225,7 @@ class cex extends cex$1 {
225
225
  * @param {string} symbol unified symbol of the market to fetch the ticker for
226
226
  * @param {object} [params] extra parameters specific to the cex api endpoint
227
227
  * @param {string} [params.method] public or private
228
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
228
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
229
229
  */
230
230
  await this.loadMarkets();
231
231
  const market = this.market(symbol);
@@ -262,7 +262,7 @@ class cex extends cex$1 {
262
262
  * @description watches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
263
263
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
264
264
  * @param {object} [params] extra parameters specific to the cex api endpoint
265
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
265
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
266
266
  */
267
267
  await this.loadMarkets();
268
268
  symbols = this.marketSymbols(symbols);
@@ -381,9 +381,11 @@ class cex extends cex$1 {
381
381
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
382
382
  * @param {int} [limit] the maximum amount of trades to fetch
383
383
  * @param {object} [params] extra parameters specific to the cex api endpoint
384
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
384
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
385
385
  */
386
- this.checkRequiredSymbol('watchOrders', symbol);
386
+ if (symbol === undefined) {
387
+ throw new errors.ArgumentsRequired(this.id + ' watchOrders() requires a symbol argument');
388
+ }
387
389
  await this.loadMarkets();
388
390
  await this.authenticate(params);
389
391
  const url = this.urls['api']['ws'];
@@ -417,9 +419,11 @@ class cex extends cex$1 {
417
419
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
418
420
  * @param {int} [limit] the maximum amount of trades to fetch
419
421
  * @param {object} [params] extra parameters specific to the cex api endpoint
420
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
422
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
421
423
  */
422
- this.checkRequiredSymbol('watchMyTrades', symbol);
424
+ if (symbol === undefined) {
425
+ throw new errors.ArgumentsRequired(this.id + ' watchMyTrades() requires a symbol argument');
426
+ }
423
427
  await this.loadMarkets();
424
428
  await this.authenticate(params);
425
429
  const url = this.urls['api']['ws'];
@@ -848,7 +852,7 @@ class cex extends cex$1 {
848
852
  * @param {string} symbol unified symbol of the market to fetch the order book for
849
853
  * @param {int} [limit] the maximum amount of order book entries to return
850
854
  * @param {object} [params] extra parameters specific to the cex api endpoint
851
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
855
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
852
856
  */
853
857
  await this.loadMarkets();
854
858
  await this.authenticate();
@@ -94,7 +94,7 @@ class coinbase extends coinbase$1 {
94
94
  * @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-channel
95
95
  * @param {string} [symbol] unified symbol of the market to fetch the ticker for
96
96
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
97
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
97
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
98
98
  */
99
99
  const name = 'ticker';
100
100
  return await this.subscribe(name, symbol, params);
@@ -107,7 +107,7 @@ class coinbase extends coinbase$1 {
107
107
  * @see https://docs.cloud.coinbase.com/advanced-trade-api/docs/ws-channels#ticker-batch-channel
108
108
  * @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
109
109
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
110
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
110
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
111
111
  */
112
112
  if (symbols === undefined) {
113
113
  throw new errors.ArgumentsRequired(this.id + ' watchTickers requires a symbols argument');
@@ -248,7 +248,7 @@ class coinbase extends coinbase$1 {
248
248
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
249
249
  * @param {int} [limit] the maximum amount of trades to fetch
250
250
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
251
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
251
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
252
252
  */
253
253
  await this.loadMarkets();
254
254
  symbol = this.symbol(symbol);
@@ -269,7 +269,7 @@ class coinbase extends coinbase$1 {
269
269
  * @param {int} [since] the earliest time in ms to fetch orders for
270
270
  * @param {int} [limit] the maximum number of orde structures to retrieve
271
271
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
272
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
272
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
273
273
  */
274
274
  await this.loadMarkets();
275
275
  const name = 'user';
@@ -288,7 +288,7 @@ class coinbase extends coinbase$1 {
288
288
  * @param {string} symbol unified symbol of the market to fetch the order book for
289
289
  * @param {int} [limit] the maximum amount of order book entries to return
290
290
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
291
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
291
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
292
292
  */
293
293
  await this.loadMarkets();
294
294
  const name = 'level2';