ccxt 4.0.74 → 4.0.76

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 (299) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2635 -2383
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +11 -11
  6. package/dist/cjs/src/alpaca.js +7 -7
  7. package/dist/cjs/src/ascendex.js +25 -25
  8. package/dist/cjs/src/base/Exchange.js +4 -4
  9. package/dist/cjs/src/bigone.js +19 -19
  10. package/dist/cjs/src/binance.js +56 -56
  11. package/dist/cjs/src/bingx.js +85 -40
  12. package/dist/cjs/src/bit2c.js +12 -12
  13. package/dist/cjs/src/bitbank.js +13 -13
  14. package/dist/cjs/src/bitbns.js +14 -14
  15. package/dist/cjs/src/bitfinex.js +21 -21
  16. package/dist/cjs/src/bitfinex2.js +29 -29
  17. package/dist/cjs/src/bitflyer.js +17 -17
  18. package/dist/cjs/src/bitforex.js +11 -11
  19. package/dist/cjs/src/bitget.js +39 -39
  20. package/dist/cjs/src/bithumb.js +11 -11
  21. package/dist/cjs/src/bitmart.js +44 -31
  22. package/dist/cjs/src/bitmex.js +24 -24
  23. package/dist/cjs/src/bitopro.js +21 -21
  24. package/dist/cjs/src/bitpanda.js +21 -21
  25. package/dist/cjs/src/bitrue.js +18 -18
  26. package/dist/cjs/src/bitso.js +21 -21
  27. package/dist/cjs/src/bitstamp.js +21 -21
  28. package/dist/cjs/src/bitstamp1.js +8 -8
  29. package/dist/cjs/src/bittrex.js +27 -27
  30. package/dist/cjs/src/bitvavo.js +19 -19
  31. package/dist/cjs/src/bkex.js +21 -21
  32. package/dist/cjs/src/bl3p.js +8 -8
  33. package/dist/cjs/src/blockchaincom.js +21 -21
  34. package/dist/cjs/src/btcalpha.js +15 -15
  35. package/dist/cjs/src/btcbox.js +10 -10
  36. package/dist/cjs/src/btcmarkets.js +17 -17
  37. package/dist/cjs/src/btctradeua.js +8 -8
  38. package/dist/cjs/src/btcturk.js +11 -11
  39. package/dist/cjs/src/bybit.js +153 -121
  40. package/dist/cjs/src/cex.js +14 -14
  41. package/dist/cjs/src/coinbase.js +23 -23
  42. package/dist/cjs/src/coinbasepro.js +24 -24
  43. package/dist/cjs/src/coincheck.js +12 -12
  44. package/dist/cjs/src/coinex.js +87 -41
  45. package/dist/cjs/src/coinfalcon.js +16 -16
  46. package/dist/cjs/src/coinmate.js +14 -14
  47. package/dist/cjs/src/coinone.js +12 -12
  48. package/dist/cjs/src/coinsph.js +27 -22
  49. package/dist/cjs/src/coinspot.js +8 -8
  50. package/dist/cjs/src/cryptocom.js +29 -29
  51. package/dist/cjs/src/currencycom.js +20 -20
  52. package/dist/cjs/src/delta.js +25 -25
  53. package/dist/cjs/src/deribit.js +30 -30
  54. package/dist/cjs/src/digifinex.js +31 -31
  55. package/dist/cjs/src/exmo.js +26 -26
  56. package/dist/cjs/src/gate.js +38 -38
  57. package/dist/cjs/src/gemini.js +17 -17
  58. package/dist/cjs/src/hitbtc.js +34 -34
  59. package/dist/cjs/src/hollaex.js +23 -23
  60. package/dist/cjs/src/huobi.js +45 -45
  61. package/dist/cjs/src/huobijp.js +20 -20
  62. package/dist/cjs/src/idex.js +19 -19
  63. package/dist/cjs/src/independentreserve.js +12 -12
  64. package/dist/cjs/src/indodax.js +14 -14
  65. package/dist/cjs/src/kraken.js +27 -27
  66. package/dist/cjs/src/krakenfutures.js +12 -12
  67. package/dist/cjs/src/kucoin.js +33 -33
  68. package/dist/cjs/src/kucoinfutures.js +24 -24
  69. package/dist/cjs/src/kuna.js +12 -12
  70. package/dist/cjs/src/latoken.js +17 -17
  71. package/dist/cjs/src/lbank.js +12 -12
  72. package/dist/cjs/src/lbank2.js +23 -23
  73. package/dist/cjs/src/luno.js +16 -16
  74. package/dist/cjs/src/lykke.js +16 -16
  75. package/dist/cjs/src/mercado.js +12 -12
  76. package/dist/cjs/src/mexc.js +44 -42
  77. package/dist/cjs/src/ndax.js +20 -20
  78. package/dist/cjs/src/novadax.js +20 -20
  79. package/dist/cjs/src/oceanex.js +16 -16
  80. package/dist/cjs/src/okcoin.js +21 -21
  81. package/dist/cjs/src/okx.js +52 -52
  82. package/dist/cjs/src/paymium.js +11 -11
  83. package/dist/cjs/src/phemex.js +26 -26
  84. package/dist/cjs/src/poloniex.js +237 -136
  85. package/dist/cjs/src/poloniexfutures.js +18 -18
  86. package/dist/cjs/src/pro/alpaca.js +5 -5
  87. package/dist/cjs/src/pro/ascendex.js +4 -4
  88. package/dist/cjs/src/pro/binance.js +16 -16
  89. package/dist/cjs/src/pro/bitfinex.js +4 -4
  90. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  91. package/dist/cjs/src/pro/bitget.js +6 -6
  92. package/dist/cjs/src/pro/bitmart.js +4 -4
  93. package/dist/cjs/src/pro/bitmex.js +6 -6
  94. package/dist/cjs/src/pro/bitopro.js +4 -4
  95. package/dist/cjs/src/pro/bitpanda.js +6 -6
  96. package/dist/cjs/src/pro/bitrue.js +2 -2
  97. package/dist/cjs/src/pro/bitstamp.js +3 -3
  98. package/dist/cjs/src/pro/bittrex.js +6 -6
  99. package/dist/cjs/src/pro/bitvavo.js +5 -5
  100. package/dist/cjs/src/pro/blockchaincom.js +5 -5
  101. package/dist/cjs/src/pro/bybit.js +6 -6
  102. package/dist/cjs/src/pro/cex.js +7 -7
  103. package/dist/cjs/src/pro/coinbase.js +5 -5
  104. package/dist/cjs/src/pro/coinbasepro.js +6 -6
  105. package/dist/cjs/src/pro/coinex.js +5 -5
  106. package/dist/cjs/src/pro/cryptocom.js +10 -10
  107. package/dist/cjs/src/pro/currencycom.js +4 -4
  108. package/dist/cjs/src/pro/deribit.js +6 -6
  109. package/dist/cjs/src/pro/exmo.js +5 -5
  110. package/dist/cjs/src/pro/gate.js +7 -7
  111. package/dist/cjs/src/pro/gemini.js +3 -3
  112. package/dist/cjs/src/pro/hitbtc.js +3 -3
  113. package/dist/cjs/src/pro/hollaex.js +5 -5
  114. package/dist/cjs/src/pro/huobi.js +6 -6
  115. package/dist/cjs/src/pro/huobijp.js +3 -3
  116. package/dist/cjs/src/pro/idex.js +4 -4
  117. package/dist/cjs/src/pro/independentreserve.js +2 -2
  118. package/dist/cjs/src/pro/kraken.js +12 -12
  119. package/dist/cjs/src/pro/krakenfutures.js +7 -7
  120. package/dist/cjs/src/pro/kucoin.js +6 -6
  121. package/dist/cjs/src/pro/kucoinfutures.js +6 -5
  122. package/dist/cjs/src/pro/luno.js +2 -2
  123. package/dist/cjs/src/pro/mexc.js +6 -6
  124. package/dist/cjs/src/pro/ndax.js +3 -3
  125. package/dist/cjs/src/pro/okcoin.js +5 -5
  126. package/dist/cjs/src/pro/okx.js +19 -18
  127. package/dist/cjs/src/pro/phemex.js +6 -6
  128. package/dist/cjs/src/pro/poloniex.js +7 -7
  129. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  130. package/dist/cjs/src/pro/probit.js +6 -6
  131. package/dist/cjs/src/pro/upbit.js +3 -3
  132. package/dist/cjs/src/pro/wazirx.js +6 -6
  133. package/dist/cjs/src/pro/whitebit.js +6 -6
  134. package/dist/cjs/src/probit.js +19 -19
  135. package/dist/cjs/src/tidex.js +13 -13
  136. package/dist/cjs/src/timex.js +16 -16
  137. package/dist/cjs/src/tokocrypto.js +18 -18
  138. package/dist/cjs/src/upbit.js +20 -20
  139. package/dist/cjs/src/wavesexchange.js +16 -16
  140. package/dist/cjs/src/wazirx.js +12 -12
  141. package/dist/cjs/src/whitebit.js +24 -24
  142. package/dist/cjs/src/woo.js +30 -24
  143. package/dist/cjs/src/yobit.js +16 -16
  144. package/dist/cjs/src/zaif.js +10 -10
  145. package/dist/cjs/src/zonda.js +15 -15
  146. package/js/ccxt.d.ts +1 -1
  147. package/js/ccxt.js +1 -1
  148. package/js/src/abstract/bingx.d.ts +2 -0
  149. package/js/src/abstract/bitmart.d.ts +13 -0
  150. package/js/src/abstract/bybit.d.ts +33 -21
  151. package/js/src/abstract/coinsph.d.ts +5 -0
  152. package/js/src/abstract/woo.d.ts +6 -0
  153. package/js/src/ace.js +11 -11
  154. package/js/src/alpaca.js +7 -7
  155. package/js/src/ascendex.js +25 -25
  156. package/js/src/base/Exchange.js +4 -4
  157. package/js/src/bigone.js +19 -19
  158. package/js/src/binance.js +56 -56
  159. package/js/src/bingx.d.ts +1 -0
  160. package/js/src/bingx.js +85 -40
  161. package/js/src/bit2c.js +12 -12
  162. package/js/src/bitbank.js +13 -13
  163. package/js/src/bitbns.js +14 -14
  164. package/js/src/bitfinex.js +21 -21
  165. package/js/src/bitfinex2.js +29 -29
  166. package/js/src/bitflyer.js +17 -17
  167. package/js/src/bitforex.js +11 -11
  168. package/js/src/bitget.js +39 -39
  169. package/js/src/bithumb.js +11 -11
  170. package/js/src/bitmart.js +44 -31
  171. package/js/src/bitmex.js +24 -24
  172. package/js/src/bitopro.js +21 -21
  173. package/js/src/bitpanda.js +21 -21
  174. package/js/src/bitrue.js +18 -18
  175. package/js/src/bitso.js +21 -21
  176. package/js/src/bitstamp.js +21 -21
  177. package/js/src/bitstamp1.js +8 -8
  178. package/js/src/bittrex.js +27 -27
  179. package/js/src/bitvavo.js +19 -19
  180. package/js/src/bkex.js +21 -21
  181. package/js/src/bl3p.js +8 -8
  182. package/js/src/blockchaincom.js +21 -21
  183. package/js/src/btcalpha.js +15 -15
  184. package/js/src/btcbox.js +10 -10
  185. package/js/src/btcmarkets.js +17 -17
  186. package/js/src/btctradeua.js +8 -8
  187. package/js/src/btcturk.js +11 -11
  188. package/js/src/bybit.js +153 -121
  189. package/js/src/cex.js +14 -14
  190. package/js/src/coinbase.js +23 -23
  191. package/js/src/coinbasepro.js +24 -24
  192. package/js/src/coincheck.js +12 -12
  193. package/js/src/coinex.d.ts +1 -0
  194. package/js/src/coinex.js +87 -41
  195. package/js/src/coinfalcon.js +16 -16
  196. package/js/src/coinmate.js +14 -14
  197. package/js/src/coinone.js +12 -12
  198. package/js/src/coinsph.js +27 -22
  199. package/js/src/coinspot.js +8 -8
  200. package/js/src/cryptocom.js +29 -29
  201. package/js/src/currencycom.js +20 -20
  202. package/js/src/delta.js +25 -25
  203. package/js/src/deribit.js +30 -30
  204. package/js/src/digifinex.js +31 -31
  205. package/js/src/exmo.js +26 -26
  206. package/js/src/gate.js +38 -38
  207. package/js/src/gemini.js +17 -17
  208. package/js/src/hitbtc.js +34 -34
  209. package/js/src/hollaex.js +23 -23
  210. package/js/src/huobi.js +45 -45
  211. package/js/src/huobijp.js +20 -20
  212. package/js/src/idex.js +19 -19
  213. package/js/src/independentreserve.js +12 -12
  214. package/js/src/indodax.js +14 -14
  215. package/js/src/kraken.js +27 -27
  216. package/js/src/krakenfutures.js +12 -12
  217. package/js/src/kucoin.js +33 -33
  218. package/js/src/kucoinfutures.js +24 -24
  219. package/js/src/kuna.js +12 -12
  220. package/js/src/latoken.js +17 -17
  221. package/js/src/lbank.js +12 -12
  222. package/js/src/lbank2.js +23 -23
  223. package/js/src/luno.js +16 -16
  224. package/js/src/lykke.js +16 -16
  225. package/js/src/mercado.js +12 -12
  226. package/js/src/mexc.js +45 -43
  227. package/js/src/ndax.js +20 -20
  228. package/js/src/novadax.js +20 -20
  229. package/js/src/oceanex.js +16 -16
  230. package/js/src/okcoin.js +21 -21
  231. package/js/src/okx.js +52 -52
  232. package/js/src/paymium.js +11 -11
  233. package/js/src/phemex.js +26 -26
  234. package/js/src/poloniex.d.ts +1 -1
  235. package/js/src/poloniex.js +237 -136
  236. package/js/src/poloniexfutures.js +18 -18
  237. package/js/src/pro/alpaca.js +5 -5
  238. package/js/src/pro/ascendex.js +4 -4
  239. package/js/src/pro/binance.js +16 -16
  240. package/js/src/pro/bitfinex.js +4 -4
  241. package/js/src/pro/bitfinex2.js +6 -6
  242. package/js/src/pro/bitget.js +6 -6
  243. package/js/src/pro/bitmart.js +4 -4
  244. package/js/src/pro/bitmex.js +6 -6
  245. package/js/src/pro/bitopro.js +4 -4
  246. package/js/src/pro/bitpanda.js +6 -6
  247. package/js/src/pro/bitrue.js +2 -2
  248. package/js/src/pro/bitstamp.js +3 -3
  249. package/js/src/pro/bittrex.js +6 -6
  250. package/js/src/pro/bitvavo.js +5 -5
  251. package/js/src/pro/blockchaincom.js +5 -5
  252. package/js/src/pro/bybit.js +6 -6
  253. package/js/src/pro/cex.js +7 -7
  254. package/js/src/pro/coinbase.js +5 -5
  255. package/js/src/pro/coinbasepro.js +6 -6
  256. package/js/src/pro/coinex.js +5 -5
  257. package/js/src/pro/cryptocom.js +10 -10
  258. package/js/src/pro/currencycom.js +4 -4
  259. package/js/src/pro/deribit.js +6 -6
  260. package/js/src/pro/exmo.js +5 -5
  261. package/js/src/pro/gate.js +7 -7
  262. package/js/src/pro/gemini.js +3 -3
  263. package/js/src/pro/hitbtc.js +3 -3
  264. package/js/src/pro/hollaex.js +5 -5
  265. package/js/src/pro/huobi.js +6 -6
  266. package/js/src/pro/huobijp.js +3 -3
  267. package/js/src/pro/idex.js +4 -4
  268. package/js/src/pro/independentreserve.js +2 -2
  269. package/js/src/pro/kraken.js +12 -12
  270. package/js/src/pro/krakenfutures.js +7 -7
  271. package/js/src/pro/kucoin.js +6 -6
  272. package/js/src/pro/kucoinfutures.js +6 -5
  273. package/js/src/pro/luno.js +2 -2
  274. package/js/src/pro/mexc.js +6 -6
  275. package/js/src/pro/ndax.js +3 -3
  276. package/js/src/pro/okcoin.js +5 -5
  277. package/js/src/pro/okx.d.ts +1 -1
  278. package/js/src/pro/okx.js +19 -18
  279. package/js/src/pro/phemex.js +6 -6
  280. package/js/src/pro/poloniex.js +7 -7
  281. package/js/src/pro/poloniexfutures.js +5 -5
  282. package/js/src/pro/probit.js +6 -6
  283. package/js/src/pro/upbit.js +3 -3
  284. package/js/src/pro/wazirx.js +6 -6
  285. package/js/src/pro/whitebit.js +6 -6
  286. package/js/src/probit.js +19 -19
  287. package/js/src/tidex.js +13 -13
  288. package/js/src/timex.js +16 -16
  289. package/js/src/tokocrypto.js +18 -18
  290. package/js/src/upbit.js +20 -20
  291. package/js/src/wavesexchange.js +16 -16
  292. package/js/src/wazirx.js +12 -12
  293. package/js/src/whitebit.js +24 -24
  294. package/js/src/woo.js +30 -24
  295. package/js/src/yobit.js +16 -16
  296. package/js/src/zaif.js +10 -10
  297. package/js/src/zonda.js +15 -15
  298. package/package.json +1 -1
  299. package/skip-tests.json +2 -0
@@ -113,9 +113,9 @@ class kraken extends kraken$1 {
113
113
  * @param {string} type 'market' or 'limit'
114
114
  * @param {string} side 'buy' or 'sell'
115
115
  * @param {float} amount how much of currency you want to trade in units of base currency
116
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
116
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
117
117
  * @param {object} [params] extra parameters specific to the kraken api endpoint
118
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
118
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
119
119
  */
120
120
  await this.loadMarkets();
121
121
  const token = await this.authenticate();
@@ -170,9 +170,9 @@ class kraken extends kraken$1 {
170
170
  * @param {string} type 'market' or 'limit'
171
171
  * @param {string} side 'buy' or 'sell'
172
172
  * @param {float} amount how much of the currency you want to trade in units of the base currency
173
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
173
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
174
174
  * @param {object} [params] extra parameters specific to the kraken api endpoint
175
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
175
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
176
176
  */
177
177
  await this.loadMarkets();
178
178
  const token = await this.authenticate();
@@ -200,7 +200,7 @@ class kraken extends kraken$1 {
200
200
  * @param {string[]} ids order ids
201
201
  * @param {string} symbol unified market symbol, default is undefined
202
202
  * @param {object} [params] extra parameters specific to the kraken api endpoint
203
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
203
+ * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
204
204
  */
205
205
  await this.loadMarkets();
206
206
  const token = await this.authenticate();
@@ -224,7 +224,7 @@ class kraken extends kraken$1 {
224
224
  * @param {string} id order id
225
225
  * @param {string} symbol unified symbol of the market the order was made in
226
226
  * @param {object} [params] extra parameters specific to the kraken api endpoint
227
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
227
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
228
228
  */
229
229
  await this.loadMarkets();
230
230
  const token = await this.authenticate();
@@ -261,7 +261,7 @@ class kraken extends kraken$1 {
261
261
  * @description cancel all open orders
262
262
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
263
263
  * @param {object} [params] extra parameters specific to the kraken api endpoint
264
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
264
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
265
265
  */
266
266
  if (symbol !== undefined) {
267
267
  throw new errors.NotSupported(this.id + ' cancelAllOrdersWs () does not support cancelling orders in a specific market.');
@@ -466,7 +466,7 @@ class kraken extends kraken$1 {
466
466
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
467
467
  * @param {string} symbol unified symbol of the market to fetch the ticker for
468
468
  * @param {object} [params] extra parameters specific to the kraken api endpoint
469
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
469
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
470
470
  */
471
471
  return await this.watchPublic('ticker', symbol, params);
472
472
  }
@@ -479,7 +479,7 @@ class kraken extends kraken$1 {
479
479
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
480
480
  * @param {int} [limit] the maximum amount of trades to fetch
481
481
  * @param {object} [params] extra parameters specific to the kraken api endpoint
482
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
482
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
483
483
  */
484
484
  await this.loadMarkets();
485
485
  symbol = this.symbol(symbol);
@@ -498,7 +498,7 @@ class kraken extends kraken$1 {
498
498
  * @param {string} symbol unified symbol of the market to fetch the order book for
499
499
  * @param {int} [limit] the maximum amount of order book entries to return
500
500
  * @param {object} [params] extra parameters specific to the kraken api endpoint
501
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
501
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
502
502
  */
503
503
  const name = 'book';
504
504
  const request = {};
@@ -830,7 +830,7 @@ class kraken extends kraken$1 {
830
830
  * @param {int} [since] the earliest time in ms to fetch trades for
831
831
  * @param {int} [limit] the maximum number of trade structures to retrieve
832
832
  * @param {object} [params] extra parameters specific to the kraken api endpoint
833
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
833
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
834
834
  */
835
835
  return await this.watchPrivate('ownTrades', symbol, since, limit, params);
836
836
  }
@@ -992,7 +992,7 @@ class kraken extends kraken$1 {
992
992
  * @param {int} [since] the earliest time in ms to fetch orders for
993
993
  * @param {int} [limit] the maximum number of orde structures to retrieve
994
994
  * @param {object} [params] extra parameters specific to the kraken api endpoint
995
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
995
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
996
996
  */
997
997
  return await this.watchPrivate('openOrders', symbol, since, limit, params);
998
998
  }
@@ -142,7 +142,7 @@ class krakenfutures extends krakenfutures$1 {
142
142
  * @see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker
143
143
  * @param {string} symbol unified symbol of the market to fetch the ticker for
144
144
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
145
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/en/latest/manual.html#ticker-structure}
145
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
146
146
  */
147
147
  const options = this.safeValue(this.options, 'watchTicker');
148
148
  const method = this.safeString(options, 'method', 'ticker'); // or ticker_lite
@@ -158,7 +158,7 @@ class krakenfutures extends krakenfutures$1 {
158
158
  * @see https://docs.futures.kraken.com/#websocket-api-public-feeds-ticker-lite
159
159
  * @param {string} symbol unified symbol of the market to fetch the ticker for
160
160
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
161
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/en/latest/manual.html#ticker-structure}
161
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
162
162
  */
163
163
  const method = this.safeString(this.options, 'watchTickerMethod', 'ticker'); // or ticker_lite
164
164
  const name = this.safeString2(params, 'method', 'watchTickerMethod', method);
@@ -175,7 +175,7 @@ class krakenfutures extends krakenfutures$1 {
175
175
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
176
176
  * @param {int} [limit] the maximum amount of trades to fetch
177
177
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
178
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
178
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
179
179
  */
180
180
  await this.loadMarkets();
181
181
  const name = 'trade';
@@ -194,7 +194,7 @@ class krakenfutures extends krakenfutures$1 {
194
194
  * @param {string} symbol unified symbol of the market to fetch the order book for
195
195
  * @param {int} [limit] not used by krakenfutures watchOrderBook
196
196
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
197
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-book-structure} indexed by market symbols
197
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
198
198
  */
199
199
  const orderbook = await this.subscribePublic('book', [symbol], params);
200
200
  return orderbook.limit();
@@ -210,7 +210,7 @@ class krakenfutures extends krakenfutures$1 {
210
210
  * @param {int} [since] not used by krakenfutures watchOrders
211
211
  * @param {int} [limit] not used by krakenfutures watchOrders
212
212
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
213
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
213
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
214
214
  */
215
215
  await this.loadMarkets();
216
216
  const name = 'open_orders';
@@ -235,7 +235,7 @@ class krakenfutures extends krakenfutures$1 {
235
235
  * @param {int} [since] the earliest time in ms to fetch orders for
236
236
  * @param {int} [limit] the maximum number of orde structures to retrieve
237
237
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
238
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
238
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
239
239
  */
240
240
  await this.loadMarkets();
241
241
  const name = 'fills';
@@ -261,7 +261,7 @@ class krakenfutures extends krakenfutures$1 {
261
261
  * @param {int} [limit] not used by krakenfutures watchBalance
262
262
  * @param {object} [params] extra parameters specific to the krakenfutures api endpoint
263
263
  * @param {string} [params.account] can be either 'futures' or 'flex_futures'
264
- * @returns {object[]} a list of [balance structures]{@link https://docs.ccxt.com/#/?id=balance-structure}
264
+ * @returns {object[]} a list of [balance structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
265
265
  */
266
266
  await this.loadMarkets();
267
267
  const name = 'balances';
@@ -119,7 +119,7 @@ class kucoin extends kucoin$1 {
119
119
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
120
120
  * @param {string} symbol unified symbol of the market to fetch the ticker for
121
121
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
122
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
122
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
123
123
  */
124
124
  await this.loadMarkets();
125
125
  const market = this.market(symbol);
@@ -277,7 +277,7 @@ class kucoin extends kucoin$1 {
277
277
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
278
278
  * @param {int} [limit] the maximum amount of trades to fetch
279
279
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
280
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
280
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
281
281
  */
282
282
  await this.loadMarkets();
283
283
  const url = await this.negotiate(false);
@@ -332,7 +332,7 @@ class kucoin extends kucoin$1 {
332
332
  * @param {string} symbol unified symbol of the market to fetch the order book for
333
333
  * @param {int} [limit] the maximum amount of order book entries to return
334
334
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
335
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
335
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
336
336
  */
337
337
  //
338
338
  // https://docs.kucoin.com/#level-2-market-data
@@ -496,7 +496,7 @@ class kucoin extends kucoin$1 {
496
496
  * @param {int} [since] the earliest time in ms to fetch orders for
497
497
  * @param {int} [limit] the maximum number of orde structures to retrieve
498
498
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
499
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
499
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
500
500
  */
501
501
  await this.loadMarkets();
502
502
  const url = await this.negotiate(true);
@@ -619,7 +619,7 @@ class kucoin extends kucoin$1 {
619
619
  * @param {int} [since] the earliest time in ms to fetch trades for
620
620
  * @param {int} [limit] the maximum number of trade structures to retrieve
621
621
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
622
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
622
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
623
623
  */
624
624
  await this.loadMarkets();
625
625
  const url = await this.negotiate(true);
@@ -709,7 +709,7 @@ class kucoin extends kucoin$1 {
709
709
  * @name kucoin#watchBalance
710
710
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
711
711
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
712
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
712
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
713
713
  */
714
714
  await this.loadMarkets();
715
715
  const url = await this.negotiate(true);
@@ -135,7 +135,7 @@ class kucoinfutures extends kucoinfutures$1 {
135
135
  * @see https://docs.kucoin.com/futures/#get-real-time-symbol-ticker-v2
136
136
  * @param {string} symbol unified symbol of the market to fetch the ticker for
137
137
  * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
138
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
138
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
139
139
  */
140
140
  await this.loadMarkets();
141
141
  const market = this.market(symbol);
@@ -185,7 +185,7 @@ class kucoinfutures extends kucoinfutures$1 {
185
185
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
186
186
  * @param {int} [limit] the maximum amount of trades to fetch
187
187
  * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
188
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
188
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
189
189
  */
190
190
  await this.loadMarkets();
191
191
  const url = await this.negotiate(false);
@@ -249,7 +249,7 @@ class kucoinfutures extends kucoinfutures$1 {
249
249
  * @param {string} symbol unified symbol of the market to fetch the order book for
250
250
  * @param {int} [limit] the maximum amount of order book entries to return
251
251
  * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
252
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
252
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
253
253
  */
254
254
  if (limit !== undefined) {
255
255
  if ((limit !== 20) && (limit !== 100)) {
@@ -403,7 +403,7 @@ class kucoinfutures extends kucoinfutures$1 {
403
403
  * @param {int} [since] the earliest time in ms to fetch orders for
404
404
  * @param {int} [limit] the maximum number of orde structures to retrieve
405
405
  * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
406
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
406
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
407
407
  */
408
408
  await this.loadMarkets();
409
409
  const url = await this.negotiate(true);
@@ -525,8 +525,9 @@ class kucoinfutures extends kucoinfutures$1 {
525
525
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
526
526
  * @see https://docs.kucoin.com/futures/#account-balance-events
527
527
  * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
528
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
528
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
529
529
  */
530
+ await this.loadMarkets();
530
531
  const url = await this.negotiate(true);
531
532
  const topic = '/contractAccount/wallet';
532
533
  const request = {
@@ -40,7 +40,7 @@ class luno extends luno$1 {
40
40
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
41
41
  * @param {int} [limit] the maximum amount of trades to fetch
42
42
  * @param {object} [params] extra parameters specific to the luno api endpoint
43
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
43
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
44
44
  */
45
45
  await this.checkRequiredCredentials();
46
46
  await this.loadMarkets();
@@ -137,7 +137,7 @@ class luno extends luno$1 {
137
137
  * @param {int} [limit] the maximum amount of order book entries to return
138
138
  * @param {objectConstructor} [params] extra parameters specific to the luno api endpoint
139
139
  * @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
140
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
140
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
141
141
  */
142
142
  await this.checkRequiredCredentials();
143
143
  await this.loadMarkets();
@@ -64,7 +64,7 @@ class mexc extends mexc$1 {
64
64
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
65
65
  * @param {string} symbol unified symbol of the market to fetch the ticker for
66
66
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
67
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/en/latest/manual.html#ticker-structure}
67
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
68
68
  */
69
69
  await this.loadMarkets();
70
70
  const market = this.market(symbol);
@@ -345,7 +345,7 @@ class mexc extends mexc$1 {
345
345
  * @param {string} symbol unified symbol of the market to fetch the order book for
346
346
  * @param {int} [limit] the maximum amount of order book entries to return
347
347
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
348
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-book-structure} indexed by market symbols
348
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
349
349
  */
350
350
  await this.loadMarkets();
351
351
  const market = this.market(symbol);
@@ -513,7 +513,7 @@ class mexc extends mexc$1 {
513
513
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
514
514
  * @param {int} [limit] the maximum amount of trades to fetch
515
515
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
516
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
516
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
517
517
  */
518
518
  await this.loadMarkets();
519
519
  const market = this.market(symbol);
@@ -602,7 +602,7 @@ class mexc extends mexc$1 {
602
602
  * @param {int} [since] the earliest time in ms to fetch trades for
603
603
  * @param {int} [limit] the maximum number of trade structures to retrieve
604
604
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
605
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html#trade-structure
605
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
606
606
  */
607
607
  await this.loadMarkets();
608
608
  let messageHash = 'myTrades';
@@ -731,7 +731,7 @@ class mexc extends mexc$1 {
731
731
  * @param {int} [limit] the maximum number of orde structures to retrieve
732
732
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
733
733
  * @params {string|undefined} params.type the type of orders to retrieve, can be 'spot' or 'margin'
734
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
734
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
735
735
  */
736
736
  await this.loadMarkets();
737
737
  params = this.omit(params, 'type');
@@ -978,7 +978,7 @@ class mexc extends mexc$1 {
978
978
  * @see https://mxcdevelop.github.io/apidocs/spot_v3_en/#spot-account-upadte
979
979
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
980
980
  * @param {object} [params] extra parameters specific to the mexc3 api endpoint
981
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
981
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
982
982
  */
983
983
  await this.loadMarkets();
984
984
  let type = undefined;
@@ -42,7 +42,7 @@ class ndax extends ndax$1 {
42
42
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
43
43
  * @param {string} symbol unified symbol of the market to fetch the ticker for
44
44
  * @param {object} [params] extra parameters specific to the ndax api endpoint
45
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
45
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
46
46
  */
47
47
  const omsId = this.safeInteger(this.options, 'omsId', 1);
48
48
  await this.loadMarkets();
@@ -109,7 +109,7 @@ class ndax extends ndax$1 {
109
109
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
110
110
  * @param {int} [limit] the maximum amount of trades to fetch
111
111
  * @param {object} [params] extra parameters specific to the ndax api endpoint
112
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
112
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
113
113
  */
114
114
  const omsId = this.safeInteger(this.options, 'omsId', 1);
115
115
  await this.loadMarkets();
@@ -321,7 +321,7 @@ class ndax extends ndax$1 {
321
321
  * @param {string} symbol unified symbol of the market to fetch the order book for
322
322
  * @param {int} [limit] the maximum amount of order book entries to return
323
323
  * @param {object} [params] extra parameters specific to the ndax api endpoint
324
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
324
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
325
325
  */
326
326
  const omsId = this.safeInteger(this.options, 'omsId', 1);
327
327
  await this.loadMarkets();
@@ -71,7 +71,7 @@ class okcoin extends okcoin$1 {
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 okcoin api endpoint
74
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
74
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
75
75
  */
76
76
  await this.loadMarkets();
77
77
  symbol = this.symbol(symbol);
@@ -90,7 +90,7 @@ class okcoin extends okcoin$1 {
90
90
  * @param {int} [since] the earliest time in ms to fetch orders for
91
91
  * @param {int} [limit] the maximum number of orde structures to retrieve
92
92
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
93
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
93
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
94
94
  */
95
95
  await this.loadMarkets();
96
96
  await this.authenticate();
@@ -174,7 +174,7 @@ class okcoin extends okcoin$1 {
174
174
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
175
175
  * @param {string} symbol unified symbol of the market to fetch the ticker for
176
176
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
177
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
177
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
178
178
  */
179
179
  return await this.subscribe('ticker', symbol, params);
180
180
  }
@@ -322,7 +322,7 @@ class okcoin extends okcoin$1 {
322
322
  * @param {string} symbol unified symbol of the market to fetch the order book for
323
323
  * @param {int} [limit] the maximum amount of order book entries to return
324
324
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
325
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
325
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
326
326
  */
327
327
  const options = this.safeValue(this.options, 'watchOrderBook', {});
328
328
  const depth = this.safeString(options, 'depth', 'depth_l2_tbt');
@@ -483,7 +483,7 @@ class okcoin extends okcoin$1 {
483
483
  * @name okcoin#watchBalance
484
484
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
485
485
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
486
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
486
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
487
487
  */
488
488
  const defaultType = this.safeString2(this.options, 'watchBalance', 'defaultType');
489
489
  const type = this.safeString(params, 'type', defaultType);
@@ -157,7 +157,7 @@ class okx extends okx$1 {
157
157
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
158
158
  * @param {int} [limit] the maximum amount of trades to fetch
159
159
  * @param {object} [params] extra parameters specific to the okx api endpoint
160
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
160
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
161
161
  */
162
162
  await this.loadMarkets();
163
163
  symbol = this.symbol(symbol);
@@ -211,7 +211,7 @@ class okx extends okx$1 {
211
211
  * @param {string} symbol unified symbol of the market to fetch the ticker for
212
212
  * @param {object} [params] extra parameters specific to the okx api endpoint
213
213
  * @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
214
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
214
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
215
215
  */
216
216
  let channel = undefined;
217
217
  [channel, params] = this.handleOptionAndParams(params, 'watchTicker', 'channel', 'tickers');
@@ -228,7 +228,7 @@ class okx extends okx$1 {
228
228
  * @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
229
229
  * @param {object} [params] extra parameters specific to the okx api endpoint
230
230
  * @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
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
  let channel = undefined;
234
234
  [channel, params] = this.handleOptionAndParams(params, 'watchTickers', 'channel', 'tickers');
@@ -359,7 +359,7 @@ class okx extends okx$1 {
359
359
  * @param {string} symbol unified symbol of the market to fetch the order book for
360
360
  * @param {int} [limit] the maximum amount of order book entries to return
361
361
  * @param {object} [params] extra parameters specific to the okx api endpoint
362
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
362
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
363
363
  */
364
364
  const options = this.safeValue(this.options, 'watchOrderBook', {});
365
365
  //
@@ -599,15 +599,16 @@ class okx extends okx$1 {
599
599
  }
600
600
  return message;
601
601
  }
602
- authenticate(params = {}) {
602
+ async authenticate(params = {}) {
603
603
  this.checkRequiredCredentials();
604
604
  const access = this.safeString(params, 'access', 'private');
605
605
  params = this.omit(params, ['access']);
606
606
  const url = this.getUrl('users', access);
607
607
  const messageHash = 'authenticated';
608
608
  const client = this.client(url);
609
- let future = this.safeValue(client.subscriptions, messageHash);
610
- if (future === undefined) {
609
+ const future = client.future(messageHash);
610
+ const authenticated = this.safeValue(client.subscriptions, messageHash);
611
+ if (authenticated === undefined) {
611
612
  const timestamp = this.seconds().toString();
612
613
  const method = 'GET';
613
614
  const path = '/users/self/verify';
@@ -626,8 +627,7 @@ class okx extends okx$1 {
626
627
  ],
627
628
  };
628
629
  const message = this.extend(request, params);
629
- future = this.watch(url, messageHash, message);
630
- client.subscriptions[messageHash] = future;
630
+ this.watch(url, messageHash, message, messageHash);
631
631
  }
632
632
  return future;
633
633
  }
@@ -637,7 +637,7 @@ class okx extends okx$1 {
637
637
  * @name okx#watchBalance
638
638
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
639
639
  * @param {object} [params] extra parameters specific to the okx api endpoint
640
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
640
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
641
641
  */
642
642
  await this.loadMarkets();
643
643
  await this.authenticate();
@@ -731,7 +731,7 @@ class okx extends okx$1 {
731
731
  * @param {int} [limit] the maximum number of trade structures to retrieve
732
732
  * @param {object} [params] extra parameters specific to the okx api endpoint
733
733
  * @param {bool} [params.stop] true if fetching trigger or conditional trades
734
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
734
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
735
735
  */
736
736
  await this.loadMarkets();
737
737
  await this.authenticate();
@@ -773,7 +773,7 @@ class okx extends okx$1 {
773
773
  * @param {int} [limit] the maximum number of orde structures to retrieve
774
774
  * @param {object} [params] extra parameters specific to the okx api endpoint
775
775
  * @param {bool} [params.stop] true if fetching trigger or conditional orders
776
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
776
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
777
777
  */
778
778
  await this.loadMarkets();
779
779
  await this.authenticate();
@@ -990,7 +990,7 @@ class okx extends okx$1 {
990
990
  * @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
991
991
  * @param {object} [params] extra parameters specific to the okx api endpoint
992
992
  * @param {boolean} params.test test order, default false
993
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
993
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
994
994
  */
995
995
  await this.loadMarkets();
996
996
  await this.authenticate();
@@ -1059,7 +1059,7 @@ class okx extends okx$1 {
1059
1059
  * @param {float} amount how much of the currency you want to trade in units of the base currency
1060
1060
  * @param {float|undefined} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1061
1061
  * @param {object} [params] extra parameters specific to the okx api endpoint
1062
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
1062
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1063
1063
  */
1064
1064
  await this.loadMarkets();
1065
1065
  await this.authenticate();
@@ -1085,7 +1085,7 @@ class okx extends okx$1 {
1085
1085
  * @param {string} symbol unified market symbol, default is undefined
1086
1086
  * @param {object} [params] extra parameters specific to the okx api endpoint
1087
1087
  * @param {string} [params.clOrdId] client order id
1088
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
1088
+ * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1089
1089
  */
1090
1090
  if (symbol === undefined) {
1091
1091
  throw new errors.BadRequest(this.id + ' cancelOrderWs() requires a symbol argument');
@@ -1121,7 +1121,7 @@ class okx extends okx$1 {
1121
1121
  * @param {string[]} ids order ids
1122
1122
  * @param {string} symbol unified market symbol, default is undefined
1123
1123
  * @param {object} [params] extra parameters specific to the okx api endpoint
1124
- * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
1124
+ * @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1125
1125
  */
1126
1126
  const idsLength = ids.length;
1127
1127
  if (idsLength > 20) {
@@ -1157,7 +1157,7 @@ class okx extends okx$1 {
1157
1157
  * @description cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
1158
1158
  * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
1159
1159
  * @param {object} [params] extra parameters specific to the okx api endpoint
1160
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/en/latest/manual.html#order-structure}
1160
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1161
1161
  */
1162
1162
  if (symbol === undefined) {
1163
1163
  throw new errors.BadRequest(this.id + ' cancelAllOrdersWs() requires a symbol argument');
@@ -1210,7 +1210,8 @@ class okx extends okx$1 {
1210
1210
  //
1211
1211
  // { event: 'login', success: true }
1212
1212
  //
1213
- client.resolve(message, 'authenticated');
1213
+ const future = this.safeValue(client.futures, 'authenticated');
1214
+ future.resolve(true);
1214
1215
  }
1215
1216
  ping(client) {
1216
1217
  // okex does not support built-in ws protocol-level ping-pong
@@ -300,7 +300,7 @@ class phemex extends phemex$1 {
300
300
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
301
301
  * @param {object} [params] extra parameters specific to the phemex api endpoint
302
302
  * @param {string} [params.settle] set to USDT to use hedged perpetual api
303
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/en/latest/manual.html?#balance-structure}
303
+ * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
304
304
  */
305
305
  await this.loadMarkets();
306
306
  let type = undefined;
@@ -495,7 +495,7 @@ class phemex extends phemex$1 {
495
495
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
496
496
  * @param {string} symbol unified symbol of the market to fetch the ticker for
497
497
  * @param {object} [params] extra parameters specific to the phemex api endpoint
498
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
498
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
499
499
  */
500
500
  await this.loadMarkets();
501
501
  const market = this.market(symbol);
@@ -530,7 +530,7 @@ class phemex extends phemex$1 {
530
530
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
531
531
  * @param {int} [limit] the maximum amount of trades to fetch
532
532
  * @param {object} [params] extra parameters specific to the phemex api endpoint
533
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/en/latest/manual.html?#public-trades}
533
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
534
534
  */
535
535
  await this.loadMarkets();
536
536
  const market = this.market(symbol);
@@ -567,7 +567,7 @@ class phemex extends phemex$1 {
567
567
  * @param {string} symbol unified symbol of the market to fetch the order book for
568
568
  * @param {int} [limit] the maximum amount of order book entries to return
569
569
  * @param {object} [params] extra parameters specific to the phemex api endpoint
570
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
570
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
571
571
  */
572
572
  await this.loadMarkets();
573
573
  const market = this.market(symbol);
@@ -725,7 +725,7 @@ class phemex extends phemex$1 {
725
725
  * @param {int} [since] the earliest time in ms to fetch trades for
726
726
  * @param {int} [limit] the maximum number of trade structures to retrieve
727
727
  * @param {object} [params] extra parameters specific to the phemex api endpoint
728
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
728
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
729
729
  */
730
730
  await this.loadMarkets();
731
731
  let market = undefined;
@@ -888,7 +888,7 @@ class phemex extends phemex$1 {
888
888
  * @param {int} [since] the earliest time in ms to fetch orders for
889
889
  * @param {int} [limit] the maximum number of orde structures to retrieve
890
890
  * @param {object} [params] extra parameters specific to the phemex api endpoint
891
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
891
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
892
892
  */
893
893
  await this.loadMarkets();
894
894
  let messageHash = 'orders:';