ccxt 4.0.73 → 4.0.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/README.md +11 -11
  2. package/dist/ccxt.browser.js +2058 -1943
  3. package/dist/ccxt.browser.min.js +3 -3
  4. package/dist/cjs/ccxt.js +1 -1
  5. package/dist/cjs/src/ace.js +9 -9
  6. package/dist/cjs/src/alpaca.js +6 -6
  7. package/dist/cjs/src/ascendex.js +22 -22
  8. package/dist/cjs/src/base/Exchange.js +2 -2
  9. package/dist/cjs/src/bigone.js +17 -17
  10. package/dist/cjs/src/binance.js +51 -51
  11. package/dist/cjs/src/bingx.js +25 -26
  12. package/dist/cjs/src/bit2c.js +10 -10
  13. package/dist/cjs/src/bitbank.js +11 -11
  14. package/dist/cjs/src/bitbns.js +12 -12
  15. package/dist/cjs/src/bitfinex.js +19 -19
  16. package/dist/cjs/src/bitfinex2.js +25 -25
  17. package/dist/cjs/src/bitflyer.js +15 -15
  18. package/dist/cjs/src/bitforex.js +9 -9
  19. package/dist/cjs/src/bitget.js +34 -34
  20. package/dist/cjs/src/bithumb.js +9 -9
  21. package/dist/cjs/src/bitmart.js +42 -29
  22. package/dist/cjs/src/bitmex.js +19 -19
  23. package/dist/cjs/src/bitopro.js +18 -18
  24. package/dist/cjs/src/bitpanda.js +19 -19
  25. package/dist/cjs/src/bitrue.js +15 -15
  26. package/dist/cjs/src/bitso.js +19 -19
  27. package/dist/cjs/src/bitstamp.js +19 -19
  28. package/dist/cjs/src/bitstamp1.js +6 -6
  29. package/dist/cjs/src/bittrex.js +24 -24
  30. package/dist/cjs/src/bitvavo.js +16 -16
  31. package/dist/cjs/src/bkex.js +17 -17
  32. package/dist/cjs/src/bl3p.js +6 -6
  33. package/dist/cjs/src/blockchaincom.js +20 -20
  34. package/dist/cjs/src/btcalpha.js +13 -13
  35. package/dist/cjs/src/btcbox.js +8 -8
  36. package/dist/cjs/src/btcmarkets.js +15 -15
  37. package/dist/cjs/src/btctradeua.js +6 -6
  38. package/dist/cjs/src/btcturk.js +9 -9
  39. package/dist/cjs/src/bybit.js +148 -116
  40. package/dist/cjs/src/cex.js +12 -12
  41. package/dist/cjs/src/coinbase.js +20 -20
  42. package/dist/cjs/src/coinbasepro.js +22 -22
  43. package/dist/cjs/src/coincheck.js +10 -10
  44. package/dist/cjs/src/coinex.js +81 -35
  45. package/dist/cjs/src/coinfalcon.js +14 -14
  46. package/dist/cjs/src/coinmate.js +12 -12
  47. package/dist/cjs/src/coinone.js +10 -10
  48. package/dist/cjs/src/coinsph.js +20 -20
  49. package/dist/cjs/src/coinspot.js +6 -6
  50. package/dist/cjs/src/cryptocom.js +24 -24
  51. package/dist/cjs/src/currencycom.js +18 -18
  52. package/dist/cjs/src/delta.js +23 -23
  53. package/dist/cjs/src/deribit.js +27 -27
  54. package/dist/cjs/src/digifinex.js +27 -27
  55. package/dist/cjs/src/exmo.js +24 -24
  56. package/dist/cjs/src/gate.js +34 -34
  57. package/dist/cjs/src/gemini.js +14 -14
  58. package/dist/cjs/src/hitbtc.js +30 -30
  59. package/dist/cjs/src/hollaex.js +20 -20
  60. package/dist/cjs/src/huobi.js +40 -40
  61. package/dist/cjs/src/huobijp.js +18 -18
  62. package/dist/cjs/src/idex.js +17 -17
  63. package/dist/cjs/src/independentreserve.js +10 -10
  64. package/dist/cjs/src/indodax.js +12 -12
  65. package/dist/cjs/src/kraken.js +25 -25
  66. package/dist/cjs/src/krakenfutures.js +12 -12
  67. package/dist/cjs/src/kucoin.js +29 -29
  68. package/dist/cjs/src/kucoinfutures.js +19 -19
  69. package/dist/cjs/src/kuna.js +10 -10
  70. package/dist/cjs/src/latoken.js +15 -15
  71. package/dist/cjs/src/lbank.js +10 -10
  72. package/dist/cjs/src/lbank2.js +21 -21
  73. package/dist/cjs/src/luno.js +14 -14
  74. package/dist/cjs/src/lykke.js +14 -14
  75. package/dist/cjs/src/mercado.js +10 -10
  76. package/dist/cjs/src/mexc.js +38 -38
  77. package/dist/cjs/src/ndax.js +18 -18
  78. package/dist/cjs/src/novadax.js +18 -18
  79. package/dist/cjs/src/oceanex.js +14 -14
  80. package/dist/cjs/src/okcoin.js +19 -19
  81. package/dist/cjs/src/okx.js +48 -48
  82. package/dist/cjs/src/paymium.js +9 -9
  83. package/dist/cjs/src/phemex.js +24 -24
  84. package/dist/cjs/src/poloniex.js +77 -60
  85. package/dist/cjs/src/poloniexfutures.js +16 -16
  86. package/dist/cjs/src/pro/alpaca.js +5 -5
  87. package/dist/cjs/src/pro/ascendex.js +2 -2
  88. package/dist/cjs/src/pro/binance.js +10 -10
  89. package/dist/cjs/src/pro/bitfinex.js +3 -3
  90. package/dist/cjs/src/pro/bitfinex2.js +4 -4
  91. package/dist/cjs/src/pro/bitget.js +4 -4
  92. package/dist/cjs/src/pro/bitmart.js +3 -3
  93. package/dist/cjs/src/pro/bitmex.js +4 -4
  94. package/dist/cjs/src/pro/bitopro.js +2 -2
  95. package/dist/cjs/src/pro/bitrue.js +1 -1
  96. package/dist/cjs/src/pro/bitstamp.js +2 -2
  97. package/dist/cjs/src/pro/bittrex.js +4 -4
  98. package/dist/cjs/src/pro/bitvavo.js +4 -4
  99. package/dist/cjs/src/pro/bybit.js +12 -11
  100. package/dist/cjs/src/pro/cex.js +3 -3
  101. package/dist/cjs/src/pro/coinbasepro.js +5 -5
  102. package/dist/cjs/src/pro/coinex.js +3 -3
  103. package/dist/cjs/src/pro/cryptocom.js +7 -7
  104. package/dist/cjs/src/pro/currencycom.js +2 -2
  105. package/dist/cjs/src/pro/deribit.js +3 -3
  106. package/dist/cjs/src/pro/exmo.js +2 -2
  107. package/dist/cjs/src/pro/gate.js +5 -5
  108. package/dist/cjs/src/pro/gemini.js +2 -2
  109. package/dist/cjs/src/pro/hitbtc.js +2 -2
  110. package/dist/cjs/src/pro/hollaex.js +3 -3
  111. package/dist/cjs/src/pro/huobi.js +4 -4
  112. package/dist/cjs/src/pro/huobijp.js +2 -2
  113. package/dist/cjs/src/pro/idex.js +3 -3
  114. package/dist/cjs/src/pro/independentreserve.js +1 -1
  115. package/dist/cjs/src/pro/kraken.js +6 -6
  116. package/dist/cjs/src/pro/krakenfutures.js +2 -2
  117. package/dist/cjs/src/pro/kucoin.js +4 -4
  118. package/dist/cjs/src/pro/kucoinfutures.js +3 -3
  119. package/dist/cjs/src/pro/luno.js +1 -1
  120. package/dist/cjs/src/pro/ndax.js +2 -2
  121. package/dist/cjs/src/pro/okcoin.js +3 -3
  122. package/dist/cjs/src/pro/okx.js +12 -11
  123. package/dist/cjs/src/pro/phemex.js +4 -4
  124. package/dist/cjs/src/pro/poloniex.js +1 -1
  125. package/dist/cjs/src/pro/upbit.js +2 -2
  126. package/dist/cjs/src/pro/wazirx.js +3 -3
  127. package/dist/cjs/src/pro/whitebit.js +4 -4
  128. package/dist/cjs/src/probit.js +17 -17
  129. package/dist/cjs/src/tidex.js +11 -11
  130. package/dist/cjs/src/timex.js +14 -14
  131. package/dist/cjs/src/tokocrypto.js +16 -16
  132. package/dist/cjs/src/upbit.js +18 -18
  133. package/dist/cjs/src/wavesexchange.js +13 -13
  134. package/dist/cjs/src/wazirx.js +10 -10
  135. package/dist/cjs/src/whitebit.js +21 -21
  136. package/dist/cjs/src/woo.js +28 -22
  137. package/dist/cjs/src/yobit.js +14 -14
  138. package/dist/cjs/src/zaif.js +8 -8
  139. package/dist/cjs/src/zonda.js +13 -13
  140. package/js/ccxt.d.ts +1 -1
  141. package/js/ccxt.js +1 -1
  142. package/js/src/abstract/bitmart.d.ts +13 -0
  143. package/js/src/abstract/bybit.d.ts +33 -21
  144. package/js/src/abstract/woo.d.ts +6 -0
  145. package/js/src/ace.js +9 -9
  146. package/js/src/alpaca.js +6 -6
  147. package/js/src/ascendex.js +22 -22
  148. package/js/src/base/Exchange.js +2 -2
  149. package/js/src/bigone.js +17 -17
  150. package/js/src/binance.js +51 -51
  151. package/js/src/bingx.js +25 -26
  152. package/js/src/bit2c.js +10 -10
  153. package/js/src/bitbank.js +11 -11
  154. package/js/src/bitbns.js +12 -12
  155. package/js/src/bitfinex.js +19 -19
  156. package/js/src/bitfinex2.js +25 -25
  157. package/js/src/bitflyer.js +15 -15
  158. package/js/src/bitforex.js +9 -9
  159. package/js/src/bitget.js +34 -34
  160. package/js/src/bithumb.js +9 -9
  161. package/js/src/bitmart.js +42 -29
  162. package/js/src/bitmex.js +19 -19
  163. package/js/src/bitopro.js +18 -18
  164. package/js/src/bitpanda.js +19 -19
  165. package/js/src/bitrue.js +15 -15
  166. package/js/src/bitso.js +19 -19
  167. package/js/src/bitstamp.js +19 -19
  168. package/js/src/bitstamp1.js +6 -6
  169. package/js/src/bittrex.js +24 -24
  170. package/js/src/bitvavo.js +16 -16
  171. package/js/src/bkex.js +17 -17
  172. package/js/src/bl3p.js +6 -6
  173. package/js/src/blockchaincom.js +20 -20
  174. package/js/src/btcalpha.js +13 -13
  175. package/js/src/btcbox.js +8 -8
  176. package/js/src/btcmarkets.js +15 -15
  177. package/js/src/btctradeua.js +6 -6
  178. package/js/src/btcturk.js +9 -9
  179. package/js/src/bybit.js +148 -116
  180. package/js/src/cex.js +12 -12
  181. package/js/src/coinbase.js +20 -20
  182. package/js/src/coinbasepro.js +22 -22
  183. package/js/src/coincheck.js +10 -10
  184. package/js/src/coinex.d.ts +1 -0
  185. package/js/src/coinex.js +81 -35
  186. package/js/src/coinfalcon.js +14 -14
  187. package/js/src/coinmate.js +12 -12
  188. package/js/src/coinone.js +10 -10
  189. package/js/src/coinsph.js +20 -20
  190. package/js/src/coinspot.js +6 -6
  191. package/js/src/cryptocom.js +24 -24
  192. package/js/src/currencycom.js +18 -18
  193. package/js/src/delta.js +23 -23
  194. package/js/src/deribit.js +27 -27
  195. package/js/src/digifinex.js +27 -27
  196. package/js/src/exmo.js +24 -24
  197. package/js/src/gate.js +34 -34
  198. package/js/src/gemini.js +14 -14
  199. package/js/src/hitbtc.js +30 -30
  200. package/js/src/hollaex.js +20 -20
  201. package/js/src/huobi.js +40 -40
  202. package/js/src/huobijp.js +18 -18
  203. package/js/src/idex.js +17 -17
  204. package/js/src/independentreserve.js +10 -10
  205. package/js/src/indodax.js +12 -12
  206. package/js/src/kraken.js +25 -25
  207. package/js/src/krakenfutures.js +12 -12
  208. package/js/src/kucoin.js +29 -29
  209. package/js/src/kucoinfutures.js +19 -19
  210. package/js/src/kuna.js +10 -10
  211. package/js/src/latoken.js +15 -15
  212. package/js/src/lbank.js +10 -10
  213. package/js/src/lbank2.js +21 -21
  214. package/js/src/luno.js +14 -14
  215. package/js/src/lykke.js +14 -14
  216. package/js/src/mercado.js +10 -10
  217. package/js/src/mexc.js +38 -38
  218. package/js/src/ndax.js +18 -18
  219. package/js/src/novadax.js +18 -18
  220. package/js/src/oceanex.js +14 -14
  221. package/js/src/okcoin.js +19 -19
  222. package/js/src/okx.js +48 -48
  223. package/js/src/paymium.js +9 -9
  224. package/js/src/phemex.js +24 -24
  225. package/js/src/poloniex.js +77 -60
  226. package/js/src/poloniexfutures.js +16 -16
  227. package/js/src/pro/alpaca.js +5 -5
  228. package/js/src/pro/ascendex.js +2 -2
  229. package/js/src/pro/binance.js +10 -10
  230. package/js/src/pro/bitfinex.js +3 -3
  231. package/js/src/pro/bitfinex2.js +4 -4
  232. package/js/src/pro/bitget.js +4 -4
  233. package/js/src/pro/bitmart.js +3 -3
  234. package/js/src/pro/bitmex.js +4 -4
  235. package/js/src/pro/bitopro.js +2 -2
  236. package/js/src/pro/bitrue.js +1 -1
  237. package/js/src/pro/bitstamp.js +2 -2
  238. package/js/src/pro/bittrex.js +4 -4
  239. package/js/src/pro/bitvavo.js +4 -4
  240. package/js/src/pro/bybit.d.ts +1 -1
  241. package/js/src/pro/bybit.js +12 -11
  242. package/js/src/pro/cex.js +3 -3
  243. package/js/src/pro/coinbasepro.js +5 -5
  244. package/js/src/pro/coinex.js +3 -3
  245. package/js/src/pro/cryptocom.js +7 -7
  246. package/js/src/pro/currencycom.js +2 -2
  247. package/js/src/pro/deribit.js +3 -3
  248. package/js/src/pro/exmo.js +2 -2
  249. package/js/src/pro/gate.js +5 -5
  250. package/js/src/pro/gemini.js +2 -2
  251. package/js/src/pro/hitbtc.js +2 -2
  252. package/js/src/pro/hollaex.js +3 -3
  253. package/js/src/pro/huobi.js +4 -4
  254. package/js/src/pro/huobijp.js +2 -2
  255. package/js/src/pro/idex.js +3 -3
  256. package/js/src/pro/independentreserve.js +1 -1
  257. package/js/src/pro/kraken.js +6 -6
  258. package/js/src/pro/krakenfutures.js +2 -2
  259. package/js/src/pro/kucoin.js +4 -4
  260. package/js/src/pro/kucoinfutures.js +3 -3
  261. package/js/src/pro/luno.js +1 -1
  262. package/js/src/pro/ndax.js +2 -2
  263. package/js/src/pro/okcoin.js +3 -3
  264. package/js/src/pro/okx.d.ts +1 -1
  265. package/js/src/pro/okx.js +12 -11
  266. package/js/src/pro/phemex.js +4 -4
  267. package/js/src/pro/poloniex.js +1 -1
  268. package/js/src/pro/upbit.js +2 -2
  269. package/js/src/pro/wazirx.js +3 -3
  270. package/js/src/pro/whitebit.js +4 -4
  271. package/js/src/probit.js +17 -17
  272. package/js/src/tidex.js +11 -11
  273. package/js/src/timex.js +14 -14
  274. package/js/src/tokocrypto.js +16 -16
  275. package/js/src/upbit.js +18 -18
  276. package/js/src/wavesexchange.js +13 -13
  277. package/js/src/wazirx.js +10 -10
  278. package/js/src/whitebit.js +21 -21
  279. package/js/src/woo.js +28 -22
  280. package/js/src/yobit.js +14 -14
  281. package/js/src/zaif.js +8 -8
  282. package/js/src/zonda.js +13 -13
  283. package/package.json +1 -1
@@ -122,7 +122,7 @@ export default class kucoin extends kucoinRest {
122
122
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
123
123
  * @param {string} symbol unified symbol of the market to fetch the ticker for
124
124
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
125
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
125
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
126
126
  */
127
127
  await this.loadMarkets();
128
128
  const market = this.market(symbol);
@@ -335,7 +335,7 @@ export default class kucoin extends kucoinRest {
335
335
  * @param {string} symbol unified symbol of the market to fetch the order book for
336
336
  * @param {int} [limit] the maximum amount of order book entries to return
337
337
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
338
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
338
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
339
339
  */
340
340
  //
341
341
  // https://docs.kucoin.com/#level-2-market-data
@@ -499,7 +499,7 @@ export default class kucoin extends kucoinRest {
499
499
  * @param {int} [since] the earliest time in ms to fetch orders for
500
500
  * @param {int} [limit] the maximum number of orde structures to retrieve
501
501
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
502
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
502
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
503
503
  */
504
504
  await this.loadMarkets();
505
505
  const url = await this.negotiate(true);
@@ -622,7 +622,7 @@ export default class kucoin extends kucoinRest {
622
622
  * @param {int} [since] the earliest time in ms to fetch trades for
623
623
  * @param {int} [limit] the maximum number of trade structures to retrieve
624
624
  * @param {object} [params] extra parameters specific to the kucoin api endpoint
625
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
625
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
626
626
  */
627
627
  await this.loadMarkets();
628
628
  const url = await this.negotiate(true);
@@ -138,7 +138,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
138
138
  * @see https://docs.kucoin.com/futures/#get-real-time-symbol-ticker-v2
139
139
  * @param {string} symbol unified symbol of the market to fetch the ticker for
140
140
  * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
141
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
141
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
142
142
  */
143
143
  await this.loadMarkets();
144
144
  const market = this.market(symbol);
@@ -252,7 +252,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
252
252
  * @param {string} symbol unified symbol of the market to fetch the order book for
253
253
  * @param {int} [limit] the maximum amount of order book entries to return
254
254
  * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
255
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
255
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
256
256
  */
257
257
  if (limit !== undefined) {
258
258
  if ((limit !== 20) && (limit !== 100)) {
@@ -406,7 +406,7 @@ export default class kucoinfutures extends kucoinfuturesRest {
406
406
  * @param {int} [since] the earliest time in ms to fetch orders for
407
407
  * @param {int} [limit] the maximum number of orde structures to retrieve
408
408
  * @param {object} [params] extra parameters specific to the kucoinfutures api endpoint
409
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
409
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
410
410
  */
411
411
  await this.loadMarkets();
412
412
  const url = await this.negotiate(true);
@@ -140,7 +140,7 @@ export default class luno extends lunoRest {
140
140
  * @param {int} [limit] the maximum amount of order book entries to return
141
141
  * @param {objectConstructor} [params] extra parameters specific to the luno api endpoint
142
142
  * @param {string} [params.type] accepts l2 or l3 for level 2 or level 3 order book
143
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
143
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
144
144
  */
145
145
  await this.checkRequiredCredentials();
146
146
  await this.loadMarkets();
@@ -45,7 +45,7 @@ export default class ndax extends ndaxRest {
45
45
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
46
46
  * @param {string} symbol unified symbol of the market to fetch the ticker for
47
47
  * @param {object} [params] extra parameters specific to the ndax api endpoint
48
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
48
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
49
49
  */
50
50
  const omsId = this.safeInteger(this.options, 'omsId', 1);
51
51
  await this.loadMarkets();
@@ -324,7 +324,7 @@ export default class ndax extends ndaxRest {
324
324
  * @param {string} symbol unified symbol of the market to fetch the order book for
325
325
  * @param {int} [limit] the maximum amount of order book entries to return
326
326
  * @param {object} [params] extra parameters specific to the ndax api endpoint
327
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
327
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
328
328
  */
329
329
  const omsId = this.safeInteger(this.options, 'omsId', 1);
330
330
  await this.loadMarkets();
@@ -93,7 +93,7 @@ export default class okcoin extends okcoinRest {
93
93
  * @param {int} [since] the earliest time in ms to fetch orders for
94
94
  * @param {int} [limit] the maximum number of orde structures to retrieve
95
95
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
96
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
96
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
97
97
  */
98
98
  await this.loadMarkets();
99
99
  await this.authenticate();
@@ -177,7 +177,7 @@ export default class okcoin extends okcoinRest {
177
177
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
178
178
  * @param {string} symbol unified symbol of the market to fetch the ticker for
179
179
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
180
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
180
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
181
181
  */
182
182
  return await this.subscribe('ticker', symbol, params);
183
183
  }
@@ -325,7 +325,7 @@ export default class okcoin extends okcoinRest {
325
325
  * @param {string} symbol unified symbol of the market to fetch the order book for
326
326
  * @param {int} [limit] the maximum amount of order book entries to return
327
327
  * @param {object} [params] extra parameters specific to the okcoin api endpoint
328
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
328
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
329
329
  */
330
330
  const options = this.safeValue(this.options, 'watchOrderBook', {});
331
331
  const depth = this.safeString(options, 'depth', 'depth_l2_tbt');
@@ -18,7 +18,7 @@ export default class okx extends okxRest {
18
18
  handleDeltas(bookside: any, deltas: any): void;
19
19
  handleOrderBookMessage(client: Client, message: any, orderbook: any, messageHash: any): any;
20
20
  handleOrderBook(client: Client, message: any): any;
21
- authenticate(params?: {}): any;
21
+ authenticate(params?: {}): Promise<any>;
22
22
  watchBalance(params?: {}): Promise<any>;
23
23
  handleBalance(client: Client, message: any): void;
24
24
  orderToTrade(order: any, market?: any): import("../base/types.js").Trade;
package/js/src/pro/okx.js CHANGED
@@ -214,7 +214,7 @@ export default class okx extends okxRest {
214
214
  * @param {string} symbol unified symbol of the market to fetch the ticker for
215
215
  * @param {object} [params] extra parameters specific to the okx api endpoint
216
216
  * @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
217
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
217
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
218
218
  */
219
219
  let channel = undefined;
220
220
  [channel, params] = this.handleOptionAndParams(params, 'watchTicker', 'channel', 'tickers');
@@ -231,7 +231,7 @@ export default class okx extends okxRest {
231
231
  * @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
232
232
  * @param {object} [params] extra parameters specific to the okx api endpoint
233
233
  * @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
234
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
234
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
235
235
  */
236
236
  let channel = undefined;
237
237
  [channel, params] = this.handleOptionAndParams(params, 'watchTickers', 'channel', 'tickers');
@@ -362,7 +362,7 @@ export default class okx extends okxRest {
362
362
  * @param {string} symbol unified symbol of the market to fetch the order book for
363
363
  * @param {int} [limit] the maximum amount of order book entries to return
364
364
  * @param {object} [params] extra parameters specific to the okx api endpoint
365
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
365
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
366
366
  */
367
367
  const options = this.safeValue(this.options, 'watchOrderBook', {});
368
368
  //
@@ -602,15 +602,16 @@ export default class okx extends okxRest {
602
602
  }
603
603
  return message;
604
604
  }
605
- authenticate(params = {}) {
605
+ async authenticate(params = {}) {
606
606
  this.checkRequiredCredentials();
607
607
  const access = this.safeString(params, 'access', 'private');
608
608
  params = this.omit(params, ['access']);
609
609
  const url = this.getUrl('users', access);
610
610
  const messageHash = 'authenticated';
611
611
  const client = this.client(url);
612
- let future = this.safeValue(client.subscriptions, messageHash);
613
- if (future === undefined) {
612
+ const future = client.future(messageHash);
613
+ const authenticated = this.safeValue(client.subscriptions, messageHash);
614
+ if (authenticated === undefined) {
614
615
  const timestamp = this.seconds().toString();
615
616
  const method = 'GET';
616
617
  const path = '/users/self/verify';
@@ -629,8 +630,7 @@ export default class okx extends okxRest {
629
630
  ],
630
631
  };
631
632
  const message = this.extend(request, params);
632
- future = this.watch(url, messageHash, message);
633
- client.subscriptions[messageHash] = future;
633
+ this.watch(url, messageHash, message, messageHash);
634
634
  }
635
635
  return future;
636
636
  }
@@ -734,7 +734,7 @@ export default class okx extends okxRest {
734
734
  * @param {int} [limit] the maximum number of trade structures to retrieve
735
735
  * @param {object} [params] extra parameters specific to the okx api endpoint
736
736
  * @param {bool} [params.stop] true if fetching trigger or conditional trades
737
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
737
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
738
738
  */
739
739
  await this.loadMarkets();
740
740
  await this.authenticate();
@@ -776,7 +776,7 @@ export default class okx extends okxRest {
776
776
  * @param {int} [limit] the maximum number of orde structures to retrieve
777
777
  * @param {object} [params] extra parameters specific to the okx api endpoint
778
778
  * @param {bool} [params.stop] true if fetching trigger or conditional orders
779
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
779
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
780
780
  */
781
781
  await this.loadMarkets();
782
782
  await this.authenticate();
@@ -1213,7 +1213,8 @@ export default class okx extends okxRest {
1213
1213
  //
1214
1214
  // { event: 'login', success: true }
1215
1215
  //
1216
- client.resolve(message, 'authenticated');
1216
+ const future = this.safeValue(client.futures, 'authenticated');
1217
+ future.resolve(true);
1217
1218
  }
1218
1219
  ping(client) {
1219
1220
  // okex does not support built-in ws protocol-level ping-pong
@@ -498,7 +498,7 @@ export default class phemex extends phemexRest {
498
498
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
499
499
  * @param {string} symbol unified symbol of the market to fetch the ticker for
500
500
  * @param {object} [params] extra parameters specific to the phemex api endpoint
501
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
501
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
502
502
  */
503
503
  await this.loadMarkets();
504
504
  const market = this.market(symbol);
@@ -570,7 +570,7 @@ export default class phemex extends phemexRest {
570
570
  * @param {string} symbol unified symbol of the market to fetch the order book for
571
571
  * @param {int} [limit] the maximum amount of order book entries to return
572
572
  * @param {object} [params] extra parameters specific to the phemex api endpoint
573
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
573
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
574
574
  */
575
575
  await this.loadMarkets();
576
576
  const market = this.market(symbol);
@@ -728,7 +728,7 @@ export default class phemex extends phemexRest {
728
728
  * @param {int} [since] the earliest time in ms to fetch trades for
729
729
  * @param {int} [limit] the maximum number of trade structures to retrieve
730
730
  * @param {object} [params] extra parameters specific to the phemex api endpoint
731
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
731
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
732
732
  */
733
733
  await this.loadMarkets();
734
734
  let market = undefined;
@@ -891,7 +891,7 @@ export default class phemex extends phemexRest {
891
891
  * @param {int} [since] the earliest time in ms to fetch orders for
892
892
  * @param {int} [limit] the maximum number of orde structures to retrieve
893
893
  * @param {object} [params] extra parameters specific to the phemex api endpoint
894
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
894
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
895
895
  */
896
896
  await this.loadMarkets();
897
897
  let messageHash = 'orders:';
@@ -287,7 +287,7 @@ export default class poloniex extends poloniexRest {
287
287
  * @param {int} [since] not used by poloniex watchMyTrades
288
288
  * @param {int} [limit] not used by poloniex watchMyTrades
289
289
  * @param {object} [params] extra parameters specific to the poloniex strean
290
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
290
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
291
291
  */
292
292
  await this.loadMarkets();
293
293
  const name = 'orders';
@@ -58,7 +58,7 @@ export default class upbit extends upbitRest {
58
58
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
59
59
  * @param {string} symbol unified symbol of the market to fetch the ticker for
60
60
  * @param {object} [params] extra parameters specific to the upbit api endpoint
61
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
61
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
62
62
  */
63
63
  return await this.watchPublic(symbol, 'ticker');
64
64
  }
@@ -89,7 +89,7 @@ export default class upbit extends upbitRest {
89
89
  * @param {string} symbol unified symbol of the market to fetch the order book for
90
90
  * @param {int} [limit] the maximum amount of order book entries to return
91
91
  * @param {object} [params] extra parameters specific to the upbit api endpoint
92
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
92
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
93
93
  */
94
94
  const orderbook = await this.watchPublic(symbol, 'orderbook');
95
95
  return orderbook.limit();
@@ -168,7 +168,7 @@ export default class wazirx extends wazirxRest {
168
168
  * @see https://docs.wazirx.com/#all-market-tickers-stream
169
169
  * @param {string} symbol unified symbol of the market to fetch the ticker for
170
170
  * @param {object} [params] extra parameters specific to the wazirx api endpoint
171
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
171
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
172
172
  */
173
173
  await this.loadMarkets();
174
174
  const market = this.market(symbol);
@@ -191,7 +191,7 @@ export default class wazirx extends wazirxRest {
191
191
  * @see https://docs.wazirx.com/#all-market-tickers-stream
192
192
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
193
193
  * @param {object} [params] extra parameters specific to the wazirx api endpoint
194
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
194
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
195
195
  */
196
196
  await this.loadMarkets();
197
197
  symbols = this.marketSymbols(symbols);
@@ -476,7 +476,7 @@ export default class wazirx extends wazirxRest {
476
476
  * @param {string} symbol unified symbol of the market to fetch the order book for
477
477
  * @param {int} [limit] the maximum amount of order book entries to return
478
478
  * @param {object} [params] extra parameters specific to the wazirx api endpoint
479
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
479
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
480
480
  */
481
481
  await this.loadMarkets();
482
482
  const market = this.market(symbol);
@@ -137,7 +137,7 @@ export default class whitebit extends whitebitRest {
137
137
  * @param {string} symbol unified symbol of the market to fetch the order book for
138
138
  * @param {int} [limit] the maximum amount of order book entries to return
139
139
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
140
- * @returns {object} A dictionary of [order book structures]{@link https://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.loadMarkets();
143
143
  const market = this.market(symbol);
@@ -240,7 +240,7 @@ export default class whitebit extends whitebitRest {
240
240
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
241
241
  * @param {string} symbol unified symbol of the market to fetch the ticker for
242
242
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
243
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
243
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
244
244
  */
245
245
  await this.loadMarkets();
246
246
  const market = this.market(symbol);
@@ -374,7 +374,7 @@ export default class whitebit extends whitebitRest {
374
374
  * @param {int} [since] the earliest time in ms to fetch trades for
375
375
  * @param {int} [limit] the maximum number of trades structures to retrieve
376
376
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
377
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
377
+ * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
378
378
  */
379
379
  if (symbol === undefined) {
380
380
  throw new ArgumentsRequired(this.id + ' watchMyTrades requires a symbol argument');
@@ -473,7 +473,7 @@ export default class whitebit extends whitebitRest {
473
473
  * @param {int} [since] the earliest time in ms to fetch orders for
474
474
  * @param {int} [limit] the maximum number of orde structures to retrieve
475
475
  * @param {object} [params] extra parameters specific to the whitebit api endpoint
476
- * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
476
+ * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
477
477
  */
478
478
  if (symbol === undefined) {
479
479
  throw new ArgumentsRequired(this.id + ' watchOrders requires a symbol argument');
package/js/src/probit.js CHANGED
@@ -559,7 +559,7 @@ export default class probit extends Exchange {
559
559
  * @param {string} symbol unified symbol of the market to fetch the order book for
560
560
  * @param {int} [limit] the maximum amount of order book entries to return
561
561
  * @param {object} [params] extra parameters specific to the probit api endpoint
562
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
562
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
563
563
  */
564
564
  await this.loadMarkets();
565
565
  const market = this.market(symbol);
@@ -588,7 +588,7 @@ export default class probit extends Exchange {
588
588
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
589
589
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
590
590
  * @param {object} [params] extra parameters specific to the probit api endpoint
591
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
591
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
592
592
  */
593
593
  await this.loadMarkets();
594
594
  const request = {};
@@ -624,7 +624,7 @@ export default class probit extends Exchange {
624
624
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
625
625
  * @param {string} symbol unified symbol of the market to fetch the ticker for
626
626
  * @param {object} [params] extra parameters specific to the probit api endpoint
627
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
627
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
628
628
  */
629
629
  await this.loadMarkets();
630
630
  const market = this.market(symbol);
@@ -708,7 +708,7 @@ export default class probit extends Exchange {
708
708
  * @param {int} [since] the earliest time in ms to fetch trades for
709
709
  * @param {int} [limit] the maximum number of trades structures to retrieve
710
710
  * @param {object} [params] extra parameters specific to the probit api endpoint
711
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
711
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
712
712
  */
713
713
  await this.loadMarkets();
714
714
  let market = undefined;
@@ -1025,7 +1025,7 @@ export default class probit extends Exchange {
1025
1025
  * @param {int} [since] the earliest time in ms to fetch open orders for
1026
1026
  * @param {int} [limit] the maximum number of open orders structures to retrieve
1027
1027
  * @param {object} [params] extra parameters specific to the probit api endpoint
1028
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1028
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1029
1029
  */
1030
1030
  await this.loadMarkets();
1031
1031
  since = this.parse8601(since);
@@ -1049,7 +1049,7 @@ export default class probit extends Exchange {
1049
1049
  * @param {int} [since] the earliest time in ms to fetch orders for
1050
1050
  * @param {int} [limit] the maximum number of orde structures to retrieve
1051
1051
  * @param {object} [params] extra parameters specific to the probit api endpoint
1052
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1052
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1053
1053
  */
1054
1054
  await this.loadMarkets();
1055
1055
  const request = {
@@ -1080,7 +1080,7 @@ export default class probit extends Exchange {
1080
1080
  * @description fetches information on an order made by the user
1081
1081
  * @param {string} symbol unified symbol of the market the order was made in
1082
1082
  * @param {object} [params] extra parameters specific to the probit api endpoint
1083
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1083
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1084
1084
  */
1085
1085
  if (symbol === undefined) {
1086
1086
  throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
@@ -1189,9 +1189,9 @@ export default class probit extends Exchange {
1189
1189
  * @param {string} type 'market' or 'limit'
1190
1190
  * @param {string} side 'buy' or 'sell'
1191
1191
  * @param {float} amount how much of currency you want to trade in units of base currency
1192
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1192
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
1193
1193
  * @param {object} [params] extra parameters specific to the probit api endpoint
1194
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1194
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1195
1195
  */
1196
1196
  await this.loadMarkets();
1197
1197
  const market = this.market(symbol);
@@ -1283,7 +1283,7 @@ export default class probit extends Exchange {
1283
1283
  * @param {string} id order id
1284
1284
  * @param {string} symbol unified symbol of the market the order was made in
1285
1285
  * @param {object} [params] extra parameters specific to the probit api endpoint
1286
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1286
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
1287
1287
  */
1288
1288
  if (symbol === undefined) {
1289
1289
  throw new ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
@@ -1322,7 +1322,7 @@ export default class probit extends Exchange {
1322
1322
  * @description fetch the deposit address for a currency associated with this account
1323
1323
  * @param {string} code unified currency code
1324
1324
  * @param {object} [params] extra parameters specific to the probit api endpoint
1325
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
1325
+ * @returns {object} an [address structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1326
1326
  */
1327
1327
  await this.loadMarkets();
1328
1328
  const currency = this.currency(code);
@@ -1376,7 +1376,7 @@ export default class probit extends Exchange {
1376
1376
  * @description fetch deposit addresses for multiple currencies and chain types
1377
1377
  * @param {string[]|undefined} codes list of unified currency codes, default is undefined
1378
1378
  * @param {object} [params] extra parameters specific to the probit api endpoint
1379
- * @returns {object} a list of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure}
1379
+ * @returns {object} a list of [address structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#address-structure}
1380
1380
  */
1381
1381
  await this.loadMarkets();
1382
1382
  const request = {};
@@ -1403,7 +1403,7 @@ export default class probit extends Exchange {
1403
1403
  * @param {string} address the address to withdraw to
1404
1404
  * @param {string} tag
1405
1405
  * @param {object} [params] extra parameters specific to the probit api endpoint
1406
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1406
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1407
1407
  */
1408
1408
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
1409
1409
  // In order to use this method
@@ -1448,7 +1448,7 @@ export default class probit extends Exchange {
1448
1448
  * @param {int} [since] the earliest time in ms to fetch deposits for
1449
1449
  * @param {int} [limit] the maximum number of transaction structures to retrieve
1450
1450
  * @param {object} [params] extra parameters specific to the probit api endpoint
1451
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1451
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1452
1452
  */
1453
1453
  const request = {
1454
1454
  'type': 'deposit',
@@ -1465,7 +1465,7 @@ export default class probit extends Exchange {
1465
1465
  * @param {int} [since] the earliest time in ms to fetch withdrawals for
1466
1466
  * @param {int} [limit] the maximum number of transaction structures to retrieve
1467
1467
  * @param {object} [params] extra parameters specific to the probit api endpoint
1468
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1468
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1469
1469
  */
1470
1470
  const request = {
1471
1471
  'type': 'withdrawal',
@@ -1484,7 +1484,7 @@ export default class probit extends Exchange {
1484
1484
  * @param {int} [since] the earliest time in ms to fetch transactions for
1485
1485
  * @param {int} [limit] the maximum number of transaction structures to retrieve
1486
1486
  * @param {object} [params] extra parameters specific to the probit api endpoint
1487
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
1487
+ * @returns {object[]} a list of [transaction structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
1488
1488
  */
1489
1489
  await this.loadMarkets();
1490
1490
  let currency = undefined;
@@ -1588,7 +1588,7 @@ export default class probit extends Exchange {
1588
1588
  * @description fetch deposit and withdraw fees
1589
1589
  * @param {string[]|undefined} codes list of unified currency codes
1590
1590
  * @param {object} [params] extra parameters specific to the poloniex api endpoint
1591
- * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
1591
+ * @returns {object[]} a list of [fees structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#fee-structure}
1592
1592
  */
1593
1593
  await this.loadMarkets();
1594
1594
  const response = await this.publicGetCurrencyWithPlatform(params);
package/js/src/tidex.js CHANGED
@@ -409,7 +409,7 @@ export default class tidex extends Exchange {
409
409
  * @param {string} symbol unified symbol of the market to fetch the order book for
410
410
  * @param {int} [limit] the maximum amount of order book entries to return
411
411
  * @param {object} [params] extra parameters specific to the tidex api endpoint
412
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
412
+ * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
413
413
  */
414
414
  await this.loadMarkets();
415
415
  const market = this.market(symbol);
@@ -435,7 +435,7 @@ export default class tidex extends Exchange {
435
435
  * @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
436
436
  * @param {int} [limit] max number of entries per orderbook to return, default is undefined
437
437
  * @param {object} [params] extra parameters specific to the tidex api endpoint
438
- * @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
438
+ * @returns {object} a dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbol
439
439
  */
440
440
  await this.loadMarkets();
441
441
  let ids = undefined;
@@ -514,7 +514,7 @@ export default class tidex extends Exchange {
514
514
  * @description fetches price tickers for multiple markets, statistical calculations with the information calculated over the past 24 hours each market
515
515
  * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
516
516
  * @param {object} [params] extra parameters specific to the tidex api endpoint
517
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
517
+ * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
518
518
  */
519
519
  await this.loadMarkets();
520
520
  symbols = this.marketSymbols(symbols);
@@ -553,7 +553,7 @@ export default class tidex extends Exchange {
553
553
  * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
554
554
  * @param {string} symbol unified symbol of the market to fetch the ticker for
555
555
  * @param {object} [params] extra parameters specific to the tidex api endpoint
556
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
556
+ * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
557
557
  */
558
558
  const tickers = await this.fetchTickers([symbol], params);
559
559
  return tickers[symbol];
@@ -651,9 +651,9 @@ export default class tidex extends Exchange {
651
651
  * @param {string} type 'market' or 'limit'
652
652
  * @param {string} side 'buy' or 'sell'
653
653
  * @param {float} amount how much of currency you want to trade in units of base currency
654
- * @param {float} price the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
654
+ * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
655
655
  * @param {object} [params] extra parameters specific to the tidex api endpoint
656
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
656
+ * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
657
657
  */
658
658
  if (type === 'market') {
659
659
  throw new ExchangeError(this.id + ' createOrder() allows limit orders only');
@@ -714,7 +714,7 @@ export default class tidex extends Exchange {
714
714
  * @param {string} id order id
715
715
  * @param {string} symbol not used by tidex cancelOrder ()
716
716
  * @param {object} [params] extra parameters specific to the tidex api endpoint
717
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
717
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
718
718
  */
719
719
  await this.loadMarkets();
720
720
  const request = {
@@ -780,7 +780,7 @@ export default class tidex extends Exchange {
780
780
  * @description fetches information on an order made by the user
781
781
  * @param {string} symbol not used by tidex fetchOrder
782
782
  * @param {object} [params] extra parameters specific to the tidex api endpoint
783
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
783
+ * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
784
784
  */
785
785
  await this.loadMarkets();
786
786
  const request = {
@@ -801,7 +801,7 @@ export default class tidex extends Exchange {
801
801
  * @param {int} [since] the earliest time in ms to fetch open orders for
802
802
  * @param {int} [limit] the maximum number of open orders structures to retrieve
803
803
  * @param {object} [params] extra parameters specific to the tidex api endpoint
804
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
804
+ * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
805
805
  */
806
806
  await this.loadMarkets();
807
807
  const request = {};
@@ -845,7 +845,7 @@ export default class tidex extends Exchange {
845
845
  * @param {int} [since] the earliest time in ms to fetch trades for
846
846
  * @param {int} [limit] the maximum number of trades structures to retrieve
847
847
  * @param {object} [params] extra parameters specific to the tidex api endpoint
848
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
848
+ * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
849
849
  */
850
850
  await this.loadMarkets();
851
851
  let market = undefined;
@@ -884,7 +884,7 @@ export default class tidex extends Exchange {
884
884
  * @param {string} address the address to withdraw to
885
885
  * @param {string} tag
886
886
  * @param {object} [params] extra parameters specific to the tidex api endpoint
887
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
887
+ * @returns {object} a [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
888
888
  */
889
889
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
890
890
  this.checkAddress(address);