ccxt 4.4.29 → 4.4.31

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 (501) hide show
  1. package/README.md +3 -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 +279 -227
  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 +1347 -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 +152 -152
  13. package/dist/cjs/src/bitfinex.js +240 -240
  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 +578 -578
  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 -247
  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 +648 -648
  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 +418 -411
  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 +812 -789
  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 +521 -413
  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 +176 -170
  64. package/dist/cjs/src/kraken.js +379 -377
  65. package/dist/cjs/src/krakenfutures.js +283 -279
  66. package/dist/cjs/src/kucoin.js +630 -622
  67. package/dist/cjs/src/kucoinfutures.js +439 -434
  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 +269 -268
  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 +369 -367
  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 +187 -180
  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 +253 -253
  102. package/dist/cjs/src/pro/blockchaincom.js +62 -62
  103. package/dist/cjs/src/pro/blofin.js +134 -131
  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 +101 -101
  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 +175 -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/abstract/alpaca.d.ts +1 -0
  170. package/js/src/abstract/binance.d.ts +9 -0
  171. package/js/src/abstract/binancecoinm.d.ts +9 -0
  172. package/js/src/abstract/binanceus.d.ts +9 -0
  173. package/js/src/abstract/binanceusdm.d.ts +9 -0
  174. package/js/src/ace.d.ts +123 -0
  175. package/js/src/ace.js +123 -123
  176. package/js/src/alpaca.d.ts +239 -0
  177. package/js/src/alpaca.js +279 -227
  178. package/js/src/ascendex.d.ts +339 -0
  179. package/js/src/ascendex.js +342 -341
  180. package/js/src/base/types.d.ts +1 -0
  181. package/js/src/bigone.d.ts +242 -0
  182. package/js/src/bigone.js +242 -242
  183. package/js/src/binance.d.ts +1305 -0
  184. package/js/src/binance.js +1347 -1291
  185. package/js/src/bingx.d.ts +639 -0
  186. package/js/src/bingx.js +639 -639
  187. package/js/src/bit2c.d.ts +111 -0
  188. package/js/src/bit2c.js +111 -111
  189. package/js/src/bitbank.d.ts +142 -0
  190. package/js/src/bitbank.js +142 -142
  191. package/js/src/bitbns.d.ts +140 -0
  192. package/js/src/bitbns.js +152 -152
  193. package/js/src/bitfinex.d.ts +231 -0
  194. package/js/src/bitfinex.js +240 -240
  195. package/js/src/bitfinex2.d.ts +403 -0
  196. package/js/src/bitfinex2.js +403 -403
  197. package/js/src/bitflyer.d.ts +184 -0
  198. package/js/src/bitflyer.js +184 -184
  199. package/js/src/bitget.d.ts +846 -0
  200. package/js/src/bitget.js +848 -846
  201. package/js/src/bithumb.d.ts +125 -0
  202. package/js/src/bithumb.js +125 -124
  203. package/js/src/bitmart.d.ts +525 -0
  204. package/js/src/bitmart.js +578 -578
  205. package/js/src/bitmex.d.ts +317 -0
  206. package/js/src/bitmex.js +317 -317
  207. package/js/src/bitopro.d.ts +221 -0
  208. package/js/src/bitopro.js +221 -221
  209. package/js/src/bitrue.d.ts +315 -0
  210. package/js/src/bitrue.js +315 -315
  211. package/js/src/bitso.d.ts +220 -0
  212. package/js/src/bitso.js +220 -220
  213. package/js/src/bitstamp.d.ts +251 -0
  214. package/js/src/bitstamp.js +251 -251
  215. package/js/src/bitteam.d.ts +183 -0
  216. package/js/src/bitteam.js +183 -183
  217. package/js/src/bitvavo.d.ts +247 -0
  218. package/js/src/bitvavo.js +247 -247
  219. package/js/src/bl3p.d.ts +82 -0
  220. package/js/src/bl3p.js +82 -82
  221. package/js/src/blockchaincom.d.ts +211 -0
  222. package/js/src/blockchaincom.js +211 -211
  223. package/js/src/blofin.d.ts +332 -0
  224. package/js/src/blofin.js +332 -331
  225. package/js/src/btcalpha.d.ts +166 -0
  226. package/js/src/btcalpha.js +166 -166
  227. package/js/src/btcbox.d.ts +108 -0
  228. package/js/src/btcbox.js +108 -108
  229. package/js/src/btcmarkets.d.ts +198 -0
  230. package/js/src/btcmarkets.js +198 -198
  231. package/js/src/btcturk.d.ts +124 -0
  232. package/js/src/btcturk.js +124 -124
  233. package/js/src/bybit.d.ts +906 -1
  234. package/js/src/bybit.js +906 -900
  235. package/js/src/cex.d.ts +227 -0
  236. package/js/src/cex.js +227 -226
  237. package/js/src/coinbase.d.ts +481 -0
  238. package/js/src/coinbase.js +481 -481
  239. package/js/src/coinbaseexchange.d.ts +274 -0
  240. package/js/src/coinbaseexchange.js +274 -274
  241. package/js/src/coinbaseinternational.d.ts +304 -0
  242. package/js/src/coinbaseinternational.js +304 -304
  243. package/js/src/coincatch.d.ts +646 -0
  244. package/js/src/coincatch.js +648 -648
  245. package/js/src/coincheck.d.ts +113 -0
  246. package/js/src/coincheck.js +113 -113
  247. package/js/src/coinex.d.ts +603 -0
  248. package/js/src/coinex.js +611 -601
  249. package/js/src/coinlist.d.ts +304 -0
  250. package/js/src/coinlist.js +304 -303
  251. package/js/src/coinmate.d.ts +162 -0
  252. package/js/src/coinmate.js +162 -161
  253. package/js/src/coinmetro.d.ts +187 -0
  254. package/js/src/coinmetro.js +187 -187
  255. package/js/src/coinone.d.ts +124 -0
  256. package/js/src/coinone.js +124 -123
  257. package/js/src/coinsph.d.ts +237 -0
  258. package/js/src/coinsph.js +237 -237
  259. package/js/src/coinspot.d.ts +82 -0
  260. package/js/src/coinspot.js +82 -82
  261. package/js/src/cryptocom.d.ts +342 -0
  262. package/js/src/cryptocom.js +342 -341
  263. package/js/src/currencycom.d.ts +225 -0
  264. package/js/src/currencycom.js +225 -224
  265. package/js/src/delta.d.ts +320 -0
  266. package/js/src/delta.js +320 -320
  267. package/js/src/deribit.d.ts +411 -0
  268. package/js/src/deribit.js +418 -411
  269. package/js/src/digifinex.d.ts +430 -0
  270. package/js/src/digifinex.js +432 -431
  271. package/js/src/exmo.d.ts +328 -0
  272. package/js/src/exmo.js +328 -327
  273. package/js/src/gate.d.ts +801 -1
  274. package/js/src/gate.js +812 -789
  275. package/js/src/gemini.d.ts +199 -0
  276. package/js/src/gemini.js +199 -198
  277. package/js/src/hashkey.d.ts +516 -0
  278. package/js/src/hashkey.js +520 -517
  279. package/js/src/hitbtc.d.ts +465 -0
  280. package/js/src/hitbtc.js +465 -462
  281. package/js/src/hollaex.d.ts +253 -0
  282. package/js/src/hollaex.js +253 -252
  283. package/js/src/htx.d.ts +765 -2
  284. package/js/src/htx.js +791 -848
  285. package/js/src/huobijp.d.ts +219 -0
  286. package/js/src/huobijp.js +219 -218
  287. package/js/src/hyperliquid.d.ts +422 -1
  288. package/js/src/hyperliquid.js +521 -413
  289. package/js/src/idex.d.ts +238 -0
  290. package/js/src/idex.js +238 -237
  291. package/js/src/independentreserve.d.ts +133 -0
  292. package/js/src/independentreserve.js +133 -132
  293. package/js/src/indodax.d.ts +171 -0
  294. package/js/src/indodax.js +176 -170
  295. package/js/src/kraken.d.ts +379 -0
  296. package/js/src/kraken.js +379 -377
  297. package/js/src/krakenfutures.d.ts +280 -0
  298. package/js/src/krakenfutures.js +283 -279
  299. package/js/src/kucoin.d.ts +613 -0
  300. package/js/src/kucoin.js +630 -622
  301. package/js/src/kucoinfutures.d.ts +437 -0
  302. package/js/src/kucoinfutures.js +439 -434
  303. package/js/src/kuna.d.ts +283 -0
  304. package/js/src/kuna.js +283 -282
  305. package/js/src/latoken.d.ts +211 -0
  306. package/js/src/latoken.js +211 -210
  307. package/js/src/lbank.d.ts +268 -0
  308. package/js/src/lbank.js +269 -268
  309. package/js/src/luno.d.ts +174 -0
  310. package/js/src/luno.js +174 -173
  311. package/js/src/lykke.d.ts +172 -0
  312. package/js/src/lykke.js +172 -171
  313. package/js/src/mercado.d.ts +123 -0
  314. package/js/src/mercado.js +123 -122
  315. package/js/src/mexc.d.ts +647 -0
  316. package/js/src/mexc.js +650 -646
  317. package/js/src/ndax.d.ts +229 -0
  318. package/js/src/ndax.js +229 -228
  319. package/js/src/novadax.d.ts +230 -0
  320. package/js/src/novadax.js +230 -229
  321. package/js/src/oceanex.d.ts +187 -0
  322. package/js/src/oceanex.js +187 -186
  323. package/js/src/okcoin.d.ts +286 -0
  324. package/js/src/okcoin.js +286 -285
  325. package/js/src/okx.d.ts +907 -0
  326. package/js/src/okx.js +909 -904
  327. package/js/src/onetrading.d.ts +218 -0
  328. package/js/src/onetrading.js +218 -218
  329. package/js/src/oxfun.d.ts +336 -3
  330. package/js/src/oxfun.js +335 -334
  331. package/js/src/p2b.d.ts +154 -0
  332. package/js/src/p2b.js +154 -154
  333. package/js/src/paradex.d.ts +241 -0
  334. package/js/src/paradex.js +249 -244
  335. package/js/src/paymium.d.ts +101 -0
  336. package/js/src/paymium.js +101 -101
  337. package/js/src/phemex.d.ts +366 -0
  338. package/js/src/phemex.js +369 -367
  339. package/js/src/poloniex.d.ts +270 -0
  340. package/js/src/poloniex.js +270 -270
  341. package/js/src/poloniexfutures.d.ts +250 -0
  342. package/js/src/poloniexfutures.js +250 -250
  343. package/js/src/pro/alpaca.d.ts +64 -0
  344. package/js/src/pro/alpaca.js +64 -64
  345. package/js/src/pro/ascendex.d.ts +64 -0
  346. package/js/src/pro/ascendex.js +64 -64
  347. package/js/src/pro/binance.d.ts +546 -0
  348. package/js/src/pro/binance.js +546 -543
  349. package/js/src/pro/bingx.d.ts +116 -0
  350. package/js/src/pro/bingx.js +116 -116
  351. package/js/src/pro/bitfinex.d.ts +42 -0
  352. package/js/src/pro/bitfinex.js +42 -42
  353. package/js/src/pro/bitfinex2.d.ts +66 -0
  354. package/js/src/pro/bitfinex2.js +66 -66
  355. package/js/src/pro/bitget.d.ts +187 -0
  356. package/js/src/pro/bitget.js +187 -180
  357. package/js/src/pro/bithumb.d.ts +40 -0
  358. package/js/src/pro/bithumb.js +40 -40
  359. package/js/src/pro/bitmart.d.ts +121 -0
  360. package/js/src/pro/bitmart.js +121 -119
  361. package/js/src/pro/bitmex.d.ts +135 -0
  362. package/js/src/pro/bitmex.js +135 -133
  363. package/js/src/pro/bitopro.d.ts +49 -0
  364. package/js/src/pro/bitopro.js +49 -49
  365. package/js/src/pro/bitrue.d.ts +19 -0
  366. package/js/src/pro/bitrue.js +19 -19
  367. package/js/src/pro/bitstamp.d.ts +29 -0
  368. package/js/src/pro/bitstamp.js +29 -29
  369. package/js/src/pro/bitvavo.d.ts +253 -0
  370. package/js/src/pro/bitvavo.js +253 -253
  371. package/js/src/pro/blockchaincom.d.ts +62 -0
  372. package/js/src/pro/blockchaincom.js +62 -62
  373. package/js/src/pro/blofin.d.ts +132 -0
  374. package/js/src/pro/blofin.js +134 -131
  375. package/js/src/pro/bybit.d.ts +317 -0
  376. package/js/src/pro/bybit.js +317 -313
  377. package/js/src/pro/cex.d.ts +168 -0
  378. package/js/src/pro/cex.js +168 -168
  379. package/js/src/pro/coinbase.d.ts +93 -0
  380. package/js/src/pro/coinbase.js +93 -91
  381. package/js/src/pro/coinbaseexchange.d.ts +95 -0
  382. package/js/src/pro/coinbaseexchange.js +95 -95
  383. package/js/src/pro/coinbaseinternational.d.ts +111 -0
  384. package/js/src/pro/coinbaseinternational.js +111 -111
  385. package/js/src/pro/coincatch.d.ts +150 -0
  386. package/js/src/pro/coincatch.js +150 -143
  387. package/js/src/pro/coincheck.d.ts +21 -0
  388. package/js/src/pro/coincheck.js +21 -21
  389. package/js/src/pro/coinex.d.ts +110 -0
  390. package/js/src/pro/coinex.js +110 -110
  391. package/js/src/pro/coinone.d.ts +30 -0
  392. package/js/src/pro/coinone.js +30 -30
  393. package/js/src/pro/cryptocom.d.ts +227 -0
  394. package/js/src/pro/cryptocom.js +227 -227
  395. package/js/src/pro/currencycom.d.ts +45 -0
  396. package/js/src/pro/currencycom.js +45 -45
  397. package/js/src/pro/deribit.d.ts +127 -0
  398. package/js/src/pro/deribit.js +127 -127
  399. package/js/src/pro/exmo.d.ts +66 -0
  400. package/js/src/pro/exmo.js +66 -66
  401. package/js/src/pro/gate.d.ts +287 -0
  402. package/js/src/pro/gate.js +287 -283
  403. package/js/src/pro/gemini.d.ts +74 -0
  404. package/js/src/pro/gemini.js +74 -74
  405. package/js/src/pro/hashkey.d.ts +87 -0
  406. package/js/src/pro/hashkey.js +87 -85
  407. package/js/src/pro/hitbtc.d.ts +190 -0
  408. package/js/src/pro/hitbtc.js +190 -190
  409. package/js/src/pro/hollaex.d.ts +51 -0
  410. package/js/src/pro/hollaex.js +51 -51
  411. package/js/src/pro/htx.d.ts +96 -0
  412. package/js/src/pro/htx.js +96 -94
  413. package/js/src/pro/huobijp.d.ts +38 -0
  414. package/js/src/pro/huobijp.js +38 -38
  415. package/js/src/pro/hyperliquid.d.ts +151 -0
  416. package/js/src/pro/hyperliquid.js +151 -150
  417. package/js/src/pro/idex.d.ts +48 -0
  418. package/js/src/pro/idex.js +48 -48
  419. package/js/src/pro/independentreserve.d.ts +19 -0
  420. package/js/src/pro/independentreserve.js +19 -19
  421. package/js/src/pro/kraken.d.ts +167 -0
  422. package/js/src/pro/kraken.js +167 -167
  423. package/js/src/pro/krakenfutures.d.ts +137 -0
  424. package/js/src/pro/krakenfutures.js +137 -138
  425. package/js/src/pro/kucoin.d.ts +167 -0
  426. package/js/src/pro/kucoin.js +167 -168
  427. package/js/src/pro/kucoinfutures.d.ts +147 -0
  428. package/js/src/pro/kucoinfutures.js +147 -147
  429. package/js/src/pro/lbank.d.ts +95 -0
  430. package/js/src/pro/lbank.js +95 -95
  431. package/js/src/pro/luno.d.ts +21 -0
  432. package/js/src/pro/luno.js +21 -21
  433. package/js/src/pro/mexc.d.ts +101 -0
  434. package/js/src/pro/mexc.js +101 -101
  435. package/js/src/pro/ndax.d.ts +42 -0
  436. package/js/src/pro/ndax.js +42 -42
  437. package/js/src/pro/okcoin.d.ts +61 -0
  438. package/js/src/pro/okcoin.js +61 -61
  439. package/js/src/pro/okx.d.ts +332 -0
  440. package/js/src/pro/okx.js +332 -330
  441. package/js/src/pro/onetrading.d.ts +71 -0
  442. package/js/src/pro/onetrading.js +71 -71
  443. package/js/src/pro/oxfun.d.ts +193 -0
  444. package/js/src/pro/oxfun.js +193 -191
  445. package/js/src/pro/p2b.d.ts +77 -0
  446. package/js/src/pro/p2b.js +77 -77
  447. package/js/src/pro/paradex.d.ts +39 -0
  448. package/js/src/pro/paradex.js +39 -39
  449. package/js/src/pro/phemex.d.ts +94 -0
  450. package/js/src/pro/phemex.js +94 -94
  451. package/js/src/pro/poloniex.d.ts +171 -0
  452. package/js/src/pro/poloniex.js +171 -171
  453. package/js/src/pro/poloniexfutures.d.ts +62 -0
  454. package/js/src/pro/poloniexfutures.js +62 -62
  455. package/js/src/pro/probit.d.ts +63 -0
  456. package/js/src/pro/probit.js +63 -63
  457. package/js/src/pro/upbit.d.ts +80 -0
  458. package/js/src/pro/upbit.js +80 -80
  459. package/js/src/pro/vertex.d.ts +65 -0
  460. package/js/src/pro/vertex.js +65 -63
  461. package/js/src/pro/wazirx.d.ts +70 -0
  462. package/js/src/pro/wazirx.js +70 -70
  463. package/js/src/pro/whitebit.d.ts +83 -0
  464. package/js/src/pro/whitebit.js +83 -83
  465. package/js/src/pro/woo.d.ts +106 -0
  466. package/js/src/pro/woo.js +106 -104
  467. package/js/src/pro/woofipro.d.ts +105 -0
  468. package/js/src/pro/woofipro.js +105 -103
  469. package/js/src/pro/xt.d.ts +119 -0
  470. package/js/src/pro/xt.js +119 -119
  471. package/js/src/probit.d.ts +229 -0
  472. package/js/src/probit.js +229 -229
  473. package/js/src/timex.d.ts +198 -0
  474. package/js/src/timex.js +198 -197
  475. package/js/src/tokocrypto.d.ts +214 -0
  476. package/js/src/tokocrypto.js +214 -213
  477. package/js/src/tradeogre.d.ts +92 -0
  478. package/js/src/tradeogre.js +92 -91
  479. package/js/src/upbit.d.ts +243 -0
  480. package/js/src/upbit.js +243 -242
  481. package/js/src/vertex.d.ts +258 -0
  482. package/js/src/vertex.js +258 -258
  483. package/js/src/wavesexchange.d.ts +175 -0
  484. package/js/src/wavesexchange.js +175 -172
  485. package/js/src/wazirx.d.ts +168 -0
  486. package/js/src/wazirx.js +168 -168
  487. package/js/src/whitebit.d.ts +361 -0
  488. package/js/src/whitebit.js +361 -361
  489. package/js/src/woo.d.ts +571 -0
  490. package/js/src/woo.js +571 -572
  491. package/js/src/woofipro.d.ts +392 -0
  492. package/js/src/woofipro.js +392 -391
  493. package/js/src/xt.d.ts +439 -4
  494. package/js/src/xt.js +436 -435
  495. package/js/src/yobit.d.ts +159 -0
  496. package/js/src/yobit.js +159 -158
  497. package/js/src/zaif.d.ts +103 -0
  498. package/js/src/zaif.js +103 -103
  499. package/js/src/zonda.d.ts +168 -0
  500. package/js/src/zonda.js +168 -168
  501. package/package.json +1 -1
@@ -281,42 +281,42 @@ class exmo extends exmo$1 {
281
281
  'datetime': undefined,
282
282
  };
283
283
  }
284
+ /**
285
+ * @method
286
+ * @name exmo#reduceMargin
287
+ * @description remove margin from a position
288
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#eebf9f25-0289-4946-9482-89872c738449
289
+ * @param {string} symbol unified market symbol
290
+ * @param {float} amount the amount of margin to remove
291
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
292
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
293
+ */
284
294
  async reduceMargin(symbol, amount, params = {}) {
285
- /**
286
- * @method
287
- * @name exmo#reduceMargin
288
- * @description remove margin from a position
289
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#eebf9f25-0289-4946-9482-89872c738449
290
- * @param {string} symbol unified market symbol
291
- * @param {float} amount the amount of margin to remove
292
- * @param {object} [params] extra parameters specific to the exchange API endpoint
293
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
294
- */
295
295
  return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
296
296
  }
297
+ /**
298
+ * @method
299
+ * @name exmo#addMargin
300
+ * @description add margin
301
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#143ef808-79ca-4e49-9e79-a60ea4d8c0e3
302
+ * @param {string} symbol unified market symbol
303
+ * @param {float} amount amount of margin to add
304
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
305
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
306
+ */
297
307
  async addMargin(symbol, amount, params = {}) {
298
- /**
299
- * @method
300
- * @name exmo#addMargin
301
- * @description add margin
302
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#143ef808-79ca-4e49-9e79-a60ea4d8c0e3
303
- * @param {string} symbol unified market symbol
304
- * @param {float} amount amount of margin to add
305
- * @param {object} [params] extra parameters specific to the exchange API endpoint
306
- * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
307
- */
308
308
  return await this.modifyMarginHelper(symbol, amount, 'add', params);
309
309
  }
310
+ /**
311
+ * @method
312
+ * @name exmo#fetchTradingFees
313
+ * @description fetch the trading fees for multiple markets
314
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#90927062-256c-4b03-900f-2b99131f9a54
315
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
316
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
317
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
318
+ */
310
319
  async fetchTradingFees(params = {}) {
311
- /**
312
- * @method
313
- * @name exmo#fetchTradingFees
314
- * @description fetch the trading fees for multiple markets
315
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#90927062-256c-4b03-900f-2b99131f9a54
316
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
317
- * @param {object} [params] extra parameters specific to the exchange API endpoint
318
- * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
319
- */
320
320
  const options = this.safeValue(this.options, 'fetchTradingFees', {});
321
321
  const defaultMethod = this.safeString(options, 'method', 'fetchPrivateTradingFees');
322
322
  const method = this.safeString(params, 'method', defaultMethod);
@@ -435,17 +435,17 @@ class exmo extends exmo$1 {
435
435
  }
436
436
  return result;
437
437
  }
438
+ /**
439
+ * @method
440
+ * @name exmo#fetchTransactionFees
441
+ * @deprecated
442
+ * @description please use fetchDepositWithdrawFees instead
443
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
444
+ * @param {string[]|undefined} codes list of unified currency codes
445
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
446
+ * @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
447
+ */
438
448
  async fetchTransactionFees(codes = undefined, params = {}) {
439
- /**
440
- * @method
441
- * @name exmo#fetchTransactionFees
442
- * @deprecated
443
- * @description please use fetchDepositWithdrawFees instead
444
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
445
- * @param {string[]|undefined} codes list of unified currency codes
446
- * @param {object} [params] extra parameters specific to the exchange API endpoint
447
- * @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
448
- */
449
449
  await this.loadMarkets();
450
450
  const cryptoList = await this.publicGetPaymentsProvidersCryptoList(params);
451
451
  //
@@ -509,16 +509,16 @@ class exmo extends exmo$1 {
509
509
  this.options['transactionFees'] = result;
510
510
  return result;
511
511
  }
512
+ /**
513
+ * @method
514
+ * @name exmo#fetchDepositWithdrawFees
515
+ * @description fetch deposit and withdraw fees
516
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
517
+ * @param {string[]|undefined} codes list of unified currency codes
518
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
519
+ * @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
520
+ */
512
521
  async fetchDepositWithdrawFees(codes = undefined, params = {}) {
513
- /**
514
- * @method
515
- * @name exmo#fetchDepositWithdrawFees
516
- * @description fetch deposit and withdraw fees
517
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
518
- * @param {string[]|undefined} codes list of unified currency codes
519
- * @param {object} [params] extra parameters specific to the exchange API endpoint
520
- * @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
521
- */
522
522
  await this.loadMarkets();
523
523
  const response = await this.publicGetPaymentsProvidersCryptoList(params);
524
524
  //
@@ -596,16 +596,16 @@ class exmo extends exmo$1 {
596
596
  }
597
597
  return this.assignDefaultDepositWithdrawFees(result);
598
598
  }
599
+ /**
600
+ * @method
601
+ * @name exmo#fetchCurrencies
602
+ * @description fetches all available currencies on an exchange
603
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7cdf0ca8-9ff6-4cf3-aa33-bcec83155c49
604
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
605
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
606
+ * @returns {object} an associative dictionary of currencies
607
+ */
599
608
  async fetchCurrencies(params = {}) {
600
- /**
601
- * @method
602
- * @name exmo#fetchCurrencies
603
- * @description fetches all available currencies on an exchange
604
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7cdf0ca8-9ff6-4cf3-aa33-bcec83155c49
605
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
606
- * @param {object} [params] extra parameters specific to the exchange API endpoint
607
- * @returns {object} an associative dictionary of currencies
608
- */
609
609
  //
610
610
  const currencyList = await this.publicGetCurrencyListExtended(params);
611
611
  //
@@ -724,15 +724,15 @@ class exmo extends exmo$1 {
724
724
  }
725
725
  return result;
726
726
  }
727
+ /**
728
+ * @method
729
+ * @name exmo#fetchMarkets
730
+ * @description retrieves data on all markets for exmo
731
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
732
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
733
+ * @returns {object[]} an array of objects representing market data
734
+ */
727
735
  async fetchMarkets(params = {}) {
728
- /**
729
- * @method
730
- * @name exmo#fetchMarkets
731
- * @description retrieves data on all markets for exmo
732
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
733
- * @param {object} [params] extra parameters specific to the exchange API endpoint
734
- * @returns {object[]} an array of objects representing market data
735
- */
736
736
  const response = await this.publicGetPairSettings(params);
737
737
  //
738
738
  // {
@@ -852,19 +852,19 @@ class exmo extends exmo$1 {
852
852
  }
853
853
  return result;
854
854
  }
855
+ /**
856
+ * @method
857
+ * @name exmo#fetchOHLCV
858
+ * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
859
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#65eeb949-74e5-4631-9184-c38387fe53e8
860
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
861
+ * @param {string} timeframe the length of time each candle represents
862
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
863
+ * @param {int} [limit] the maximum amount of candles to fetch
864
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
865
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
866
+ */
855
867
  async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
856
- /**
857
- * @method
858
- * @name exmo#fetchOHLCV
859
- * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
860
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#65eeb949-74e5-4631-9184-c38387fe53e8
861
- * @param {string} symbol unified symbol of the market to fetch OHLCV data for
862
- * @param {string} timeframe the length of time each candle represents
863
- * @param {int} [since] timestamp in ms of the earliest candle to fetch
864
- * @param {int} [limit] the maximum amount of candles to fetch
865
- * @param {object} [params] extra parameters specific to the exchange API endpoint
866
- * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
867
- */
868
868
  await this.loadMarkets();
869
869
  const market = this.market(symbol);
870
870
  const request = {
@@ -963,17 +963,17 @@ class exmo extends exmo$1 {
963
963
  }
964
964
  return this.safeBalance(result);
965
965
  }
966
+ /**
967
+ * @method
968
+ * @name exmo#fetchBalance
969
+ * @description query for balance and get the amount of funds available for trading or funds locked in orders
970
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#59c5160f-27a1-4d9a-8cfb-7979c7ffaac6
971
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8388df7-1f9f-4d41-81c4-5a387d171dc6
972
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
973
+ * @param {string} [params.marginMode] *isolated* fetches the isolated margin balance
974
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
975
+ */
966
976
  async fetchBalance(params = {}) {
967
- /**
968
- * @method
969
- * @name exmo#fetchBalance
970
- * @description query for balance and get the amount of funds available for trading or funds locked in orders
971
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#59c5160f-27a1-4d9a-8cfb-7979c7ffaac6
972
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8388df7-1f9f-4d41-81c4-5a387d171dc6
973
- * @param {object} [params] extra parameters specific to the exchange API endpoint
974
- * @param {string} [params.marginMode] *isolated* fetches the isolated margin balance
975
- * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
976
- */
977
977
  await this.loadMarkets();
978
978
  let marginMode = undefined;
979
979
  [marginMode, params] = this.handleMarginModeAndParams('fetchBalance', params);
@@ -1012,17 +1012,17 @@ class exmo extends exmo$1 {
1012
1012
  }
1013
1013
  return this.parseBalance(response);
1014
1014
  }
1015
+ /**
1016
+ * @method
1017
+ * @name exmo#fetchOrderBook
1018
+ * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
1019
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
1020
+ * @param {string} symbol unified symbol of the market to fetch the order book for
1021
+ * @param {int} [limit] the maximum amount of order book entries to return
1022
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1023
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1024
+ */
1015
1025
  async fetchOrderBook(symbol, limit = undefined, params = {}) {
1016
- /**
1017
- * @method
1018
- * @name exmo#fetchOrderBook
1019
- * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
1020
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
1021
- * @param {string} symbol unified symbol of the market to fetch the order book for
1022
- * @param {int} [limit] the maximum amount of order book entries to return
1023
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1024
- * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
1025
- */
1026
1026
  await this.loadMarkets();
1027
1027
  const market = this.market(symbol);
1028
1028
  const request = {
@@ -1035,17 +1035,17 @@ class exmo extends exmo$1 {
1035
1035
  const result = this.safeDict(response, market['id']);
1036
1036
  return this.parseOrderBook(result, market['symbol'], undefined, 'bid', 'ask');
1037
1037
  }
1038
+ /**
1039
+ * @method
1040
+ * @name exmo#fetchOrderBooks
1041
+ * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
1042
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
1043
+ * @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
1044
+ * @param {int} [limit] max number of entries per orderbook to return, default is undefined
1045
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1046
+ * @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
1047
+ */
1038
1048
  async fetchOrderBooks(symbols = undefined, limit = undefined, params = {}) {
1039
- /**
1040
- * @method
1041
- * @name exmo#fetchOrderBooks
1042
- * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
1043
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
1044
- * @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
1045
- * @param {int} [limit] max number of entries per orderbook to return, default is undefined
1046
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1047
- * @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
1048
- */
1049
1049
  await this.loadMarkets();
1050
1050
  let ids = undefined;
1051
1051
  if (symbols === undefined) {
@@ -1116,16 +1116,16 @@ class exmo extends exmo$1 {
1116
1116
  'info': ticker,
1117
1117
  }, market);
1118
1118
  }
1119
+ /**
1120
+ * @method
1121
+ * @name exmo#fetchTickers
1122
+ * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
1123
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
1124
+ * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1125
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1126
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1127
+ */
1119
1128
  async fetchTickers(symbols = undefined, params = {}) {
1120
- /**
1121
- * @method
1122
- * @name exmo#fetchTickers
1123
- * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
1124
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
1125
- * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
1126
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1127
- * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1128
- */
1129
1129
  await this.loadMarkets();
1130
1130
  symbols = this.marketSymbols(symbols);
1131
1131
  const response = await this.publicGetTicker(params);
@@ -1155,16 +1155,16 @@ class exmo extends exmo$1 {
1155
1155
  }
1156
1156
  return this.filterByArrayTickers(result, 'symbol', symbols);
1157
1157
  }
1158
+ /**
1159
+ * @method
1160
+ * @name exmo#fetchTicker
1161
+ * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1162
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
1163
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
1164
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1165
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1166
+ */
1158
1167
  async fetchTicker(symbol, params = {}) {
1159
- /**
1160
- * @method
1161
- * @name exmo#fetchTicker
1162
- * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
1163
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
1164
- * @param {string} symbol unified symbol of the market to fetch the ticker for
1165
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1166
- * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
1167
- */
1168
1168
  await this.loadMarkets();
1169
1169
  const response = await this.publicGetTicker(params);
1170
1170
  const market = this.market(symbol);
@@ -1260,18 +1260,18 @@ class exmo extends exmo$1 {
1260
1260
  'fee': fee,
1261
1261
  }, market);
1262
1262
  }
1263
+ /**
1264
+ * @method
1265
+ * @name exmo#fetchTrades
1266
+ * @description get the list of most recent trades for a particular symbol
1267
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#5a5a9c0d-cf17-47f6-9d62-6d4404ebd5ac
1268
+ * @param {string} symbol unified symbol of the market to fetch trades for
1269
+ * @param {int} [since] timestamp in ms of the earliest trade to fetch
1270
+ * @param {int} [limit] the maximum amount of trades to fetch
1271
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1272
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1273
+ */
1263
1274
  async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
1264
- /**
1265
- * @method
1266
- * @name exmo#fetchTrades
1267
- * @description get the list of most recent trades for a particular symbol
1268
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#5a5a9c0d-cf17-47f6-9d62-6d4404ebd5ac
1269
- * @param {string} symbol unified symbol of the market to fetch trades for
1270
- * @param {int} [since] timestamp in ms of the earliest trade to fetch
1271
- * @param {int} [limit] the maximum amount of trades to fetch
1272
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1273
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
1274
- */
1275
1275
  await this.loadMarkets();
1276
1276
  const market = this.market(symbol);
1277
1277
  const request = {
@@ -1303,22 +1303,22 @@ class exmo extends exmo$1 {
1303
1303
  const data = this.safeList(response, market['id'], []);
1304
1304
  return this.parseTrades(data, market, since, limit);
1305
1305
  }
1306
+ /**
1307
+ * @method
1308
+ * @name exmo#fetchMyTrades
1309
+ * @description fetch all trades made by the user
1310
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#b8d8d9af-4f46-46a1-939b-ad261d79f452 // spot
1311
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#f4b1aaf8-399f-403b-ab5e-4926d967a106 // margin
1312
+ * @param {string} symbol a symbol is required but it can be a single string, or a non-empty array
1313
+ * @param {int} [since] the earliest time in ms to fetch trades for
1314
+ * @param {int} [limit] *required for margin orders* the maximum number of trades structures to retrieve
1315
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1316
+ *
1317
+ * EXCHANGE SPECIFIC PARAMETERS
1318
+ * @param {int} [params.offset] last deal offset, default = 0
1319
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1320
+ */
1306
1321
  async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
1307
- /**
1308
- * @method
1309
- * @name exmo#fetchMyTrades
1310
- * @description fetch all trades made by the user
1311
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#b8d8d9af-4f46-46a1-939b-ad261d79f452 // spot
1312
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#f4b1aaf8-399f-403b-ab5e-4926d967a106 // margin
1313
- * @param {string} symbol a symbol is required but it can be a single string, or a non-empty array
1314
- * @param {int} [since] the earliest time in ms to fetch trades for
1315
- * @param {int} [limit] *required for margin orders* the maximum number of trades structures to retrieve
1316
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1317
- *
1318
- * EXCHANGE SPECIFIC PARAMETERS
1319
- * @param {int} [params.offset] last deal offset, default = 0
1320
- * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1321
- */
1322
1322
  if (symbol === undefined) {
1323
1323
  throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
1324
1324
  }
@@ -1406,25 +1406,25 @@ class exmo extends exmo$1 {
1406
1406
  }
1407
1407
  return this.filterBySinceLimit(result, since, limit);
1408
1408
  }
1409
+ /**
1410
+ * @method
1411
+ * @name exmo#createOrder
1412
+ * @description create a trade order
1413
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#80daa469-ec59-4d0a-b229-6a311d8dd1cd
1414
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#de6f4321-eeac-468c-87f7-c4ad7062e265 // stop market
1415
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3561b86c-9ff1-436e-8e68-ac926b7eb523 // margin
1416
+ * @param {string} symbol unified symbol of the market to create an order in
1417
+ * @param {string} type 'market' or 'limit'
1418
+ * @param {string} side 'buy' or 'sell'
1419
+ * @param {float} amount how much of currency you want to trade in units of base currency
1420
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1421
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1422
+ * @param {float} [params.stopPrice] the price at which a trigger order is triggered at
1423
+ * @param {string} [params.timeInForce] *spot only* 'fok', 'ioc' or 'post_only'
1424
+ * @param {boolean} [params.postOnly] *spot only* true for post only orders
1425
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1426
+ */
1409
1427
  async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
1410
- /**
1411
- * @method
1412
- * @name exmo#createOrder
1413
- * @description create a trade order
1414
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#80daa469-ec59-4d0a-b229-6a311d8dd1cd
1415
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#de6f4321-eeac-468c-87f7-c4ad7062e265 // stop market
1416
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3561b86c-9ff1-436e-8e68-ac926b7eb523 // margin
1417
- * @param {string} symbol unified symbol of the market to create an order in
1418
- * @param {string} type 'market' or 'limit'
1419
- * @param {string} side 'buy' or 'sell'
1420
- * @param {float} amount how much of currency you want to trade in units of base currency
1421
- * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
1422
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1423
- * @param {float} [params.stopPrice] the price at which a trigger order is triggered at
1424
- * @param {string} [params.timeInForce] *spot only* 'fok', 'ioc' or 'post_only'
1425
- * @param {boolean} [params.postOnly] *spot only* true for post only orders
1426
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1427
- */
1428
1428
  await this.loadMarkets();
1429
1429
  const market = this.market(symbol);
1430
1430
  const isMarket = (type === 'market') && (price === undefined);
@@ -1523,21 +1523,21 @@ class exmo extends exmo$1 {
1523
1523
  }
1524
1524
  return this.parseOrder(response, market);
1525
1525
  }
1526
+ /**
1527
+ * @method
1528
+ * @name exmo#cancelOrder
1529
+ * @description cancels an open order
1530
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#1f710d4b-75bc-4b65-ad68-006f863a3f26
1531
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a4d0aae8-28f7-41ac-94fd-c4030130453d // stop market
1532
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#705dfec5-2b35-4667-862b-faf54eca6209 // margin
1533
+ * @param {string} id order id
1534
+ * @param {string} symbol not used by exmo cancelOrder ()
1535
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1536
+ * @param {boolean} [params.trigger] true to cancel a trigger order
1537
+ * @param {string} [params.marginMode] set to 'cross' or 'isolated' to cancel a margin order
1538
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1539
+ */
1526
1540
  async cancelOrder(id, symbol = undefined, params = {}) {
1527
- /**
1528
- * @method
1529
- * @name exmo#cancelOrder
1530
- * @description cancels an open order
1531
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#1f710d4b-75bc-4b65-ad68-006f863a3f26
1532
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a4d0aae8-28f7-41ac-94fd-c4030130453d // stop market
1533
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#705dfec5-2b35-4667-862b-faf54eca6209 // margin
1534
- * @param {string} id order id
1535
- * @param {string} symbol not used by exmo cancelOrder ()
1536
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1537
- * @param {boolean} [params.trigger] true to cancel a trigger order
1538
- * @param {string} [params.marginMode] set to 'cross' or 'isolated' to cancel a margin order
1539
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1540
- */
1541
1541
  await this.loadMarkets();
1542
1542
  const request = {};
1543
1543
  const stop = this.safeValue2(params, 'trigger', 'stop');
@@ -1576,16 +1576,17 @@ class exmo extends exmo$1 {
1576
1576
  }
1577
1577
  return this.parseOrder(response);
1578
1578
  }
1579
+ /**
1580
+ * @method
1581
+ * @name exmo#fetchOrder
1582
+ * @description *spot only* fetches information on an order made by the user
1583
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 // spot
1584
+ * @param {string} id order id
1585
+ * @param {string} symbol not used by exmo fetchOrder
1586
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1587
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1588
+ */
1579
1589
  async fetchOrder(id, symbol = undefined, params = {}) {
1580
- /**
1581
- * @method
1582
- * @name exmo#fetchOrder
1583
- * @description *spot only* fetches information on an order made by the user
1584
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 // spot
1585
- * @param {string} symbol not used by exmo fetchOrder
1586
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1587
- * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
1588
- */
1589
1590
  await this.loadMarkets();
1590
1591
  const request = {
1591
1592
  'order_id': id.toString(),
@@ -1616,21 +1617,21 @@ class exmo extends exmo$1 {
1616
1617
  order['id'] = id.toString();
1617
1618
  return order;
1618
1619
  }
1620
+ /**
1621
+ * @method
1622
+ * @name exmo#fetchOrderTrades
1623
+ * @description fetch all the trades made from a single order
1624
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 // spot
1625
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#00810661-9119-46c5-aec5-55abe9cb42c7 // margin
1626
+ * @param {string} id order id
1627
+ * @param {string} symbol unified market symbol
1628
+ * @param {int} [since] the earliest time in ms to fetch trades for
1629
+ * @param {int} [limit] the maximum number of trades to retrieve
1630
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1631
+ * @param {string} [params.marginMode] set to "isolated" to fetch trades for a margin order
1632
+ * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1633
+ */
1619
1634
  async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
1620
- /**
1621
- * @method
1622
- * @name exmo#fetchOrderTrades
1623
- * @description fetch all the trades made from a single order
1624
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 // spot
1625
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#00810661-9119-46c5-aec5-55abe9cb42c7 // margin
1626
- * @param {string} id order id
1627
- * @param {string} symbol unified market symbol
1628
- * @param {int} [since] the earliest time in ms to fetch trades for
1629
- * @param {int} [limit] the maximum number of trades to retrieve
1630
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1631
- * @param {string} [params.marginMode] set to "isolated" to fetch trades for a margin order
1632
- * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
1633
- */
1634
1635
  let marginMode = undefined;
1635
1636
  [marginMode, params] = this.handleMarginModeAndParams('fetchOrderTrades', params);
1636
1637
  if (marginMode === 'cross') {
@@ -1694,20 +1695,20 @@ class exmo extends exmo$1 {
1694
1695
  const trades = this.safeList(response, 'trades');
1695
1696
  return this.parseTrades(trades, market, since, limit);
1696
1697
  }
1698
+ /**
1699
+ * @method
1700
+ * @name exmo#fetchOpenOrders
1701
+ * @description fetch all unfilled currently open orders
1702
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#0e135370-daa4-4689-8acd-b6876dee9ba1 // spot open orders
1703
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a7cfd4f0-476e-4675-b33f-22a46902f245 // margin
1704
+ * @param {string} symbol unified market symbol
1705
+ * @param {int} [since] the earliest time in ms to fetch open orders for
1706
+ * @param {int} [limit] the maximum number of open orders structures to retrieve
1707
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1708
+ * @param {string} [params.marginMode] set to "isolated" for margin orders
1709
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1710
+ */
1697
1711
  async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
1698
- /**
1699
- * @method
1700
- * @name exmo#fetchOpenOrders
1701
- * @description fetch all unfilled currently open orders
1702
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#0e135370-daa4-4689-8acd-b6876dee9ba1 // spot open orders
1703
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a7cfd4f0-476e-4675-b33f-22a46902f245 // margin
1704
- * @param {string} symbol unified market symbol
1705
- * @param {int} [since] the earliest time in ms to fetch open orders for
1706
- * @param {int} [limit] the maximum number of open orders structures to retrieve
1707
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1708
- * @param {string} [params.marginMode] set to "isolated" for margin orders
1709
- * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1710
- */
1711
1712
  await this.loadMarkets();
1712
1713
  let market = undefined;
1713
1714
  if (symbol !== undefined) {
@@ -1958,20 +1959,20 @@ class exmo extends exmo$1 {
1958
1959
  'info': order,
1959
1960
  }, market);
1960
1961
  }
1962
+ /**
1963
+ * @method
1964
+ * @name exmo#fetchCanceledOrders
1965
+ * @description fetches information on multiple canceled orders made by the user
1966
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#1d2524dd-ae6d-403a-a067-77b50d13fbe5 // margin
1967
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a51be1d0-af5f-44e4-99d7-f7b04c6067d0 // spot canceled orders
1968
+ * @param {string} symbol unified market symbol of the market orders were made in
1969
+ * @param {int} [since] timestamp in ms of the earliest order, default is undefined
1970
+ * @param {int} [limit] max number of orders to return, default is undefined
1971
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1972
+ * @param {string} [params.marginMode] set to "isolated" for margin orders
1973
+ * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1974
+ */
1961
1975
  async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
1962
- /**
1963
- * @method
1964
- * @name exmo#fetchCanceledOrders
1965
- * @description fetches information on multiple canceled orders made by the user
1966
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#1d2524dd-ae6d-403a-a067-77b50d13fbe5 // margin
1967
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a51be1d0-af5f-44e4-99d7-f7b04c6067d0 // spot canceled orders
1968
- * @param {string} symbol unified market symbol of the market orders were made in
1969
- * @param {int} [since] timestamp in ms of the earliest order, default is undefined
1970
- * @param {int} [limit] max number of orders to return, default is undefined
1971
- * @param {object} [params] extra parameters specific to the exchange API endpoint
1972
- * @param {string} [params.marginMode] set to "isolated" for margin orders
1973
- * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
1974
- */
1975
1976
  await this.loadMarkets();
1976
1977
  let marginMode = undefined;
1977
1978
  [marginMode, params] = this.handleMarginModeAndParams('fetchOrders', params);
@@ -2055,28 +2056,28 @@ class exmo extends exmo$1 {
2055
2056
  return result;
2056
2057
  }
2057
2058
  }
2059
+ /**
2060
+ * @method
2061
+ * @name exmo#editOrder
2062
+ * @description *margin only* edit a trade order
2063
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#f27ee040-c75f-4b59-b608-d05bd45b7899 // margin
2064
+ * @param {string} id order id
2065
+ * @param {string} symbol unified CCXT market symbol
2066
+ * @param {string} type not used by exmo editOrder
2067
+ * @param {string} side not used by exmo editOrder
2068
+ * @param {float} [amount] how much of the currency you want to trade in units of the base currency
2069
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2070
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2071
+ * @param {float} [params.triggerPrice] stop price for stop-market and stop-limit orders
2072
+ * @param {string} params.marginMode must be set to isolated
2073
+ *
2074
+ * EXCHANGE SPECIFIC PARAMETERS
2075
+ * @param {int} [params.distance] distance for trailing stop orders
2076
+ * @param {int} [params.expire] expiration timestamp in UTC timezone for the order. order will not be expired if expire is 0
2077
+ * @param {string} [params.comment] optional comment for order. up to 50 latin symbols, whitespaces, underscores
2078
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2079
+ */
2058
2080
  async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
2059
- /**
2060
- * @method
2061
- * @name exmo#editOrder
2062
- * @description *margin only* edit a trade order
2063
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#f27ee040-c75f-4b59-b608-d05bd45b7899 // margin
2064
- * @param {string} id order id
2065
- * @param {string} symbol unified CCXT market symbol
2066
- * @param {string} type not used by exmo editOrder
2067
- * @param {string} side not used by exmo editOrder
2068
- * @param {float} [amount] how much of the currency you want to trade in units of the base currency
2069
- * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
2070
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2071
- * @param {float} [params.triggerPrice] stop price for stop-market and stop-limit orders
2072
- * @param {string} params.marginMode must be set to isolated
2073
- *
2074
- * EXCHANGE SPECIFIC PARAMETERS
2075
- * @param {int} [params.distance] distance for trailing stop orders
2076
- * @param {int} [params.expire] expiration timestamp in UTC timezone for the order. order will not be expired if expire is 0
2077
- * @param {string} [params.comment] optional comment for order. up to 50 latin symbols, whitespaces, underscores
2078
- * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
2079
- */
2080
2081
  await this.loadMarkets();
2081
2082
  const market = this.market(symbol);
2082
2083
  let marginMode = undefined;
@@ -2101,16 +2102,16 @@ class exmo extends exmo$1 {
2101
2102
  const response = await this.privatePostMarginUserOrderUpdate(this.extend(request, params));
2102
2103
  return this.parseOrder(response);
2103
2104
  }
2105
+ /**
2106
+ * @method
2107
+ * @name exmo#fetchDepositAddress
2108
+ * @description fetch the deposit address for a currency associated with this account
2109
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8f9ced9-7ab6-4383-a6a4-bc54469ba60e
2110
+ * @param {string} code unified currency code
2111
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2112
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2113
+ */
2104
2114
  async fetchDepositAddress(code, params = {}) {
2105
- /**
2106
- * @method
2107
- * @name exmo#fetchDepositAddress
2108
- * @description fetch the deposit address for a currency associated with this account
2109
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8f9ced9-7ab6-4383-a6a4-bc54469ba60e
2110
- * @param {string} code unified currency code
2111
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2112
- * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
2113
- */
2114
2115
  await this.loadMarkets();
2115
2116
  const response = await this.privatePostDepositAddress(params);
2116
2117
  //
@@ -2148,19 +2149,19 @@ class exmo extends exmo$1 {
2148
2149
  }
2149
2150
  return undefined;
2150
2151
  }
2152
+ /**
2153
+ * @method
2154
+ * @name exmo#withdraw
2155
+ * @description make a withdrawal
2156
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3ab9c34d-ad58-4f87-9c57-2e2ea88a8325
2157
+ * @param {string} code unified currency code
2158
+ * @param {float} amount the amount to withdraw
2159
+ * @param {string} address the address to withdraw to
2160
+ * @param {string} tag
2161
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2162
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2163
+ */
2151
2164
  async withdraw(code, amount, address, tag = undefined, params = {}) {
2152
- /**
2153
- * @method
2154
- * @name exmo#withdraw
2155
- * @description make a withdrawal
2156
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3ab9c34d-ad58-4f87-9c57-2e2ea88a8325
2157
- * @param {string} code unified currency code
2158
- * @param {float} amount the amount to withdraw
2159
- * @param {string} address the address to withdraw to
2160
- * @param {string} tag
2161
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2162
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2163
- */
2164
2165
  [tag, params] = this.handleWithdrawTagAndParams(tag, params);
2165
2166
  await this.loadMarkets();
2166
2167
  const currency = this.currency(code);
@@ -2328,18 +2329,18 @@ class exmo extends exmo$1 {
2328
2329
  'fee': fee,
2329
2330
  };
2330
2331
  }
2332
+ /**
2333
+ * @method
2334
+ * @name exmo#fetchDepositsWithdrawals
2335
+ * @description fetch history of deposits and withdrawals
2336
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#31e69a33-4849-4e6a-b4b4-6d574238f6a7
2337
+ * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
2338
+ * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
2339
+ * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
2340
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2341
+ * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2342
+ */
2331
2343
  async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
2332
- /**
2333
- * @method
2334
- * @name exmo#fetchDepositsWithdrawals
2335
- * @description fetch history of deposits and withdrawals
2336
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#31e69a33-4849-4e6a-b4b4-6d574238f6a7
2337
- * @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
2338
- * @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
2339
- * @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
2340
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2341
- * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2342
- */
2343
2344
  await this.loadMarkets();
2344
2345
  const request = {};
2345
2346
  if (since !== undefined) {
@@ -2382,18 +2383,18 @@ class exmo extends exmo$1 {
2382
2383
  //
2383
2384
  return this.parseTransactions(response['history'], currency, since, limit);
2384
2385
  }
2386
+ /**
2387
+ * @method
2388
+ * @name exmo#fetchWithdrawals
2389
+ * @description fetch all withdrawals made from an account
2390
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
2391
+ * @param {string} code unified currency code
2392
+ * @param {int} [since] the earliest time in ms to fetch withdrawals for
2393
+ * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2394
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2395
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2396
+ */
2385
2397
  async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
2386
- /**
2387
- * @method
2388
- * @name exmo#fetchWithdrawals
2389
- * @description fetch all withdrawals made from an account
2390
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
2391
- * @param {string} code unified currency code
2392
- * @param {int} [since] the earliest time in ms to fetch withdrawals for
2393
- * @param {int} [limit] the maximum number of withdrawals structures to retrieve
2394
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2395
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2396
- */
2397
2398
  await this.loadMarkets();
2398
2399
  let currency = undefined;
2399
2400
  const request = {
@@ -2436,17 +2437,17 @@ class exmo extends exmo$1 {
2436
2437
  const items = this.safeList(response, 'items', []);
2437
2438
  return this.parseTransactions(items, currency, since, limit);
2438
2439
  }
2440
+ /**
2441
+ * @method
2442
+ * @name exmo#fetchWithdrawal
2443
+ * @description fetch data on a currency withdrawal via the withdrawal id
2444
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
2445
+ * @param {string} id withdrawal id
2446
+ * @param {string} code unified currency code of the currency withdrawn, default is undefined
2447
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2448
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2449
+ */
2439
2450
  async fetchWithdrawal(id, code = undefined, params = {}) {
2440
- /**
2441
- * @method
2442
- * @name exmo#fetchWithdrawal
2443
- * @description fetch data on a currency withdrawal via the withdrawal id
2444
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
2445
- * @param {string} id withdrawal id
2446
- * @param {string} code unified currency code of the currency withdrawn, default is undefined
2447
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2448
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2449
- */
2450
2451
  await this.loadMarkets();
2451
2452
  let currency = undefined;
2452
2453
  const request = {
@@ -2488,17 +2489,17 @@ class exmo extends exmo$1 {
2488
2489
  const first = this.safeDict(items, 0, {});
2489
2490
  return this.parseTransaction(first, currency);
2490
2491
  }
2492
+ /**
2493
+ * @method
2494
+ * @name exmo#fetchDeposit
2495
+ * @description fetch information on a deposit
2496
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
2497
+ * @param {string} id deposit id
2498
+ * @param {string} code unified currency code, default is undefined
2499
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2500
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2501
+ */
2491
2502
  async fetchDeposit(id = undefined, code = undefined, params = {}) {
2492
- /**
2493
- * @method
2494
- * @name exmo#fetchDeposit
2495
- * @description fetch information on a deposit
2496
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
2497
- * @param {string} id deposit id
2498
- * @param {string} code unified currency code, default is undefined
2499
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2500
- * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2501
- */
2502
2503
  await this.loadMarkets();
2503
2504
  let currency = undefined;
2504
2505
  const request = {
@@ -2540,18 +2541,18 @@ class exmo extends exmo$1 {
2540
2541
  const first = this.safeDict(items, 0, {});
2541
2542
  return this.parseTransaction(first, currency);
2542
2543
  }
2544
+ /**
2545
+ * @method
2546
+ * @name exmo#fetchDeposits
2547
+ * @description fetch all deposits made to an account
2548
+ * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
2549
+ * @param {string} code unified currency code
2550
+ * @param {int} [since] the earliest time in ms to fetch deposits for
2551
+ * @param {int} [limit] the maximum number of deposits structures to retrieve
2552
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
2553
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2554
+ */
2543
2555
  async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
2544
- /**
2545
- * @method
2546
- * @name exmo#fetchDeposits
2547
- * @description fetch all deposits made to an account
2548
- * @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
2549
- * @param {string} code unified currency code
2550
- * @param {int} [since] the earliest time in ms to fetch deposits for
2551
- * @param {int} [limit] the maximum number of deposits structures to retrieve
2552
- * @param {object} [params] extra parameters specific to the exchange API endpoint
2553
- * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
2554
- */
2555
2556
  await this.loadMarkets();
2556
2557
  let currency = undefined;
2557
2558
  const request = {