ccxt 4.4.30 → 4.4.32

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 (496) hide show
  1. package/README.md +9 -3
  2. package/dist/ccxt.browser.min.js +3 -3
  3. package/dist/cjs/ccxt.js +1 -1
  4. package/dist/cjs/src/ace.js +123 -123
  5. package/dist/cjs/src/alpaca.js +237 -237
  6. package/dist/cjs/src/ascendex.js +342 -341
  7. package/dist/cjs/src/bigone.js +242 -242
  8. package/dist/cjs/src/binance.js +1339 -1291
  9. package/dist/cjs/src/bingx.js +639 -639
  10. package/dist/cjs/src/bit2c.js +111 -111
  11. package/dist/cjs/src/bitbank.js +142 -142
  12. package/dist/cjs/src/bitbns.js +140 -140
  13. package/dist/cjs/src/bitfinex.js +231 -231
  14. package/dist/cjs/src/bitfinex2.js +403 -403
  15. package/dist/cjs/src/bitflyer.js +184 -184
  16. package/dist/cjs/src/bitget.js +848 -846
  17. package/dist/cjs/src/bithumb.js +125 -124
  18. package/dist/cjs/src/bitmart.js +525 -525
  19. package/dist/cjs/src/bitmex.js +317 -317
  20. package/dist/cjs/src/bitopro.js +221 -221
  21. package/dist/cjs/src/bitrue.js +315 -315
  22. package/dist/cjs/src/bitso.js +220 -220
  23. package/dist/cjs/src/bitstamp.js +251 -251
  24. package/dist/cjs/src/bitteam.js +183 -183
  25. package/dist/cjs/src/bitvavo.js +247 -251
  26. package/dist/cjs/src/bl3p.js +82 -82
  27. package/dist/cjs/src/blockchaincom.js +211 -211
  28. package/dist/cjs/src/blofin.js +332 -331
  29. package/dist/cjs/src/btcalpha.js +166 -166
  30. package/dist/cjs/src/btcbox.js +108 -108
  31. package/dist/cjs/src/btcmarkets.js +198 -198
  32. package/dist/cjs/src/btcturk.js +124 -124
  33. package/dist/cjs/src/bybit.js +906 -900
  34. package/dist/cjs/src/cex.js +227 -226
  35. package/dist/cjs/src/coinbase.js +481 -481
  36. package/dist/cjs/src/coinbaseexchange.js +274 -274
  37. package/dist/cjs/src/coinbaseinternational.js +304 -304
  38. package/dist/cjs/src/coincatch.js +650 -650
  39. package/dist/cjs/src/coincheck.js +113 -113
  40. package/dist/cjs/src/coinex.js +611 -601
  41. package/dist/cjs/src/coinlist.js +304 -303
  42. package/dist/cjs/src/coinmate.js +162 -161
  43. package/dist/cjs/src/coinmetro.js +187 -187
  44. package/dist/cjs/src/coinone.js +124 -123
  45. package/dist/cjs/src/coinsph.js +237 -237
  46. package/dist/cjs/src/coinspot.js +82 -82
  47. package/dist/cjs/src/cryptocom.js +342 -341
  48. package/dist/cjs/src/currencycom.js +225 -224
  49. package/dist/cjs/src/delta.js +320 -320
  50. package/dist/cjs/src/deribit.js +411 -408
  51. package/dist/cjs/src/digifinex.js +432 -431
  52. package/dist/cjs/src/exmo.js +328 -327
  53. package/dist/cjs/src/gate.js +830 -791
  54. package/dist/cjs/src/gemini.js +199 -198
  55. package/dist/cjs/src/hashkey.js +520 -517
  56. package/dist/cjs/src/hitbtc.js +465 -462
  57. package/dist/cjs/src/hollaex.js +253 -252
  58. package/dist/cjs/src/htx.js +791 -848
  59. package/dist/cjs/src/huobijp.js +219 -218
  60. package/dist/cjs/src/hyperliquid.js +421 -417
  61. package/dist/cjs/src/idex.js +238 -237
  62. package/dist/cjs/src/independentreserve.js +133 -132
  63. package/dist/cjs/src/indodax.js +177 -171
  64. package/dist/cjs/src/kraken.js +381 -377
  65. package/dist/cjs/src/krakenfutures.js +285 -279
  66. package/dist/cjs/src/kucoin.js +632 -622
  67. package/dist/cjs/src/kucoinfutures.js +533 -457
  68. package/dist/cjs/src/kuna.js +283 -282
  69. package/dist/cjs/src/latoken.js +211 -210
  70. package/dist/cjs/src/lbank.js +268 -267
  71. package/dist/cjs/src/luno.js +174 -173
  72. package/dist/cjs/src/lykke.js +172 -171
  73. package/dist/cjs/src/mercado.js +123 -122
  74. package/dist/cjs/src/mexc.js +650 -646
  75. package/dist/cjs/src/ndax.js +229 -228
  76. package/dist/cjs/src/novadax.js +230 -229
  77. package/dist/cjs/src/oceanex.js +187 -186
  78. package/dist/cjs/src/okcoin.js +286 -285
  79. package/dist/cjs/src/okx.js +909 -904
  80. package/dist/cjs/src/onetrading.js +218 -218
  81. package/dist/cjs/src/oxfun.js +335 -334
  82. package/dist/cjs/src/p2b.js +154 -154
  83. package/dist/cjs/src/paradex.js +249 -244
  84. package/dist/cjs/src/paymium.js +101 -101
  85. package/dist/cjs/src/phemex.js +388 -390
  86. package/dist/cjs/src/poloniex.js +270 -270
  87. package/dist/cjs/src/poloniexfutures.js +250 -250
  88. package/dist/cjs/src/pro/alpaca.js +64 -64
  89. package/dist/cjs/src/pro/ascendex.js +64 -64
  90. package/dist/cjs/src/pro/binance.js +546 -543
  91. package/dist/cjs/src/pro/bingx.js +116 -116
  92. package/dist/cjs/src/pro/bitfinex.js +42 -42
  93. package/dist/cjs/src/pro/bitfinex2.js +66 -66
  94. package/dist/cjs/src/pro/bitget.js +188 -181
  95. package/dist/cjs/src/pro/bithumb.js +40 -40
  96. package/dist/cjs/src/pro/bitmart.js +121 -119
  97. package/dist/cjs/src/pro/bitmex.js +135 -133
  98. package/dist/cjs/src/pro/bitopro.js +49 -49
  99. package/dist/cjs/src/pro/bitrue.js +19 -19
  100. package/dist/cjs/src/pro/bitstamp.js +29 -29
  101. package/dist/cjs/src/pro/bitvavo.js +299 -301
  102. package/dist/cjs/src/pro/blockchaincom.js +62 -62
  103. package/dist/cjs/src/pro/blofin.js +132 -130
  104. package/dist/cjs/src/pro/bybit.js +317 -313
  105. package/dist/cjs/src/pro/cex.js +168 -168
  106. package/dist/cjs/src/pro/coinbase.js +93 -91
  107. package/dist/cjs/src/pro/coinbaseexchange.js +95 -95
  108. package/dist/cjs/src/pro/coinbaseinternational.js +111 -111
  109. package/dist/cjs/src/pro/coincatch.js +150 -143
  110. package/dist/cjs/src/pro/coincheck.js +21 -21
  111. package/dist/cjs/src/pro/coinex.js +110 -110
  112. package/dist/cjs/src/pro/coinone.js +30 -30
  113. package/dist/cjs/src/pro/cryptocom.js +227 -227
  114. package/dist/cjs/src/pro/currencycom.js +45 -45
  115. package/dist/cjs/src/pro/deribit.js +127 -127
  116. package/dist/cjs/src/pro/exmo.js +66 -66
  117. package/dist/cjs/src/pro/gate.js +287 -283
  118. package/dist/cjs/src/pro/gemini.js +74 -74
  119. package/dist/cjs/src/pro/hashkey.js +87 -85
  120. package/dist/cjs/src/pro/hitbtc.js +190 -190
  121. package/dist/cjs/src/pro/hollaex.js +51 -51
  122. package/dist/cjs/src/pro/htx.js +96 -94
  123. package/dist/cjs/src/pro/huobijp.js +38 -38
  124. package/dist/cjs/src/pro/hyperliquid.js +151 -150
  125. package/dist/cjs/src/pro/idex.js +48 -48
  126. package/dist/cjs/src/pro/independentreserve.js +19 -19
  127. package/dist/cjs/src/pro/kraken.js +167 -167
  128. package/dist/cjs/src/pro/krakenfutures.js +137 -138
  129. package/dist/cjs/src/pro/kucoin.js +167 -168
  130. package/dist/cjs/src/pro/kucoinfutures.js +147 -147
  131. package/dist/cjs/src/pro/lbank.js +95 -95
  132. package/dist/cjs/src/pro/luno.js +21 -21
  133. package/dist/cjs/src/pro/mexc.js +102 -103
  134. package/dist/cjs/src/pro/ndax.js +42 -42
  135. package/dist/cjs/src/pro/okcoin.js +61 -61
  136. package/dist/cjs/src/pro/okx.js +332 -330
  137. package/dist/cjs/src/pro/onetrading.js +71 -71
  138. package/dist/cjs/src/pro/oxfun.js +193 -191
  139. package/dist/cjs/src/pro/p2b.js +77 -77
  140. package/dist/cjs/src/pro/paradex.js +39 -39
  141. package/dist/cjs/src/pro/phemex.js +94 -94
  142. package/dist/cjs/src/pro/poloniex.js +171 -171
  143. package/dist/cjs/src/pro/poloniexfutures.js +62 -62
  144. package/dist/cjs/src/pro/probit.js +63 -63
  145. package/dist/cjs/src/pro/upbit.js +80 -80
  146. package/dist/cjs/src/pro/vertex.js +65 -63
  147. package/dist/cjs/src/pro/wazirx.js +70 -70
  148. package/dist/cjs/src/pro/whitebit.js +83 -83
  149. package/dist/cjs/src/pro/woo.js +106 -104
  150. package/dist/cjs/src/pro/woofipro.js +105 -103
  151. package/dist/cjs/src/pro/xt.js +119 -119
  152. package/dist/cjs/src/probit.js +229 -229
  153. package/dist/cjs/src/timex.js +198 -197
  154. package/dist/cjs/src/tokocrypto.js +214 -213
  155. package/dist/cjs/src/tradeogre.js +92 -91
  156. package/dist/cjs/src/upbit.js +243 -242
  157. package/dist/cjs/src/vertex.js +258 -258
  158. package/dist/cjs/src/wavesexchange.js +176 -172
  159. package/dist/cjs/src/wazirx.js +168 -168
  160. package/dist/cjs/src/whitebit.js +361 -361
  161. package/dist/cjs/src/woo.js +571 -572
  162. package/dist/cjs/src/woofipro.js +392 -391
  163. package/dist/cjs/src/xt.js +436 -435
  164. package/dist/cjs/src/yobit.js +159 -158
  165. package/dist/cjs/src/zaif.js +103 -103
  166. package/dist/cjs/src/zonda.js +168 -168
  167. package/js/ccxt.d.ts +1 -1
  168. package/js/ccxt.js +1 -1
  169. package/js/src/ace.d.ts +123 -0
  170. package/js/src/ace.js +123 -123
  171. package/js/src/alpaca.d.ts +237 -0
  172. package/js/src/alpaca.js +237 -237
  173. package/js/src/ascendex.d.ts +339 -0
  174. package/js/src/ascendex.js +342 -341
  175. package/js/src/base/types.d.ts +1 -0
  176. package/js/src/bigone.d.ts +242 -0
  177. package/js/src/bigone.js +242 -242
  178. package/js/src/binance.d.ts +1306 -0
  179. package/js/src/binance.js +1339 -1291
  180. package/js/src/bingx.d.ts +639 -0
  181. package/js/src/bingx.js +639 -639
  182. package/js/src/bit2c.d.ts +111 -0
  183. package/js/src/bit2c.js +111 -111
  184. package/js/src/bitbank.d.ts +142 -0
  185. package/js/src/bitbank.js +142 -142
  186. package/js/src/bitbns.d.ts +140 -0
  187. package/js/src/bitbns.js +140 -140
  188. package/js/src/bitfinex.d.ts +231 -0
  189. package/js/src/bitfinex.js +231 -231
  190. package/js/src/bitfinex2.d.ts +403 -0
  191. package/js/src/bitfinex2.js +403 -403
  192. package/js/src/bitflyer.d.ts +184 -0
  193. package/js/src/bitflyer.js +184 -184
  194. package/js/src/bitget.d.ts +846 -0
  195. package/js/src/bitget.js +848 -846
  196. package/js/src/bithumb.d.ts +125 -0
  197. package/js/src/bithumb.js +125 -124
  198. package/js/src/bitmart.d.ts +525 -0
  199. package/js/src/bitmart.js +525 -525
  200. package/js/src/bitmex.d.ts +317 -0
  201. package/js/src/bitmex.js +317 -317
  202. package/js/src/bitopro.d.ts +221 -0
  203. package/js/src/bitopro.js +221 -221
  204. package/js/src/bitrue.d.ts +315 -0
  205. package/js/src/bitrue.js +315 -315
  206. package/js/src/bitso.d.ts +220 -0
  207. package/js/src/bitso.js +220 -220
  208. package/js/src/bitstamp.d.ts +251 -0
  209. package/js/src/bitstamp.js +251 -251
  210. package/js/src/bitteam.d.ts +183 -0
  211. package/js/src/bitteam.js +183 -183
  212. package/js/src/bitvavo.d.ts +247 -0
  213. package/js/src/bitvavo.js +247 -251
  214. package/js/src/bl3p.d.ts +82 -0
  215. package/js/src/bl3p.js +82 -82
  216. package/js/src/blockchaincom.d.ts +211 -0
  217. package/js/src/blockchaincom.js +211 -211
  218. package/js/src/blofin.d.ts +332 -0
  219. package/js/src/blofin.js +332 -331
  220. package/js/src/btcalpha.d.ts +166 -0
  221. package/js/src/btcalpha.js +166 -166
  222. package/js/src/btcbox.d.ts +108 -0
  223. package/js/src/btcbox.js +108 -108
  224. package/js/src/btcmarkets.d.ts +198 -0
  225. package/js/src/btcmarkets.js +198 -198
  226. package/js/src/btcturk.d.ts +124 -0
  227. package/js/src/btcturk.js +124 -124
  228. package/js/src/bybit.d.ts +906 -1
  229. package/js/src/bybit.js +906 -900
  230. package/js/src/cex.d.ts +227 -0
  231. package/js/src/cex.js +227 -226
  232. package/js/src/coinbase.d.ts +481 -0
  233. package/js/src/coinbase.js +481 -481
  234. package/js/src/coinbaseexchange.d.ts +274 -0
  235. package/js/src/coinbaseexchange.js +274 -274
  236. package/js/src/coinbaseinternational.d.ts +304 -0
  237. package/js/src/coinbaseinternational.js +304 -304
  238. package/js/src/coincatch.d.ts +646 -0
  239. package/js/src/coincatch.js +650 -650
  240. package/js/src/coincheck.d.ts +113 -0
  241. package/js/src/coincheck.js +113 -113
  242. package/js/src/coinex.d.ts +603 -0
  243. package/js/src/coinex.js +611 -601
  244. package/js/src/coinlist.d.ts +304 -0
  245. package/js/src/coinlist.js +304 -303
  246. package/js/src/coinmate.d.ts +162 -0
  247. package/js/src/coinmate.js +162 -161
  248. package/js/src/coinmetro.d.ts +187 -0
  249. package/js/src/coinmetro.js +187 -187
  250. package/js/src/coinone.d.ts +124 -0
  251. package/js/src/coinone.js +124 -123
  252. package/js/src/coinsph.d.ts +237 -0
  253. package/js/src/coinsph.js +237 -237
  254. package/js/src/coinspot.d.ts +82 -0
  255. package/js/src/coinspot.js +82 -82
  256. package/js/src/cryptocom.d.ts +342 -0
  257. package/js/src/cryptocom.js +342 -341
  258. package/js/src/currencycom.d.ts +225 -0
  259. package/js/src/currencycom.js +225 -224
  260. package/js/src/delta.d.ts +320 -0
  261. package/js/src/delta.js +320 -320
  262. package/js/src/deribit.d.ts +411 -0
  263. package/js/src/deribit.js +411 -408
  264. package/js/src/digifinex.d.ts +430 -0
  265. package/js/src/digifinex.js +432 -431
  266. package/js/src/exmo.d.ts +328 -0
  267. package/js/src/exmo.js +328 -327
  268. package/js/src/gate.d.ts +803 -1
  269. package/js/src/gate.js +830 -791
  270. package/js/src/gemini.d.ts +199 -0
  271. package/js/src/gemini.js +199 -198
  272. package/js/src/hashkey.d.ts +516 -0
  273. package/js/src/hashkey.js +520 -517
  274. package/js/src/hitbtc.d.ts +465 -0
  275. package/js/src/hitbtc.js +465 -462
  276. package/js/src/hollaex.d.ts +253 -0
  277. package/js/src/hollaex.js +253 -252
  278. package/js/src/htx.d.ts +765 -2
  279. package/js/src/htx.js +791 -848
  280. package/js/src/huobijp.d.ts +219 -0
  281. package/js/src/huobijp.js +219 -218
  282. package/js/src/hyperliquid.d.ts +419 -0
  283. package/js/src/hyperliquid.js +421 -417
  284. package/js/src/idex.d.ts +238 -0
  285. package/js/src/idex.js +238 -237
  286. package/js/src/independentreserve.d.ts +133 -0
  287. package/js/src/independentreserve.js +133 -132
  288. package/js/src/indodax.d.ts +171 -0
  289. package/js/src/indodax.js +177 -171
  290. package/js/src/kraken.d.ts +381 -0
  291. package/js/src/kraken.js +381 -377
  292. package/js/src/krakenfutures.d.ts +282 -0
  293. package/js/src/krakenfutures.js +285 -279
  294. package/js/src/kucoin.d.ts +613 -0
  295. package/js/src/kucoin.js +632 -622
  296. package/js/src/kucoinfutures.d.ts +441 -0
  297. package/js/src/kucoinfutures.js +533 -457
  298. package/js/src/kuna.d.ts +283 -0
  299. package/js/src/kuna.js +283 -282
  300. package/js/src/latoken.d.ts +211 -0
  301. package/js/src/latoken.js +211 -210
  302. package/js/src/lbank.d.ts +268 -0
  303. package/js/src/lbank.js +268 -267
  304. package/js/src/luno.d.ts +174 -0
  305. package/js/src/luno.js +174 -173
  306. package/js/src/lykke.d.ts +172 -0
  307. package/js/src/lykke.js +172 -171
  308. package/js/src/mercado.d.ts +123 -0
  309. package/js/src/mercado.js +123 -122
  310. package/js/src/mexc.d.ts +647 -0
  311. package/js/src/mexc.js +650 -646
  312. package/js/src/ndax.d.ts +229 -0
  313. package/js/src/ndax.js +229 -228
  314. package/js/src/novadax.d.ts +230 -0
  315. package/js/src/novadax.js +230 -229
  316. package/js/src/oceanex.d.ts +187 -0
  317. package/js/src/oceanex.js +187 -186
  318. package/js/src/okcoin.d.ts +286 -0
  319. package/js/src/okcoin.js +286 -285
  320. package/js/src/okx.d.ts +907 -0
  321. package/js/src/okx.js +909 -904
  322. package/js/src/onetrading.d.ts +218 -0
  323. package/js/src/onetrading.js +218 -218
  324. package/js/src/oxfun.d.ts +336 -3
  325. package/js/src/oxfun.js +335 -334
  326. package/js/src/p2b.d.ts +154 -0
  327. package/js/src/p2b.js +154 -154
  328. package/js/src/paradex.d.ts +241 -0
  329. package/js/src/paradex.js +249 -244
  330. package/js/src/paymium.d.ts +101 -0
  331. package/js/src/paymium.js +101 -101
  332. package/js/src/phemex.d.ts +366 -0
  333. package/js/src/phemex.js +388 -390
  334. package/js/src/poloniex.d.ts +270 -0
  335. package/js/src/poloniex.js +270 -270
  336. package/js/src/poloniexfutures.d.ts +250 -0
  337. package/js/src/poloniexfutures.js +250 -250
  338. package/js/src/pro/alpaca.d.ts +64 -0
  339. package/js/src/pro/alpaca.js +64 -64
  340. package/js/src/pro/ascendex.d.ts +64 -0
  341. package/js/src/pro/ascendex.js +64 -64
  342. package/js/src/pro/binance.d.ts +546 -0
  343. package/js/src/pro/binance.js +546 -543
  344. package/js/src/pro/bingx.d.ts +116 -0
  345. package/js/src/pro/bingx.js +116 -116
  346. package/js/src/pro/bitfinex.d.ts +42 -0
  347. package/js/src/pro/bitfinex.js +42 -42
  348. package/js/src/pro/bitfinex2.d.ts +66 -0
  349. package/js/src/pro/bitfinex2.js +66 -66
  350. package/js/src/pro/bitget.d.ts +187 -0
  351. package/js/src/pro/bitget.js +188 -181
  352. package/js/src/pro/bithumb.d.ts +40 -0
  353. package/js/src/pro/bithumb.js +40 -40
  354. package/js/src/pro/bitmart.d.ts +121 -0
  355. package/js/src/pro/bitmart.js +121 -119
  356. package/js/src/pro/bitmex.d.ts +135 -0
  357. package/js/src/pro/bitmex.js +135 -133
  358. package/js/src/pro/bitopro.d.ts +49 -0
  359. package/js/src/pro/bitopro.js +49 -49
  360. package/js/src/pro/bitrue.d.ts +19 -0
  361. package/js/src/pro/bitrue.js +19 -19
  362. package/js/src/pro/bitstamp.d.ts +29 -0
  363. package/js/src/pro/bitstamp.js +29 -29
  364. package/js/src/pro/bitvavo.d.ts +254 -1
  365. package/js/src/pro/bitvavo.js +299 -301
  366. package/js/src/pro/blockchaincom.d.ts +62 -0
  367. package/js/src/pro/blockchaincom.js +62 -62
  368. package/js/src/pro/blofin.d.ts +132 -0
  369. package/js/src/pro/blofin.js +132 -130
  370. package/js/src/pro/bybit.d.ts +317 -0
  371. package/js/src/pro/bybit.js +317 -313
  372. package/js/src/pro/cex.d.ts +168 -0
  373. package/js/src/pro/cex.js +168 -168
  374. package/js/src/pro/coinbase.d.ts +93 -0
  375. package/js/src/pro/coinbase.js +93 -91
  376. package/js/src/pro/coinbaseexchange.d.ts +95 -0
  377. package/js/src/pro/coinbaseexchange.js +95 -95
  378. package/js/src/pro/coinbaseinternational.d.ts +111 -0
  379. package/js/src/pro/coinbaseinternational.js +111 -111
  380. package/js/src/pro/coincatch.d.ts +150 -0
  381. package/js/src/pro/coincatch.js +150 -143
  382. package/js/src/pro/coincheck.d.ts +21 -0
  383. package/js/src/pro/coincheck.js +21 -21
  384. package/js/src/pro/coinex.d.ts +110 -0
  385. package/js/src/pro/coinex.js +110 -110
  386. package/js/src/pro/coinone.d.ts +30 -0
  387. package/js/src/pro/coinone.js +30 -30
  388. package/js/src/pro/cryptocom.d.ts +227 -0
  389. package/js/src/pro/cryptocom.js +227 -227
  390. package/js/src/pro/currencycom.d.ts +45 -0
  391. package/js/src/pro/currencycom.js +45 -45
  392. package/js/src/pro/deribit.d.ts +127 -0
  393. package/js/src/pro/deribit.js +127 -127
  394. package/js/src/pro/exmo.d.ts +66 -0
  395. package/js/src/pro/exmo.js +66 -66
  396. package/js/src/pro/gate.d.ts +287 -0
  397. package/js/src/pro/gate.js +287 -283
  398. package/js/src/pro/gemini.d.ts +74 -0
  399. package/js/src/pro/gemini.js +74 -74
  400. package/js/src/pro/hashkey.d.ts +87 -0
  401. package/js/src/pro/hashkey.js +87 -85
  402. package/js/src/pro/hitbtc.d.ts +190 -0
  403. package/js/src/pro/hitbtc.js +190 -190
  404. package/js/src/pro/hollaex.d.ts +51 -0
  405. package/js/src/pro/hollaex.js +51 -51
  406. package/js/src/pro/htx.d.ts +96 -0
  407. package/js/src/pro/htx.js +96 -94
  408. package/js/src/pro/huobijp.d.ts +38 -0
  409. package/js/src/pro/huobijp.js +38 -38
  410. package/js/src/pro/hyperliquid.d.ts +151 -0
  411. package/js/src/pro/hyperliquid.js +151 -150
  412. package/js/src/pro/idex.d.ts +48 -0
  413. package/js/src/pro/idex.js +48 -48
  414. package/js/src/pro/independentreserve.d.ts +19 -0
  415. package/js/src/pro/independentreserve.js +19 -19
  416. package/js/src/pro/kraken.d.ts +167 -0
  417. package/js/src/pro/kraken.js +167 -167
  418. package/js/src/pro/krakenfutures.d.ts +137 -0
  419. package/js/src/pro/krakenfutures.js +137 -138
  420. package/js/src/pro/kucoin.d.ts +167 -0
  421. package/js/src/pro/kucoin.js +167 -168
  422. package/js/src/pro/kucoinfutures.d.ts +147 -0
  423. package/js/src/pro/kucoinfutures.js +147 -147
  424. package/js/src/pro/lbank.d.ts +95 -0
  425. package/js/src/pro/lbank.js +95 -95
  426. package/js/src/pro/luno.d.ts +21 -0
  427. package/js/src/pro/luno.js +21 -21
  428. package/js/src/pro/mexc.d.ts +101 -0
  429. package/js/src/pro/mexc.js +102 -103
  430. package/js/src/pro/ndax.d.ts +42 -0
  431. package/js/src/pro/ndax.js +42 -42
  432. package/js/src/pro/okcoin.d.ts +61 -0
  433. package/js/src/pro/okcoin.js +61 -61
  434. package/js/src/pro/okx.d.ts +332 -0
  435. package/js/src/pro/okx.js +332 -330
  436. package/js/src/pro/onetrading.d.ts +71 -0
  437. package/js/src/pro/onetrading.js +71 -71
  438. package/js/src/pro/oxfun.d.ts +193 -0
  439. package/js/src/pro/oxfun.js +193 -191
  440. package/js/src/pro/p2b.d.ts +77 -0
  441. package/js/src/pro/p2b.js +77 -77
  442. package/js/src/pro/paradex.d.ts +39 -0
  443. package/js/src/pro/paradex.js +39 -39
  444. package/js/src/pro/phemex.d.ts +94 -0
  445. package/js/src/pro/phemex.js +94 -94
  446. package/js/src/pro/poloniex.d.ts +171 -0
  447. package/js/src/pro/poloniex.js +171 -171
  448. package/js/src/pro/poloniexfutures.d.ts +62 -0
  449. package/js/src/pro/poloniexfutures.js +62 -62
  450. package/js/src/pro/probit.d.ts +63 -0
  451. package/js/src/pro/probit.js +63 -63
  452. package/js/src/pro/upbit.d.ts +80 -0
  453. package/js/src/pro/upbit.js +80 -80
  454. package/js/src/pro/vertex.d.ts +65 -0
  455. package/js/src/pro/vertex.js +65 -63
  456. package/js/src/pro/wazirx.d.ts +70 -0
  457. package/js/src/pro/wazirx.js +70 -70
  458. package/js/src/pro/whitebit.d.ts +83 -0
  459. package/js/src/pro/whitebit.js +83 -83
  460. package/js/src/pro/woo.d.ts +106 -0
  461. package/js/src/pro/woo.js +106 -104
  462. package/js/src/pro/woofipro.d.ts +105 -0
  463. package/js/src/pro/woofipro.js +105 -103
  464. package/js/src/pro/xt.d.ts +119 -0
  465. package/js/src/pro/xt.js +119 -119
  466. package/js/src/probit.d.ts +229 -0
  467. package/js/src/probit.js +229 -229
  468. package/js/src/timex.d.ts +198 -0
  469. package/js/src/timex.js +198 -197
  470. package/js/src/tokocrypto.d.ts +214 -0
  471. package/js/src/tokocrypto.js +214 -213
  472. package/js/src/tradeogre.d.ts +92 -0
  473. package/js/src/tradeogre.js +92 -91
  474. package/js/src/upbit.d.ts +243 -0
  475. package/js/src/upbit.js +243 -242
  476. package/js/src/vertex.d.ts +258 -0
  477. package/js/src/vertex.js +258 -258
  478. package/js/src/wavesexchange.d.ts +176 -0
  479. package/js/src/wavesexchange.js +176 -172
  480. package/js/src/wazirx.d.ts +168 -0
  481. package/js/src/wazirx.js +168 -168
  482. package/js/src/whitebit.d.ts +361 -0
  483. package/js/src/whitebit.js +361 -361
  484. package/js/src/woo.d.ts +571 -0
  485. package/js/src/woo.js +571 -572
  486. package/js/src/woofipro.d.ts +392 -0
  487. package/js/src/woofipro.js +392 -391
  488. package/js/src/xt.d.ts +439 -4
  489. package/js/src/xt.js +436 -435
  490. package/js/src/yobit.d.ts +159 -0
  491. package/js/src/yobit.js +159 -158
  492. package/js/src/zaif.d.ts +103 -0
  493. package/js/src/zaif.js +103 -103
  494. package/js/src/zonda.d.ts +168 -0
  495. package/js/src/zonda.js +168 -168
  496. package/package.json +1 -1
package/js/src/htx.d.ts CHANGED
@@ -6,6 +6,18 @@ import type { TransferEntry, Int, OrderSide, OrderType, Order, OHLCV, Trade, Fun
6
6
  */
7
7
  export default class htx extends Exchange {
8
8
  describe(): any;
9
+ /**
10
+ * @method
11
+ * @name htx#fetchStatus
12
+ * @description the latest known information on the availability of the exchange API
13
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-system-status
14
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#get-system-status
15
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-system-status
16
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#get-system-status
17
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#query-whether-the-system-is-available // contractPublicGetHeartbeat
18
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
19
+ * @returns {object} a [status structure]{@link https://docs.ccxt.com/#/?id=exchange-status-structure}
20
+ */
9
21
  fetchStatus(params?: {}): Promise<{
10
22
  status: any;
11
23
  updated: any;
@@ -13,10 +25,37 @@ export default class htx extends Exchange {
13
25
  url: any;
14
26
  info: any;
15
27
  }>;
28
+ /**
29
+ * @method
30
+ * @name htx#fetchTime
31
+ * @description fetches the current integer timestamp in milliseconds from the exchange server
32
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-current-timestamp
33
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-current-system-timestamp
34
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
35
+ * @returns {int} the current integer timestamp in milliseconds from the exchange server
36
+ */
16
37
  fetchTime(params?: {}): Promise<number>;
17
38
  parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface;
39
+ /**
40
+ * @method
41
+ * @name htx#fetchTradingFee
42
+ * @description fetch the trading fees for a market
43
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-current-fee-rate-applied-to-the-user
44
+ * @param {string} symbol unified market symbol
45
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
46
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
47
+ */
18
48
  fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
19
49
  fetchTradingLimits(symbols?: Strings, params?: {}): Promise<Dict>;
50
+ /**
51
+ * @ignore
52
+ * @method
53
+ * @name htx#fetchTradingLimitsById
54
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-current-fee-rate-applied-to-the-user
55
+ * @param {string} id market id
56
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
57
+ * @returns {object} the limits object of a market structure
58
+ */
20
59
  fetchTradingLimitsById(id: string, params?: {}): Promise<{
21
60
  info: any;
22
61
  limits: {
@@ -36,12 +75,72 @@ export default class htx extends Exchange {
36
75
  };
37
76
  };
38
77
  costToPrecision(symbol: any, cost: any): string;
78
+ /**
79
+ * @method
80
+ * @name htx#fetchMarkets
81
+ * @description retrieves data on all markets for huobi
82
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-all-supported-trading-symbol-v1-deprecated
83
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#get-contract-info
84
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-swap-info
85
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-swap-info
86
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
87
+ * @returns {object[]} an array of objects representing market data
88
+ */
39
89
  fetchMarkets(params?: {}): Promise<Market[]>;
90
+ /**
91
+ * @ignore
92
+ * @method
93
+ * @name htx#fetchMarketsByTypeAndSubType
94
+ * @description retrieves data on all markets of a certain type and/or subtype
95
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-all-supported-trading-symbol-v1-deprecated
96
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#get-contract-info
97
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-swap-info
98
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-swap-info
99
+ * @param {string} [type] 'spot', 'swap' or 'future'
100
+ * @param {string} [subType] 'linear' or 'inverse'
101
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
102
+ * @returns {object[]} an array of objects representing market data
103
+ */
40
104
  fetchMarketsByTypeAndSubType(type: Str, subType: Str, params?: {}): Promise<any[]>;
41
105
  tryGetSymbolFromFutureMarkets(symbolOrMarketId: string): any;
42
106
  parseTicker(ticker: Dict, market?: Market): Ticker;
107
+ /**
108
+ * @method
109
+ * @name htx#fetchTicker
110
+ * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
111
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-latest-aggregated-ticker
112
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#get-market-data-overview
113
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-market-data-overview
114
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-market-data-overview
115
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
116
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
117
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
118
+ */
43
119
  fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
120
+ /**
121
+ * @method
122
+ * @name htx#fetchTickers
123
+ * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
124
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-latest-tickers-for-all-pairs
125
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-a-batch-of-market-data-overview
126
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#get-a-batch-of-market-data-overview
127
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-a-batch-of-market-data-overview-v2
128
+ * @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
129
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
130
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
131
+ */
44
132
  fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
133
+ /**
134
+ * @method
135
+ * @name htx#fetchLastPrices
136
+ * @description fetches the last price for multiple markets
137
+ * @see https://www.htx.com/en-us/opend/newApiPages/?id=8cb81024-77b5-11ed-9966-0242ac110003 linear swap & linear future
138
+ * @see https://www.htx.com/en-us/opend/newApiPages/?id=28c2e8fc-77ae-11ed-9966-0242ac110003 inverse future
139
+ * @see https://www.htx.com/en-us/opend/newApiPages/?id=5d517ef5-77b6-11ed-9966-0242ac110003 inverse swap
140
+ * @param {string[]} [symbols] unified symbols of the markets to fetch the last prices
141
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
142
+ * @returns {object} a dictionary of lastprices structures
143
+ */
45
144
  fetchLastPrices(symbols?: Strings, params?: {}): Promise<import("./base/types.js").LastPrices>;
46
145
  parseLastPrice(entry: any, market?: Market): {
47
146
  symbol: string;
@@ -51,14 +150,106 @@ export default class htx extends Exchange {
51
150
  side: string;
52
151
  info: any;
53
152
  };
153
+ /**
154
+ * @method
155
+ * @name htx#fetchOrderBook
156
+ * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
157
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-market-depth
158
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#get-market-depth
159
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-market-depth
160
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-market-depth
161
+ * @param {string} symbol unified symbol of the market to fetch the order book for
162
+ * @param {int} [limit] the maximum amount of order book entries to return
163
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
164
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
165
+ */
54
166
  fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
55
167
  parseTrade(trade: Dict, market?: Market): Trade;
168
+ /**
169
+ * @method
170
+ * @name htx#fetchOrderTrades
171
+ * @description fetch all the trades made from a single order
172
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-the-match-result-of-an-order
173
+ * @param {string} id order id
174
+ * @param {string} symbol unified market symbol
175
+ * @param {int} [since] the earliest time in ms to fetch trades for
176
+ * @param {int} [limit] the maximum number of trades to retrieve
177
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
178
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
179
+ */
56
180
  fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
181
+ /**
182
+ * @ignore
183
+ * @method
184
+ * @name htx#fetchOrderTrades
185
+ * @description fetch all the trades made from a single order
186
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-the-match-result-of-an-order
187
+ * @param {string} id order id
188
+ * @param {string} symbol unified market symbol
189
+ * @param {int} [since] the earliest time in ms to fetch trades for
190
+ * @param {int} [limit] the maximum number of trades to retrieve
191
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
192
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
193
+ */
57
194
  fetchSpotOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
195
+ /**
196
+ * @method
197
+ * @name htx#fetchMyTrades
198
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-match-results-via-multiple-fields-new
199
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-history-match-results-via-multiple-fields-new
200
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#search-match-results
201
+ * @description fetch all trades made by the user
202
+ * @param {string} symbol unified market symbol
203
+ * @param {int} [since] the earliest time in ms to fetch trades for
204
+ * @param {int} [limit] the maximum number of trades structures to retrieve
205
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
206
+ * @param {int} [params.until] the latest time in ms to fetch trades for
207
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
208
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
209
+ */
58
210
  fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
211
+ /**
212
+ * @method
213
+ * @name htx#fetchTrades
214
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-the-most-recent-trades
215
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#query-a-batch-of-trade-records-of-a-contract
216
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-a-batch-of-trade-records-of-a-contract
217
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-a-batch-of-trade-records-of-a-contract
218
+ * @description get the list of most recent trades for a particular symbol
219
+ * @param {string} symbol unified symbol of the market to fetch trades for
220
+ * @param {int} [since] timestamp in ms of the earliest trade to fetch
221
+ * @param {int} [limit] the maximum amount of trades to fetch
222
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
223
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
224
+ */
59
225
  fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
60
226
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
227
+ /**
228
+ * @method
229
+ * @name htx#fetchOHLCV
230
+ * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
231
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-klines-candles
232
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#get-kline-data
233
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-kline-data
234
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-kline-data
235
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
236
+ * @param {string} timeframe the length of time each candle represents
237
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
238
+ * @param {int} [limit] the maximum amount of candles to fetch
239
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
240
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
241
+ * @param {string} [params.useHistoricalEndpointForSpot] true/false - whether use the historical candles endpoint for spot markets or default klines endpoint
242
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
243
+ */
61
244
  fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
245
+ /**
246
+ * @method
247
+ * @name htx#fetchAccounts
248
+ * @description fetch all the accounts associated with a profile
249
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-all-accounts-of-the-current-user
250
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
251
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
252
+ */
62
253
  fetchAccounts(params?: {}): Promise<Account[]>;
63
254
  parseAccount(account: any): {
64
255
  info: any;
@@ -66,11 +257,60 @@ export default class htx extends Exchange {
66
257
  type: any;
67
258
  code: any;
68
259
  };
260
+ /**
261
+ * @method
262
+ * @name htx#fetchAccountIdByType
263
+ * @description fetch all the accounts by a type and marginModeassociated with a profile
264
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-all-accounts-of-the-current-user
265
+ * @param {string} type 'spot', 'swap' or 'future
266
+ * @param {string} [marginMode] 'cross' or 'isolated'
267
+ * @param {string} [symbol] unified ccxt market symbol
268
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
269
+ * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
270
+ */
69
271
  fetchAccountIdByType(type: string, marginMode?: Str, symbol?: Str, params?: {}): Promise<any>;
272
+ /**
273
+ * @method
274
+ * @name htx#fetchCurrencies
275
+ * @description fetches all available currencies on an exchange
276
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#apiv2-currency-amp-chains
277
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
278
+ * @returns {object} an associative dictionary of currencies
279
+ */
70
280
  fetchCurrencies(params?: {}): Promise<Currencies>;
71
281
  networkIdToCode(networkId?: Str, currencyCode?: Str): string;
72
282
  networkCodeToId(networkCode: string, currencyCode?: Str): any;
283
+ /**
284
+ * @method
285
+ * @name htx#fetchBalance
286
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-account-balance-of-a-specific-account
287
+ * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4b429-7773-11ed-9966-0242ac110003
288
+ * @see https://www.htx.com/en-us/opend/newApiPages/?id=10000074-77b7-11ed-9966-0242ac110003
289
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#query-asset-valuation
290
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-user-s-account-information
291
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-query-user-s-account-information
292
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-query-user-39-s-account-information
293
+ * @description query for balance and get the amount of funds available for trading or funds locked in orders
294
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
295
+ * @param {bool} [params.unified] provide this parameter if you have a recent account with unified cross+isolated margin account
296
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
297
+ */
73
298
  fetchBalance(params?: {}): Promise<Balances>;
299
+ /**
300
+ * @method
301
+ * @name htx#fetchOrder
302
+ * @description fetches information on an order made by the user
303
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-the-order-detail-of-an-order-based-on-client-order-id
304
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-the-order-detail-of-an-order
305
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-information-of-an-order
306
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-information-of-order
307
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#get-information-of-an-order
308
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-information-of-an-order
309
+ * @param {string} id order id
310
+ * @param {string} symbol unified symbol of the market the order was made in
311
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
312
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
313
+ */
74
314
  fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
75
315
  parseMarginBalanceHelper(balance: any, code: any, result: any): any;
76
316
  fetchSpotOrdersByStates(states: any, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
@@ -78,21 +318,203 @@ export default class htx extends Exchange {
78
318
  fetchClosedSpotOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
79
319
  fetchContractOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
80
320
  fetchClosedContractOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
321
+ /**
322
+ * @method
323
+ * @name htx#fetchOrders
324
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#search-past-orders
325
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#search-historical-orders-within-48-hours
326
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-orders-new
327
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-history-orders-new
328
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-history-orders-new
329
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-history-orders-via-multiple-fields-new
330
+ * @description fetches information on multiple orders made by the user
331
+ * @param {string} symbol unified market symbol of the market orders were made in
332
+ * @param {int} [since] the earliest time in ms to fetch orders for
333
+ * @param {int} [limit] the maximum number of order structures to retrieve
334
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
335
+ * @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
336
+ * @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
337
+ * @param {int} [params.until] the latest time in ms to fetch entries for
338
+ * @param {boolean} [params.trailing] *contract only* set to true if you want to fetch trailing stop orders
339
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
340
+ */
81
341
  fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
342
+ /**
343
+ * @method
344
+ * @name htx#fetchClosedOrders
345
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#search-past-orders
346
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#search-historical-orders-within-48-hours
347
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-get-history-orders-new
348
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-get-history-orders-new
349
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-history-orders-new
350
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-history-orders-via-multiple-fields-new
351
+ * @description fetches information on multiple closed orders made by the user
352
+ * @param {string} symbol unified market symbol of the market orders were made in
353
+ * @param {int} [since] the earliest time in ms to fetch orders for
354
+ * @param {int} [limit] the maximum number of order structures to retrieve
355
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
356
+ * @param {int} [params.until] the latest time in ms to fetch entries for
357
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
358
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
359
+ */
82
360
  fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
361
+ /**
362
+ * @method
363
+ * @name htx#fetchOpenOrders
364
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-all-open-orders
365
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-current-unfilled-order-acquisition
366
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-current-unfilled-order-acquisition
367
+ * @description fetch all unfilled currently open orders
368
+ * @param {string} symbol unified market symbol
369
+ * @param {int} [since] the earliest time in ms to fetch open orders for
370
+ * @param {int} [limit] the maximum number of open order structures to retrieve
371
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
372
+ * @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
373
+ * @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
374
+ * @param {boolean} [params.trailing] *contract only* set to true if you want to fetch trailing stop orders
375
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
376
+ */
83
377
  fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
84
378
  parseOrderStatus(status: Str): string;
85
379
  parseOrder(order: Dict, market?: Market): Order;
380
+ /**
381
+ * @method
382
+ * @name htx#createMarketBuyOrderWithCost
383
+ * @description create a market buy order by providing the symbol and cost
384
+ * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4ee16-7773-11ed-9966-0242ac110003
385
+ * @param {string} symbol unified symbol of the market to create an order in
386
+ * @param {float} cost how much you want to trade in units of the quote currency
387
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
388
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
389
+ */
86
390
  createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
391
+ /**
392
+ * @method
393
+ * @name htx#createTrailingPercentOrder
394
+ * @description create a trailing order by providing the symbol, type, side, amount, price and trailingPercent
395
+ * @param {string} symbol unified symbol of the market to create an order in
396
+ * @param {string} type 'market' or 'limit'
397
+ * @param {string} side 'buy' or 'sell'
398
+ * @param {float} amount how much you want to trade in units of the base currency, or number of contracts
399
+ * @param {float} [price] the price for the order to be filled at, in units of the quote currency, ignored in market orders
400
+ * @param {float} trailingPercent the percent to trail away from the current market price
401
+ * @param {float} trailingTriggerPrice the price to activate a trailing order, default uses the price argument
402
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
403
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
404
+ */
87
405
  createTrailingPercentOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, trailingPercent?: any, trailingTriggerPrice?: any, params?: {}): Promise<Order>;
406
+ /**
407
+ * @method
408
+ * @ignore
409
+ * @name htx#createSpotOrderRequest
410
+ * @description helper function to build request
411
+ * @param {string} symbol unified symbol of the market to create an order in
412
+ * @param {string} type 'market' or 'limit'
413
+ * @param {string} side 'buy' or 'sell'
414
+ * @param {float} amount how much you want to trade in units of the base currency
415
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
416
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
417
+ * @param {string} [params.timeInForce] supports 'IOC' and 'FOK'
418
+ * @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount for market buy orders
419
+ * @returns {object} request to be sent to the exchange
420
+ */
88
421
  createSpotOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<any>;
89
422
  createContractOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
423
+ /**
424
+ * @method
425
+ * @name htx#createOrder
426
+ * @description create a trade order
427
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#place-a-new-order // spot, margin
428
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-an-order // coin-m swap
429
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-trigger-order // coin-m swap trigger
430
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-an-order // usdt-m swap cross
431
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-trigger-order // usdt-m swap cross trigger
432
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-an-order // usdt-m swap isolated
433
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-trigger-order // usdt-m swap isolated trigger
434
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#place-an-order // coin-m futures
435
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#place-trigger-order // coin-m futures contract trigger
436
+ * @param {string} symbol unified symbol of the market to create an order in
437
+ * @param {string} type 'market' or 'limit'
438
+ * @param {string} side 'buy' or 'sell'
439
+ * @param {float} amount how much you want to trade in units of the base currency
440
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
441
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
442
+ * @param {float} [params.triggerPrice] the price a trigger order is triggered at
443
+ * @param {string} [params.triggerType] *contract trigger orders only* ge: greater than or equal to, le: less than or equal to
444
+ * @param {float} [params.stopLossPrice] *contract only* the price a stop-loss order is triggered at
445
+ * @param {float} [params.takeProfitPrice] *contract only* the price a take-profit order is triggered at
446
+ * @param {string} [params.operator] *spot and margin only* gte or lte, trigger price condition
447
+ * @param {string} [params.offset] *contract only* 'both' (linear only), 'open', or 'close', required in hedge mode and for inverse markets
448
+ * @param {bool} [params.postOnly] *contract only* true or false
449
+ * @param {int} [params.leverRate] *contract only* required for all contract orders except tpsl, leverage greater than 20x requires prior approval of high-leverage agreement
450
+ * @param {string} [params.timeInForce] supports 'IOC' and 'FOK'
451
+ * @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
452
+ * @param {float} [params.trailingPercent] *contract only* the percent to trail away from the current market price
453
+ * @param {float} [params.trailingTriggerPrice] *contract only* the price to trigger a trailing order, default uses the price argument
454
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
455
+ */
90
456
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
457
+ /**
458
+ * @method
459
+ * @name htx#createOrders
460
+ * @description create a list of trade orders
461
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#place-a-batch-of-orders
462
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#place-a-batch-of-orders
463
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-a-batch-of-orders
464
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-a-batch-of-orders
465
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-a-batch-of-orders
466
+ * @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
467
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
468
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
469
+ */
91
470
  createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
471
+ /**
472
+ * @method
473
+ * @name htx#cancelOrder
474
+ * @description cancels an open order
475
+ * @param {string} id order id
476
+ * @param {string} symbol unified symbol of the market the order was made in
477
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
478
+ * @param {boolean} [params.stop] *contract only* if the order is a stop trigger order or not
479
+ * @param {boolean} [params.stopLossTakeProfit] *contract only* if the order is a stop-loss or take-profit order
480
+ * @param {boolean} [params.trailing] *contract only* set to true if you want to cancel a trailing order
481
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
482
+ */
92
483
  cancelOrder(id: string, symbol?: Str, params?: {}): Promise<any>;
484
+ /**
485
+ * @method
486
+ * @name htx#cancelOrders
487
+ * @description cancel multiple orders
488
+ * @param {string[]} ids order ids
489
+ * @param {string} symbol unified market symbol, default is undefined
490
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
491
+ * @param {bool} [params.stop] *contract only* if the orders are stop trigger orders or not
492
+ * @param {bool} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
493
+ * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
494
+ */
93
495
  cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<any[]>;
94
496
  parseCancelOrders(orders: any): any[];
497
+ /**
498
+ * @method
499
+ * @name htx#cancelAllOrders
500
+ * @description cancel all open orders
501
+ * @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
502
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
503
+ * @param {boolean} [params.stop] *contract only* if the orders are stop trigger orders or not
504
+ * @param {boolean} [params.stopLossTakeProfit] *contract only* if the orders are stop-loss or take-profit orders
505
+ * @param {boolean} [params.trailing] *contract only* set to true if you want to cancel all trailing orders
506
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
507
+ */
95
508
  cancelAllOrders(symbol?: Str, params?: {}): Promise<any[]>;
509
+ /**
510
+ * @method
511
+ * @name htx#cancelAllOrdersAfter
512
+ * @description dead man's switch, cancel all orders after the given timeout
513
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#dead-man-s-switch
514
+ * @param {number} timeout time in milliseconds, 0 represents cancel the timer
515
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
516
+ * @returns {object} the api result
517
+ */
96
518
  cancelAllOrdersAfter(timeout: Int, params?: {}): Promise<any>;
97
519
  parseDepositAddress(depositAddress: any, currency?: Currency): {
98
520
  currency: string;
@@ -102,23 +524,149 @@ export default class htx extends Exchange {
102
524
  note: string;
103
525
  info: any;
104
526
  };
527
+ /**
528
+ * @method
529
+ * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec50029-7773-11ed-9966-0242ac110003
530
+ * @name htx#fetchDepositAddressesByNetwork
531
+ * @description fetch a dictionary of addresses for a currency, indexed by network
532
+ * @param {string} code unified currency code of the currency for the deposit address
533
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
534
+ * @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
535
+ */
105
536
  fetchDepositAddressesByNetwork(code: string, params?: {}): Promise<DepositAddress[]>;
537
+ /**
538
+ * @method
539
+ * @name htx#fetchDepositAddress
540
+ * @description fetch the deposit address for a currency associated with this account
541
+ * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec50029-7773-11ed-9966-0242ac110003
542
+ * @param {string} code unified currency code
543
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
544
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
545
+ */
106
546
  fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
107
547
  fetchWithdrawAddresses(code: string, note?: any, networkCode?: any, params?: {}): Promise<any[]>;
548
+ /**
549
+ * @method
550
+ * @name htx#fetchDeposits
551
+ * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4f050-7773-11ed-9966-0242ac110003
552
+ * @description fetch all deposits made to an account
553
+ * @param {string} code unified currency code
554
+ * @param {int} [since] the earliest time in ms to fetch deposits for
555
+ * @param {int} [limit] the maximum number of deposits structures to retrieve
556
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
557
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
558
+ */
108
559
  fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
560
+ /**
561
+ * @method
562
+ * @name htx#fetchWithdrawals
563
+ * @description fetch all withdrawals made from an account
564
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#search-for-existed-withdraws-and-deposits
565
+ * @param {string} code unified currency code
566
+ * @param {int} [since] the earliest time in ms to fetch withdrawals for
567
+ * @param {int} [limit] the maximum number of withdrawals structures to retrieve
568
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
569
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
570
+ */
109
571
  fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
110
572
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
111
573
  parseTransactionStatus(status: Str): string;
574
+ /**
575
+ * @method
576
+ * @name htx#withdraw
577
+ * @see https://www.htx.com/en-us/opend/newApiPages/?id=7ec4cc41-7773-11ed-9966-0242ac110003
578
+ * @description make a withdrawal
579
+ * @param {string} code unified currency code
580
+ * @param {float} amount the amount to withdraw
581
+ * @param {string} address the address to withdraw to
582
+ * @param {string} tag
583
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
584
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
585
+ */
112
586
  withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
113
587
  parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
588
+ /**
589
+ * @method
590
+ * @name htx#transfer
591
+ * @description transfer currency internally between wallets on the same account
592
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#transfer-margin-between-spot-account-and-future-account
593
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#transfer-fund-between-spot-account-and-future-contract-account
594
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-transfer-margin-between-spot-account-and-usdt-margined-contracts-account
595
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-spot-trading-account-to-cross-margin-account-cross
596
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-spot-trading-account-to-isolated-margin-account-isolated
597
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-cross-margin-account-to-spot-trading-account-cross
598
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#transfer-asset-from-isolated-margin-account-to-spot-trading-account-isolated
599
+ * @param {string} code unified currency code
600
+ * @param {float} amount amount to transfer
601
+ * @param {string} fromAccount account to transfer from 'spot', 'future', 'swap'
602
+ * @param {string} toAccount account to transfer to 'spot', 'future', 'swap'
603
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
604
+ * @param {string} [params.symbol] used for isolated margin transfer
605
+ * @param {string} [params.subType] 'linear' or 'inverse', only used when transfering to/from swap accounts
606
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
607
+ */
114
608
  transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
609
+ /**
610
+ * @method
611
+ * @name htx#fetchIsolatedBorrowRates
612
+ * @description fetch the borrow interest rates of all currencies
613
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-loan-interest-rate-and-quota-isolated
614
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
615
+ * @returns {object} a list of [isolated borrow rate structures]{@link https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure}
616
+ */
115
617
  fetchIsolatedBorrowRates(params?: {}): Promise<IsolatedBorrowRates>;
116
618
  parseIsolatedBorrowRate(info: Dict, market?: Market): IsolatedBorrowRate;
619
+ /**
620
+ * @method
621
+ * @name htx#fetchFundingRateHistory
622
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-historical-funding-rate
623
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-historical-funding-rate
624
+ * @description fetches historical funding rate prices
625
+ * @param {string} symbol unified symbol of the market to fetch the funding rate history for
626
+ * @param {int} [since] not used by huobi, but filtered internally by ccxt
627
+ * @param {int} [limit] not used by huobi, but filtered internally by ccxt
628
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
629
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
630
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
631
+ */
117
632
  fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
118
633
  parseFundingRate(contract: any, market?: Market): FundingRate;
119
634
  parseFundingInterval(interval: any): string;
635
+ /**
636
+ * @method
637
+ * @name htx#fetchFundingRate
638
+ * @description fetch the current funding rate
639
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-funding-rate
640
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-funding-rate
641
+ * @param {string} symbol unified market symbol
642
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
643
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
644
+ */
120
645
  fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
646
+ /**
647
+ * @method
648
+ * @name htx#fetchFundingRates
649
+ * @description fetch the funding rate for multiple markets
650
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-a-batch-of-funding-rate
651
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-a-batch-of-funding-rate
652
+ * @param {string[]|undefined} symbols list of unified market symbols
653
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
654
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
655
+ */
121
656
  fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
657
+ /**
658
+ * @method
659
+ * @name htx#fetchBorrowInterest
660
+ * @description fetch the interest owed by the user for borrowing currency for margin trading
661
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#search-past-margin-orders-cross
662
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#search-past-margin-orders-isolated
663
+ * @param {string} code unified currency code
664
+ * @param {string} symbol unified market symbol when fetch interest in isolated markets
665
+ * @param {int} [since] the earliest time in ms to fetch borrrow interest for
666
+ * @param {int} [limit] the maximum number of structures to retrieve
667
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
668
+ * @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
669
+ */
122
670
  fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<BorrowInterest[]>;
123
671
  parseBorrowInterest(info: Dict, market?: Market): BorrowInterest;
124
672
  sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
@@ -128,7 +676,33 @@ export default class htx extends Exchange {
128
676
  headers: any;
129
677
  };
130
678
  handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
679
+ /**
680
+ * @method
681
+ * @name htx#fetchFundingHistory
682
+ * @description fetch the history of funding payments paid and received on this account
683
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-account-financial-records-via-multiple-fields-new // linear swaps
684
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#query-financial-records-via-multiple-fields-new // coin-m futures
685
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-financial-records-via-multiple-fields-new // coin-m swaps
686
+ * @param {string} symbol unified market symbol
687
+ * @param {int} [since] the earliest time in ms to fetch funding history for
688
+ * @param {int} [limit] the maximum number of funding history structures to retrieve
689
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
690
+ * @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
691
+ */
131
692
  fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").FundingHistory[]>;
693
+ /**
694
+ * @method
695
+ * @name htx#setLeverage
696
+ * @description set the level of leverage for a market
697
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-switch-leverage
698
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-switch-leverage
699
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#switch-leverage
700
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#switch-leverage // Coin-m futures
701
+ * @param {float} leverage the rate of leverage
702
+ * @param {string} symbol unified market symbol
703
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
704
+ * @returns {object} response from the exchange
705
+ */
132
706
  setLeverage(leverage: Int, symbol?: Str, params?: {}): Promise<any>;
133
707
  parseIncome(income: any, market?: Market): {
134
708
  info: any;
@@ -140,20 +714,138 @@ export default class htx extends Exchange {
140
714
  amount: number;
141
715
  };
142
716
  parsePosition(position: Dict, market?: Market): import("./base/types.js").Position;
717
+ /**
718
+ * @method
719
+ * @name htx#fetchPositions
720
+ * @description fetch all open positions
721
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-query-user-39-s-position-information
722
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-query-user-s-position-information
723
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-user-s-position-information
724
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#query-user-s-position-information
725
+ * @param {string[]} [symbols] list of unified market symbols
726
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
727
+ * @param {string} [params.subType] 'linear' or 'inverse'
728
+ * @param {string} [params.type] *inverse only* 'future', or 'swap'
729
+ * @param {string} [params.marginMode] *linear only* 'cross' or 'isolated'
730
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
731
+ */
143
732
  fetchPositions(symbols?: Strings, params?: {}): Promise<import("./base/types.js").Position[]>;
733
+ /**
734
+ * @method
735
+ * @name htx#fetchPosition
736
+ * @description fetch data on a single open contract trade position
737
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-query-assets-and-positions
738
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-query-assets-and-positions
739
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-assets-and-positions
740
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#query-assets-and-positions
741
+ * @param {string} symbol unified market symbol of the market the position is held in, default is undefined
742
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
743
+ * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
744
+ */
144
745
  fetchPosition(symbol: string, params?: {}): Promise<import("./base/types.js").Position>;
145
746
  parseLedgerEntryType(type: any): string;
146
747
  parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
748
+ /**
749
+ * @method
750
+ * @name htx#fetchLedger
751
+ * @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
752
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-account-history
753
+ * @param {string} [code] unified currency code, default is undefined
754
+ * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
755
+ * @param {int} [limit] max number of ledger entries to return, default is undefined
756
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
757
+ * @param {int} [params.until] the latest time in ms to fetch entries for
758
+ * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
759
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
760
+ */
147
761
  fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
762
+ /**
763
+ * @method
764
+ * @name htx#fetchLeverageTiers
765
+ * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
766
+ * @param {string[]|undefined} symbols list of unified market symbols
767
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
768
+ * @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
769
+ */
148
770
  fetchLeverageTiers(symbols?: Strings, params?: {}): Promise<LeverageTiers>;
149
- fetchMarketLeverageTiers(symbol: string, params?: {}): Promise<LeverageTier[]>;
150
- parseLeverageTiers(response: any, symbols?: Strings, marketIdKey?: any): Dict;
771
+ parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
772
+ /**
773
+ * @method
774
+ * @name htx#fetchOpenInterestHistory
775
+ * @description Retrieves the open interest history of a currency
776
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#query-information-on-open-interest
777
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-information-on-open-interest
778
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-information-on-open-interest
779
+ * @param {string} symbol Unified CCXT market symbol
780
+ * @param {string} timeframe '1h', '4h', '12h', or '1d'
781
+ * @param {int} [since] Not used by huobi api, but response parsed by CCXT
782
+ * @param {int} [limit] Default:48,Data Range [1,200]
783
+ * @param {object} [params] Exchange specific parameters
784
+ * @param {int} [params.amount_type] *required* Open interest unit. 1-cont,2-cryptocurrency
785
+ * @param {int} [params.pair] eg BTC-USDT *Only for USDT-M*
786
+ * @returns {object} an array of [open interest structures]{@link https://docs.ccxt.com/#/?id=open-interest-structure}
787
+ */
151
788
  fetchOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").OpenInterest[]>;
789
+ /**
790
+ * @method
791
+ * @name htx#fetchOpenInterest
792
+ * @description Retrieves the open interest of a currency
793
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#get-contract-open-interest-information
794
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#get-swap-open-interest-information
795
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-get-swap-open-interest-information
796
+ * @param {string} symbol Unified CCXT market symbol
797
+ * @param {object} [params] exchange specific parameters
798
+ * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
799
+ */
152
800
  fetchOpenInterest(symbol: string, params?: {}): Promise<import("./base/types.js").OpenInterest>;
153
801
  parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
802
+ /**
803
+ * @method
804
+ * @name htx#borrowIsolatedMargin
805
+ * @description create a loan to borrow margin
806
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-isolated
807
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-cross
808
+ * @param {string} symbol unified market symbol, required for isolated margin
809
+ * @param {string} code unified currency code of the currency to borrow
810
+ * @param {float} amount the amount to borrow
811
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
812
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
813
+ */
154
814
  borrowIsolatedMargin(symbol: string, code: string, amount: number, params?: {}): Promise<any>;
815
+ /**
816
+ * @method
817
+ * @name htx#borrowCrossMargin
818
+ * @description create a loan to borrow margin
819
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-isolated
820
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#request-a-margin-loan-cross
821
+ * @param {string} code unified currency code of the currency to borrow
822
+ * @param {float} amount the amount to borrow
823
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
824
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
825
+ */
155
826
  borrowCrossMargin(code: string, amount: number, params?: {}): Promise<any>;
827
+ /**
828
+ * @method
829
+ * @name htx#repayIsolatedMargin
830
+ * @description repay borrowed margin and interest
831
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#repay-margin-loan-cross-isolated
832
+ * @param {string} symbol unified market symbol
833
+ * @param {string} code unified currency code of the currency to repay
834
+ * @param {float} amount the amount to repay
835
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
836
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
837
+ */
156
838
  repayIsolatedMargin(symbol: string, code: string, amount: any, params?: {}): Promise<any>;
839
+ /**
840
+ * @method
841
+ * @name htx#repayCrossMargin
842
+ * @description repay borrowed margin and interest
843
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#repay-margin-loan-cross-isolated
844
+ * @param {string} code unified currency code of the currency to repay
845
+ * @param {float} amount the amount to repay
846
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
847
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
848
+ */
157
849
  repayCrossMargin(code: string, amount: any, params?: {}): Promise<any>;
158
850
  parseMarginLoan(info: any, currency?: Currency): {
159
851
  id: string;
@@ -164,7 +856,32 @@ export default class htx extends Exchange {
164
856
  datetime: string;
165
857
  info: any;
166
858
  };
859
+ /**
860
+ * @method
861
+ * @name htx#fetchSettlementHistory
862
+ * @description Fetches historical settlement records
863
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#query-historical-settlement-records-of-the-platform-interface
864
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-historical-settlement-records-of-the-platform-interface
865
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-historical-settlement-records-of-the-platform-interface
866
+ * @param {string} symbol unified symbol of the market to fetch the settlement history for
867
+ * @param {int} [since] timestamp in ms, value range = current time - 90 days,default = current time - 90 days
868
+ * @param {int} [limit] page items, default 20, shall not exceed 50
869
+ * @param {object} [params] exchange specific params
870
+ * @param {int} [params.until] timestamp in ms, value range = start_time -> current time,default = current time
871
+ * @param {int} [params.page_index] page index, default page 1 if not filled
872
+ * @param {int} [params.code] unified currency code, can be used when symbol is undefined
873
+ * @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/#/?id=settlement-history-structure}
874
+ */
167
875
  fetchSettlementHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any[]>;
876
+ /**
877
+ * @method
878
+ * @name htx#fetchDepositWithdrawFees
879
+ * @description fetch deposit and withdraw fees
880
+ * @see https://huobiapi.github.io/docs/spot/v1/en/#get-all-supported-currencies-v2
881
+ * @param {string[]|undefined} codes list of unified currency codes
882
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
883
+ * @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
884
+ */
168
885
  fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
169
886
  parseDepositWithdrawFee(fee: any, currency?: Currency): any;
170
887
  parseSettlements(settlements: any, market: any): any[];
@@ -175,8 +892,54 @@ export default class htx extends Exchange {
175
892
  timestamp: number;
176
893
  datetime: string;
177
894
  };
895
+ /**
896
+ * @method
897
+ * @name htx#fetchLiquidations
898
+ * @description retrieves the public liquidations of a trading pair
899
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#general-query-liquidation-orders-new
900
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#query-liquidation-orders-new
901
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#query-liquidation-order-information-new
902
+ * @param {string} symbol unified CCXT market symbol
903
+ * @param {int} [since] the earliest time in ms to fetch liquidations for
904
+ * @param {int} [limit] the maximum number of liquidation structures to retrieve
905
+ * @param {object} [params] exchange specific parameters for the huobi api endpoint
906
+ * @param {int} [params.until] timestamp in ms of the latest liquidation
907
+ * @param {int} [params.tradeType] default 0, linear swap 0: all liquidated orders, 5: liquidated longs; 6: liquidated shorts, inverse swap and future 0: filled liquidated orders, 5: liquidated close orders, 6: liquidated open orders
908
+ * @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
909
+ */
178
910
  fetchLiquidations(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Liquidation[]>;
179
911
  parseLiquidation(liquidation: any, market?: Market): import("./base/types.js").Liquidation;
912
+ /**
913
+ * @method
914
+ * @name htx#closePositions
915
+ * @description closes open positions for a contract market, requires 'amount' in params, unlike other exchanges
916
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-place-lightning-close-order // USDT-M (isolated)
917
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-place-lightning-close-position // USDT-M (cross)
918
+ * @see https://huobiapi.github.io/docs/coin_margined_swap/v1/en/#place-lightning-close-order // Coin-M swap
919
+ * @see https://huobiapi.github.io/docs/dm/v1/en/#place-flash-close-order // Coin-M futures
920
+ * @param {string} symbol unified CCXT market symbol
921
+ * @param {string} side 'buy' or 'sell', the side of the closing order, opposite side as position side
922
+ * @param {object} [params] extra parameters specific to the okx api endpoint
923
+ * @param {string} [params.clientOrderId] client needs to provide unique API and have to maintain the API themselves afterwards. [1, 9223372036854775807]
924
+ * @param {object} [params.marginMode] 'cross' or 'isolated', required for linear markets
925
+ *
926
+ * EXCHANGE SPECIFIC PARAMETERS
927
+ * @param {number} [params.amount] order quantity
928
+ * @param {string} [params.order_price_type] 'lightning' by default, 'lightning_fok': lightning fok type, 'lightning_ioc': lightning ioc type 'market' by default, 'market': market order type, 'lightning_fok': lightning
929
+ * @returns {object} [an order structure]{@link https://docs.ccxt.com/#/?id=position-structure}
930
+ */
180
931
  closePosition(symbol: string, side?: OrderSide, params?: {}): Promise<Order>;
932
+ /**
933
+ * @method
934
+ * @name htx#setPositionMode
935
+ * @description set hedged to true or false
936
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#isolated-switch-position-mode
937
+ * @see https://huobiapi.github.io/docs/usdt_swap/v1/en/#cross-switch-position-mode
938
+ * @param {bool} hedged set to true to for hedged mode, must be set separately for each market in isolated margin mode, only valid for linear markets
939
+ * @param {string} [symbol] unified market symbol, required for isolated margin mode
940
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
941
+ * @param {string} [params.marginMode] "cross" (default) or "isolated"
942
+ * @returns {object} response from the exchange
943
+ */
181
944
  setPositionMode(hedged: boolean, symbol?: Str, params?: {}): Promise<any>;
182
945
  }