ccxt 4.5.82 → 4.5.83

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 (446) hide show
  1. package/README.md +5 -4
  2. package/dist/ccxt.browser.min.js +2 -2
  3. package/dist/cjs/ccxt.js +3 -1
  4. package/dist/cjs/src/abstract/prediction/sxbet.js +11 -0
  5. package/dist/cjs/src/apex.js +1 -0
  6. package/dist/cjs/src/aster.js +2 -2
  7. package/dist/cjs/src/base/Exchange.js +1 -1
  8. package/dist/cjs/src/bigone.js +2 -2
  9. package/dist/cjs/src/binance.js +10 -10
  10. package/dist/cjs/src/bingx.js +3 -3
  11. package/dist/cjs/src/bit2c.js +4 -4
  12. package/dist/cjs/src/bitbank.js +15 -15
  13. package/dist/cjs/src/bitfinex.js +15 -15
  14. package/dist/cjs/src/bitget.js +109 -73
  15. package/dist/cjs/src/bitmex.js +7 -7
  16. package/dist/cjs/src/bitopro.js +2 -2
  17. package/dist/cjs/src/bitrue.js +6 -6
  18. package/dist/cjs/src/bitso.js +18 -18
  19. package/dist/cjs/src/bitstamp.js +5 -5
  20. package/dist/cjs/src/bitteam.js +32 -32
  21. package/dist/cjs/src/bittrade.js +10 -10
  22. package/dist/cjs/src/bitvavo.js +9 -9
  23. package/dist/cjs/src/blockchaincom.js +2 -2
  24. package/dist/cjs/src/btcbox.js +2 -2
  25. package/dist/cjs/src/btcmarkets.js +2 -2
  26. package/dist/cjs/src/btcturk.js +2 -2
  27. package/dist/cjs/src/btse.js +2 -2
  28. package/dist/cjs/src/bybitid.js +4 -0
  29. package/dist/cjs/src/coinbase.js +1 -1
  30. package/dist/cjs/src/coinbaseexchange.js +13 -13
  31. package/dist/cjs/src/coincheck.js +4 -4
  32. package/dist/cjs/src/coinex.js +10 -10
  33. package/dist/cjs/src/coinmate.js +4 -4
  34. package/dist/cjs/src/coinone.js +4 -4
  35. package/dist/cjs/src/coinsph.js +5 -5
  36. package/dist/cjs/src/cryptocom.js +5 -5
  37. package/dist/cjs/src/deribit.js +31 -31
  38. package/dist/cjs/src/derive.js +1 -1
  39. package/dist/cjs/src/digifinex.js +31 -31
  40. package/dist/cjs/src/gate.js +25 -25
  41. package/dist/cjs/src/gemini.js +5 -5
  42. package/dist/cjs/src/grvt.js +1 -1
  43. package/dist/cjs/src/hibachi.js +5 -5
  44. package/dist/cjs/src/hitbtc.js +15 -15
  45. package/dist/cjs/src/hollaex.js +15 -15
  46. package/dist/cjs/src/htx.js +52 -52
  47. package/dist/cjs/src/hyperliquid.js +2 -2
  48. package/dist/cjs/src/independentreserve.js +2 -2
  49. package/dist/cjs/src/indodax.js +8 -8
  50. package/dist/cjs/src/kraken.js +29 -29
  51. package/dist/cjs/src/krakenfutures.js +16 -16
  52. package/dist/cjs/src/kucoin.js +15 -15
  53. package/dist/cjs/src/latoken.js +8 -8
  54. package/dist/cjs/src/lbank.js +31 -31
  55. package/dist/cjs/src/lighter.js +2 -2
  56. package/dist/cjs/src/luno.js +2 -2
  57. package/dist/cjs/src/mercado.js +12 -12
  58. package/dist/cjs/src/mexc.js +27 -27
  59. package/dist/cjs/src/modetrade.js +10 -10
  60. package/dist/cjs/src/ndax.js +4 -4
  61. package/dist/cjs/src/okx.js +19 -20
  62. package/dist/cjs/src/onetrading.js +7 -7
  63. package/dist/cjs/src/p2b.js +8 -8
  64. package/dist/cjs/src/pacifica.js +9 -3
  65. package/dist/cjs/src/paymium.js +2 -2
  66. package/dist/cjs/src/phemex.js +37 -37
  67. package/dist/cjs/src/poloniex.js +14 -14
  68. package/dist/cjs/src/prediction/sxbet.js +2710 -0
  69. package/dist/cjs/src/pro/alpaca.js +5 -5
  70. package/dist/cjs/src/pro/apex.js +6 -6
  71. package/dist/cjs/src/pro/aster.js +8 -8
  72. package/dist/cjs/src/pro/backpack.js +1 -1
  73. package/dist/cjs/src/pro/binance.js +26 -26
  74. package/dist/cjs/src/pro/bingx.js +11 -11
  75. package/dist/cjs/src/pro/bitfinex.js +11 -11
  76. package/dist/cjs/src/pro/bitget.js +20 -20
  77. package/dist/cjs/src/pro/bithumb.js +1 -1
  78. package/dist/cjs/src/pro/bitmex.js +12 -12
  79. package/dist/cjs/src/pro/bitopro.js +5 -5
  80. package/dist/cjs/src/pro/bitrue.js +7 -7
  81. package/dist/cjs/src/pro/bitstamp.js +5 -5
  82. package/dist/cjs/src/pro/bittrade.js +11 -11
  83. package/dist/cjs/src/pro/bitvavo.js +16 -16
  84. package/dist/cjs/src/pro/blockchaincom.js +5 -5
  85. package/dist/cjs/src/pro/blofin.js +2 -2
  86. package/dist/cjs/src/pro/bybit.js +21 -21
  87. package/dist/cjs/src/pro/bydfi.js +2 -2
  88. package/dist/cjs/src/pro/cex.js +19 -19
  89. package/dist/cjs/src/pro/coinbase.js +2 -2
  90. package/dist/cjs/src/pro/coinbaseexchange.js +9 -9
  91. package/dist/cjs/src/pro/coinbaseinternational.js +2 -2
  92. package/dist/cjs/src/pro/coincheck.js +2 -2
  93. package/dist/cjs/src/pro/coinex.js +3 -3
  94. package/dist/cjs/src/pro/coinone.js +6 -6
  95. package/dist/cjs/src/pro/cryptocom.js +10 -10
  96. package/dist/cjs/src/pro/deribit.js +13 -13
  97. package/dist/cjs/src/pro/derive.js +4 -4
  98. package/dist/cjs/src/pro/dydx.js +1 -1
  99. package/dist/cjs/src/pro/extended.js +16 -10
  100. package/dist/cjs/src/pro/gate.js +10 -10
  101. package/dist/cjs/src/pro/gemini.js +3 -3
  102. package/dist/cjs/src/pro/grvt.js +2 -2
  103. package/dist/cjs/src/pro/hashkey.js +2 -2
  104. package/dist/cjs/src/pro/hitbtc.js +6 -6
  105. package/dist/cjs/src/pro/hollaex.js +3 -3
  106. package/dist/cjs/src/pro/htx.js +28 -28
  107. package/dist/cjs/src/pro/hyperliquid.js +1 -1
  108. package/dist/cjs/src/pro/independentreserve.js +2 -2
  109. package/dist/cjs/src/pro/kraken.js +7 -7
  110. package/dist/cjs/src/pro/krakenfutures.js +12 -12
  111. package/dist/cjs/src/pro/kucoin.js +12 -12
  112. package/dist/cjs/src/pro/lbank.js +16 -16
  113. package/dist/cjs/src/pro/luno.js +2 -2
  114. package/dist/cjs/src/pro/mexc.js +8 -8
  115. package/dist/cjs/src/pro/modetrade.js +3 -3
  116. package/dist/cjs/src/pro/mudrex.js +2 -2
  117. package/dist/cjs/src/pro/nado.js +3 -3
  118. package/dist/cjs/src/pro/ndax.js +6 -6
  119. package/dist/cjs/src/pro/okx.js +20 -20
  120. package/dist/cjs/src/pro/onetrading.js +14 -14
  121. package/dist/cjs/src/pro/p2b.js +5 -5
  122. package/dist/cjs/src/pro/pacifica.js +1 -1
  123. package/dist/cjs/src/pro/paradex.js +1 -1
  124. package/dist/cjs/src/pro/phemex.js +13 -13
  125. package/dist/cjs/src/pro/poloniex.js +17 -17
  126. package/dist/cjs/src/pro/toobit.js +2 -2
  127. package/dist/cjs/src/pro/upbit.js +4 -4
  128. package/dist/cjs/src/pro/weex.js +2 -2
  129. package/dist/cjs/src/pro/whitebit.js +12 -12
  130. package/dist/cjs/src/pro/woo.js +13 -13
  131. package/dist/cjs/src/pro/woofipro.js +3 -3
  132. package/dist/cjs/src/pro/xt.js +3 -3
  133. package/dist/cjs/src/tokocrypto.js +20 -20
  134. package/dist/cjs/src/upbit.js +12 -12
  135. package/dist/cjs/src/whitebit.js +15 -15
  136. package/dist/cjs/src/woo.js +3 -3
  137. package/dist/cjs/src/woofipro.js +14 -14
  138. package/dist/cjs/src/zaif.js +9 -3
  139. package/dist/cjs/src/zebpay.js +1 -1
  140. package/js/ccxt.d.ts +4 -1
  141. package/js/ccxt.js +3 -1
  142. package/js/src/abstract/prediction/sxbet.d.ts +41 -0
  143. package/js/src/abstract/prediction/sxbet.js +11 -0
  144. package/js/src/alpaca.d.ts +28 -33
  145. package/js/src/apex.d.ts +28 -42
  146. package/js/src/apex.js +1 -0
  147. package/js/src/aster.d.ts +58 -108
  148. package/js/src/aster.js +2 -2
  149. package/js/src/backpack.d.ts +34 -48
  150. package/js/src/base/Exchange.d.ts +304 -320
  151. package/js/src/base/Exchange.js +1 -1
  152. package/js/src/bigone.d.ts +24 -29
  153. package/js/src/bigone.js +2 -2
  154. package/js/src/binance.d.ts +112 -138
  155. package/js/src/binance.js +10 -10
  156. package/js/src/binancecoinm.d.ts +3 -2
  157. package/js/src/binanceusdm.d.ts +3 -2
  158. package/js/src/bingx.d.ts +65 -84
  159. package/js/src/bingx.js +3 -3
  160. package/js/src/bit2c.d.ts +13 -18
  161. package/js/src/bit2c.js +4 -4
  162. package/js/src/bitbank.d.ts +16 -21
  163. package/js/src/bitbank.js +15 -15
  164. package/js/src/bitbns.d.ts +15 -20
  165. package/js/src/bitfinex.d.ts +46 -51
  166. package/js/src/bitfinex.js +15 -15
  167. package/js/src/bitflyer.d.ts +20 -25
  168. package/js/src/bitget.d.ts +105 -93
  169. package/js/src/bitget.js +109 -73
  170. package/js/src/bithumb.d.ts +26 -31
  171. package/js/src/bitmex.d.ts +48 -65
  172. package/js/src/bitmex.js +7 -7
  173. package/js/src/bitopro.d.ts +25 -41
  174. package/js/src/bitopro.js +2 -2
  175. package/js/src/bitrue.d.ts +30 -45
  176. package/js/src/bitrue.js +6 -6
  177. package/js/src/bitso.d.ts +24 -29
  178. package/js/src/bitso.js +18 -18
  179. package/js/src/bitstamp.d.ts +36 -47
  180. package/js/src/bitstamp.js +5 -5
  181. package/js/src/bitteam.d.ts +22 -27
  182. package/js/src/bitteam.js +32 -32
  183. package/js/src/bittrade.d.ts +35 -46
  184. package/js/src/bittrade.js +10 -10
  185. package/js/src/bitvavo.d.ts +43 -48
  186. package/js/src/bitvavo.js +9 -9
  187. package/js/src/blockchaincom.d.ts +26 -31
  188. package/js/src/blockchaincom.js +2 -2
  189. package/js/src/blofin.d.ts +38 -43
  190. package/js/src/btcbox.d.ts +14 -19
  191. package/js/src/btcbox.js +2 -2
  192. package/js/src/btcmarkets.d.ts +25 -30
  193. package/js/src/btcmarkets.js +2 -2
  194. package/js/src/btcturk.d.ts +13 -18
  195. package/js/src/btcturk.js +2 -2
  196. package/js/src/btse.d.ts +44 -50
  197. package/js/src/btse.js +2 -2
  198. package/js/src/bullish.d.ts +35 -57
  199. package/js/src/bybit.d.ts +95 -106
  200. package/js/src/bybitid.js +4 -0
  201. package/js/src/bydfi.d.ts +37 -48
  202. package/js/src/cex.d.ts +29 -34
  203. package/js/src/coinbase.d.ts +66 -82
  204. package/js/src/coinbase.js +1 -1
  205. package/js/src/coinbaseexchange.d.ts +33 -43
  206. package/js/src/coinbaseexchange.js +13 -13
  207. package/js/src/coinbaseinternational.d.ts +34 -73
  208. package/js/src/coincheck.d.ts +13 -18
  209. package/js/src/coincheck.js +4 -4
  210. package/js/src/coinex.d.ts +63 -68
  211. package/js/src/coinex.js +10 -10
  212. package/js/src/coinmate.d.ts +15 -20
  213. package/js/src/coinmate.js +4 -4
  214. package/js/src/coinone.d.ts +14 -19
  215. package/js/src/coinone.js +4 -4
  216. package/js/src/coinsph.d.ts +32 -37
  217. package/js/src/coinsph.js +5 -5
  218. package/js/src/coinspot.d.ts +10 -15
  219. package/js/src/cryptocom.d.ts +48 -64
  220. package/js/src/cryptocom.js +5 -5
  221. package/js/src/cryptomus.d.ts +15 -23
  222. package/js/src/deepcoin.d.ts +43 -48
  223. package/js/src/delta.d.ts +43 -54
  224. package/js/src/deribit.d.ts +48 -69
  225. package/js/src/deribit.js +31 -31
  226. package/js/src/derive.d.ts +28 -42
  227. package/js/src/derive.js +1 -1
  228. package/js/src/digifinex.d.ts +54 -67
  229. package/js/src/digifinex.js +31 -31
  230. package/js/src/dydx.d.ts +26 -31
  231. package/js/src/extended.d.ts +51 -56
  232. package/js/src/foxbit.d.ts +34 -64
  233. package/js/src/gate.d.ts +94 -162
  234. package/js/src/gate.js +25 -25
  235. package/js/src/gemini.d.ts +33 -43
  236. package/js/src/gemini.js +5 -5
  237. package/js/src/grvt.d.ts +36 -47
  238. package/js/src/grvt.js +1 -1
  239. package/js/src/hashkey.d.ts +58 -78
  240. package/js/src/hibachi.d.ts +42 -52
  241. package/js/src/hibachi.js +5 -5
  242. package/js/src/hitbtc.d.ts +49 -56
  243. package/js/src/hitbtc.js +15 -15
  244. package/js/src/hollaex.d.ts +26 -31
  245. package/js/src/hollaex.js +15 -15
  246. package/js/src/htx.d.ts +80 -121
  247. package/js/src/htx.js +52 -52
  248. package/js/src/hyperliquid.d.ts +77 -127
  249. package/js/src/hyperliquid.js +2 -2
  250. package/js/src/independentreserve.d.ts +15 -20
  251. package/js/src/independentreserve.js +2 -2
  252. package/js/src/indodax.d.ts +19 -24
  253. package/js/src/indodax.js +8 -8
  254. package/js/src/kraken.d.ts +43 -55
  255. package/js/src/kraken.js +29 -29
  256. package/js/src/krakenfutures.d.ts +34 -39
  257. package/js/src/krakenfutures.js +16 -16
  258. package/js/src/kucoin.d.ts +121 -132
  259. package/js/src/kucoin.js +15 -15
  260. package/js/src/kucoinfutures.d.ts +4 -4
  261. package/js/src/latoken.d.ts +24 -29
  262. package/js/src/latoken.js +8 -8
  263. package/js/src/lbank.d.ts +40 -53
  264. package/js/src/lbank.js +31 -31
  265. package/js/src/lighter.d.ts +40 -45
  266. package/js/src/lighter.js +2 -2
  267. package/js/src/luno.d.ts +25 -30
  268. package/js/src/luno.js +2 -2
  269. package/js/src/mercado.d.ts +15 -20
  270. package/js/src/mercado.js +12 -12
  271. package/js/src/mexc.d.ts +70 -83
  272. package/js/src/mexc.js +27 -27
  273. package/js/src/modetrade.d.ts +43 -57
  274. package/js/src/modetrade.js +10 -10
  275. package/js/src/mudrex.d.ts +25 -35
  276. package/js/src/nado.d.ts +45 -50
  277. package/js/src/ndax.d.ts +27 -32
  278. package/js/src/ndax.js +4 -4
  279. package/js/src/okx.d.ts +97 -108
  280. package/js/src/okx.js +19 -20
  281. package/js/src/onetrading.d.ts +23 -31
  282. package/js/src/onetrading.js +7 -7
  283. package/js/src/p2b.d.ts +17 -22
  284. package/js/src/p2b.js +8 -8
  285. package/js/src/pacifica.d.ts +55 -73
  286. package/js/src/pacifica.js +9 -3
  287. package/js/src/paradex.d.ts +47 -68
  288. package/js/src/paymium.d.ts +12 -17
  289. package/js/src/paymium.js +2 -2
  290. package/js/src/phemex.d.ts +47 -52
  291. package/js/src/phemex.js +37 -37
  292. package/js/src/poloniex.d.ts +45 -50
  293. package/js/src/poloniex.js +14 -14
  294. package/js/src/prediction/sxbet.d.ts +595 -0
  295. package/js/src/prediction/sxbet.js +2708 -0
  296. package/js/src/pro/alpaca.d.ts +23 -23
  297. package/js/src/pro/alpaca.js +5 -5
  298. package/js/src/pro/apex.d.ts +28 -28
  299. package/js/src/pro/apex.js +6 -6
  300. package/js/src/pro/aster.d.ts +33 -33
  301. package/js/src/pro/aster.js +8 -8
  302. package/js/src/pro/backpack.d.ts +28 -28
  303. package/js/src/pro/backpack.js +1 -1
  304. package/js/src/pro/binance.d.ts +57 -57
  305. package/js/src/pro/binance.js +26 -26
  306. package/js/src/pro/bingx.d.ts +26 -26
  307. package/js/src/pro/bingx.js +11 -11
  308. package/js/src/pro/bitfinex.d.ts +25 -25
  309. package/js/src/pro/bitfinex.js +11 -11
  310. package/js/src/pro/bitget.d.ts +41 -41
  311. package/js/src/pro/bitget.js +20 -20
  312. package/js/src/pro/bithumb.d.ts +15 -15
  313. package/js/src/pro/bithumb.js +1 -1
  314. package/js/src/pro/bitmex.d.ts +29 -29
  315. package/js/src/pro/bitmex.js +12 -12
  316. package/js/src/pro/bitopro.d.ts +13 -13
  317. package/js/src/pro/bitopro.js +5 -5
  318. package/js/src/pro/bitrue.d.ts +25 -25
  319. package/js/src/pro/bitrue.js +7 -7
  320. package/js/src/pro/bitstamp.d.ts +21 -21
  321. package/js/src/pro/bitstamp.js +5 -5
  322. package/js/src/pro/bittrade.d.ts +19 -19
  323. package/js/src/pro/bittrade.js +11 -11
  324. package/js/src/pro/bitvavo.d.ts +62 -62
  325. package/js/src/pro/bitvavo.js +16 -16
  326. package/js/src/pro/blockchaincom.d.ts +19 -19
  327. package/js/src/pro/blockchaincom.js +5 -5
  328. package/js/src/pro/blofin.d.ts +23 -23
  329. package/js/src/pro/blofin.js +2 -2
  330. package/js/src/pro/bullish.d.ts +19 -25
  331. package/js/src/pro/bybit.d.ts +42 -45
  332. package/js/src/pro/bybit.js +21 -21
  333. package/js/src/pro/bydfi.d.ts +24 -24
  334. package/js/src/pro/bydfi.js +2 -2
  335. package/js/src/pro/cex.d.ts +37 -37
  336. package/js/src/pro/cex.js +19 -19
  337. package/js/src/pro/coinbase.d.ts +19 -19
  338. package/js/src/pro/coinbase.js +2 -2
  339. package/js/src/pro/coinbaseexchange.d.ts +25 -25
  340. package/js/src/pro/coinbaseexchange.js +9 -9
  341. package/js/src/pro/coinbaseinternational.d.ts +20 -20
  342. package/js/src/pro/coinbaseinternational.js +2 -2
  343. package/js/src/pro/coincheck.d.ts +5 -5
  344. package/js/src/pro/coincheck.js +2 -2
  345. package/js/src/pro/coinex.d.ts +24 -24
  346. package/js/src/pro/coinex.js +3 -3
  347. package/js/src/pro/coinone.d.ts +9 -11
  348. package/js/src/pro/coinone.js +6 -6
  349. package/js/src/pro/cryptocom.d.ts +40 -40
  350. package/js/src/pro/cryptocom.js +10 -10
  351. package/js/src/pro/deepcoin.d.ts +24 -32
  352. package/js/src/pro/deribit.d.ts +24 -24
  353. package/js/src/pro/deribit.js +13 -13
  354. package/js/src/pro/derive.d.ts +22 -22
  355. package/js/src/pro/derive.js +4 -4
  356. package/js/src/pro/dydx.d.ts +9 -9
  357. package/js/src/pro/dydx.js +1 -1
  358. package/js/src/pro/extended.d.ts +22 -22
  359. package/js/src/pro/extended.js +16 -10
  360. package/js/src/pro/gate.d.ts +50 -50
  361. package/js/src/pro/gate.js +10 -10
  362. package/js/src/pro/gemini.d.ts +26 -26
  363. package/js/src/pro/gemini.js +3 -3
  364. package/js/src/pro/grvt.d.ts +22 -22
  365. package/js/src/pro/grvt.js +2 -2
  366. package/js/src/pro/hashkey.d.ts +19 -19
  367. package/js/src/pro/hashkey.js +2 -2
  368. package/js/src/pro/hitbtc.d.ts +32 -32
  369. package/js/src/pro/hitbtc.js +6 -6
  370. package/js/src/pro/hollaex.d.ts +15 -17
  371. package/js/src/pro/hollaex.js +3 -3
  372. package/js/src/pro/htx.d.ts +36 -36
  373. package/js/src/pro/htx.js +28 -28
  374. package/js/src/pro/hyperliquid.d.ts +29 -31
  375. package/js/src/pro/hyperliquid.js +1 -1
  376. package/js/src/pro/independentreserve.d.ts +10 -10
  377. package/js/src/pro/independentreserve.js +2 -2
  378. package/js/src/pro/kraken.d.ts +41 -55
  379. package/js/src/pro/kraken.js +7 -7
  380. package/js/src/pro/krakenfutures.d.ts +32 -32
  381. package/js/src/pro/krakenfutures.js +12 -12
  382. package/js/src/pro/kucoin.d.ts +69 -72
  383. package/js/src/pro/kucoin.js +12 -12
  384. package/js/src/pro/kucoinfutures.d.ts +4 -4
  385. package/js/src/pro/lbank.d.ts +22 -22
  386. package/js/src/pro/lbank.js +16 -16
  387. package/js/src/pro/lighter.d.ts +27 -27
  388. package/js/src/pro/luno.d.ts +8 -8
  389. package/js/src/pro/luno.js +2 -2
  390. package/js/src/pro/mexc.d.ts +33 -33
  391. package/js/src/pro/mexc.js +8 -8
  392. package/js/src/pro/modetrade.d.ts +37 -39
  393. package/js/src/pro/modetrade.js +3 -3
  394. package/js/src/pro/mudrex.d.ts +8 -8
  395. package/js/src/pro/mudrex.js +2 -2
  396. package/js/src/pro/nado.d.ts +42 -46
  397. package/js/src/pro/nado.js +3 -3
  398. package/js/src/pro/ndax.d.ts +12 -12
  399. package/js/src/pro/ndax.js +6 -6
  400. package/js/src/pro/okx.d.ts +49 -49
  401. package/js/src/pro/okx.js +20 -20
  402. package/js/src/pro/onetrading.d.ts +28 -28
  403. package/js/src/pro/onetrading.js +14 -14
  404. package/js/src/pro/p2b.d.ts +15 -19
  405. package/js/src/pro/p2b.js +5 -5
  406. package/js/src/pro/pacifica.d.ts +22 -22
  407. package/js/src/pro/pacifica.js +1 -1
  408. package/js/src/pro/paradex.d.ts +18 -18
  409. package/js/src/pro/paradex.js +1 -1
  410. package/js/src/pro/phemex.d.ts +25 -25
  411. package/js/src/pro/phemex.js +13 -13
  412. package/js/src/pro/poloniex.d.ts +30 -32
  413. package/js/src/pro/poloniex.js +17 -17
  414. package/js/src/pro/toobit.d.ts +31 -31
  415. package/js/src/pro/toobit.js +2 -2
  416. package/js/src/pro/upbit.d.ts +24 -24
  417. package/js/src/pro/upbit.js +4 -4
  418. package/js/src/pro/weex.d.ts +39 -39
  419. package/js/src/pro/weex.js +2 -2
  420. package/js/src/pro/whitebit.d.ts +26 -30
  421. package/js/src/pro/whitebit.js +12 -12
  422. package/js/src/pro/woo.d.ts +44 -46
  423. package/js/src/pro/woo.js +13 -13
  424. package/js/src/pro/woofipro.d.ts +39 -41
  425. package/js/src/pro/woofipro.js +3 -3
  426. package/js/src/pro/xt.d.ts +20 -20
  427. package/js/src/pro/xt.js +3 -3
  428. package/js/src/revolutx.d.ts +17 -17
  429. package/js/src/tokocrypto.d.ts +25 -30
  430. package/js/src/tokocrypto.js +20 -20
  431. package/js/src/toobit.d.ts +45 -79
  432. package/js/src/upbit.d.ts +28 -61
  433. package/js/src/upbit.js +12 -12
  434. package/js/src/weex.d.ts +57 -68
  435. package/js/src/whitebit.d.ts +53 -64
  436. package/js/src/whitebit.js +15 -15
  437. package/js/src/woo.d.ts +61 -75
  438. package/js/src/woo.js +3 -3
  439. package/js/src/woofipro.d.ts +53 -67
  440. package/js/src/woofipro.js +14 -14
  441. package/js/src/xt.d.ts +57 -67
  442. package/js/src/zaif.d.ts +11 -16
  443. package/js/src/zaif.js +9 -3
  444. package/js/src/zebpay.d.ts +32 -37
  445. package/js/src/zebpay.js +1 -1
  446. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/toobit.js';
2
- import type { Balances, Currencies, Currency, CurrencyInterface, DepositAddress, Dict, FundingRate, FundingRateHistory, FundingRates, Int, LedgerEntry, Leverage, Market, MarketInterface, NullableDict, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TradingFees, Transaction, TransferEntry, int, Status } from './base/types.js';
2
+ import type { Balances, Currencies, Currency, CurrencyInterface, DepositAddress, Dict, FundingRate, FundingRateHistory, FundingRates, Int, LedgerEntry, Leverage, Market, MarketInterface, NullableDict, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Position, Str, Strings, Ticker, Tickers, Trade, TradingFeeInterface, TradingFees, Transaction, TransferEntry, int, Status, LastPrice, LastPrices } from './base/types.js';
3
3
  /**
4
4
  * @class toobit
5
5
  * @augments Exchange
@@ -14,7 +14,7 @@ export default class toobit extends Exchange {
14
14
  * @param {object} [params] extra parameters specific to the exchange API endpoint
15
15
  * @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
16
16
  */
17
- fetchStatus(params?: {}): Promise<Status>;
17
+ fetchStatus(params?: Dict): Promise<Status>;
18
18
  /**
19
19
  * @method
20
20
  * @name toobit#fetchTime
@@ -23,7 +23,7 @@ export default class toobit extends Exchange {
23
23
  * @param {object} [params] extra parameters specific to the exchange API endpoint
24
24
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
25
25
  */
26
- fetchTime(params?: {}): Promise<Int>;
26
+ fetchTime(params?: Dict): Promise<Int>;
27
27
  /**
28
28
  * @method
29
29
  * @name toobit#fetchCurrencies
@@ -32,7 +32,7 @@ export default class toobit extends Exchange {
32
32
  * @param {object} [params] extra parameters specific to the exchange API endpoint
33
33
  * @returns {object} an associative dictionary of currencies
34
34
  */
35
- fetchCurrencies(params?: {}): Promise<Currencies>;
35
+ fetchCurrencies(params?: Dict): Promise<Currencies>;
36
36
  parseCurrency(rawCurrency: Dict): CurrencyInterface;
37
37
  /**
38
38
  * @method
@@ -43,7 +43,7 @@ export default class toobit extends Exchange {
43
43
  * @param {object} [params] extra parameters specific to the exchange API endpoint
44
44
  * @returns {object[]} an array of objects representing market data
45
45
  */
46
- fetchMarkets(params?: {}): Promise<MarketInterface[]>;
46
+ fetchMarkets(params?: Dict): Promise<MarketInterface[]>;
47
47
  parseMarket(market: Dict): Market;
48
48
  /**
49
49
  * @method
@@ -56,7 +56,7 @@ export default class toobit extends Exchange {
56
56
  * @param {object} [params] extra parameters specific to the exchange API endpoint
57
57
  * @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
58
58
  */
59
- fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
59
+ fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
60
60
  /**
61
61
  * @method
62
62
  * @name toobit#fetchTrades
@@ -69,7 +69,7 @@ export default class toobit extends Exchange {
69
69
  * @param {object} [params] extra parameters specific to the exchange API endpoint
70
70
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
71
71
  */
72
- fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
72
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
73
73
  parseTrade(trade: Dict, market?: Market): Trade;
74
74
  /**
75
75
  * @method
@@ -86,7 +86,7 @@ export default class toobit extends Exchange {
86
86
  * @param {object} [params] extra parameters specific to the exchange API endpoint
87
87
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
88
88
  */
89
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
89
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
90
90
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
91
91
  /**
92
92
  * @method
@@ -98,7 +98,7 @@ export default class toobit extends Exchange {
98
98
  * @param {object} [params] extra parameters specific to the exchange API endpoint
99
99
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
100
100
  */
101
- fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
101
+ fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
102
102
  parseTicker(ticker: Dict, market?: Market): Ticker;
103
103
  /**
104
104
  * @method
@@ -110,15 +110,8 @@ export default class toobit extends Exchange {
110
110
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111
111
  * @returns {object} a dictionary of lastprices structures
112
112
  */
113
- fetchLastPrices(symbols?: Strings, params?: {}): Promise<import("./base/types.js").LastPrices>;
114
- parseLastPrice(entry: any, market?: Market): {
115
- symbol: string;
116
- timestamp: undefined;
117
- datetime: undefined;
118
- price: Num;
119
- side: undefined;
120
- info: any;
121
- };
113
+ fetchLastPrices(symbols?: Strings, params?: Dict): Promise<LastPrices>;
114
+ parseLastPrice(entry: any, market?: Market): LastPrice;
122
115
  /**
123
116
  * @method
124
117
  * @name toobit#fetchBidsAsks
@@ -129,18 +122,9 @@ export default class toobit extends Exchange {
129
122
  * @param {object} [params] extra parameters specific to the exchange API endpoint
130
123
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
131
124
  */
132
- fetchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
133
- parseBidsAsksCustom(tickers: any, symbols?: Strings, params?: {}): Tickers;
134
- parseBidAskCustom(ticker: any): {
135
- timestamp: Int;
136
- datetime: string | undefined;
137
- symbol: string;
138
- bid: Num;
139
- bidVolume: Num;
140
- ask: Num;
141
- askVolume: Num;
142
- info: any;
143
- };
125
+ fetchBidsAsks(symbols?: Strings, params?: Dict): Promise<Tickers>;
126
+ parseBidsAsksCustom(tickers: any, symbols?: Strings, params?: Dict): Tickers;
127
+ parseBidAskCustom(ticker: Dict): Dict;
144
128
  /**
145
129
  * @method
146
130
  * @name toobit#fetchFundingRates
@@ -150,7 +134,7 @@ export default class toobit extends Exchange {
150
134
  * @param {object} [params] extra parameters specific to the exchange API endpoint
151
135
  * @returns {object[]} a list of [funding rates structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
152
136
  */
153
- fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
137
+ fetchFundingRates(symbols?: Strings, params?: Dict): Promise<FundingRates>;
154
138
  parseFundingRate(contract: any, market?: Market): FundingRate;
155
139
  /**
156
140
  * @method
@@ -165,14 +149,8 @@ export default class toobit extends Exchange {
165
149
  * @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)
166
150
  * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
167
151
  */
168
- fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
169
- parseFundingRateHistory(contract: any, market?: Market): {
170
- info: any;
171
- symbol: string;
172
- fundingRate: Num;
173
- timestamp: Int;
174
- datetime: string | undefined;
175
- };
152
+ fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<FundingRateHistory[]>;
153
+ parseFundingRateHistory(contract: any, market?: Market): FundingRateHistory;
176
154
  /**
177
155
  * @method
178
156
  * @name toobit#fetchBalance
@@ -182,7 +160,7 @@ export default class toobit extends Exchange {
182
160
  * @param {object} [params] extra parameters specific to the exchange API endpoint
183
161
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
184
162
  */
185
- fetchBalance(params?: {}): Promise<Balances>;
163
+ fetchBalance(params?: Dict): Promise<Balances>;
186
164
  parseBalance(response: any): Balances;
187
165
  /**
188
166
  * @method
@@ -199,12 +177,12 @@ export default class toobit extends Exchange {
199
177
  * @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
200
178
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
201
179
  */
202
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
203
- createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: {}): {}[];
204
- createContractOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: {}): {}[];
180
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
181
+ createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: Dict): [Dict, Dict];
182
+ createContractOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: Dict): [Dict, Dict];
205
183
  parseOrder(order: Dict, market?: Market): Order;
206
184
  parseOrderStatus(status: Str): string | undefined;
207
- parseOrderType(status: any): string | undefined;
185
+ parseOrderType(status: Str): string | undefined;
208
186
  /**
209
187
  * @method
210
188
  * @name toobit#cancelOrder
@@ -216,7 +194,7 @@ export default class toobit extends Exchange {
216
194
  * @param {object} [params] extra parameters specific to the exchange API endpoint
217
195
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
218
196
  */
219
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
197
+ cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
220
198
  /**
221
199
  * @method
222
200
  * @name toobit#cancelAllOrders
@@ -227,7 +205,7 @@ export default class toobit extends Exchange {
227
205
  * @param {object} [params] extra parameters specific to the exchange API endpoint
228
206
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
229
207
  */
230
- cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
208
+ cancelAllOrders(symbol?: Str, params?: Dict): Promise<Order[]>;
231
209
  /**
232
210
  * @method
233
211
  * @name toobit#cancelOrders
@@ -239,7 +217,7 @@ export default class toobit extends Exchange {
239
217
  * @param {object} [params] extra parameters specific to the exchange API endpoint
240
218
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
241
219
  */
242
- cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
220
+ cancelOrders(ids: string[], symbol?: Str, params?: Dict): Promise<Order[]>;
243
221
  /**
244
222
  * @method
245
223
  * @name toobit#fetchOrder
@@ -251,7 +229,7 @@ export default class toobit extends Exchange {
251
229
  * @param {object} [params] extra parameters specific to the exchange API endpoint
252
230
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
253
231
  */
254
- fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
232
+ fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
255
233
  /**
256
234
  * @method
257
235
  * @name toobit#fetchOpenOrders
@@ -264,7 +242,7 @@ export default class toobit extends Exchange {
264
242
  * @param {object} [params] extra parameters specific to the exchange API endpoint
265
243
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
266
244
  */
267
- fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
245
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
268
246
  /**
269
247
  * @method
270
248
  * @name toobit#fetchOrders
@@ -276,7 +254,7 @@ export default class toobit extends Exchange {
276
254
  * @param {object} [params] extra parameters specific to the exchange API endpoint
277
255
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
278
256
  */
279
- fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
257
+ fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
280
258
  /**
281
259
  * @method
282
260
  * @name toobit#fetchClosedOrders
@@ -288,7 +266,7 @@ export default class toobit extends Exchange {
288
266
  * @param {object} [params] extra parameters specific to the exchange API endpoint
289
267
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
290
268
  */
291
- fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
269
+ fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
292
270
  /**
293
271
  * @method
294
272
  * @name toobit#fetchMyTrades
@@ -302,7 +280,7 @@ export default class toobit extends Exchange {
302
280
  * @param {int} [params.until] the latest time in ms to fetch trades for
303
281
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
304
282
  */
305
- fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
283
+ fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
306
284
  /**
307
285
  * @method
308
286
  * @name toobit#transfer
@@ -315,7 +293,7 @@ export default class toobit extends Exchange {
315
293
  * @param {object} [params] extra parameters specific to the exchange API endpoint
316
294
  * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
317
295
  */
318
- transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
296
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: Dict): Promise<TransferEntry>;
319
297
  parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
320
298
  /**
321
299
  * @method
@@ -330,9 +308,9 @@ export default class toobit extends Exchange {
330
308
  * @param {int} [params.until] end time in ms
331
309
  * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
332
310
  */
333
- fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
311
+ fetchLedger(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<LedgerEntry[]>;
334
312
  parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
335
- parseLedgerType(type: any): string;
313
+ parseLedgerType(type: Str): Str;
336
314
  /**
337
315
  * @method
338
316
  * @name toobit#fetchTradingFees
@@ -341,15 +319,8 @@ export default class toobit extends Exchange {
341
319
  * @param {object} [params] extra parameters specific to the exchange API endpoint
342
320
  * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
343
321
  */
344
- fetchTradingFees(params?: {}): Promise<TradingFees>;
345
- parseTradingFee(data: any, market?: Market): {
346
- info: any;
347
- symbol: string;
348
- maker: Num;
349
- taker: Num;
350
- percentage: undefined;
351
- tierBased: undefined;
352
- };
322
+ fetchTradingFees(params?: Dict): Promise<TradingFees>;
323
+ parseTradingFee(data: NullableDict, market?: Market): TradingFeeInterface;
353
324
  /**
354
325
  * @method
355
326
  * @name toobit#fetchDeposits
@@ -361,7 +332,7 @@ export default class toobit extends Exchange {
361
332
  * @param {object} [params] extra parameters specific to the exchange API endpoint
362
333
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
363
334
  */
364
- fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
335
+ fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
365
336
  /**
366
337
  * @method
367
338
  * @name toobit#fetchWithdrawals
@@ -373,8 +344,8 @@ export default class toobit extends Exchange {
373
344
  * @param {object} [params] extra parameters specific to the exchange API endpoint
374
345
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
375
346
  */
376
- fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
377
- fetchDepositsOrWithdrawalsHelper(type: any, code: any, since: any, limit: any, params?: {}): Promise<Transaction[]>;
347
+ fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
348
+ fetchDepositsOrWithdrawalsHelper(type: Str, code: Str, since: Int, limit: Int, params?: Dict): Promise<Transaction[]>;
378
349
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
379
350
  parseTransactionStatus(status: Str): string | undefined;
380
351
  /**
@@ -386,7 +357,7 @@ export default class toobit extends Exchange {
386
357
  * @param {object} [params] extra parameters specific to the exchange API endpoint
387
358
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
388
359
  */
389
- fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
360
+ fetchDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
390
361
  parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
391
362
  /**
392
363
  * @method
@@ -401,7 +372,7 @@ export default class toobit extends Exchange {
401
372
  * @param {string} [params.addressType] recipient identifier type, one of BLOCK_CHAIN, PHONE_NUMBER, EMAIL, or UID
402
373
  * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
403
374
  */
404
- withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
375
+ withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
405
376
  /**
406
377
  * @method
407
378
  * @name toobit#setMarginMode
@@ -412,7 +383,7 @@ export default class toobit extends Exchange {
412
383
  * @param {object} [params] extra parameters specific to the exchange API endpoint
413
384
  * @returns {object} response from the exchange
414
385
  */
415
- setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<Dict>;
386
+ setMarginMode(marginMode: string, symbol?: Str, params?: Dict): Promise<Dict>;
416
387
  /**
417
388
  * @method
418
389
  * @name toobit#setLeverage
@@ -423,7 +394,7 @@ export default class toobit extends Exchange {
423
394
  * @param {object} [params] extra parameters specific to the exchange API endpoint
424
395
  * @returns {object} response from the exchange
425
396
  */
426
- setLeverage(leverage: int, symbol?: Str, params?: {}): Promise<Dict>;
397
+ setLeverage(leverage: int, symbol?: Str, params?: Dict): Promise<Dict>;
427
398
  /**
428
399
  * @method
429
400
  * @name toobit#fetchLeverage
@@ -433,7 +404,7 @@ export default class toobit extends Exchange {
433
404
  * @param {object} [params] extra parameters specific to the exchange API endpoint
434
405
  * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
435
406
  */
436
- fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
407
+ fetchLeverage(symbol: string, params?: Dict): Promise<Leverage>;
437
408
  parseLeverage(leverage: Dict, market?: Market): Leverage;
438
409
  /**
439
410
  * @method
@@ -444,13 +415,8 @@ export default class toobit extends Exchange {
444
415
  * @param {object} [params] extra parameters specific to the exchange API endpoint
445
416
  * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
446
417
  */
447
- fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
418
+ fetchPositions(symbols?: Strings, params?: Dict): Promise<Position[]>;
448
419
  parsePosition(position: Dict, market?: Market): Position;
449
- sign(path: any, api?: any, method?: string, params?: {}, headers?: NullableDict, body?: Str): {
450
- url: string;
451
- method: string;
452
- body: Str;
453
- headers: NullableDict;
454
- };
420
+ sign(path: any, api?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
455
421
  handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
456
422
  }
package/js/src/upbit.d.ts CHANGED
@@ -6,38 +6,10 @@ import type { Balances, Currency, Dict, NullableDict, List, Int, Market, Num, OH
6
6
  */
7
7
  export default class upbit extends Exchange {
8
8
  describe(): any;
9
- fetchCurrency(code: string, params?: {}): Promise<{
10
- info: Dict;
11
- id: Str;
12
- code: Str;
13
- name: Str;
14
- active: boolean;
15
- fee: Num;
16
- precision: undefined;
17
- limits: {
18
- withdraw: {
19
- min: Num;
20
- max: number;
21
- };
22
- };
23
- }>;
24
- fetchCurrencyById(id: string, params?: {}): Promise<{
25
- info: Dict;
26
- id: Str;
27
- code: Str;
28
- name: Str;
29
- active: boolean;
30
- fee: Num;
31
- precision: undefined;
32
- limits: {
33
- withdraw: {
34
- min: Num;
35
- max: number;
36
- };
37
- };
38
- }>;
39
- fetchMarket(symbol: string, params?: {}): Promise<Market>;
40
- fetchMarketById(id: Str, params?: {}): Promise<Market>;
9
+ fetchCurrency(code: string, params?: Dict): Promise<Dict>;
10
+ fetchCurrencyById(id: string, params?: Dict): Promise<Dict>;
11
+ fetchMarket(symbol: string, params?: Dict): Promise<Market>;
12
+ fetchMarketById(id: Str, params?: Dict): Promise<Market>;
41
13
  /**
42
14
  * @method
43
15
  * @name upbit#fetchMarkets
@@ -47,7 +19,7 @@ export default class upbit extends Exchange {
47
19
  * @param {object} [params] extra parameters specific to the exchange API endpoint
48
20
  * @returns {object[]} an array of objects representing market data
49
21
  */
50
- fetchMarkets(params?: {}): Promise<Market[]>;
22
+ fetchMarkets(params?: Dict): Promise<Market[]>;
51
23
  parseMarket(market: Dict): Market;
52
24
  parseBalance(response: any): Balances;
53
25
  /**
@@ -59,7 +31,7 @@ export default class upbit extends Exchange {
59
31
  * @param {object} [params] extra parameters specific to the exchange API endpoint
60
32
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
61
33
  */
62
- fetchBalance(params?: {}): Promise<Balances>;
34
+ fetchBalance(params?: Dict): Promise<Balances>;
63
35
  /**
64
36
  * @method
65
37
  * @name upbit#fetchOrderBooks
@@ -71,7 +43,7 @@ export default class upbit extends Exchange {
71
43
  * @param {object} [params] extra parameters specific to the exchange API endpoint
72
44
  * @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbol
73
45
  */
74
- fetchOrderBooks(symbols?: Strings, limit?: Int, params?: {}): Promise<OrderBooks>;
46
+ fetchOrderBooks(symbols?: Strings, limit?: Int, params?: Dict): Promise<OrderBooks>;
75
47
  /**
76
48
  * @method
77
49
  * @name upbit#fetchOrderBook
@@ -83,7 +55,7 @@ export default class upbit extends Exchange {
83
55
  * @param {object} [params] extra parameters specific to the exchange API endpoint
84
56
  * @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
85
57
  */
86
- fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
58
+ fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
87
59
  parseTicker(ticker: Dict, market?: Market): Ticker;
88
60
  /**
89
61
  * @method
@@ -98,7 +70,7 @@ export default class upbit extends Exchange {
98
70
  * @param {string} [params.quote_currencies] comma-separated quote currency ids to fetch all tickers for, defaults to every quote currency of the loaded markets, only used when symbols is undefined
99
71
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
100
72
  */
101
- fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
73
+ fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
102
74
  idsQueryStrings(ids: Strings, maxQueryLength: number): List;
103
75
  /**
104
76
  * @method
@@ -110,7 +82,7 @@ export default class upbit extends Exchange {
110
82
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111
83
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
112
84
  */
113
- fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
85
+ fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
114
86
  parseTrade(trade: Dict, market?: Market): Trade;
115
87
  /**
116
88
  * @method
@@ -124,7 +96,7 @@ export default class upbit extends Exchange {
124
96
  * @param {object} [params] extra parameters specific to the exchange API endpoint
125
97
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
126
98
  */
127
- fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
99
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
128
100
  /**
129
101
  * @method
130
102
  * @name upbit#fetchTradingFee
@@ -135,7 +107,7 @@ export default class upbit extends Exchange {
135
107
  * @param {object} [params] extra parameters specific to the exchange API endpoint
136
108
  * @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
137
109
  */
138
- fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
110
+ fetchTradingFee(symbol: string, params?: Dict): Promise<TradingFeeInterface>;
139
111
  /**
140
112
  * @method
141
113
  * @name upbit#fetchTradingFees
@@ -143,7 +115,7 @@ export default class upbit extends Exchange {
143
115
  * @param {object} [params] extra parameters specific to the exchange API endpoint
144
116
  * @returns {object} a [trading fee structure]{@link https://docs.ccxt.com/?id=trading-fee-structure}
145
117
  */
146
- fetchTradingFees(params?: {}): Promise<TradingFees>;
118
+ fetchTradingFees(params?: Dict): Promise<TradingFees>;
147
119
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
148
120
  /**
149
121
  * @method
@@ -158,7 +130,7 @@ export default class upbit extends Exchange {
158
130
  * @param {object} [params] extra parameters specific to the exchange API endpoint
159
131
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
160
132
  */
161
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
133
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
162
134
  calcOrderPrice(symbol: string, amount: Num, price?: Num, params?: {}): Str;
163
135
  /**
164
136
  * @method
@@ -181,7 +153,7 @@ export default class upbit extends Exchange {
181
153
  * @param {boolean} [params.test] If test is true, testOrder will be executed. It allows you to validate the request without creating an actual order. Default is false.
182
154
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
183
155
  */
184
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
156
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
185
157
  /**
186
158
  * @method
187
159
  * @name upbit#cancelOrder
@@ -193,7 +165,7 @@ export default class upbit extends Exchange {
193
165
  * @param {object} [params] extra parameters specific to the exchange API endpoint
194
166
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
195
167
  */
196
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
168
+ cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
197
169
  /**
198
170
  * @method
199
171
  * @name upbit#editOrder
@@ -215,7 +187,7 @@ export default class upbit extends Exchange {
215
187
  * @param {string} [params.selfTradePrevention] 'reduce', 'cancel_maker', 'cancel_taker' {@link https://global-docs.upbit.com/docs/smp}
216
188
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
217
189
  */
218
- editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
190
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: Dict): Promise<Order>;
219
191
  /**
220
192
  * @method
221
193
  * @name upbit#fetchDeposits
@@ -228,7 +200,7 @@ export default class upbit extends Exchange {
228
200
  * @param {object} [params] extra parameters specific to the exchange API endpoint
229
201
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
230
202
  */
231
- fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
203
+ fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
232
204
  /**
233
205
  * @method
234
206
  * @name upbit#fetchDeposit
@@ -254,7 +226,7 @@ export default class upbit extends Exchange {
254
226
  * @param {object} [params] extra parameters specific to the exchange API endpoint
255
227
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
256
228
  */
257
- fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
229
+ fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
258
230
  /**
259
231
  * @method
260
232
  * @name upbit#fetchWithdrawal
@@ -285,7 +257,7 @@ export default class upbit extends Exchange {
285
257
  * @param {string} [params.state] default is 'wait', set to 'watch' for stop limit orders
286
258
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
287
259
  */
288
- fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
260
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
289
261
  /**
290
262
  * @method
291
263
  * @name upbit#fetchClosedOrders
@@ -299,7 +271,7 @@ export default class upbit extends Exchange {
299
271
  * @param {int} [params.until] timestamp in ms of the latest order
300
272
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
301
273
  */
302
- fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
274
+ fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
303
275
  /**
304
276
  * @method
305
277
  * @name upbit#fetchCanceledOrders
@@ -313,7 +285,7 @@ export default class upbit extends Exchange {
313
285
  * @param {int} [params.until] timestamp in ms of the latest order
314
286
  * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
315
287
  */
316
- fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
288
+ fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
317
289
  /**
318
290
  * @method
319
291
  * @name upbit#fetchOrder
@@ -325,7 +297,7 @@ export default class upbit extends Exchange {
325
297
  * @param {object} [params] extra parameters specific to the exchange API endpoint
326
298
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
327
299
  */
328
- fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
300
+ fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
329
301
  /**
330
302
  * @method
331
303
  * @name upbit#fetchDepositAddresses
@@ -336,7 +308,7 @@ export default class upbit extends Exchange {
336
308
  * @param {object} [params] extra parameters specific to the exchange API endpoint
337
309
  * @returns {object} a list of [address structures]{@link https://docs.ccxt.com/?id=address-structure}
338
310
  */
339
- fetchDepositAddresses(codes?: Strings, params?: {}): Promise<DepositAddress[]>;
311
+ fetchDepositAddresses(codes?: Strings, params?: Dict): Promise<DepositAddress[]>;
340
312
  parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
341
313
  /**
342
314
  * @method
@@ -349,7 +321,7 @@ export default class upbit extends Exchange {
349
321
  * @param {string} params.network deposit chain, can view all chains via this.publicGetWalletAssets, default is eth, unless the currency has a default chain within this.options['networks']
350
322
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
351
323
  */
352
- fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
324
+ fetchDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
353
325
  /**
354
326
  * @method
355
327
  * @name upbit#createDepositAddress
@@ -360,7 +332,7 @@ export default class upbit extends Exchange {
360
332
  * @param {object} [params] extra parameters specific to the exchange API endpoint
361
333
  * @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
362
334
  */
363
- createDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
335
+ createDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
364
336
  /**
365
337
  * @method
366
338
  * @name upbit#withdraw
@@ -374,13 +346,8 @@ export default class upbit extends Exchange {
374
346
  * @param {object} [params] extra parameters specific to the exchange API endpoint
375
347
  * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
376
348
  */
377
- withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
349
+ withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
378
350
  nonce(): number;
379
- sign(path: any, api?: any, method?: string, params?: {}, headers?: NullableDict, body?: any): {
380
- url: string;
381
- method: string;
382
- body: any;
383
- headers: NullableDict;
384
- };
351
+ sign(path: any, api?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
385
352
  handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
386
353
  }