ccxt 4.1.56 → 4.1.58

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 (318) hide show
  1. package/.git-templates/hooks/pre-push +2 -2
  2. package/README.md +3 -3
  3. package/build.sh +30 -18
  4. package/dist/ccxt.browser.js +3893 -3214
  5. package/dist/ccxt.browser.min.js +10 -10
  6. package/dist/cjs/ccxt.js +1 -1
  7. package/dist/cjs/src/ace.js +17 -13
  8. package/dist/cjs/src/alpaca.js +6 -6
  9. package/dist/cjs/src/ascendex.js +35 -29
  10. package/dist/cjs/src/base/Exchange.js +39 -26
  11. package/dist/cjs/src/base/Precise.js +1 -3
  12. package/dist/cjs/src/base/ws/Client.js +1 -1
  13. package/dist/cjs/src/bigone.js +24 -20
  14. package/dist/cjs/src/binance.js +97 -76
  15. package/dist/cjs/src/bingx.js +63 -44
  16. package/dist/cjs/src/bit2c.js +18 -15
  17. package/dist/cjs/src/bitbank.js +16 -15
  18. package/dist/cjs/src/bitbns.js +28 -18
  19. package/dist/cjs/src/bitfinex.js +23 -21
  20. package/dist/cjs/src/bitfinex2.js +32 -28
  21. package/dist/cjs/src/bitflyer.js +28 -20
  22. package/dist/cjs/src/bitforex.js +25 -18
  23. package/dist/cjs/src/bitget.js +184 -147
  24. package/dist/cjs/src/bithumb.js +23 -16
  25. package/dist/cjs/src/bitmart.js +110 -89
  26. package/dist/cjs/src/bitmex.js +104 -64
  27. package/dist/cjs/src/bitopro.js +38 -26
  28. package/dist/cjs/src/bitpanda.js +24 -23
  29. package/dist/cjs/src/bitrue.js +33 -24
  30. package/dist/cjs/src/bitso.js +24 -23
  31. package/dist/cjs/src/bitstamp.js +24 -23
  32. package/dist/cjs/src/bittrex.js +30 -29
  33. package/dist/cjs/src/bitvavo.js +38 -30
  34. package/dist/cjs/src/bl3p.js +11 -10
  35. package/dist/cjs/src/blockchaincom.js +20 -20
  36. package/dist/cjs/src/btcalpha.js +18 -17
  37. package/dist/cjs/src/btcbox.js +13 -12
  38. package/dist/cjs/src/btcmarkets.js +20 -19
  39. package/dist/cjs/src/btcturk.js +14 -13
  40. package/dist/cjs/src/bybit.js +84 -54
  41. package/dist/cjs/src/cex.js +16 -14
  42. package/dist/cjs/src/coinbase.js +29 -27
  43. package/dist/cjs/src/coinbasepro.js +27 -25
  44. package/dist/cjs/src/coincheck.js +15 -14
  45. package/dist/cjs/src/coinex.js +100 -77
  46. package/dist/cjs/src/coinlist.js +28 -27
  47. package/dist/cjs/src/coinmate.js +20 -17
  48. package/dist/cjs/src/coinone.js +21 -16
  49. package/dist/cjs/src/coinsph.js +37 -28
  50. package/dist/cjs/src/coinspot.js +12 -11
  51. package/dist/cjs/src/cryptocom.js +40 -202
  52. package/dist/cjs/src/currencycom.js +32 -25
  53. package/dist/cjs/src/delta.js +34 -28
  54. package/dist/cjs/src/deribit.js +39 -36
  55. package/dist/cjs/src/digifinex.js +64 -44
  56. package/dist/cjs/src/exmo.js +29 -27
  57. package/dist/cjs/src/gate.js +67 -53
  58. package/dist/cjs/src/gemini.js +23 -20
  59. package/dist/cjs/src/hitbtc.js +65 -56
  60. package/dist/cjs/src/hollaex.js +30 -27
  61. package/dist/cjs/src/htx.js +132 -143
  62. package/dist/cjs/src/huobijp.js +22 -20
  63. package/dist/cjs/src/idex.js +22 -21
  64. package/dist/cjs/src/independentreserve.js +15 -14
  65. package/dist/cjs/src/indodax.js +30 -26
  66. package/dist/cjs/src/kraken.js +29 -27
  67. package/dist/cjs/src/krakenfutures.js +29 -22
  68. package/dist/cjs/src/kucoin.js +48 -43
  69. package/dist/cjs/src/kucoinfutures.js +33 -28
  70. package/dist/cjs/src/kuna.js +25 -24
  71. package/dist/cjs/src/latoken.js +24 -22
  72. package/dist/cjs/src/lbank.js +45 -30
  73. package/dist/cjs/src/luno.js +22 -19
  74. package/dist/cjs/src/lykke.js +19 -17
  75. package/dist/cjs/src/mercado.js +30 -19
  76. package/dist/cjs/src/mexc.js +60 -49
  77. package/dist/cjs/src/ndax.js +23 -22
  78. package/dist/cjs/src/novadax.js +23 -22
  79. package/dist/cjs/src/oceanex.js +22 -19
  80. package/dist/cjs/src/okcoin.js +29 -23
  81. package/dist/cjs/src/okx.js +87 -82
  82. package/dist/cjs/src/p2b.js +79 -82
  83. package/dist/cjs/src/paymium.js +10 -10
  84. package/dist/cjs/src/phemex.js +63 -40
  85. package/dist/cjs/src/poloniex.js +22 -22
  86. package/dist/cjs/src/poloniexfutures.js +23 -19
  87. package/dist/cjs/src/pro/alpaca.js +5 -5
  88. package/dist/cjs/src/pro/ascendex.js +4 -4
  89. package/dist/cjs/src/pro/binance.js +16 -16
  90. package/dist/cjs/src/pro/bingx.js +1 -1
  91. package/dist/cjs/src/pro/bitfinex.js +4 -4
  92. package/dist/cjs/src/pro/bitfinex2.js +6 -6
  93. package/dist/cjs/src/pro/bitget.js +7 -7
  94. package/dist/cjs/src/pro/bitmart.js +7 -5
  95. package/dist/cjs/src/pro/bitmex.js +6 -6
  96. package/dist/cjs/src/pro/bitopro.js +4 -4
  97. package/dist/cjs/src/pro/bitpanda.js +6 -6
  98. package/dist/cjs/src/pro/bitrue.js +2 -2
  99. package/dist/cjs/src/pro/bitstamp.js +6 -4
  100. package/dist/cjs/src/pro/bittrex.js +15 -6
  101. package/dist/cjs/src/pro/bitvavo.js +11 -7
  102. package/dist/cjs/src/pro/blockchaincom.js +8 -8
  103. package/dist/cjs/src/pro/bybit.js +7 -7
  104. package/dist/cjs/src/pro/cex.js +13 -9
  105. package/dist/cjs/src/pro/coinbase.js +5 -5
  106. package/dist/cjs/src/pro/coinbasepro.js +11 -10
  107. package/dist/cjs/src/pro/coinex.js +7 -9
  108. package/dist/cjs/src/pro/cryptocom.js +9 -9
  109. package/dist/cjs/src/pro/currencycom.js +4 -4
  110. package/dist/cjs/src/pro/deribit.js +6 -6
  111. package/dist/cjs/src/pro/exmo.js +12 -14
  112. package/dist/cjs/src/pro/gate.js +7 -7
  113. package/dist/cjs/src/pro/gemini.js +3 -3
  114. package/dist/cjs/src/pro/hitbtc.js +263 -4
  115. package/dist/cjs/src/pro/hollaex.js +5 -5
  116. package/dist/cjs/src/pro/htx.js +6 -6
  117. package/dist/cjs/src/pro/huobijp.js +3 -3
  118. package/dist/cjs/src/pro/idex.js +4 -4
  119. package/dist/cjs/src/pro/independentreserve.js +2 -2
  120. package/dist/cjs/src/pro/kraken.js +10 -10
  121. package/dist/cjs/src/pro/krakenfutures.js +41 -17
  122. package/dist/cjs/src/pro/kucoin.js +7 -7
  123. package/dist/cjs/src/pro/kucoinfutures.js +8 -6
  124. package/dist/cjs/src/pro/luno.js +2 -2
  125. package/dist/cjs/src/pro/mexc.js +6 -6
  126. package/dist/cjs/src/pro/ndax.js +3 -3
  127. package/dist/cjs/src/pro/okcoin.js +5 -5
  128. package/dist/cjs/src/pro/okx.js +12 -12
  129. package/dist/cjs/src/pro/phemex.js +6 -6
  130. package/dist/cjs/src/pro/poloniex.js +7 -7
  131. package/dist/cjs/src/pro/poloniexfutures.js +5 -5
  132. package/dist/cjs/src/pro/probit.js +6 -6
  133. package/dist/cjs/src/pro/upbit.js +3 -3
  134. package/dist/cjs/src/pro/wazirx.js +8 -8
  135. package/dist/cjs/src/pro/whitebit.js +12 -8
  136. package/dist/cjs/src/pro/woo.js +1 -1
  137. package/dist/cjs/src/probit.js +28 -23
  138. package/dist/cjs/src/tidex.js +16 -15
  139. package/dist/cjs/src/timex.js +19 -18
  140. package/dist/cjs/src/tokocrypto.js +27 -22
  141. package/dist/cjs/src/upbit.js +19 -19
  142. package/dist/cjs/src/wavesexchange.js +22 -19
  143. package/dist/cjs/src/wazirx.js +24 -17
  144. package/dist/cjs/src/whitebit.js +33 -27
  145. package/dist/cjs/src/woo.js +44 -34
  146. package/dist/cjs/src/yobit.js +25 -20
  147. package/dist/cjs/src/zaif.js +9 -9
  148. package/dist/cjs/src/zonda.js +18 -17
  149. package/js/ccxt.d.ts +1 -1
  150. package/js/ccxt.js +1 -1
  151. package/js/src/abstract/bybit.d.ts +1 -0
  152. package/js/src/abstract/cryptocom.d.ts +0 -20
  153. package/js/src/ace.js +18 -14
  154. package/js/src/alpaca.js +6 -6
  155. package/js/src/ascendex.js +35 -29
  156. package/js/src/base/Exchange.d.ts +37 -34
  157. package/js/src/base/Exchange.js +39 -26
  158. package/js/src/base/Precise.d.ts +4 -4
  159. package/js/src/base/Precise.js +1 -3
  160. package/js/src/base/functions/type.d.ts +25 -25
  161. package/js/src/base/types.d.ts +21 -14
  162. package/js/src/base/ws/Client.js +1 -1
  163. package/js/src/bigone.js +25 -21
  164. package/js/src/binance.d.ts +2 -2
  165. package/js/src/binance.js +97 -76
  166. package/js/src/bingx.js +63 -44
  167. package/js/src/bit2c.js +19 -16
  168. package/js/src/bitbank.js +16 -15
  169. package/js/src/bitbns.js +28 -18
  170. package/js/src/bitfinex.js +23 -21
  171. package/js/src/bitfinex2.js +32 -28
  172. package/js/src/bitflyer.js +28 -20
  173. package/js/src/bitforex.js +26 -19
  174. package/js/src/bitget.d.ts +25 -3
  175. package/js/src/bitget.js +184 -147
  176. package/js/src/bithumb.js +23 -16
  177. package/js/src/bitmart.d.ts +1 -1
  178. package/js/src/bitmart.js +110 -89
  179. package/js/src/bitmex.d.ts +2 -2
  180. package/js/src/bitmex.js +104 -64
  181. package/js/src/bitopro.js +38 -26
  182. package/js/src/bitpanda.js +24 -23
  183. package/js/src/bitrue.js +33 -24
  184. package/js/src/bitso.js +24 -23
  185. package/js/src/bitstamp.d.ts +2 -2
  186. package/js/src/bitstamp.js +24 -23
  187. package/js/src/bittrex.js +30 -29
  188. package/js/src/bitvavo.js +38 -30
  189. package/js/src/bl3p.js +11 -10
  190. package/js/src/blockchaincom.js +20 -20
  191. package/js/src/btcalpha.js +18 -17
  192. package/js/src/btcbox.js +13 -12
  193. package/js/src/btcmarkets.js +20 -19
  194. package/js/src/btcturk.js +14 -13
  195. package/js/src/bybit.d.ts +1 -1
  196. package/js/src/bybit.js +84 -54
  197. package/js/src/cex.js +16 -14
  198. package/js/src/coinbase.js +29 -27
  199. package/js/src/coinbasepro.js +27 -25
  200. package/js/src/coincheck.js +15 -14
  201. package/js/src/coinex.d.ts +1 -1
  202. package/js/src/coinex.js +100 -77
  203. package/js/src/coinlist.js +28 -27
  204. package/js/src/coinmate.js +21 -18
  205. package/js/src/coinone.js +21 -16
  206. package/js/src/coinsph.js +37 -28
  207. package/js/src/coinspot.js +12 -11
  208. package/js/src/cryptocom.d.ts +0 -23
  209. package/js/src/cryptocom.js +40 -202
  210. package/js/src/currencycom.js +32 -25
  211. package/js/src/delta.js +35 -29
  212. package/js/src/deribit.js +39 -36
  213. package/js/src/digifinex.d.ts +2 -2
  214. package/js/src/digifinex.js +65 -45
  215. package/js/src/exmo.js +29 -27
  216. package/js/src/gate.d.ts +1 -1
  217. package/js/src/gate.js +67 -53
  218. package/js/src/gemini.js +23 -20
  219. package/js/src/hitbtc.d.ts +1 -0
  220. package/js/src/hitbtc.js +65 -56
  221. package/js/src/hollaex.js +30 -27
  222. package/js/src/htx.d.ts +11 -3
  223. package/js/src/htx.js +132 -143
  224. package/js/src/huobijp.js +23 -21
  225. package/js/src/idex.js +22 -21
  226. package/js/src/independentreserve.js +15 -14
  227. package/js/src/indodax.js +30 -26
  228. package/js/src/kraken.js +29 -27
  229. package/js/src/krakenfutures.js +29 -22
  230. package/js/src/kucoin.d.ts +1 -1
  231. package/js/src/kucoin.js +48 -43
  232. package/js/src/kucoinfutures.js +33 -28
  233. package/js/src/kuna.js +25 -24
  234. package/js/src/latoken.js +25 -23
  235. package/js/src/lbank.js +46 -31
  236. package/js/src/luno.js +22 -19
  237. package/js/src/lykke.js +19 -17
  238. package/js/src/mercado.js +30 -19
  239. package/js/src/mexc.d.ts +1 -1
  240. package/js/src/mexc.js +60 -49
  241. package/js/src/ndax.js +23 -22
  242. package/js/src/novadax.js +23 -22
  243. package/js/src/oceanex.js +22 -19
  244. package/js/src/okcoin.js +29 -23
  245. package/js/src/okx.d.ts +2 -2
  246. package/js/src/okx.js +87 -82
  247. package/js/src/p2b.d.ts +8 -7
  248. package/js/src/p2b.js +79 -81
  249. package/js/src/paymium.js +10 -10
  250. package/js/src/phemex.js +63 -40
  251. package/js/src/poloniex.js +22 -22
  252. package/js/src/poloniexfutures.js +23 -19
  253. package/js/src/pro/alpaca.js +5 -5
  254. package/js/src/pro/ascendex.js +4 -4
  255. package/js/src/pro/binance.js +16 -16
  256. package/js/src/pro/bingx.js +1 -1
  257. package/js/src/pro/bitfinex.js +4 -4
  258. package/js/src/pro/bitfinex2.d.ts +1 -1
  259. package/js/src/pro/bitfinex2.js +6 -6
  260. package/js/src/pro/bitget.js +7 -7
  261. package/js/src/pro/bitmart.js +7 -5
  262. package/js/src/pro/bitmex.js +6 -6
  263. package/js/src/pro/bitopro.js +4 -4
  264. package/js/src/pro/bitpanda.js +6 -6
  265. package/js/src/pro/bitrue.js +2 -2
  266. package/js/src/pro/bitstamp.js +7 -5
  267. package/js/src/pro/bittrex.js +15 -6
  268. package/js/src/pro/bitvavo.js +12 -8
  269. package/js/src/pro/blockchaincom.js +8 -8
  270. package/js/src/pro/bybit.js +7 -7
  271. package/js/src/pro/cex.js +14 -10
  272. package/js/src/pro/coinbase.js +5 -5
  273. package/js/src/pro/coinbasepro.js +12 -11
  274. package/js/src/pro/coinex.js +7 -9
  275. package/js/src/pro/cryptocom.js +9 -9
  276. package/js/src/pro/currencycom.js +4 -4
  277. package/js/src/pro/deribit.js +6 -6
  278. package/js/src/pro/exmo.js +12 -14
  279. package/js/src/pro/gate.js +7 -7
  280. package/js/src/pro/gemini.js +3 -3
  281. package/js/src/pro/hitbtc.d.ts +8 -1
  282. package/js/src/pro/hitbtc.js +264 -5
  283. package/js/src/pro/hollaex.js +5 -5
  284. package/js/src/pro/htx.js +6 -6
  285. package/js/src/pro/huobijp.js +3 -3
  286. package/js/src/pro/idex.js +4 -4
  287. package/js/src/pro/independentreserve.js +2 -2
  288. package/js/src/pro/kraken.js +10 -10
  289. package/js/src/pro/krakenfutures.d.ts +1 -0
  290. package/js/src/pro/krakenfutures.js +42 -18
  291. package/js/src/pro/kucoin.js +7 -7
  292. package/js/src/pro/kucoinfutures.js +8 -6
  293. package/js/src/pro/luno.js +2 -2
  294. package/js/src/pro/mexc.js +6 -6
  295. package/js/src/pro/ndax.js +3 -3
  296. package/js/src/pro/okcoin.js +5 -5
  297. package/js/src/pro/okx.js +12 -12
  298. package/js/src/pro/phemex.js +6 -6
  299. package/js/src/pro/poloniex.js +7 -7
  300. package/js/src/pro/poloniexfutures.js +5 -5
  301. package/js/src/pro/probit.js +6 -6
  302. package/js/src/pro/upbit.js +3 -3
  303. package/js/src/pro/wazirx.js +8 -8
  304. package/js/src/pro/whitebit.js +13 -9
  305. package/js/src/pro/woo.js +1 -1
  306. package/js/src/probit.js +29 -24
  307. package/js/src/tidex.js +16 -15
  308. package/js/src/timex.js +19 -18
  309. package/js/src/tokocrypto.js +28 -23
  310. package/js/src/upbit.js +19 -19
  311. package/js/src/wavesexchange.js +23 -20
  312. package/js/src/wazirx.js +25 -18
  313. package/js/src/whitebit.js +33 -27
  314. package/js/src/woo.js +45 -35
  315. package/js/src/yobit.js +25 -20
  316. package/js/src/zaif.js +9 -9
  317. package/js/src/zonda.js +18 -17
  318. package/package.json +1 -1
@@ -6,7 +6,7 @@
6
6
 
7
7
  // ---------------------------------------------------------------------------
8
8
  import coinbaseproRest from '../coinbasepro.js';
9
- import { AuthenticationError, ExchangeError, BadSymbol, BadRequest } from '../base/errors.js';
9
+ import { AuthenticationError, ExchangeError, BadSymbol, BadRequest, ArgumentsRequired } from '../base/errors.js';
10
10
  import { ArrayCache, ArrayCacheBySymbolById } from '../base/ws/Cache.js';
11
11
  import { sha256 } from '../static_dependencies/noble-hashes/sha256.js';
12
12
  // ---------------------------------------------------------------------------
@@ -115,7 +115,7 @@ export default class coinbasepro extends coinbaseproRest {
115
115
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
116
116
  * @param {string} symbol unified symbol of the market to fetch the ticker for
117
117
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
118
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
118
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
119
119
  */
120
120
  const name = 'ticker';
121
121
  return await this.subscribe(name, symbol, name, params);
@@ -129,7 +129,7 @@ export default class coinbasepro extends coinbaseproRest {
129
129
  * @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
130
130
  * @param {object} [params] extra parameters specific to the okx api endpoint
131
131
  * @param {string} [params.channel] the channel to subscribe to, tickers by default. Can be tickers, sprd-tickers, index-tickers, block-tickers
132
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
132
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
133
133
  */
134
134
  await this.loadMarkets();
135
135
  const symbolsLength = symbols.length;
@@ -153,7 +153,7 @@ export default class coinbasepro extends coinbaseproRest {
153
153
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
154
154
  * @param {int} [limit] the maximum amount of trades to fetch
155
155
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
156
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
156
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
157
157
  */
158
158
  await this.loadMarkets();
159
159
  symbol = this.symbol(symbol);
@@ -200,9 +200,11 @@ export default class coinbasepro extends coinbaseproRest {
200
200
  * @param {int} [since] the earliest time in ms to fetch trades for
201
201
  * @param {int} [limit] the maximum number of trade structures to retrieve
202
202
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
203
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
203
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
204
204
  */
205
- this.checkRequiredSymbol('watchMyTrades', symbol);
205
+ if (symbol === undefined) {
206
+ throw new ArgumentsRequired(this.id + ' watchMyTrades() requires a symbol argument');
207
+ }
206
208
  await this.loadMarkets();
207
209
  symbol = this.symbol(symbol);
208
210
  const name = 'user';
@@ -223,7 +225,7 @@ export default class coinbasepro extends coinbaseproRest {
223
225
  * @param {int} [since] the earliest time in ms to fetch trades for
224
226
  * @param {int} [limit] the maximum number of trade structures to retrieve
225
227
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
226
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
228
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
227
229
  */
228
230
  symbols = this.marketSymbols(symbols, undefined, false);
229
231
  await this.loadMarkets();
@@ -247,7 +249,7 @@ export default class coinbasepro extends coinbaseproRest {
247
249
  * @param {int} [since] the earliest time in ms to fetch orders for
248
250
  * @param {int} [limit] the maximum number of trade structures to retrieve
249
251
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
250
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
252
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
251
253
  */
252
254
  symbols = this.marketSymbols(symbols, undefined, false);
253
255
  await this.loadMarkets();
@@ -271,7 +273,7 @@ export default class coinbasepro extends coinbaseproRest {
271
273
  * @param {int} [since] the earliest time in ms to fetch orders for
272
274
  * @param {int} [limit] the maximum number of orde structures to retrieve
273
275
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
274
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
276
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
275
277
  */
276
278
  if (symbol === undefined) {
277
279
  throw new BadSymbol(this.id + ' watchMyTrades requires a symbol');
@@ -295,7 +297,7 @@ export default class coinbasepro extends coinbaseproRest {
295
297
  * @param {string} symbol unified symbol of the market to fetch the order book for
296
298
  * @param {int} [limit] the maximum amount of order book entries to return
297
299
  * @param {object} [params] extra parameters specific to the coinbasepro api endpoint
298
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
300
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
299
301
  */
300
302
  const name = 'level2';
301
303
  await this.loadMarkets();
@@ -499,7 +501,6 @@ export default class coinbasepro extends coinbaseproRest {
499
501
  'rate': feeRate,
500
502
  'cost': feeCost,
501
503
  'currency': feeCurrency,
502
- 'type': undefined,
503
504
  };
504
505
  return parsed;
505
506
  }
@@ -227,7 +227,7 @@ export default class coinex extends coinexRest {
227
227
  * @name coinex#watchBalance
228
228
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
229
229
  * @param {object} [params] extra parameters specific to the coinex api endpoint
230
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
230
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
231
231
  */
232
232
  await this.loadMarkets();
233
233
  await this.authenticate(params);
@@ -268,11 +268,9 @@ export default class coinex extends coinexRest {
268
268
  const code = this.safeCurrencyCode(currencyId);
269
269
  const available = this.safeString(first[currencyId], 'available');
270
270
  const frozen = this.safeString(first[currencyId], 'frozen');
271
- const total = Precise.stringAdd(available, frozen);
272
271
  const account = this.account();
273
- account['free'] = this.parseNumber(available);
274
- account['used'] = this.parseNumber(frozen);
275
- account['total'] = this.parseNumber(total);
272
+ account['free'] = available;
273
+ account['used'] = frozen;
276
274
  this.balance[code] = account;
277
275
  this.balance = this.safeBalance(this.balance);
278
276
  }
@@ -409,7 +407,7 @@ export default class coinex extends coinexRest {
409
407
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
410
408
  * @param {string} symbol unified symbol of the market to fetch the ticker for
411
409
  * @param {object} [params] extra parameters specific to the coinex api endpoint
412
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
410
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
413
411
  */
414
412
  return await this.watchTickers([symbol], params);
415
413
  }
@@ -421,7 +419,7 @@ export default class coinex extends coinexRest {
421
419
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
422
420
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
423
421
  * @param {object} [params] extra parameters specific to the coinex api endpoint
424
- * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
422
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
425
423
  */
426
424
  await this.loadMarkets();
427
425
  symbols = this.marketSymbols(symbols);
@@ -455,7 +453,7 @@ export default class coinex extends coinexRest {
455
453
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
456
454
  * @param {int} [limit] the maximum amount of trades to fetch
457
455
  * @param {object} [params] extra parameters specific to the coinex api endpoint
458
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
456
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
459
457
  */
460
458
  await this.loadMarkets();
461
459
  const market = this.market(symbol);
@@ -486,7 +484,7 @@ export default class coinex extends coinexRest {
486
484
  * @param {string} symbol unified symbol of the market to fetch the order book for
487
485
  * @param {int} [limit] the maximum amount of order book entries to return
488
486
  * @param {object} [params] extra parameters specific to the coinex api endpoint
489
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
487
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
490
488
  */
491
489
  await this.loadMarkets();
492
490
  const market = this.market(symbol);
@@ -74,7 +74,7 @@ export default class cryptocom extends cryptocomRest {
74
74
  * @param {string} symbol unified symbol of the market to fetch the order book for
75
75
  * @param {int} [limit] the maximum amount of order book entries to return
76
76
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
77
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
77
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
78
78
  */
79
79
  await this.loadMarkets();
80
80
  const market = this.market(symbol);
@@ -157,7 +157,7 @@ export default class cryptocom extends cryptocomRest {
157
157
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
158
158
  * @param {int} [limit] the maximum amount of trades to fetch
159
159
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
160
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
160
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
161
161
  */
162
162
  await this.loadMarkets();
163
163
  const market = this.market(symbol);
@@ -257,7 +257,7 @@ export default class cryptocom extends cryptocomRest {
257
257
  * @param {int} [since] the earliest time in ms to fetch trades for
258
258
  * @param {int} [limit] the maximum number of trade structures to retrieve
259
259
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
260
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
260
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
261
261
  */
262
262
  await this.loadMarkets();
263
263
  let market = undefined;
@@ -281,7 +281,7 @@ export default class cryptocom extends cryptocomRest {
281
281
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name
282
282
  * @param {string} symbol unified symbol of the market to fetch the ticker for
283
283
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
284
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
284
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
285
285
  */
286
286
  await this.loadMarkets();
287
287
  const market = this.market(symbol);
@@ -389,7 +389,7 @@ export default class cryptocom extends cryptocomRest {
389
389
  * @param {int} [since] the earliest time in ms to fetch orders for
390
390
  * @param {int} [limit] the maximum number of order structures to retrieve
391
391
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
392
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
392
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
393
393
  */
394
394
  await this.loadMarkets();
395
395
  let market = undefined;
@@ -586,7 +586,7 @@ export default class cryptocom extends cryptocomRest {
586
586
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
587
587
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-balance
588
588
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
589
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
589
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
590
590
  */
591
591
  const messageHash = 'user.balance';
592
592
  return await this.watchPrivateSubscribe(messageHash, params);
@@ -667,7 +667,7 @@ export default class cryptocom extends cryptocomRest {
667
667
  * @param {float} amount how much of currency you want to trade in units of base currency
668
668
  * @param {float} [price] the price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
669
669
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
670
- * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
670
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
671
671
  */
672
672
  await this.loadMarkets();
673
673
  params = this.createOrderRequest(symbol, type, side, amount, price, params);
@@ -704,7 +704,7 @@ export default class cryptocom extends cryptocomRest {
704
704
  * @param {string} id the order id of the order to cancel
705
705
  * @param {string} [symbol] unified symbol of the market the order was made in
706
706
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
707
- * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
707
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
708
708
  */
709
709
  await this.loadMarkets();
710
710
  params = this.extend({
@@ -725,7 +725,7 @@ export default class cryptocom extends cryptocomRest {
725
725
  * @see https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders
726
726
  * @param {string} symbol unified market symbol of the orders to cancel
727
727
  * @param {object} [params] extra parameters specific to the cryptocom api endpoint
728
- * @returns {object} Returns exchange raw message {@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
728
+ * @returns {object} Returns exchange raw message {@link https://docs.ccxt.com/#/?id=order-structure}
729
729
  */
730
730
  await this.loadMarkets();
731
731
  let market = undefined;
@@ -332,7 +332,7 @@ export default class currencycom extends currencycomRest {
332
332
  * @name currencycom#watchBalance
333
333
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
334
334
  * @param {object} [params] extra parameters specific to the currencycom api endpoint
335
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
335
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
336
336
  */
337
337
  await this.loadMarkets();
338
338
  return await this.watchPrivate('/api/v1/account', params);
@@ -344,7 +344,7 @@ export default class currencycom extends currencycomRest {
344
344
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
345
345
  * @param {string} symbol unified symbol of the market to fetch the ticker for
346
346
  * @param {object} [params] extra parameters specific to the currencycom api endpoint
347
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
347
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
348
348
  */
349
349
  await this.loadMarkets();
350
350
  const market = this.market(symbol);
@@ -375,7 +375,7 @@ export default class currencycom extends currencycomRest {
375
375
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
376
376
  * @param {int} [limit] the maximum amount of trades to fetch
377
377
  * @param {object} [params] extra parameters specific to the currencycom api endpoint
378
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
378
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
379
379
  */
380
380
  await this.loadMarkets();
381
381
  symbol = this.symbol(symbol);
@@ -393,7 +393,7 @@ export default class currencycom extends currencycomRest {
393
393
  * @param {string} symbol unified symbol of the market to fetch the order book for
394
394
  * @param {int} [limit] the maximum amount of order book entries to return
395
395
  * @param {object} [params] extra parameters specific to the currencycom api endpoint
396
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
396
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
397
397
  */
398
398
  await this.loadMarkets();
399
399
  symbol = this.symbol(symbol);
@@ -64,7 +64,7 @@ export default class deribit extends deribitRest {
64
64
  * @see https://docs.deribit.com/#user-portfolio-currency
65
65
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
66
66
  * @param {object} [params] extra parameters specific to the deribit api endpoint
67
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
67
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
68
68
  */
69
69
  await this.authenticate(params);
70
70
  const messageHash = 'balance';
@@ -149,7 +149,7 @@ export default class deribit extends deribitRest {
149
149
  * @param {string} symbol unified symbol of the market to fetch the ticker for
150
150
  * @param {object} [params] extra parameters specific to the deribit api endpoint
151
151
  * @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
152
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
152
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
153
153
  */
154
154
  await this.loadMarkets();
155
155
  const market = this.market(symbol);
@@ -222,7 +222,7 @@ export default class deribit extends deribitRest {
222
222
  * @param {int} [limit] the maximum amount of trades to fetch
223
223
  * @param {object} [params] extra parameters specific to the deribit api endpoint
224
224
  * @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
225
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
225
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
226
226
  */
227
227
  await this.loadMarkets();
228
228
  const market = this.market(symbol);
@@ -302,7 +302,7 @@ export default class deribit extends deribitRest {
302
302
  * @param {int} [limit] the maximum amount of trades to fetch
303
303
  * @param {object} [params] extra parameters specific to the deribit api endpoint
304
304
  * @param {str} [params.interval] specify aggregation and frequency of notifications. Possible values: 100ms, raw
305
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
305
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
306
306
  */
307
307
  await this.authenticate(params);
308
308
  if (symbol !== undefined) {
@@ -386,7 +386,7 @@ export default class deribit extends deribitRest {
386
386
  * @param {int} [limit] the maximum amount of order book entries to return
387
387
  * @param {object} [params] extra parameters specific to the deribit api endpoint
388
388
  * @param {string} [params.interval] Frequency of notifications. Events will be aggregated over this interval. Possible values: 100ms, raw
389
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
389
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
390
390
  */
391
391
  await this.loadMarkets();
392
392
  const market = this.market(symbol);
@@ -516,7 +516,7 @@ export default class deribit extends deribitRest {
516
516
  * @param {int} [since] the earliest time in ms to fetch orders for
517
517
  * @param {int} [limit] the maximum number of orde structures to retrieve
518
518
  * @param {object} [params] extra parameters specific to the deribit api endpoint
519
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
519
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
520
520
  */
521
521
  await this.loadMarkets();
522
522
  await this.authenticate(params);
@@ -49,7 +49,7 @@ export default class exmo extends exmoRest {
49
49
  * @name exmo#watchBalance
50
50
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
51
51
  * @param {object} [params] extra parameters specific to the exmo api endpoint
52
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
52
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
53
53
  */
54
54
  await this.authenticate(params);
55
55
  const [type, query] = this.handleMarketTypeAndParams('watchBalance', undefined, params);
@@ -152,11 +152,9 @@ export default class exmo extends exmoRest {
152
152
  for (let i = 0; i < currencies.length; i++) {
153
153
  const currencyId = currencies[i];
154
154
  const code = this.safeCurrencyCode(currencyId);
155
- const free = balances[currencyId];
156
- const used = reserved[currencyId];
157
155
  const account = this.account();
158
- account['free'] = this.parseNumber(free);
159
- account['used'] = this.parseNumber(used);
156
+ account['free'] = this.safeString(balances, currencyId);
157
+ account['used'] = this.safeString(reserved, currencyId);
160
158
  this.balance[code] = account;
161
159
  }
162
160
  }
@@ -164,8 +162,8 @@ export default class exmo extends exmoRest {
164
162
  const currencyId = this.safeString(data, 'currency');
165
163
  const code = this.safeCurrencyCode(currencyId);
166
164
  const account = this.account();
167
- account['free'] = this.safeNumber(data, 'balance');
168
- account['used'] = this.safeNumber(data, 'reserved');
165
+ account['free'] = this.safeString(data, 'balance');
166
+ account['used'] = this.safeString(data, 'reserved');
169
167
  this.balance[code] = account;
170
168
  }
171
169
  this.balance = this.safeBalance(this.balance);
@@ -193,9 +191,9 @@ export default class exmo extends exmoRest {
193
191
  const code = this.safeCurrencyCode(currencyId);
194
192
  const wallet = this.safeValue(data, currencyId);
195
193
  const account = this.account();
196
- account['free'] = this.safeNumber(wallet, 'free');
197
- account['used'] = this.safeNumber(wallet, 'used');
198
- account['total'] = this.safeNumber(wallet, 'balance');
194
+ account['free'] = this.safeString(wallet, 'free');
195
+ account['used'] = this.safeString(wallet, 'used');
196
+ account['total'] = this.safeString(wallet, 'balance');
199
197
  this.balance[code] = account;
200
198
  this.balance = this.safeBalance(this.balance);
201
199
  }
@@ -207,7 +205,7 @@ export default class exmo extends exmoRest {
207
205
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
208
206
  * @param {string} symbol unified symbol of the market to fetch the ticker for
209
207
  * @param {object} [params] extra parameters specific to the exmo api endpoint
210
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
208
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
211
209
  */
212
210
  await this.loadMarkets();
213
211
  const market = this.market(symbol);
@@ -264,7 +262,7 @@ export default class exmo extends exmoRest {
264
262
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
265
263
  * @param {int} [limit] the maximum amount of trades to fetch
266
264
  * @param {object} [params] extra parameters specific to the exmo api endpoint
267
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
265
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
268
266
  */
269
267
  await this.loadMarkets();
270
268
  const market = this.market(symbol);
@@ -328,7 +326,7 @@ export default class exmo extends exmoRest {
328
326
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
329
327
  * @param {int} [limit] the maximum amount of trades to fetch
330
328
  * @param {object} [params] extra parameters specific to the exmo api endpoint
331
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
329
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
332
330
  */
333
331
  await this.loadMarkets();
334
332
  await this.authenticate(params);
@@ -457,7 +455,7 @@ export default class exmo extends exmoRest {
457
455
  * @param {string} symbol unified symbol of the market to fetch the order book for
458
456
  * @param {int} [limit] the maximum amount of order book entries to return
459
457
  * @param {object} [params] extra parameters specific to the exmo api endpoint
460
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
458
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
461
459
  */
462
460
  await this.loadMarkets();
463
461
  const market = this.market(symbol);
@@ -101,7 +101,7 @@ export default class gate extends gateRest {
101
101
  * @param {string} symbol unified symbol of the market to fetch the order book for
102
102
  * @param {int} [limit] the maximum amount of order book entries to return
103
103
  * @param {object} [params] extra parameters specific to the gate api endpoint
104
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
104
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
105
105
  */
106
106
  await this.loadMarkets();
107
107
  const market = this.market(symbol);
@@ -278,7 +278,7 @@ export default class gate extends gateRest {
278
278
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
279
279
  * @param {string} symbol unified symbol of the market to fetch the ticker for
280
280
  * @param {object} [params] extra parameters specific to the gate api endpoint
281
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
281
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
282
282
  */
283
283
  await this.loadMarkets();
284
284
  const market = this.market(symbol);
@@ -299,7 +299,7 @@ export default class gate extends gateRest {
299
299
  * @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
300
300
  * @param {string[]} symbols unified symbol of the market to fetch the ticker for
301
301
  * @param {object} [params] extra parameters specific to the gate api endpoint
302
- * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
302
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
303
303
  */
304
304
  await this.loadMarkets();
305
305
  symbols = this.marketSymbols(symbols);
@@ -386,7 +386,7 @@ export default class gate extends gateRest {
386
386
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
387
387
  * @param {int} [limit] the maximum amount of trades to fetch
388
388
  * @param {object} [params] extra parameters specific to the gate api endpoint
389
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
389
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
390
390
  */
391
391
  await this.loadMarkets();
392
392
  const market = this.market(symbol);
@@ -560,7 +560,7 @@ export default class gate extends gateRest {
560
560
  * @param {int} [since] the earliest time in ms to fetch trades for
561
561
  * @param {int} [limit] the maximum number of trade structures to retrieve
562
562
  * @param {object} [params] extra parameters specific to the gate api endpoint
563
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure
563
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure
564
564
  */
565
565
  await this.loadMarkets();
566
566
  let subType = undefined;
@@ -650,7 +650,7 @@ export default class gate extends gateRest {
650
650
  * @name gate#watchBalance
651
651
  * @description watch balance and get the amount of funds available for trading or funds locked in orders
652
652
  * @param {object} [params] extra parameters specific to the gate api endpoint
653
- * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
653
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
654
654
  */
655
655
  await this.loadMarkets();
656
656
  let type = undefined;
@@ -908,7 +908,7 @@ export default class gate extends gateRest {
908
908
  * @param {object} [params] extra parameters specific to the gate api endpoint
909
909
  * @param {string} [params.type] spot, margin, swap, future, or option. Required if listening to all symbols.
910
910
  * @param {boolean} [params.isInverse] if future, listen to inverse or linear contracts
911
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure
911
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure
912
912
  */
913
913
  await this.loadMarkets();
914
914
  let market = undefined;
@@ -45,7 +45,7 @@ export default class gemini extends geminiRest {
45
45
  * @param {int} [since] timestamp in ms of the earliest trade to fetch
46
46
  * @param {int} [limit] the maximum amount of trades to fetch
47
47
  * @param {object} [params] extra parameters specific to the gemini api endpoint
48
- * @returns {object[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
48
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
49
49
  */
50
50
  await this.loadMarkets();
51
51
  const market = this.market(symbol);
@@ -286,7 +286,7 @@ export default class gemini extends geminiRest {
286
286
  * @param {string} symbol unified symbol of the market to fetch the order book for
287
287
  * @param {int} [limit] the maximum amount of order book entries to return
288
288
  * @param {object} [params] extra parameters specific to the gemini api endpoint
289
- * @returns {object} A dictionary of [order book structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-book-structure} indexed by market symbols
289
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
290
290
  */
291
291
  await this.loadMarkets();
292
292
  const market = this.market(symbol);
@@ -382,7 +382,7 @@ export default class gemini extends geminiRest {
382
382
  * @param {int} [since] the earliest time in ms to fetch orders for
383
383
  * @param {int} [limit] the maximum number of orde structures to retrieve
384
384
  * @param {object} [params] extra parameters specific to the gemini api endpoint
385
- * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
385
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
386
386
  */
387
387
  const url = this.urls['api']['ws'] + '/v1/order/events?eventTypeFilter=initial&eventTypeFilter=accepted&eventTypeFilter=rejected&eventTypeFilter=fill&eventTypeFilter=cancelled&eventTypeFilter=booked';
388
388
  await this.loadMarkets();
@@ -1,5 +1,5 @@
1
1
  import hitbtcRest from '../hitbtc.js';
2
- import { Int, OHLCV, Strings } from '../base/types.js';
2
+ import { Int, OHLCV, OrderSide, OrderType, Strings } from '../base/types.js';
3
3
  import Client from '../base/ws/Client.js';
4
4
  import { Str, Trade } from '../base/types';
5
5
  export default class hitbtc extends hitbtcRest {
@@ -7,6 +7,7 @@ export default class hitbtc extends hitbtcRest {
7
7
  authenticate(): Promise<any>;
8
8
  subscribePublic(name: string, symbols?: Strings, params?: {}): Promise<any>;
9
9
  subscribePrivate(name: string, symbol?: Str, params?: {}): Promise<any>;
10
+ tradeRequest(name: string, params?: {}): Promise<any>;
10
11
  watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<any>;
11
12
  handleOrderBook(client: Client, message: any): void;
12
13
  handleDelta(bookside: any, delta: any): void;
@@ -28,8 +29,14 @@ export default class hitbtc extends hitbtcRest {
28
29
  parseWsOrderTrade(trade: any, market?: any): Trade;
29
30
  parseWsOrder(order: any, market?: any): import("../base/types.js").Order;
30
31
  watchBalance(params?: {}): Promise<any>;
32
+ createOrderWs(symbol: string, type: OrderType, side: OrderSide, amount: any, price?: any, params?: {}): Promise<any>;
33
+ cancelOrderWs(id: string, symbol?: Str, params?: {}): Promise<any>;
34
+ cancelAllOrdersWs(symbol?: Str, params?: {}): Promise<any>;
35
+ fetchOpenOrdersWs(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
31
36
  handleBalance(client: Client, message: any): void;
32
37
  handleNotification(client: Client, message: any): any;
38
+ handleOrderRequest(client: Client, message: any): any;
33
39
  handleMessage(client: Client, message: any): void;
34
40
  handleAuthenticate(client: Client, message: any): any;
41
+ handleError(client: Client, message: any): any;
35
42
  }