ccxt 4.0.74 → 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 (282) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.js +2047 -1932
  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 +21 -21
  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 +5 -5
  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 +21 -21
  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.js +5 -5
  241. package/js/src/pro/cex.js +3 -3
  242. package/js/src/pro/coinbasepro.js +5 -5
  243. package/js/src/pro/coinex.js +3 -3
  244. package/js/src/pro/cryptocom.js +7 -7
  245. package/js/src/pro/currencycom.js +2 -2
  246. package/js/src/pro/deribit.js +3 -3
  247. package/js/src/pro/exmo.js +2 -2
  248. package/js/src/pro/gate.js +5 -5
  249. package/js/src/pro/gemini.js +2 -2
  250. package/js/src/pro/hitbtc.js +2 -2
  251. package/js/src/pro/hollaex.js +3 -3
  252. package/js/src/pro/huobi.js +4 -4
  253. package/js/src/pro/huobijp.js +2 -2
  254. package/js/src/pro/idex.js +3 -3
  255. package/js/src/pro/independentreserve.js +1 -1
  256. package/js/src/pro/kraken.js +6 -6
  257. package/js/src/pro/krakenfutures.js +2 -2
  258. package/js/src/pro/kucoin.js +4 -4
  259. package/js/src/pro/kucoinfutures.js +3 -3
  260. package/js/src/pro/luno.js +1 -1
  261. package/js/src/pro/ndax.js +2 -2
  262. package/js/src/pro/okcoin.js +3 -3
  263. package/js/src/pro/okx.d.ts +1 -1
  264. package/js/src/pro/okx.js +12 -11
  265. package/js/src/pro/phemex.js +4 -4
  266. package/js/src/pro/poloniex.js +1 -1
  267. package/js/src/pro/upbit.js +2 -2
  268. package/js/src/pro/wazirx.js +3 -3
  269. package/js/src/pro/whitebit.js +4 -4
  270. package/js/src/probit.js +17 -17
  271. package/js/src/tidex.js +11 -11
  272. package/js/src/timex.js +14 -14
  273. package/js/src/tokocrypto.js +16 -16
  274. package/js/src/upbit.js +18 -18
  275. package/js/src/wavesexchange.js +13 -13
  276. package/js/src/wazirx.js +10 -10
  277. package/js/src/whitebit.js +21 -21
  278. package/js/src/woo.js +28 -22
  279. package/js/src/yobit.js +14 -14
  280. package/js/src/zaif.js +8 -8
  281. package/js/src/zonda.js +13 -13
  282. package/package.json +1 -1
@@ -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);
@@ -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);
@@ -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();
@@ -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();
@@ -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();
@@ -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');
@@ -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
  }
@@ -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();
@@ -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
@@ -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);
@@ -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:';
@@ -284,7 +284,7 @@ class poloniex extends poloniex$1 {
284
284
  * @param {int} [since] not used by poloniex watchMyTrades
285
285
  * @param {int} [limit] not used by poloniex watchMyTrades
286
286
  * @param {object} [params] extra parameters specific to the poloniex strean
287
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
287
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
288
288
  */
289
289
  await this.loadMarkets();
290
290
  const name = 'orders';
@@ -55,7 +55,7 @@ class upbit extends upbit$1 {
55
55
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
56
56
  * @param {string} symbol unified symbol of the market to fetch the ticker for
57
57
  * @param {object} [params] extra parameters specific to the upbit api endpoint
58
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
58
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
59
59
  */
60
60
  return await this.watchPublic(symbol, 'ticker');
61
61
  }
@@ -86,7 +86,7 @@ class upbit extends upbit$1 {
86
86
  * @param {string} symbol unified symbol of the market to fetch the order book for
87
87
  * @param {int} [limit] the maximum amount of order book entries to return
88
88
  * @param {object} [params] extra parameters specific to the upbit api endpoint
89
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
89
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
90
90
  */
91
91
  const orderbook = await this.watchPublic(symbol, 'orderbook');
92
92
  return orderbook.limit();
@@ -165,7 +165,7 @@ class wazirx extends wazirx$1 {
165
165
  * @see https://docs.wazirx.com/#all-market-tickers-stream
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 wazirx 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);
@@ -188,7 +188,7 @@ class wazirx extends wazirx$1 {
188
188
  * @see https://docs.wazirx.com/#all-market-tickers-stream
189
189
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
190
190
  * @param {object} [params] extra parameters specific to the wazirx api endpoint
191
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
191
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
192
192
  */
193
193
  await this.loadMarkets();
194
194
  symbols = this.marketSymbols(symbols);
@@ -473,7 +473,7 @@ class wazirx extends wazirx$1 {
473
473
  * @param {string} symbol unified symbol of the market to fetch the order book for
474
474
  * @param {int} [limit] the maximum amount of order book entries to return
475
475
  * @param {object} [params] extra parameters specific to the wazirx api endpoint
476
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
476
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
477
477
  */
478
478
  await this.loadMarkets();
479
479
  const market = this.market(symbol);
@@ -134,7 +134,7 @@ class whitebit extends whitebit$1 {
134
134
  * @param {string} symbol unified symbol of the market to fetch the order book for
135
135
  * @param {int} [limit] the maximum amount of order book entries to return
136
136
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
137
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
137
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
138
138
  */
139
139
  await this.loadMarkets();
140
140
  const market = this.market(symbol);
@@ -237,7 +237,7 @@ class whitebit extends whitebit$1 {
237
237
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
238
238
  * @param {string} symbol unified symbol of the market to fetch the ticker for
239
239
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
240
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
240
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
241
241
  */
242
242
  await this.loadMarkets();
243
243
  const market = this.market(symbol);
@@ -371,7 +371,7 @@ class whitebit extends whitebit$1 {
371
371
  * @param {int} [since] the earliest time in ms to fetch trades for
372
372
  * @param {int} [limit] the maximum number of trades structures to retrieve
373
373
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
374
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
374
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
375
375
  */
376
376
  if (symbol === undefined) {
377
377
  throw new errors.ArgumentsRequired(this.id + ' watchMyTrades requires a symbol argument');
@@ -470,7 +470,7 @@ class whitebit extends whitebit$1 {
470
470
  * @param {int} [since] the earliest time in ms to fetch orders for
471
471
  * @param {int} [limit] the maximum number of orde structures to retrieve
472
472
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
473
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
473
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
474
474
  */
475
475
  if (symbol === undefined) {
476
476
  throw new errors.ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
@@ -556,7 +556,7 @@ class probit extends probit$1 {
556
556
  * @param {string} symbol unified symbol of the market to fetch the order book for
557
557
  * @param {int} [limit] the maximum amount of order book entries to return
558
558
  * @param {object} [params] extra parameters specific to the probit api endpoint
559
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
559
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
560
560
  */
561
561
  await this.loadMarkets();
562
562
  const market = this.market(symbol);
@@ -585,7 +585,7 @@ class probit extends probit$1 {
585
585
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
586
586
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
587
587
  * @param {object} [params] extra parameters specific to the probit api endpoint
588
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
588
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
589
589
  */
590
590
  await this.loadMarkets();
591
591
  const request = {};
@@ -621,7 +621,7 @@ class probit extends probit$1 {
621
621
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
622
622
  * @param {string} symbol unified symbol of the market to fetch the ticker for
623
623
  * @param {object} [params] extra parameters specific to the probit api endpoint
624
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
624
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
625
625
  */
626
626
  await this.loadMarkets();
627
627
  const market = this.market(symbol);
@@ -705,7 +705,7 @@ class probit extends probit$1 {
705
705
  * @param {int} [since] the earliest time in ms to fetch trades for
706
706
  * @param {int} [limit] the maximum number of trades structures to retrieve
707
707
  * @param {object} [params] extra parameters specific to the probit api endpoint
708
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
708
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
709
709
  */
710
710
  await this.loadMarkets();
711
711
  let market = undefined;
@@ -1022,7 +1022,7 @@ class probit extends probit$1 {
1022
1022
  * @param {int} [since] the earliest time in ms to fetch open orders for
1023
1023
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1024
1024
  * @param {object} [params] extra parameters specific to the probit api endpoint
1025
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1025
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1026
1026
  */
1027
1027
  await this.loadMarkets();
1028
1028
  since = this.parse8601(since);
@@ -1046,7 +1046,7 @@ class probit extends probit$1 {
1046
1046
  * @param {int} [since] the earliest time in ms to fetch orders for
1047
1047
  * @param {int} [limit] the maximum number of orde structures to retrieve
1048
1048
  * @param {object} [params] extra parameters specific to the probit api endpoint
1049
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1049
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1050
1050
  */
1051
1051
  await this.loadMarkets();
1052
1052
  const request = {
@@ -1077,7 +1077,7 @@ class probit extends probit$1 {
1077
1077
  * @description fetches information on an order made by the user
1078
1078
  * @param {string} symbol unified symbol of the market the order was made in
1079
1079
  * @param {object} [params] extra parameters specific to the probit api endpoint
1080
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1080
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1081
1081
  */
1082
1082
  if (symbol === undefined) {
1083
1083
  throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
@@ -1186,9 +1186,9 @@ class probit extends probit$1 {
1186
1186
  * @param {string} type 'market' or 'limit'
1187
1187
  * @param {string} side 'buy' or 'sell'
1188
1188
  * @param {float} amount how much of currency you want to trade in units of base currency
1189
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1189
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1190
1190
  * @param {object} [params] extra parameters specific to the probit api endpoint
1191
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1191
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1192
1192
  */
1193
1193
  await this.loadMarkets();
1194
1194
  const market = this.market(symbol);
@@ -1280,7 +1280,7 @@ class probit extends probit$1 {
1280
1280
  * @param {string} id order id
1281
1281
  * @param {string} symbol unified symbol of the market the order was made in
1282
1282
  * @param {object} [params] extra parameters specific to the probit api endpoint
1283
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1283
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1284
1284
  */
1285
1285
  if (symbol === undefined) {
1286
1286
  throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
@@ -1319,7 +1319,7 @@ class probit extends probit$1 {
1319
1319
  * @description fetch the deposit address for a currency associated with this account
1320
1320
  * @param {string} code unified currency code
1321
1321
  * @param {object} [params] extra parameters specific to the probit api endpoint
1322
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1322
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1323
1323
  */
1324
1324
  await this.loadMarkets();
1325
1325
  const currency = this.currency(code);
@@ -1373,7 +1373,7 @@ class probit extends probit$1 {
1373
1373
  * @description fetch deposit addresses for multiple currencies and chain types
1374
1374
  * @param {string[]|undefined} codes list of unified currency codes, default is undefined
1375
1375
  * @param {object} [params] extra parameters specific to the probit api endpoint
1376
- * @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
1376
+ * @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1377
1377
  */
1378
1378
  await this.loadMarkets();
1379
1379
  const request = {};
@@ -1400,7 +1400,7 @@ class probit extends probit$1 {
1400
1400
  * @param {string} address the address to withdraw to
1401
1401
  * @param {string} tag
1402
1402
  * @param {object} [params] extra parameters specific to the probit api endpoint
1403
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1403
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1404
1404
  */
1405
1405
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1406
1406
  // In order to use this method
@@ -1445,7 +1445,7 @@ class probit extends probit$1 {
1445
1445
  * @param {int} [since] the earliest time in ms to fetch deposits for
1446
1446
  * @param {int} [limit] the maximum number of transaction structures to retrieve
1447
1447
  * @param {object} [params] extra parameters specific to the probit api endpoint
1448
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1448
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1449
1449
  */
1450
1450
  const request = {
1451
1451
  'type': 'deposit',
@@ -1462,7 +1462,7 @@ class probit extends probit$1 {
1462
1462
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
1463
1463
  * @param {int} [limit] the maximum number of transaction structures to retrieve
1464
1464
  * @param {object} [params] extra parameters specific to the probit api endpoint
1465
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1465
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1466
1466
  */
1467
1467
  const request = {
1468
1468
  'type': 'withdrawal',
@@ -1481,7 +1481,7 @@ class probit extends probit$1 {
1481
1481
  * @param {int} [since] the earliest time in ms to fetch transactions for
1482
1482
  * @param {int} [limit] the maximum number of transaction structures to retrieve
1483
1483
  * @param {object} [params] extra parameters specific to the probit api endpoint
1484
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1484
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1485
1485
  */
1486
1486
  await this.loadMarkets();
1487
1487
  let currency = undefined;
@@ -1585,7 +1585,7 @@ class probit extends probit$1 {
1585
1585
  * @description fetch deposit and withdraw fees
1586
1586
  * @param {string[]|undefined} codes list of unified currency codes
1587
1587
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1588
- * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
1588
+ * @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
1589
1589
  */
1590
1590
  await this.loadMarkets();
1591
1591
  const response = await this.publicGetCurrencyWithPlatform(params);
@@ -406,7 +406,7 @@ class tidex extends tidex$1 {
406
406
  * @param {string} symbol unified symbol of the market to fetch the order book for
407
407
  * @param {int} [limit] the maximum amount of order book entries to return
408
408
  * @param {object} [params] extra parameters specific to the tidex api endpoint
409
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
409
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
410
410
  */
411
411
  await this.loadMarkets();
412
412
  const market = this.market(symbol);
@@ -432,7 +432,7 @@ class tidex extends tidex$1 {
432
432
  * @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
433
433
  * @param {int} [limit] max number of entries per orderbook to return, default is undefined
434
434
  * @param {object} [params] extra parameters specific to the tidex api endpoint
435
- * @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
435
+ * @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
436
436
  */
437
437
  await this.loadMarkets();
438
438
  let ids = undefined;
@@ -511,7 +511,7 @@ class tidex extends tidex$1 {
511
511
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
512
512
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
513
513
  * @param {object} [params] extra parameters specific to the tidex api endpoint
514
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
514
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
515
515
  */
516
516
  await this.loadMarkets();
517
517
  symbols = this.marketSymbols(symbols);
@@ -550,7 +550,7 @@ class tidex extends tidex$1 {
550
550
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
551
551
  * @param {string} symbol unified symbol of the market to fetch the ticker for
552
552
  * @param {object} [params] extra parameters specific to the tidex api endpoint
553
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
553
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
554
554
  */
555
555
  const tickers = await this.fetchTickers([symbol], params);
556
556
  return tickers[symbol];
@@ -648,9 +648,9 @@ class tidex extends tidex$1 {
648
648
  * @param {string} type 'market' or 'limit'
649
649
  * @param {string} side 'buy' or 'sell'
650
650
  * @param {float} amount how much of currency you want to trade in units of base currency
651
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
651
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
652
652
  * @param {object} [params] extra parameters specific to the tidex api endpoint
653
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
653
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
654
654
  */
655
655
  if (type === 'market') {
656
656
  throw new errors.ExchangeError(this.id + ' createOrder() allows limit orders only');
@@ -711,7 +711,7 @@ class tidex extends tidex$1 {
711
711
  * @param {string} id order id
712
712
  * @param {string} symbol not used by tidex cancelOrder ()
713
713
  * @param {object} [params] extra parameters specific to the tidex api endpoint
714
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
714
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
715
715
  */
716
716
  await this.loadMarkets();
717
717
  const request = {
@@ -777,7 +777,7 @@ class tidex extends tidex$1 {
777
777
  * @description fetches information on an order made by the user
778
778
  * @param {string} symbol not used by tidex fetchOrder
779
779
  * @param {object} [params] extra parameters specific to the tidex api endpoint
780
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
780
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
781
781
  */
782
782
  await this.loadMarkets();
783
783
  const request = {
@@ -798,7 +798,7 @@ class tidex extends tidex$1 {
798
798
  * @param {int} [since] the earliest time in ms to fetch open orders for
799
799
  * @param {int} [limit] the maximum number of open orders structures to retrieve
800
800
  * @param {object} [params] extra parameters specific to the tidex api endpoint
801
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
801
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
802
802
  */
803
803
  await this.loadMarkets();
804
804
  const request = {};
@@ -842,7 +842,7 @@ class tidex extends tidex$1 {
842
842
  * @param {int} [since] the earliest time in ms to fetch trades for
843
843
  * @param {int} [limit] the maximum number of trades structures to retrieve
844
844
  * @param {object} [params] extra parameters specific to the tidex api endpoint
845
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
845
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
846
846
  */
847
847
  await this.loadMarkets();
848
848
  let market = undefined;
@@ -881,7 +881,7 @@ class tidex extends tidex$1 {
881
881
  * @param {string} address the address to withdraw to
882
882
  * @param {string} tag
883
883
  * @param {object} [params] extra parameters specific to the tidex api endpoint
884
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
884
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
885
885
  */
886
886
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
887
887
  this.checkAddress(address);