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
@@ -187,7 +187,7 @@ export default class poloniex extends poloniexRest {
187
187
  * @see https://docs.poloniex.com/#public-channels-market-data-ticker
188
188
  * @param {string} symbol unified symbol of the market to fetch the ticker for
189
189
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
190
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
190
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
191
191
  */
192
192
  await this.loadMarkets();
193
193
  symbol = this.symbol(symbol);
@@ -202,7 +202,7 @@ export default class poloniex extends poloniexRest {
202
202
  * @see https://docs.poloniex.com/#public-channels-market-data-ticker
203
203
  * @param {string} symbol unified symbol of the market to fetch the ticker for
204
204
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
205
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
205
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
206
206
  */
207
207
  await this.loadMarkets();
208
208
  const name = 'ticker';
@@ -223,7 +223,7 @@ export default class poloniex extends poloniexRest {
223
223
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
224
224
  * @param {int} [limit] the maximum amount of trades to fetch
225
225
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
226
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
226
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
227
227
  */
228
228
  await this.loadMarkets();
229
229
  symbol = this.symbol(symbol);
@@ -243,7 +243,7 @@ export default class poloniex extends poloniexRest {
243
243
  * @param {string} symbol unified symbol of the market to fetch the order book for
244
244
  * @param {int} [limit] not used by poloniex watchOrderBook
245
245
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
246
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
246
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
247
247
  */
248
248
  await this.loadMarkets();
249
249
  const watchOrderBookOptions = this.safeValue(this.options, 'watchOrderBook');
@@ -262,7 +262,7 @@ export default class poloniex extends poloniexRest {
262
262
  * @param {int} [since] not used by poloniex watchOrders
263
263
  * @param {int} [limit] not used by poloniex watchOrders
264
264
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
265
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
265
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
266
266
  */
267
267
  await this.loadMarkets();
268
268
  const name = 'orders';
@@ -287,7 +287,7 @@ export default class poloniex extends poloniexRest {
287
287
  * @param {int} [since] not used by poloniex watchMyTrades
288
288
  * @param {int} [limit] not used by poloniex watchMyTrades
289
289
  * @param {object} [params] extra parameters specific to the poloniex strean
290
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
290
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
291
291
  */
292
292
  await this.loadMarkets();
293
293
  const name = 'orders';
@@ -310,7 +310,7 @@ export default class poloniex extends poloniexRest {
310
310
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
311
311
  * @see https://docs.poloniex.com/#authenticated-channels-market-data-balances
312
312
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
313
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
313
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
314
314
  */
315
315
  await this.loadMarkets();
316
316
  const name = 'balances';
@@ -234,7 +234,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
234
234
  * @see https://futures-docs.poloniex.com/#get-real-time-symbol-ticker
235
235
  * @param {string} symbol unified symbol of the market to fetch the ticker for
236
236
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
237
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
237
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
238
238
  */
239
239
  await this.loadMarkets();
240
240
  symbol = this.symbol(symbol);
@@ -251,7 +251,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
251
251
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
252
252
  * @param {int} [limit] the maximum amount of trades to fetch
253
253
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
254
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
254
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
255
255
  */
256
256
  await this.loadMarkets();
257
257
  const options = this.safeValue(this.options, 'watchTrades');
@@ -274,7 +274,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
274
274
  * @param {int} [limit] not used by poloniexfutures watchOrderBook
275
275
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
276
276
  * @param {string} [params.method] the method to use. Defaults to /contractMarket/level2 can also be /contractMarket/level3v2 to receive the raw stream of orders
277
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
277
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
278
278
  */
279
279
  await this.loadMarkets();
280
280
  const options = this.safeValue(this.options, 'watchOrderBook');
@@ -305,7 +305,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
305
305
  * @param {int} [limit] the maximum number of orde structures to retrieve
306
306
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
307
307
  * @param {string} [params.method] the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
308
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
308
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
309
309
  */
310
310
  await this.loadMarkets();
311
311
  const options = this.safeValue(this.options, 'watchOrders');
@@ -328,7 +328,7 @@ export default class poloniexfutures extends poloniexfuturesRest {
328
328
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
329
329
  * @see https://futures-docs.poloniex.com/#account-balance-events
330
330
  * @param {object} [params] extra parameters specific to the poloniexfutures api endpoint
331
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
331
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
332
332
  */
333
333
  await this.loadMarkets();
334
334
  const name = '/contractAccount/wallet';
@@ -58,7 +58,7 @@ export default class probit extends probitRest {
58
58
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
59
59
  * @see https://docs-en.probit.com/reference/balance-1
60
60
  * @param {object} [params] extra parameters specific to the probit 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
  await this.authenticate(params);
64
64
  const messageHash = 'balance';
@@ -126,7 +126,7 @@ export default class probit extends probitRest {
126
126
  * @param {string} symbol unified symbol of the market to fetch the ticker for
127
127
  * @param {object} [params] extra parameters specific to the probit api endpoint
128
128
  * @param {int} [params.interval] Unit time to synchronize market information (ms). Available units: 100, 500
129
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
129
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
130
130
  */
131
131
  let filter = undefined;
132
132
  [filter, params] = this.handleOptionAndParams(params, 'watchTicker', 'filter', 'ticker');
@@ -171,7 +171,7 @@ export default class probit extends probitRest {
171
171
  * @param {int} [limit] the maximum amount of trades to fetch
172
172
  * @param {object} [params] extra parameters specific to the probit api endpoint
173
173
  * @param {int} [params.interval] Unit time to synchronize market information (ms). Available units: 100, 500
174
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
174
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
175
175
  */
176
176
  let filter = undefined;
177
177
  [filter, params] = this.handleOptionAndParams(params, 'watchTrades', 'filter', 'recent_trades');
@@ -231,7 +231,7 @@ export default class probit extends probitRest {
231
231
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
232
232
  * @param {int} [limit] the maximum amount of trades to fetch
233
233
  * @param {object} [params] extra parameters specific to the probit api endpoint
234
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
234
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
235
235
  */
236
236
  await this.loadMarkets();
237
237
  await this.authenticate(params);
@@ -313,7 +313,7 @@ export default class probit extends probitRest {
313
313
  * @param {int} [limit] the maximum amount of orders to watch
314
314
  * @param {object} [params] extra parameters specific to the aax api endpoint
315
315
  * @param {string} [params.channel] choose what channel to use. Can open_order or order_history.
316
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
316
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
317
317
  */
318
318
  await this.authenticate(params);
319
319
  const url = this.urls['api']['ws'];
@@ -398,7 +398,7 @@ export default class probit extends probitRest {
398
398
  * @param {string} symbol unified symbol of the market to fetch the order book for
399
399
  * @param {int} [limit] the maximum amount of order book entries to return
400
400
  * @param {object} [params] extra parameters specific to the probit api endpoint
401
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
401
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
402
402
  */
403
403
  let filter = undefined;
404
404
  [filter, params] = this.handleOptionAndParams(params, 'watchOrderBook', 'filter', 'order_books');
@@ -58,7 +58,7 @@ export default class upbit extends upbitRest {
58
58
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
59
59
  * @param {string} symbol unified symbol of the market to fetch the ticker for
60
60
  * @param {object} [params] extra parameters specific to the upbit api endpoint
61
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
61
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
62
62
  */
63
63
  return await this.watchPublic(symbol, 'ticker');
64
64
  }
@@ -71,7 +71,7 @@ export default class upbit extends upbitRest {
71
71
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
72
72
  * @param {int} [limit] the maximum amount of trades to fetch
73
73
  * @param {object} [params] extra parameters specific to the upbit api endpoint
74
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
74
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
75
75
  */
76
76
  await this.loadMarkets();
77
77
  symbol = this.symbol(symbol);
@@ -89,7 +89,7 @@ export default class upbit extends upbitRest {
89
89
  * @param {string} symbol unified symbol of the market to fetch the order book for
90
90
  * @param {int} [limit] the maximum amount of order book entries to return
91
91
  * @param {object} [params] extra parameters specific to the upbit api endpoint
92
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
92
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
93
93
  */
94
94
  const orderbook = await this.watchPublic(symbol, 'orderbook');
95
95
  return orderbook.limit();
@@ -47,7 +47,7 @@ export default class wazirx extends wazirxRest {
47
47
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
48
48
  * @see https://docs.wazirx.com/#account-update
49
49
  * @param {object} [params] extra parameters specific to the wazirx 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.loadMarkets();
53
53
  const token = await this.authenticate(params);
@@ -88,8 +88,8 @@ export default class wazirx extends wazirxRest {
88
88
  const balance = balances[i];
89
89
  const currencyId = this.safeString(balance, 'a');
90
90
  const code = this.safeCurrencyCode(currencyId);
91
- const available = this.safeNumber(balance, 'b');
92
- const locked = this.safeNumber(balance, 'l');
91
+ const available = this.safeString(balance, 'b');
92
+ const locked = this.safeString(balance, 'l');
93
93
  const account = this.account();
94
94
  account['free'] = available;
95
95
  account['used'] = locked;
@@ -168,7 +168,7 @@ export default class wazirx extends wazirxRest {
168
168
  * @see https://docs.wazirx.com/#all-market-tickers-stream
169
169
  * @param {string} symbol unified symbol of the market to fetch the ticker for
170
170
  * @param {object} [params] extra parameters specific to the wazirx api endpoint
171
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
171
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
172
172
  */
173
173
  await this.loadMarkets();
174
174
  const market = this.market(symbol);
@@ -191,7 +191,7 @@ export default class wazirx extends wazirxRest {
191
191
  * @see https://docs.wazirx.com/#all-market-tickers-stream
192
192
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
193
193
  * @param {object} [params] extra parameters specific to the wazirx api endpoint
194
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
194
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
195
195
  */
196
196
  await this.loadMarkets();
197
197
  symbols = this.marketSymbols(symbols);
@@ -291,7 +291,7 @@ export default class wazirx extends wazirxRest {
291
291
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
292
292
  * @param {int} [limit] the maximum amount of trades to fetch
293
293
  * @param {object} [params] extra parameters specific to the wazirx api endpoint
294
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
294
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
295
295
  */
296
296
  await this.loadMarkets();
297
297
  const market = this.market(symbol);
@@ -357,7 +357,7 @@ export default class wazirx extends wazirxRest {
357
357
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
358
358
  * @param {int} [limit] the maximum amount of trades to fetch
359
359
  * @param {object} [params] extra parameters specific to the wazirx api endpoint
360
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
360
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
361
361
  */
362
362
  await this.loadMarkets();
363
363
  const token = await this.authenticate(params);
@@ -476,7 +476,7 @@ export default class wazirx extends wazirxRest {
476
476
  * @param {string} symbol unified symbol of the market to fetch the order book for
477
477
  * @param {int} [limit] the maximum amount of order book entries to return
478
478
  * @param {object} [params] extra parameters specific to the wazirx api endpoint
479
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
479
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
480
480
  */
481
481
  await this.loadMarkets();
482
482
  const market = this.market(symbol);
@@ -7,7 +7,7 @@
7
7
  // ---------------------------------------------------------------------------
8
8
  import whitebitRest from '../whitebit.js';
9
9
  import { Precise } from '../base/Precise.js';
10
- import { AuthenticationError, BadRequest } from '../base/errors.js';
10
+ import { ArgumentsRequired, AuthenticationError, BadRequest } from '../base/errors.js';
11
11
  import { ArrayCache, ArrayCacheBySymbolById, ArrayCacheByTimestamp } from '../base/ws/Cache.js';
12
12
  // ---------------------------------------------------------------------------
13
13
  export default class whitebit extends whitebitRest {
@@ -137,7 +137,7 @@ export default class whitebit extends whitebitRest {
137
137
  * @param {string} symbol unified symbol of the market to fetch the order book for
138
138
  * @param {int} [limit] the maximum amount of order book entries to return
139
139
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
140
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
140
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
141
141
  */
142
142
  await this.loadMarkets();
143
143
  const market = this.market(symbol);
@@ -240,7 +240,7 @@ export default class whitebit extends whitebitRest {
240
240
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
241
241
  * @param {string} symbol unified symbol of the market to fetch the ticker for
242
242
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
243
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
243
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
244
244
  */
245
245
  await this.loadMarkets();
246
246
  const market = this.market(symbol);
@@ -308,7 +308,7 @@ export default class whitebit extends whitebitRest {
308
308
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
309
309
  * @param {int} [limit] the maximum amount of trades to fetch
310
310
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
311
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
311
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
312
312
  */
313
313
  await this.loadMarkets();
314
314
  const market = this.market(symbol);
@@ -374,9 +374,11 @@ export default class whitebit extends whitebitRest {
374
374
  * @param {int} [since] the earliest time in ms to fetch trades for
375
375
  * @param {int} [limit] the maximum number of trades structures to retrieve
376
376
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
377
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
377
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
378
378
  */
379
- this.checkRequiredSymbol('watchMyTrades', symbol);
379
+ if (symbol === undefined) {
380
+ throw new ArgumentsRequired(this.id + ' watchMyTrades() requires a symbol argument');
381
+ }
380
382
  await this.loadMarkets();
381
383
  await this.authenticate();
382
384
  const market = this.market(symbol);
@@ -471,9 +473,11 @@ export default class whitebit extends whitebitRest {
471
473
  * @param {int} [since] the earliest time in ms to fetch orders for
472
474
  * @param {int} [limit] the maximum number of order structures to retrieve
473
475
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
474
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
476
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
475
477
  */
476
- this.checkRequiredSymbol('watchOrders', symbol);
478
+ if (symbol === undefined) {
479
+ throw new ArgumentsRequired(this.id + ' watchOrders() requires a symbol argument');
480
+ }
477
481
  await this.loadMarkets();
478
482
  await this.authenticate();
479
483
  const market = this.market(symbol);
@@ -642,7 +646,7 @@ export default class whitebit extends whitebitRest {
642
646
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
643
647
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
644
648
  * @param {str} [params.type] spot or contract if not provided this.options['defaultType'] is used
645
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
649
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
646
650
  */
647
651
  await this.loadMarkets();
648
652
  let type = undefined;
package/js/src/pro/woo.js CHANGED
@@ -614,7 +614,7 @@ export default class woo extends wooRest {
614
614
  * @name woo#watchBalance
615
615
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
616
616
  * @param {object} [params] extra parameters specific to the woo api endpoint
617
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
617
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
618
618
  */
619
619
  await this.loadMarkets();
620
620
  const topic = 'balance';
package/js/src/probit.js CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  // ---------------------------------------------------------------------------
8
8
  import Exchange from './abstract/probit.js';
9
- import { ExchangeError, ExchangeNotAvailable, BadResponse, BadRequest, InvalidOrder, InsufficientFunds, AuthenticationError, InvalidAddress, RateLimitExceeded, DDoSProtection, BadSymbol } from './base/errors.js';
9
+ import { ExchangeError, ExchangeNotAvailable, BadResponse, BadRequest, InvalidOrder, InsufficientFunds, AuthenticationError, InvalidAddress, RateLimitExceeded, DDoSProtection, BadSymbol, ArgumentsRequired } from './base/errors.js';
10
10
  import { Precise } from './base/Precise.js';
11
11
  import { TRUNCATE, TICK_SIZE } from './base/functions/number.js';
12
12
  // ---------------------------------------------------------------------------
@@ -38,12 +38,11 @@ export default class probit extends Exchange {
38
38
  'createStopMarketOrder': false,
39
39
  'createStopOrder': false,
40
40
  'fetchBalance': true,
41
- 'fetchBorrowRate': false,
42
41
  'fetchBorrowRateHistories': false,
43
42
  'fetchBorrowRateHistory': false,
44
- 'fetchBorrowRates': false,
45
- 'fetchBorrowRatesPerSymbol': false,
46
43
  'fetchClosedOrders': true,
44
+ 'fetchCrossBorrowRate': false,
45
+ 'fetchCrossBorrowRates': false,
47
46
  'fetchCurrencies': true,
48
47
  'fetchDepositAddress': true,
49
48
  'fetchDepositAddresses': true,
@@ -54,6 +53,8 @@ export default class probit extends Exchange {
54
53
  'fetchFundingRateHistory': false,
55
54
  'fetchFundingRates': false,
56
55
  'fetchIndexOHLCV': false,
56
+ 'fetchIsolatedBorrowRate': false,
57
+ 'fetchIsolatedBorrowRates': false,
57
58
  'fetchLeverage': false,
58
59
  'fetchLeverageTiers': false,
59
60
  'fetchMarginMode': false,
@@ -531,7 +532,7 @@ export default class probit extends Exchange {
531
532
  * @see https://docs-en.probit.com/reference/balance
532
533
  * @description query for balance and get the amount of funds available for trading or funds locked in orders
533
534
  * @param {object} [params] extra parameters specific to the probit api endpoint
534
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
535
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
535
536
  */
536
537
  await this.loadMarkets();
537
538
  const response = await this.privateGetBalance(params);
@@ -557,7 +558,7 @@ export default class probit extends Exchange {
557
558
  * @param {string} symbol unified symbol of the market to fetch the order book for
558
559
  * @param {int} [limit] the maximum amount of order book entries to return
559
560
  * @param {object} [params] extra parameters specific to the probit api endpoint
560
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
561
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
561
562
  */
562
563
  await this.loadMarkets();
563
564
  const market = this.market(symbol);
@@ -586,7 +587,7 @@ export default class probit extends Exchange {
586
587
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
587
588
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
588
589
  * @param {object} [params] extra parameters specific to the probit api endpoint
589
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
590
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
590
591
  */
591
592
  await this.loadMarkets();
592
593
  const request = {};
@@ -622,7 +623,7 @@ export default class probit extends Exchange {
622
623
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
623
624
  * @param {string} symbol unified symbol of the market to fetch the ticker for
624
625
  * @param {object} [params] extra parameters specific to the probit api endpoint
625
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
626
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
626
627
  */
627
628
  await this.loadMarkets();
628
629
  const market = this.market(symbol);
@@ -706,7 +707,7 @@ export default class probit extends Exchange {
706
707
  * @param {int} [since] the earliest time in ms to fetch trades for
707
708
  * @param {int} [limit] the maximum number of trades structures to retrieve
708
709
  * @param {object} [params] extra parameters specific to the probit api endpoint
709
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
710
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
710
711
  */
711
712
  await this.loadMarkets();
712
713
  let market = undefined;
@@ -760,7 +761,7 @@ export default class probit extends Exchange {
760
761
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
761
762
  * @param {int} [limit] the maximum amount of trades to fetch
762
763
  * @param {object} [params] extra parameters specific to the probit api endpoint
763
- * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
764
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
764
765
  */
765
766
  await this.loadMarkets();
766
767
  const market = this.market(symbol);
@@ -1023,7 +1024,7 @@ export default class probit extends Exchange {
1023
1024
  * @param {int} [since] the earliest time in ms to fetch open orders for
1024
1025
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1025
1026
  * @param {object} [params] extra parameters specific to the probit api endpoint
1026
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1027
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1027
1028
  */
1028
1029
  await this.loadMarkets();
1029
1030
  since = this.parse8601(since);
@@ -1047,7 +1048,7 @@ export default class probit extends Exchange {
1047
1048
  * @param {int} [since] the earliest time in ms to fetch orders for
1048
1049
  * @param {int} [limit] the maximum number of orde structures to retrieve
1049
1050
  * @param {object} [params] extra parameters specific to the probit api endpoint
1050
- * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1051
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1051
1052
  */
1052
1053
  await this.loadMarkets();
1053
1054
  const request = {
@@ -1078,9 +1079,11 @@ export default class probit extends Exchange {
1078
1079
  * @description fetches information on an order made by the user
1079
1080
  * @param {string} symbol unified symbol of the market the order was made in
1080
1081
  * @param {object} [params] extra parameters specific to the probit api endpoint
1081
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1082
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1082
1083
  */
1083
- this.checkRequiredSymbol('fetchOrder', symbol);
1084
+ if (symbol === undefined) {
1085
+ throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
1086
+ }
1084
1087
  await this.loadMarkets();
1085
1088
  const market = this.market(symbol);
1086
1089
  const request = {
@@ -1187,7 +1190,7 @@ export default class probit extends Exchange {
1187
1190
  * @param {float} amount how much of currency you want to trade in units of base currency
1188
1191
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1189
1192
  * @param {object} [params] extra parameters specific to the probit api endpoint
1190
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1193
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1191
1194
  */
1192
1195
  await this.loadMarkets();
1193
1196
  const market = this.market(symbol);
@@ -1279,9 +1282,11 @@ export default class probit extends Exchange {
1279
1282
  * @param {string} id order id
1280
1283
  * @param {string} symbol unified symbol of the market the order was made in
1281
1284
  * @param {object} [params] extra parameters specific to the probit api endpoint
1282
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1285
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1283
1286
  */
1284
- this.checkRequiredSymbol('cancelOrder', symbol);
1287
+ if (symbol === undefined) {
1288
+ throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
1289
+ }
1285
1290
  await this.loadMarkets();
1286
1291
  const market = this.market(symbol);
1287
1292
  const request = {
@@ -1316,7 +1321,7 @@ export default class probit extends Exchange {
1316
1321
  * @description fetch the deposit address for a currency associated with this account
1317
1322
  * @param {string} code unified currency code
1318
1323
  * @param {object} [params] extra parameters specific to the probit api endpoint
1319
- * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1324
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1320
1325
  */
1321
1326
  await this.loadMarkets();
1322
1327
  const currency = this.currency(code);
@@ -1370,7 +1375,7 @@ export default class probit extends Exchange {
1370
1375
  * @description fetch deposit addresses for multiple currencies and chain types
1371
1376
  * @param {string[]|undefined} codes list of unified currency codes, default is undefined
1372
1377
  * @param {object} [params] extra parameters specific to the probit api endpoint
1373
- * @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1378
+ * @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
1374
1379
  */
1375
1380
  await this.loadMarkets();
1376
1381
  const request = {};
@@ -1397,7 +1402,7 @@ export default class probit extends Exchange {
1397
1402
  * @param {string} address the address to withdraw to
1398
1403
  * @param {string} tag
1399
1404
  * @param {object} [params] extra parameters specific to the probit api endpoint
1400
- * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1405
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1401
1406
  */
1402
1407
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1403
1408
  // In order to use this method
@@ -1442,7 +1447,7 @@ export default class probit extends Exchange {
1442
1447
  * @param {int} [since] the earliest time in ms to fetch deposits for
1443
1448
  * @param {int} [limit] the maximum number of transaction structures to retrieve
1444
1449
  * @param {object} [params] extra parameters specific to the probit api endpoint
1445
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1450
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1446
1451
  */
1447
1452
  const request = {
1448
1453
  'type': 'deposit',
@@ -1459,7 +1464,7 @@ export default class probit extends Exchange {
1459
1464
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
1460
1465
  * @param {int} [limit] the maximum number of transaction structures to retrieve
1461
1466
  * @param {object} [params] extra parameters specific to the probit api endpoint
1462
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1467
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1463
1468
  */
1464
1469
  const request = {
1465
1470
  'type': 'withdrawal',
@@ -1479,7 +1484,7 @@ export default class probit extends Exchange {
1479
1484
  * @param {int} [limit] the maximum number of transaction structures to retrieve
1480
1485
  * @param {int} [params.until] the latest time in ms to fetch transactions for
1481
1486
  * @param {object} [params] extra parameters specific to the probit api endpoint
1482
- * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1487
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1483
1488
  */
1484
1489
  await this.loadMarkets();
1485
1490
  let currency = undefined;
@@ -1621,7 +1626,7 @@ export default class probit extends Exchange {
1621
1626
  * @description fetch deposit and withdraw fees
1622
1627
  * @param {string[]|undefined} codes list of unified currency codes
1623
1628
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1624
- * @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
1629
+ * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
1625
1630
  */
1626
1631
  await this.loadMarkets();
1627
1632
  const response = await this.publicGetCurrencyWithPlatform(params);