ccxt 4.0.73 → 4.0.75

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 (283) hide show
  1. package/README.md +11 -11
  2. package/dist/ccxt.browser.js +2058 -1943
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +9 -9
  6. package/dist/cjs/src/alpaca.js +6 -6
  7. package/dist/cjs/src/ascendex.js +22 -22
  8. package/dist/cjs/src/base/Exchange.js +2 -2
  9. package/dist/cjs/src/bigone.js +17 -17
  10. package/dist/cjs/src/binance.js +51 -51
  11. package/dist/cjs/src/bingx.js +25 -26
  12. package/dist/cjs/src/bit2c.js +10 -10
  13. package/dist/cjs/src/bitbank.js +11 -11
  14. package/dist/cjs/src/bitbns.js +12 -12
  15. package/dist/cjs/src/bitfinex.js +19 -19
  16. package/dist/cjs/src/bitfinex2.js +25 -25
  17. package/dist/cjs/src/bitflyer.js +15 -15
  18. package/dist/cjs/src/bitforex.js +9 -9
  19. package/dist/cjs/src/bitget.js +34 -34
  20. package/dist/cjs/src/bithumb.js +9 -9
  21. package/dist/cjs/src/bitmart.js +42 -29
  22. package/dist/cjs/src/bitmex.js +19 -19
  23. package/dist/cjs/src/bitopro.js +18 -18
  24. package/dist/cjs/src/bitpanda.js +19 -19
  25. package/dist/cjs/src/bitrue.js +15 -15
  26. package/dist/cjs/src/bitso.js +19 -19
  27. package/dist/cjs/src/bitstamp.js +19 -19
  28. package/dist/cjs/src/bitstamp1.js +6 -6
  29. package/dist/cjs/src/bittrex.js +24 -24
  30. package/dist/cjs/src/bitvavo.js +16 -16
  31. package/dist/cjs/src/bkex.js +17 -17
  32. package/dist/cjs/src/bl3p.js +6 -6
  33. package/dist/cjs/src/blockchaincom.js +20 -20
  34. package/dist/cjs/src/btcalpha.js +13 -13
  35. package/dist/cjs/src/btcbox.js +8 -8
  36. package/dist/cjs/src/btcmarkets.js +15 -15
  37. package/dist/cjs/src/btctradeua.js +6 -6
  38. package/dist/cjs/src/btcturk.js +9 -9
  39. package/dist/cjs/src/bybit.js +148 -116
  40. package/dist/cjs/src/cex.js +12 -12
  41. package/dist/cjs/src/coinbase.js +20 -20
  42. package/dist/cjs/src/coinbasepro.js +22 -22
  43. package/dist/cjs/src/coincheck.js +10 -10
  44. package/dist/cjs/src/coinex.js +81 -35
  45. package/dist/cjs/src/coinfalcon.js +14 -14
  46. package/dist/cjs/src/coinmate.js +12 -12
  47. package/dist/cjs/src/coinone.js +10 -10
  48. package/dist/cjs/src/coinsph.js +20 -20
  49. package/dist/cjs/src/coinspot.js +6 -6
  50. package/dist/cjs/src/cryptocom.js +24 -24
  51. package/dist/cjs/src/currencycom.js +18 -18
  52. package/dist/cjs/src/delta.js +23 -23
  53. package/dist/cjs/src/deribit.js +27 -27
  54. package/dist/cjs/src/digifinex.js +27 -27
  55. package/dist/cjs/src/exmo.js +24 -24
  56. package/dist/cjs/src/gate.js +34 -34
  57. package/dist/cjs/src/gemini.js +14 -14
  58. package/dist/cjs/src/hitbtc.js +30 -30
  59. package/dist/cjs/src/hollaex.js +20 -20
  60. package/dist/cjs/src/huobi.js +40 -40
  61. package/dist/cjs/src/huobijp.js +18 -18
  62. package/dist/cjs/src/idex.js +17 -17
  63. package/dist/cjs/src/independentreserve.js +10 -10
  64. package/dist/cjs/src/indodax.js +12 -12
  65. package/dist/cjs/src/kraken.js +25 -25
  66. package/dist/cjs/src/krakenfutures.js +12 -12
  67. package/dist/cjs/src/kucoin.js +29 -29
  68. package/dist/cjs/src/kucoinfutures.js +19 -19
  69. package/dist/cjs/src/kuna.js +10 -10
  70. package/dist/cjs/src/latoken.js +15 -15
  71. package/dist/cjs/src/lbank.js +10 -10
  72. package/dist/cjs/src/lbank2.js +21 -21
  73. package/dist/cjs/src/luno.js +14 -14
  74. package/dist/cjs/src/lykke.js +14 -14
  75. package/dist/cjs/src/mercado.js +10 -10
  76. package/dist/cjs/src/mexc.js +38 -38
  77. package/dist/cjs/src/ndax.js +18 -18
  78. package/dist/cjs/src/novadax.js +18 -18
  79. package/dist/cjs/src/oceanex.js +14 -14
  80. package/dist/cjs/src/okcoin.js +19 -19
  81. package/dist/cjs/src/okx.js +48 -48
  82. package/dist/cjs/src/paymium.js +9 -9
  83. package/dist/cjs/src/phemex.js +24 -24
  84. package/dist/cjs/src/poloniex.js +77 -60
  85. package/dist/cjs/src/poloniexfutures.js +16 -16
  86. package/dist/cjs/src/pro/alpaca.js +5 -5
  87. package/dist/cjs/src/pro/ascendex.js +2 -2
  88. package/dist/cjs/src/pro/binance.js +10 -10
  89. package/dist/cjs/src/pro/bitfinex.js +3 -3
  90. package/dist/cjs/src/pro/bitfinex2.js +4 -4
  91. package/dist/cjs/src/pro/bitget.js +4 -4
  92. package/dist/cjs/src/pro/bitmart.js +3 -3
  93. package/dist/cjs/src/pro/bitmex.js +4 -4
  94. package/dist/cjs/src/pro/bitopro.js +2 -2
  95. package/dist/cjs/src/pro/bitrue.js +1 -1
  96. package/dist/cjs/src/pro/bitstamp.js +2 -2
  97. package/dist/cjs/src/pro/bittrex.js +4 -4
  98. package/dist/cjs/src/pro/bitvavo.js +4 -4
  99. package/dist/cjs/src/pro/bybit.js +12 -11
  100. package/dist/cjs/src/pro/cex.js +3 -3
  101. package/dist/cjs/src/pro/coinbasepro.js +5 -5
  102. package/dist/cjs/src/pro/coinex.js +3 -3
  103. package/dist/cjs/src/pro/cryptocom.js +7 -7
  104. package/dist/cjs/src/pro/currencycom.js +2 -2
  105. package/dist/cjs/src/pro/deribit.js +3 -3
  106. package/dist/cjs/src/pro/exmo.js +2 -2
  107. package/dist/cjs/src/pro/gate.js +5 -5
  108. package/dist/cjs/src/pro/gemini.js +2 -2
  109. package/dist/cjs/src/pro/hitbtc.js +2 -2
  110. package/dist/cjs/src/pro/hollaex.js +3 -3
  111. package/dist/cjs/src/pro/huobi.js +4 -4
  112. package/dist/cjs/src/pro/huobijp.js +2 -2
  113. package/dist/cjs/src/pro/idex.js +3 -3
  114. package/dist/cjs/src/pro/independentreserve.js +1 -1
  115. package/dist/cjs/src/pro/kraken.js +6 -6
  116. package/dist/cjs/src/pro/krakenfutures.js +2 -2
  117. package/dist/cjs/src/pro/kucoin.js +4 -4
  118. package/dist/cjs/src/pro/kucoinfutures.js +3 -3
  119. package/dist/cjs/src/pro/luno.js +1 -1
  120. package/dist/cjs/src/pro/ndax.js +2 -2
  121. package/dist/cjs/src/pro/okcoin.js +3 -3
  122. package/dist/cjs/src/pro/okx.js +12 -11
  123. package/dist/cjs/src/pro/phemex.js +4 -4
  124. package/dist/cjs/src/pro/poloniex.js +1 -1
  125. package/dist/cjs/src/pro/upbit.js +2 -2
  126. package/dist/cjs/src/pro/wazirx.js +3 -3
  127. package/dist/cjs/src/pro/whitebit.js +4 -4
  128. package/dist/cjs/src/probit.js +17 -17
  129. package/dist/cjs/src/tidex.js +11 -11
  130. package/dist/cjs/src/timex.js +14 -14
  131. package/dist/cjs/src/tokocrypto.js +16 -16
  132. package/dist/cjs/src/upbit.js +18 -18
  133. package/dist/cjs/src/wavesexchange.js +13 -13
  134. package/dist/cjs/src/wazirx.js +10 -10
  135. package/dist/cjs/src/whitebit.js +21 -21
  136. package/dist/cjs/src/woo.js +28 -22
  137. package/dist/cjs/src/yobit.js +14 -14
  138. package/dist/cjs/src/zaif.js +8 -8
  139. package/dist/cjs/src/zonda.js +13 -13
  140. package/js/ccxt.d.ts +1 -1
  141. package/js/ccxt.js +1 -1
  142. package/js/src/abstract/bitmart.d.ts +13 -0
  143. package/js/src/abstract/bybit.d.ts +33 -21
  144. package/js/src/abstract/woo.d.ts +6 -0
  145. package/js/src/ace.js +9 -9
  146. package/js/src/alpaca.js +6 -6
  147. package/js/src/ascendex.js +22 -22
  148. package/js/src/base/Exchange.js +2 -2
  149. package/js/src/bigone.js +17 -17
  150. package/js/src/binance.js +51 -51
  151. package/js/src/bingx.js +25 -26
  152. package/js/src/bit2c.js +10 -10
  153. package/js/src/bitbank.js +11 -11
  154. package/js/src/bitbns.js +12 -12
  155. package/js/src/bitfinex.js +19 -19
  156. package/js/src/bitfinex2.js +25 -25
  157. package/js/src/bitflyer.js +15 -15
  158. package/js/src/bitforex.js +9 -9
  159. package/js/src/bitget.js +34 -34
  160. package/js/src/bithumb.js +9 -9
  161. package/js/src/bitmart.js +42 -29
  162. package/js/src/bitmex.js +19 -19
  163. package/js/src/bitopro.js +18 -18
  164. package/js/src/bitpanda.js +19 -19
  165. package/js/src/bitrue.js +15 -15
  166. package/js/src/bitso.js +19 -19
  167. package/js/src/bitstamp.js +19 -19
  168. package/js/src/bitstamp1.js +6 -6
  169. package/js/src/bittrex.js +24 -24
  170. package/js/src/bitvavo.js +16 -16
  171. package/js/src/bkex.js +17 -17
  172. package/js/src/bl3p.js +6 -6
  173. package/js/src/blockchaincom.js +20 -20
  174. package/js/src/btcalpha.js +13 -13
  175. package/js/src/btcbox.js +8 -8
  176. package/js/src/btcmarkets.js +15 -15
  177. package/js/src/btctradeua.js +6 -6
  178. package/js/src/btcturk.js +9 -9
  179. package/js/src/bybit.js +148 -116
  180. package/js/src/cex.js +12 -12
  181. package/js/src/coinbase.js +20 -20
  182. package/js/src/coinbasepro.js +22 -22
  183. package/js/src/coincheck.js +10 -10
  184. package/js/src/coinex.d.ts +1 -0
  185. package/js/src/coinex.js +81 -35
  186. package/js/src/coinfalcon.js +14 -14
  187. package/js/src/coinmate.js +12 -12
  188. package/js/src/coinone.js +10 -10
  189. package/js/src/coinsph.js +20 -20
  190. package/js/src/coinspot.js +6 -6
  191. package/js/src/cryptocom.js +24 -24
  192. package/js/src/currencycom.js +18 -18
  193. package/js/src/delta.js +23 -23
  194. package/js/src/deribit.js +27 -27
  195. package/js/src/digifinex.js +27 -27
  196. package/js/src/exmo.js +24 -24
  197. package/js/src/gate.js +34 -34
  198. package/js/src/gemini.js +14 -14
  199. package/js/src/hitbtc.js +30 -30
  200. package/js/src/hollaex.js +20 -20
  201. package/js/src/huobi.js +40 -40
  202. package/js/src/huobijp.js +18 -18
  203. package/js/src/idex.js +17 -17
  204. package/js/src/independentreserve.js +10 -10
  205. package/js/src/indodax.js +12 -12
  206. package/js/src/kraken.js +25 -25
  207. package/js/src/krakenfutures.js +12 -12
  208. package/js/src/kucoin.js +29 -29
  209. package/js/src/kucoinfutures.js +19 -19
  210. package/js/src/kuna.js +10 -10
  211. package/js/src/latoken.js +15 -15
  212. package/js/src/lbank.js +10 -10
  213. package/js/src/lbank2.js +21 -21
  214. package/js/src/luno.js +14 -14
  215. package/js/src/lykke.js +14 -14
  216. package/js/src/mercado.js +10 -10
  217. package/js/src/mexc.js +38 -38
  218. package/js/src/ndax.js +18 -18
  219. package/js/src/novadax.js +18 -18
  220. package/js/src/oceanex.js +14 -14
  221. package/js/src/okcoin.js +19 -19
  222. package/js/src/okx.js +48 -48
  223. package/js/src/paymium.js +9 -9
  224. package/js/src/phemex.js +24 -24
  225. package/js/src/poloniex.js +77 -60
  226. package/js/src/poloniexfutures.js +16 -16
  227. package/js/src/pro/alpaca.js +5 -5
  228. package/js/src/pro/ascendex.js +2 -2
  229. package/js/src/pro/binance.js +10 -10
  230. package/js/src/pro/bitfinex.js +3 -3
  231. package/js/src/pro/bitfinex2.js +4 -4
  232. package/js/src/pro/bitget.js +4 -4
  233. package/js/src/pro/bitmart.js +3 -3
  234. package/js/src/pro/bitmex.js +4 -4
  235. package/js/src/pro/bitopro.js +2 -2
  236. package/js/src/pro/bitrue.js +1 -1
  237. package/js/src/pro/bitstamp.js +2 -2
  238. package/js/src/pro/bittrex.js +4 -4
  239. package/js/src/pro/bitvavo.js +4 -4
  240. package/js/src/pro/bybit.d.ts +1 -1
  241. package/js/src/pro/bybit.js +12 -11
  242. package/js/src/pro/cex.js +3 -3
  243. package/js/src/pro/coinbasepro.js +5 -5
  244. package/js/src/pro/coinex.js +3 -3
  245. package/js/src/pro/cryptocom.js +7 -7
  246. package/js/src/pro/currencycom.js +2 -2
  247. package/js/src/pro/deribit.js +3 -3
  248. package/js/src/pro/exmo.js +2 -2
  249. package/js/src/pro/gate.js +5 -5
  250. package/js/src/pro/gemini.js +2 -2
  251. package/js/src/pro/hitbtc.js +2 -2
  252. package/js/src/pro/hollaex.js +3 -3
  253. package/js/src/pro/huobi.js +4 -4
  254. package/js/src/pro/huobijp.js +2 -2
  255. package/js/src/pro/idex.js +3 -3
  256. package/js/src/pro/independentreserve.js +1 -1
  257. package/js/src/pro/kraken.js +6 -6
  258. package/js/src/pro/krakenfutures.js +2 -2
  259. package/js/src/pro/kucoin.js +4 -4
  260. package/js/src/pro/kucoinfutures.js +3 -3
  261. package/js/src/pro/luno.js +1 -1
  262. package/js/src/pro/ndax.js +2 -2
  263. package/js/src/pro/okcoin.js +3 -3
  264. package/js/src/pro/okx.d.ts +1 -1
  265. package/js/src/pro/okx.js +12 -11
  266. package/js/src/pro/phemex.js +4 -4
  267. package/js/src/pro/poloniex.js +1 -1
  268. package/js/src/pro/upbit.js +2 -2
  269. package/js/src/pro/wazirx.js +3 -3
  270. package/js/src/pro/whitebit.js +4 -4
  271. package/js/src/probit.js +17 -17
  272. package/js/src/tidex.js +11 -11
  273. package/js/src/timex.js +14 -14
  274. package/js/src/tokocrypto.js +16 -16
  275. package/js/src/upbit.js +18 -18
  276. package/js/src/wavesexchange.js +13 -13
  277. package/js/src/wazirx.js +10 -10
  278. package/js/src/whitebit.js +21 -21
  279. package/js/src/woo.js +28 -22
  280. package/js/src/yobit.js +14 -14
  281. package/js/src/zaif.js +8 -8
  282. package/js/src/zonda.js +13 -13
  283. package/package.json +1 -1
@@ -165,7 +165,7 @@ export default class bybit extends bybitRest {
165
165
  * @see https://bybit-exchange.github.io/docs/v5/websocket/public/etp-ticker
166
166
  * @param {string} symbol unified symbol of the market to fetch the ticker for
167
167
  * @param {object} [params] extra parameters specific to the bybit api endpoint
168
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
168
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
169
169
  */
170
170
  await this.loadMarkets();
171
171
  const market = this.market(symbol);
@@ -426,7 +426,7 @@ export default class bybit extends bybitRest {
426
426
  * @param {string} symbol unified symbol of the market to fetch the order book for
427
427
  * @param {int} [limit] the maximum amount of order book entries to return.
428
428
  * @param {object} [params] extra parameters specific to the bybit api endpoint
429
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
429
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
430
430
  */
431
431
  await this.loadMarkets();
432
432
  const market = this.market(symbol);
@@ -536,7 +536,7 @@ export default class bybit extends bybitRest {
536
536
  * @param {int} [since] the earliest time in ms to fetch trades for
537
537
  * @param {int} [limit] the maximum number of trade structures to retrieve
538
538
  * @param {object} [params] extra parameters specific to the bybit api endpoint
539
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
539
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
540
540
  */
541
541
  await this.loadMarkets();
542
542
  const market = this.market(symbol);
@@ -686,7 +686,7 @@ export default class bybit extends bybitRest {
686
686
  * @param {int} [limit] the maximum number of orde structures to retrieve
687
687
  * @param {object} [params] extra parameters specific to the bybit api endpoint
688
688
  * @param {boolean} [params.unifiedMargin] use unified margin account
689
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
689
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
690
690
  */
691
691
  const method = 'watchMyTrades';
692
692
  let messageHash = 'myTrades';
@@ -811,7 +811,7 @@ export default class bybit extends bybitRest {
811
811
  * @param {int} [since] the earliest time in ms to fetch orders for
812
812
  * @param {int} [limit] the maximum number of orde structures to retrieve
813
813
  * @param {object} [params] extra parameters specific to the bybit api endpoint
814
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
814
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
815
815
  */
816
816
  await this.loadMarkets();
817
817
  const method = 'watchOrders';
@@ -1391,12 +1391,13 @@ export default class bybit extends bybitRest {
1391
1391
  const message = this.extend(request, params);
1392
1392
  return await this.watch(url, messageHash, message, messageHash);
1393
1393
  }
1394
- authenticate(url, params = {}) {
1394
+ async authenticate(url, params = {}) {
1395
1395
  this.checkRequiredCredentials();
1396
1396
  const messageHash = 'authenticated';
1397
1397
  const client = this.client(url);
1398
- let future = this.safeValue(client.subscriptions, messageHash);
1399
- if (future === undefined) {
1398
+ const future = client.future(messageHash);
1399
+ const authenticated = this.safeValue(client.subscriptions, messageHash);
1400
+ if (authenticated === undefined) {
1400
1401
  const expiresInt = this.milliseconds() + 10000;
1401
1402
  const expires = expiresInt.toString();
1402
1403
  const path = 'GET/realtime';
@@ -1409,8 +1410,7 @@ export default class bybit extends bybitRest {
1409
1410
  ],
1410
1411
  };
1411
1412
  const message = this.extend(request, params);
1412
- future = this.watch(url, messageHash, message);
1413
- client.subscriptions[messageHash] = future;
1413
+ this.watch(url, messageHash, message, messageHash);
1414
1414
  }
1415
1415
  return future;
1416
1416
  }
@@ -1569,7 +1569,8 @@ export default class bybit extends bybitRest {
1569
1569
  const success = this.safeValue(message, 'success');
1570
1570
  const messageHash = 'authenticated';
1571
1571
  if (success) {
1572
- client.resolve(message, messageHash);
1572
+ const future = this.safeValue(client.futures, messageHash);
1573
+ future.resolve(true);
1573
1574
  }
1574
1575
  else {
1575
1576
  const error = new AuthenticationError(this.id + ' ' + this.json(message));
package/js/src/pro/cex.js CHANGED
@@ -228,7 +228,7 @@ export default class cex extends cexRest {
228
228
  * @param {string} symbol unified symbol of the market to fetch the ticker for
229
229
  * @param {object} [params] extra parameters specific to the cex api endpoint
230
230
  * @param {string} [params.method] public or private
231
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
231
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
232
232
  */
233
233
  await this.loadMarkets();
234
234
  const market = this.market(symbol);
@@ -265,7 +265,7 @@ export default class cex extends cexRest {
265
265
  * @description watches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
266
266
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
267
267
  * @param {object} [params] extra parameters specific to the cex api endpoint
268
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
268
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
269
269
  */
270
270
  await this.loadMarkets();
271
271
  symbols = this.marketSymbols(symbols);
@@ -855,7 +855,7 @@ export default class cex extends cexRest {
855
855
  * @param {string} symbol unified symbol of the market to fetch the order book for
856
856
  * @param {int} [limit] the maximum amount of order book entries to return
857
857
  * @param {object} [params] extra parameters specific to the cex api endpoint
858
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
858
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
859
859
  */
860
860
  await this.loadMarkets();
861
861
  await this.authenticate();
@@ -111,7 +111,7 @@ export default class coinbasepro extends coinbaseproRest {
111
111
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
112
112
  * @param {string} symbol unified symbol of the market to fetch the ticker for
113
113
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
114
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
114
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
115
115
  */
116
116
  const name = 'ticker';
117
117
  return await this.subscribe(name, symbol, name, params);
@@ -125,7 +125,7 @@ export default class coinbasepro extends coinbaseproRest {
125
125
  * @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
126
126
  * @param {object} [params] extra parameters specific to the okx api endpoint
127
127
  * @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
128
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
128
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
129
129
  */
130
130
  await this.loadMarkets();
131
131
  const symbolsLength = symbols.length;
@@ -169,7 +169,7 @@ export default class coinbasepro extends coinbaseproRest {
169
169
  * @param {int} [since] the earliest time in ms to fetch trades for
170
170
  * @param {int} [limit] the maximum number of trade structures to retrieve
171
171
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
172
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
172
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
173
173
  */
174
174
  this.checkRequiredSymbol('watchMyTrades', symbol);
175
175
  await this.loadMarkets();
@@ -192,7 +192,7 @@ export default class coinbasepro extends coinbaseproRest {
192
192
  * @param {int} [since] the earliest time in ms to fetch orders for
193
193
  * @param {int} [limit] the maximum number of orde structures to retrieve
194
194
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
195
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
195
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
196
196
  */
197
197
  if (symbol === undefined) {
198
198
  throw new BadSymbol(this.id + ' watchMyTrades requires a symbol');
@@ -216,7 +216,7 @@ export default class coinbasepro extends coinbaseproRest {
216
216
  * @param {string} symbol unified symbol of the market to fetch the order book for
217
217
  * @param {int} [limit] the maximum amount of order book entries to return
218
218
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
219
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
219
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
220
220
  */
221
221
  const name = 'level2';
222
222
  await this.loadMarkets();
@@ -409,7 +409,7 @@ export default class coinex extends coinexRest {
409
409
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
410
410
  * @param {string} symbol unified symbol of the market to fetch the ticker for
411
411
  * @param {object} [params] extra parameters specific to the coinex api endpoint
412
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
412
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
413
413
  */
414
414
  return await this.watchTickers([symbol], params);
415
415
  }
@@ -421,7 +421,7 @@ export default class coinex extends coinexRest {
421
421
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
422
422
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
423
423
  * @param {object} [params] extra parameters specific to the coinex api endpoint
424
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
424
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
425
425
  */
426
426
  await this.loadMarkets();
427
427
  symbols = this.marketSymbols(symbols);
@@ -486,7 +486,7 @@ export default class coinex extends coinexRest {
486
486
  * @param {string} symbol unified symbol of the market to fetch the order book for
487
487
  * @param {int} [limit] the maximum amount of order book entries to return
488
488
  * @param {object} [params] extra parameters specific to the coinex api endpoint
489
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
489
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
490
490
  */
491
491
  await this.loadMarkets();
492
492
  const market = this.market(symbol);
@@ -66,7 +66,7 @@ export default class cryptocom extends cryptocomRest {
66
66
  * @param {string} symbol unified symbol of the market to fetch the order book for
67
67
  * @param {int} [limit] the maximum amount of order book entries to return
68
68
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
69
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
69
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
70
70
  */
71
71
  await this.loadMarkets();
72
72
  const market = this.market(symbol);
@@ -193,7 +193,7 @@ export default class cryptocom extends cryptocomRest {
193
193
  * @param {int} [since] the earliest time in ms to fetch trades for
194
194
  * @param {int} [limit] the maximum number of trade structures to retrieve
195
195
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
196
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
196
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
197
197
  */
198
198
  await this.loadMarkets();
199
199
  let market = undefined;
@@ -217,7 +217,7 @@ export default class cryptocom extends cryptocomRest {
217
217
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
218
218
  * @param {string} symbol unified symbol of the market to fetch the ticker for
219
219
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
220
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
220
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
221
221
  */
222
222
  await this.loadMarkets();
223
223
  const market = this.market(symbol);
@@ -325,7 +325,7 @@ export default class cryptocom extends cryptocomRest {
325
325
  * @param {int} [since] the earliest time in ms to fetch orders for
326
326
  * @param {int} [limit] the maximum number of order structures to retrieve
327
327
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
328
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
328
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
329
329
  */
330
330
  await this.loadMarkets();
331
331
  let market = undefined;
@@ -478,7 +478,7 @@ export default class cryptocom extends cryptocomRest {
478
478
  * @param {string} type 'market' or 'limit'
479
479
  * @param {string} side 'buy' or 'sell'
480
480
  * @param {float} amount how much of currency you want to trade in units of base currency
481
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
481
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
482
482
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
483
483
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
484
484
  */
@@ -517,7 +517,7 @@ export default class cryptocom extends cryptocomRest {
517
517
  * @param {string} id the order id of the order to cancel
518
518
  * @param {string} [symbol] unified symbol of the market the order was made in
519
519
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
520
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
520
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
521
521
  */
522
522
  await this.loadMarkets();
523
523
  params = this.extend({
@@ -538,7 +538,7 @@ export default class cryptocom extends cryptocomRest {
538
538
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
539
539
  * @param {string} symbol unified market symbol of the orders to cancel
540
540
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
541
- * @returns {object} Returns exchange raw message {@link https://docs.ccxt.com/#/?id=order-structure}
541
+ * @returns {object} Returns exchange raw message {@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
542
542
  */
543
543
  await this.loadMarkets();
544
544
  let market = undefined;
@@ -344,7 +344,7 @@ export default class currencycom extends currencycomRest {
344
344
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
345
345
  * @param {string} symbol unified symbol of the market to fetch the ticker for
346
346
  * @param {object} [params] extra parameters specific to the currencycom api endpoint
347
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
347
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
348
348
  */
349
349
  await this.loadMarkets();
350
350
  const market = this.market(symbol);
@@ -393,7 +393,7 @@ export default class currencycom extends currencycomRest {
393
393
  * @param {string} symbol unified symbol of the market to fetch the order book for
394
394
  * @param {int} [limit] the maximum amount of order book entries to return
395
395
  * @param {object} [params] extra parameters specific to the currencycom api endpoint
396
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
396
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
397
397
  */
398
398
  await this.loadMarkets();
399
399
  symbol = this.symbol(symbol);
@@ -149,7 +149,7 @@ export default class deribit extends deribitRest {
149
149
  * @param {string} symbol unified symbol of the market to fetch the ticker for
150
150
  * @param {object} [params] extra parameters specific to the deribit api endpoint
151
151
  * @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
152
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
152
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
153
153
  */
154
154
  await this.loadMarkets();
155
155
  const market = this.market(symbol);
@@ -386,7 +386,7 @@ export default class deribit extends deribitRest {
386
386
  * @param {int} [limit] the maximum amount of order book entries to return
387
387
  * @param {object} [params] extra parameters specific to the deribit api endpoint
388
388
  * @param {string} [params.interval] Frequency of notifications. Events will be aggregated over this interval. Possible values: 100ms, raw
389
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
389
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
390
390
  */
391
391
  await this.loadMarkets();
392
392
  const market = this.market(symbol);
@@ -516,7 +516,7 @@ export default class deribit extends deribitRest {
516
516
  * @param {int} [since] the earliest time in ms to fetch orders for
517
517
  * @param {int} [limit] the maximum number of orde structures to retrieve
518
518
  * @param {object} [params] extra parameters specific to the deribit api endpoint
519
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
519
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
520
520
  */
521
521
  await this.loadMarkets();
522
522
  await this.authenticate(params);
@@ -207,7 +207,7 @@ export default class exmo extends exmoRest {
207
207
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
208
208
  * @param {string} symbol unified symbol of the market to fetch the ticker for
209
209
  * @param {object} [params] extra parameters specific to the exmo api endpoint
210
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
210
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
211
211
  */
212
212
  await this.loadMarkets();
213
213
  const market = this.market(symbol);
@@ -457,7 +457,7 @@ export default class exmo extends exmoRest {
457
457
  * @param {string} symbol unified symbol of the market to fetch the order book for
458
458
  * @param {int} [limit] the maximum amount of order book entries to return
459
459
  * @param {object} [params] extra parameters specific to the exmo api endpoint
460
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
460
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
461
461
  */
462
462
  await this.loadMarkets();
463
463
  const market = this.market(symbol);
@@ -95,7 +95,7 @@ export default class gate extends gateRest {
95
95
  * @param {string} symbol unified symbol of the market to fetch the order book for
96
96
  * @param {int} [limit] the maximum amount of order book entries to return
97
97
  * @param {object} [params] extra parameters specific to the gate api endpoint
98
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
98
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
99
99
  */
100
100
  await this.loadMarkets();
101
101
  const market = this.market(symbol);
@@ -272,7 +272,7 @@ export default class gate extends gateRest {
272
272
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
273
273
  * @param {string} symbol unified symbol of the market to fetch the ticker for
274
274
  * @param {object} [params] extra parameters specific to the gate api endpoint
275
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
275
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
276
276
  */
277
277
  await this.loadMarkets();
278
278
  const market = this.market(symbol);
@@ -293,7 +293,7 @@ export default class gate extends gateRest {
293
293
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
294
294
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
295
295
  * @param {object} [params] extra parameters specific to the gate api endpoint
296
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
296
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
297
297
  */
298
298
  await this.loadMarkets();
299
299
  symbols = this.marketSymbols(symbols);
@@ -524,7 +524,7 @@ export default class gate extends gateRest {
524
524
  * @param {int} [since] the earliest time in ms to fetch trades for
525
525
  * @param {int} [limit] the maximum number of trade structures to retrieve
526
526
  * @param {object} [params] extra parameters specific to the gate api endpoint
527
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
527
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
528
528
  */
529
529
  await this.loadMarkets();
530
530
  let subType = undefined;
@@ -733,7 +733,7 @@ export default class gate extends gateRest {
733
733
  * @param {object} [params] extra parameters specific to the gate api endpoint
734
734
  * @param {string} [params.type] spot, margin, swap, future, or option. Required if listening to all symbols.
735
735
  * @param {boolean} [params.isInverse] if future, listen to inverse or linear contracts
736
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
736
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
737
737
  */
738
738
  await this.loadMarkets();
739
739
  let market = undefined;
@@ -286,7 +286,7 @@ export default class gemini extends geminiRest {
286
286
  * @param {string} symbol unified symbol of the market to fetch the order book for
287
287
  * @param {int} [limit] the maximum amount of order book entries to return
288
288
  * @param {object} [params] extra parameters specific to the gemini api endpoint
289
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
289
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
290
290
  */
291
291
  await this.loadMarkets();
292
292
  const market = this.market(symbol);
@@ -382,7 +382,7 @@ export default class gemini extends geminiRest {
382
382
  * @param {int} [since] the earliest time in ms to fetch orders for
383
383
  * @param {int} [limit] the maximum number of orde structures to retrieve
384
384
  * @param {object} [params] extra parameters specific to the gemini api endpoint
385
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
385
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
386
386
  */
387
387
  const url = this.urls['api']['ws'] + '/v1/order/events?eventTypeFilter=initial&eventTypeFilter=accepted&eventTypeFilter=rejected&eventTypeFilter=fill&eventTypeFilter=cancelled&eventTypeFilter=booked';
388
388
  await this.loadMarkets();
@@ -65,7 +65,7 @@ export default class hitbtc extends hitbtcRest {
65
65
  * @param {string} symbol unified symbol of the market to fetch the order book for
66
66
  * @param {int} [limit] the maximum amount of order book entries to return
67
67
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
68
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
68
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
69
69
  */
70
70
  const orderbook = await this.watchPublic(symbol, 'orderbook', undefined, params);
71
71
  return orderbook.limit();
@@ -167,7 +167,7 @@ export default class hitbtc extends hitbtcRest {
167
167
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
168
168
  * @param {string} symbol unified symbol of the market to fetch the ticker for
169
169
  * @param {object} [params] extra parameters specific to the hitbtc api endpoint
170
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
170
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
171
171
  */
172
172
  return await this.watchPublic(symbol, 'ticker', undefined, params);
173
173
  }
@@ -61,7 +61,7 @@ export default class hollaex extends hollaexRest {
61
61
  * @param {string} symbol unified symbol of the market to fetch the order book for
62
62
  * @param {int} [limit] the maximum amount of order book entries to return
63
63
  * @param {object} [params] extra parameters specific to the hollaex api endpoint
64
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
64
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
65
65
  */
66
66
  await this.loadMarkets();
67
67
  const market = this.market(symbol);
@@ -176,7 +176,7 @@ export default class hollaex extends hollaexRest {
176
176
  * @param {int} [since] the earliest time in ms to fetch trades for
177
177
  * @param {int} [limit] the maximum number of trade structures to retrieve
178
178
  * @param {object} [params] extra parameters specific to the hollaex api endpoint
179
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
179
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
180
180
  */
181
181
  await this.loadMarkets();
182
182
  let messageHash = 'usertrade';
@@ -256,7 +256,7 @@ export default class hollaex extends hollaexRest {
256
256
  * @param {int} [since] the earliest time in ms to fetch orders for
257
257
  * @param {int} [limit] the maximum number of orde structures to retrieve
258
258
  * @param {object} [params] extra parameters specific to the hollaex api endpoint
259
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
259
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
260
260
  */
261
261
  await this.loadMarkets();
262
262
  let messageHash = 'order';
@@ -123,7 +123,7 @@ export default class huobi extends huobiRest {
123
123
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
124
124
  * @param {string} symbol unified symbol of the market to fetch the ticker for
125
125
  * @param {object} [params] extra parameters specific to the huobi api endpoint
126
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
126
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
127
127
  */
128
128
  await this.loadMarkets();
129
129
  const market = this.market(symbol);
@@ -318,7 +318,7 @@ export default class huobi extends huobiRest {
318
318
  * @param {string} symbol unified symbol of the market to fetch the order book for
319
319
  * @param {int} [limit] the maximum amount of order book entries to return
320
320
  * @param {object} [params] extra parameters specific to the huobi api endpoint
321
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
321
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
322
322
  */
323
323
  await this.loadMarkets();
324
324
  const market = this.market(symbol);
@@ -642,7 +642,7 @@ export default class huobi extends huobiRest {
642
642
  * @param {int} [since] the earliest time in ms to fetch trades for
643
643
  * @param {int} [limit] the maximum number of trade structures to retrieve
644
644
  * @param {object} [params] extra parameters specific to the huobi api endpoint
645
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
645
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
646
646
  */
647
647
  this.checkRequiredCredentials();
648
648
  await this.loadMarkets();
@@ -745,7 +745,7 @@ export default class huobi extends huobiRest {
745
745
  * @param {int} [since] the earliest time in ms to fetch orders for
746
746
  * @param {int} [limit] the maximum number of orde structures to retrieve
747
747
  * @param {object} [params] extra parameters specific to the huobi api endpoint
748
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
748
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
749
749
  */
750
750
  await this.loadMarkets();
751
751
  let type = undefined;
@@ -53,7 +53,7 @@ export default class huobijp extends huobijpRest {
53
53
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
54
54
  * @param {string} symbol unified symbol of the market to fetch the ticker for
55
55
  * @param {object} [params] extra parameters specific to the huobijp api endpoint
56
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
56
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
57
57
  */
58
58
  await this.loadMarkets();
59
59
  const market = this.market(symbol);
@@ -267,7 +267,7 @@ export default class huobijp extends huobijpRest {
267
267
  * @param {string} symbol unified symbol of the market to fetch the order book for
268
268
  * @param {int} [limit] the maximum amount of order book entries to return
269
269
  * @param {object} [params] extra parameters specific to the huobijp api endpoint
270
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
270
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
271
271
  */
272
272
  if ((limit !== undefined) && (limit !== 150)) {
273
273
  throw new ExchangeError(this.id + ' watchOrderBook accepts limit = 150 only');
@@ -73,7 +73,7 @@ export default class idex extends idexRest {
73
73
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
74
74
  * @param {string} symbol unified symbol of the market to fetch the ticker for
75
75
  * @param {object} [params] extra parameters specific to the idex api endpoint
76
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
76
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
77
77
  */
78
78
  await this.loadMarkets();
79
79
  const market = this.market(symbol);
@@ -410,7 +410,7 @@ export default class idex extends idexRest {
410
410
  * @param {string} symbol unified symbol of the market to fetch the order book for
411
411
  * @param {int} [limit] the maximum amount of order book entries to return
412
412
  * @param {object} [params] extra parameters specific to the idex api endpoint
413
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
413
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
414
414
  */
415
415
  await this.loadMarkets();
416
416
  const market = this.market(symbol);
@@ -514,7 +514,7 @@ export default class idex extends idexRest {
514
514
  * @param {int} [since] the earliest time in ms to fetch orders for
515
515
  * @param {int} [limit] the maximum number of orde structures to retrieve
516
516
  * @param {object} [params] extra parameters specific to the idex api endpoint
517
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
517
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
518
518
  */
519
519
  await this.loadMarkets();
520
520
  const name = 'orders';
@@ -127,7 +127,7 @@ export default class independentreserve extends independentreserveRest {
127
127
  * @param {string} symbol unified symbol of the market to fetch the order book for
128
128
  * @param {int} [limit] the maximum amount of order book entries to return
129
129
  * @param {object} [params] extra parameters specific to the independentreserve api endpoint
130
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
130
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
131
131
  */
132
132
  await this.loadMarkets();
133
133
  const market = this.market(symbol);
@@ -116,7 +116,7 @@ export default class kraken extends krakenRest {
116
116
  * @param {string} type 'market' or 'limit'
117
117
  * @param {string} side 'buy' or 'sell'
118
118
  * @param {float} amount how much of currency you want to trade in units of base currency
119
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
119
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
120
120
  * @param {object} [params] extra parameters specific to the kraken api endpoint
121
121
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
122
122
  */
@@ -173,7 +173,7 @@ export default class kraken extends krakenRest {
173
173
  * @param {string} type 'market' or 'limit'
174
174
  * @param {string} side 'buy' or 'sell'
175
175
  * @param {float} amount how much of the currency you want to trade in units of the base currency
176
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
176
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
177
177
  * @param {object} [params] extra parameters specific to the kraken api endpoint
178
178
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
179
179
  */
@@ -469,7 +469,7 @@ export default class kraken extends krakenRest {
469
469
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
470
470
  * @param {string} symbol unified symbol of the market to fetch the ticker for
471
471
  * @param {object} [params] extra parameters specific to the kraken api endpoint
472
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
472
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
473
473
  */
474
474
  return await this.watchPublic('ticker', symbol, params);
475
475
  }
@@ -501,7 +501,7 @@ export default class kraken extends krakenRest {
501
501
  * @param {string} symbol unified symbol of the market to fetch the order book for
502
502
  * @param {int} [limit] the maximum amount of order book entries to return
503
503
  * @param {object} [params] extra parameters specific to the kraken api endpoint
504
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
504
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
505
505
  */
506
506
  const name = 'book';
507
507
  const request = {};
@@ -833,7 +833,7 @@ export default class kraken extends krakenRest {
833
833
  * @param {int} [since] the earliest time in ms to fetch trades for
834
834
  * @param {int} [limit] the maximum number of trade structures to retrieve
835
835
  * @param {object} [params] extra parameters specific to the kraken api endpoint
836
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
836
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
837
837
  */
838
838
  return await this.watchPrivate('ownTrades', symbol, since, limit, params);
839
839
  }
@@ -995,7 +995,7 @@ export default class kraken extends krakenRest {
995
995
  * @param {int} [since] the earliest time in ms to fetch orders for
996
996
  * @param {int} [limit] the maximum number of orde structures to retrieve
997
997
  * @param {object} [params] extra parameters specific to the kraken api endpoint
998
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
998
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
999
999
  */
1000
1000
  return await this.watchPrivate('openOrders', symbol, since, limit, params);
1001
1001
  }
@@ -238,7 +238,7 @@ export default class krakenfutures extends krakenfuturesRest {
238
238
  * @param {int} [since] the earliest time in ms to fetch orders for
239
239
  * @param {int} [limit] the maximum number of orde structures to retrieve
240
240
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
241
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
241
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
242
242
  */
243
243
  await this.loadMarkets();
244
244
  const name = 'fills';
@@ -264,7 +264,7 @@ export default class krakenfutures extends krakenfuturesRest {
264
264
  * @param {int} [limit] not used by krakenfutures watchBalance
265
265
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
266
266
  * @param {string} [params.account] can be either 'futures' or 'flex_futures'
267
- * @returns {object[]} a list of [balance structures]{@link https://docs.ccxt.com/#/?id=balance-structure}
267
+ * @returns {object[]} a list of [balance structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
268
268
  */
269
269
  await this.loadMarkets();
270
270
  const name = 'balances';