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
@@ -14,7 +14,7 @@ export default class bitteam extends Exchange {
14
14
  * @param {object} [params] extra parameters specific to the exchange API endpoint
15
15
  * @returns {object[]} an array of objects representing market data
16
16
  */
17
- fetchMarkets(params?: {}): Promise<Market[]>;
17
+ fetchMarkets(params?: Dict): Promise<Market[]>;
18
18
  parseMarket(market: Dict): Market;
19
19
  /**
20
20
  * @method
@@ -24,7 +24,7 @@ export default class bitteam extends Exchange {
24
24
  * @param {object} [params] extra parameters specific to the exchange API endpoint
25
25
  * @returns {object} an associative dictionary of currencies
26
26
  */
27
- fetchCurrencies(params?: {}): Promise<Currencies>;
27
+ fetchCurrencies(params?: Dict): Promise<Currencies>;
28
28
  parseCurrency(currency: Dict): CurrencyInterface;
29
29
  /**
30
30
  * @method
@@ -37,7 +37,7 @@ export default class bitteam extends Exchange {
37
37
  * @param {object} [params] extra parameters specific to the exchange API endpoint
38
38
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
39
39
  */
40
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
40
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
41
41
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
42
42
  /**
43
43
  * @method
@@ -49,7 +49,7 @@ export default class bitteam extends Exchange {
49
49
  * @param {object} [params] extra parameters specific to the exchange API endpoint
50
50
  * @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
51
51
  */
52
- fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
52
+ fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
53
53
  /**
54
54
  * @method
55
55
  * @name bitteam#fetchOrders
@@ -62,7 +62,7 @@ export default class bitteam extends Exchange {
62
62
  * @param {string} [params.type] the status of the order - 'active', 'closed', 'cancelled', 'all', 'history' (default 'all')
63
63
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
64
64
  */
65
- fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
65
+ fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
66
66
  /**
67
67
  * @method
68
68
  * @name bitteam#fetchOrder
@@ -73,7 +73,7 @@ export default class bitteam extends Exchange {
73
73
  * @param {object} [params] extra parameters specific to the exchange API endpoint
74
74
  * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
75
75
  */
76
- fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
76
+ fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
77
77
  /**
78
78
  * @method
79
79
  * @name bitteam#fetchOpenOrders
@@ -85,7 +85,7 @@ export default class bitteam extends Exchange {
85
85
  * @param {object} [params] extra parameters specific to the exchange API endpoint
86
86
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
87
87
  */
88
- fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
88
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
89
89
  /**
90
90
  * @method
91
91
  * @name bitteam#fetchClosedOrders
@@ -97,7 +97,7 @@ export default class bitteam extends Exchange {
97
97
  * @param {object} [params] extra parameters specific to the exchange API endpoint
98
98
  * @returns {Order[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
99
99
  */
100
- fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
100
+ fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
101
101
  /**
102
102
  * @method
103
103
  * @name bitteam#fetchCanceledOrders
@@ -109,7 +109,7 @@ export default class bitteam extends Exchange {
109
109
  * @param {object} [params] extra parameters specific to the exchange API endpoint
110
110
  * @returns {object} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
111
111
  */
112
- fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
112
+ fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
113
113
  /**
114
114
  * @method
115
115
  * @name bitteam#createOrder
@@ -123,7 +123,7 @@ export default class bitteam extends Exchange {
123
123
  * @param {object} [params] extra parameters specific to the exchange API endpoint
124
124
  * @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
125
125
  */
126
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
126
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
127
127
  /**
128
128
  * @method
129
129
  * @name bitteam#cancelOrder
@@ -134,7 +134,7 @@ export default class bitteam extends Exchange {
134
134
  * @param {object} [params] extra parameters specific to the exchange API endpoint
135
135
  * @returns {object} An [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
136
136
  */
137
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
137
+ cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
138
138
  /**
139
139
  * @method
140
140
  * @name bitteam#cancelAllOrders
@@ -144,11 +144,11 @@ export default class bitteam extends Exchange {
144
144
  * @param {object} [params] extra parameters specific to the exchange API endpoint
145
145
  * @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
146
146
  */
147
- cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
147
+ cancelAllOrders(symbol?: Str, params?: Dict): Promise<Order[]>;
148
148
  parseOrder(order: Dict, market?: Market): Order;
149
149
  parseOrderStatus(status: Str): Str;
150
- parseOrderType(status: any): string;
151
- parseValueToPricision(valueObject: any, valueKey: any, preciseObject: any, precisionKey: any): string | undefined;
150
+ parseOrderType(status: Str): Str;
151
+ parseValueToPricision(valueObject: Dict, valueKey: string, preciseObject: any, precisionKey: string): string | undefined;
152
152
  /**
153
153
  * @method
154
154
  * @name bitteam#fetchTickers
@@ -158,7 +158,7 @@ export default class bitteam extends Exchange {
158
158
  * @param {object} [params] extra parameters specific to the exchange API endpoint
159
159
  * @returns {object} a dictionary of [ticker structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
160
160
  */
161
- fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
161
+ fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
162
162
  /**
163
163
  * @method
164
164
  * @name bitteam#fetchTicker
@@ -168,7 +168,7 @@ export default class bitteam extends Exchange {
168
168
  * @param {object} [params] extra parameters specific to the exchange API endpoint
169
169
  * @returns {object} a [ticker structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#ticker-structure}
170
170
  */
171
- fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
171
+ fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
172
172
  parseTicker(ticker: Dict, market?: Market): Ticker;
173
173
  /**
174
174
  * @method
@@ -181,7 +181,7 @@ export default class bitteam extends Exchange {
181
181
  * @param {object} [params] extra parameters specific to the exchange API endpoint
182
182
  * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#public-trades}
183
183
  */
184
- fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
184
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
185
185
  /**
186
186
  * @method
187
187
  * @name bitteam#fetchMyTrades
@@ -193,7 +193,7 @@ export default class bitteam extends Exchange {
193
193
  * @param {object} [params] extra parameters specific to the exchange API endpoint
194
194
  * @returns {Trade[]} a list of [trade structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#trade-structure}
195
195
  */
196
- fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
196
+ fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
197
197
  parseTrade(trade: Dict, market?: Market): Trade;
198
198
  /**
199
199
  * @method
@@ -203,7 +203,7 @@ export default class bitteam extends Exchange {
203
203
  * @param {object} [params] extra parameters specific to the exchange API endpoint
204
204
  * @returns {object} a [balance structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#balance-structure}
205
205
  */
206
- fetchBalance(params?: {}): Promise<Balances>;
206
+ fetchBalance(params?: Dict): Promise<Balances>;
207
207
  parseBalance(response: any): Balances;
208
208
  /**
209
209
  * @method
@@ -216,15 +216,10 @@ export default class bitteam extends Exchange {
216
216
  * @param {object} [params] extra parameters specific to the exchange API endpoint
217
217
  * @returns {object} a list of [transaction structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#transaction-structure}
218
218
  */
219
- fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
219
+ fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
220
220
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
221
- parseTransactionType(type: any): string;
221
+ parseTransactionType(type: Str): Str;
222
222
  parseTransactionStatus(status: Str): Str;
223
- sign(path: any, api?: any, method?: string, params?: {}, headers?: NullableDict, body?: Str): {
224
- url: string;
225
- method: string;
226
- body: Str;
227
- headers: NullableDict;
228
- };
223
+ sign(path: any, api?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
229
224
  handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
230
225
  }
package/js/src/bitteam.js CHANGED
@@ -453,8 +453,8 @@ export default class bitteam extends Exchange {
453
453
  // }
454
454
  // }
455
455
  //
456
- const result = this.safeValue(response, 'result', {});
457
- const markets = this.safeValue(result, 'pairs', []);
456
+ const result = this.safeDict(response, 'result', {});
457
+ const markets = this.safeList(result, 'pairs', []);
458
458
  return this.parseMarkets(markets);
459
459
  }
460
460
  parseMarket(market) {
@@ -465,14 +465,14 @@ export default class bitteam extends Exchange {
465
465
  const quoteId = this.safeString(parts, 1);
466
466
  const base = this.safeCurrencyCode(baseId);
467
467
  const quote = this.safeCurrencyCode(quoteId);
468
- const active = this.safeValue(market, 'active');
468
+ const active = this.safeBool(market, 'active');
469
469
  const timeStart = this.safeString(market, 'timeStart');
470
470
  const created = this.parse8601(timeStart);
471
471
  let minCost = undefined;
472
472
  const currenciesValuedInUsd = this.handleOption('fetchMarkets', 'currenciesValuedInUsd', {});
473
473
  const quoteInUsd = this.safeBool(currenciesValuedInUsd, quote, false);
474
474
  if (quoteInUsd === true) {
475
- const settings = this.safeValue(market, 'settings', {});
475
+ const settings = this.safeDict(market, 'settings', {});
476
476
  minCost = this.safeNumber(settings, 'limit_usd');
477
477
  }
478
478
  return this.safeMarketStructure({
@@ -626,8 +626,8 @@ export default class bitteam extends Exchange {
626
626
  // }
627
627
  // }
628
628
  //
629
- const responseResult = this.safeValue(response, 'result', {});
630
- const currencies = this.safeValue(responseResult, 'currencies', []);
629
+ const responseResult = this.safeDict(response, 'result', {});
630
+ const currencies = this.safeList(responseResult, 'currencies', []);
631
631
  // using another endpoint to fetch statuses of deposits and withdrawals
632
632
  let statusesResponse = await this.publicGetTradeApiCmcAssets();
633
633
  //
@@ -657,18 +657,18 @@ export default class bitteam extends Exchange {
657
657
  return result;
658
658
  }
659
659
  parseCurrency(currency) {
660
- const statusesResponse = this.safeValue(this.options, '_temp_currencies_statuses', {});
660
+ const statusesResponse = this.safeDict(this.options, '_temp_currencies_statuses', {});
661
661
  const id = this.safeString(currency, 'symbol');
662
662
  const numericId = this.safeInteger(currency, 'id');
663
663
  const code = this.safeCurrencyCode(id);
664
664
  const active = this.safeBool(currency, 'active', false);
665
665
  const precision = this.parseNumber(this.parsePrecision(this.safeString(currency, 'precision')));
666
- const txLimits = this.safeValue(currency, 'txLimits', {});
666
+ const txLimits = this.safeDict(currency, 'txLimits', {});
667
667
  const minWithdraw = this.safeString(txLimits, 'minWithdraw');
668
668
  const maxWithdraw = this.safeString(txLimits, 'maxWithdraw');
669
669
  const minDeposit = this.safeString(txLimits, 'minDeposit');
670
670
  let fee = undefined;
671
- const withdrawCommissionFixed = this.safeValue(txLimits, 'withdrawCommissionFixed', {});
671
+ const withdrawCommissionFixed = this.safeDict(txLimits, 'withdrawCommissionFixed', {});
672
672
  let feesByNetworkId = {};
673
673
  const blockChain = this.safeString(currency, 'blockChain');
674
674
  // if only one blockChain
@@ -679,9 +679,9 @@ export default class bitteam extends Exchange {
679
679
  else {
680
680
  feesByNetworkId = withdrawCommissionFixed;
681
681
  }
682
- const statuses = this.safeValue(statusesResponse, numericId, {});
683
- const deposit = this.safeValue(statuses, 'depositStatus');
684
- const withdraw = this.safeValue(statuses, 'withdrawStatus');
682
+ const statuses = this.safeDict(statusesResponse, numericId, {});
683
+ const deposit = this.safeBool(statuses, 'depositStatus');
684
+ const withdraw = this.safeBool(statuses, 'withdrawStatus');
685
685
  const networkIds = Object.keys(feesByNetworkId);
686
686
  const networks = {};
687
687
  const networkPrecision = this.parseNumber(this.parsePrecision(this.safeString(currency, 'decimals')));
@@ -795,7 +795,7 @@ export default class bitteam extends Exchange {
795
795
  // }
796
796
  // }
797
797
  //
798
- const result = this.safeValue(response, 'result', {});
798
+ const result = this.safeDict(response, 'result', {});
799
799
  const data = this.safeList(result, 'data', []);
800
800
  return this.parseOHLCVs(data, market, timeframe, since, limit);
801
801
  }
@@ -980,7 +980,7 @@ export default class bitteam extends Exchange {
980
980
  // }
981
981
  // }
982
982
  //
983
- const result = this.safeValue(response, 'result', {});
983
+ const result = this.safeDict(response, 'result', {});
984
984
  const orders = this.safeList(result, 'orders', []);
985
985
  return this.parseOrders(orders, market, since, limit);
986
986
  }
@@ -1225,7 +1225,7 @@ export default class bitteam extends Exchange {
1225
1225
  // }
1226
1226
  // }
1227
1227
  //
1228
- const result = this.safeValue(response, 'result', {});
1228
+ const result = this.safeDict(response, 'result', {});
1229
1229
  const orders = [result];
1230
1230
  return this.parseOrders(orders, market);
1231
1231
  }
@@ -1332,7 +1332,7 @@ export default class bitteam extends Exchange {
1332
1332
  const status = this.parseOrderStatus(this.safeString(order, 'status'));
1333
1333
  const type = this.parseOrderType(this.safeString(order, 'type'));
1334
1334
  const side = this.safeString(order, 'side');
1335
- const feeRaw = this.safeValue(order, 'fee');
1335
+ const feeRaw = this.safeDict(order, 'fee');
1336
1336
  const price = this.safeString(order, 'price');
1337
1337
  const amount = this.safeString(order, 'quantity');
1338
1338
  const filled = this.safeString(order, 'executed');
@@ -1658,7 +1658,7 @@ export default class bitteam extends Exchange {
1658
1658
  // }
1659
1659
  // }
1660
1660
  //
1661
- const result = this.safeValue(response, 'result', {});
1661
+ const result = this.safeDict(response, 'result', {});
1662
1662
  const pair = this.safeDict(result, 'pair', {});
1663
1663
  return this.parseTicker(pair, market);
1664
1664
  }
@@ -1748,13 +1748,13 @@ export default class bitteam extends Exchange {
1748
1748
  let bestAskPrice = undefined;
1749
1749
  let bestBidVolume = undefined;
1750
1750
  let bestAskVolume = undefined;
1751
- const bids = this.safeValue(ticker, 'bids');
1752
- const asks = this.safeValue(ticker, 'asks');
1751
+ const bids = this.safeList(ticker, 'bids');
1752
+ const asks = this.safeList(ticker, 'asks');
1753
1753
  if ((bids !== undefined) && (Array.isArray(bids)) && (asks !== undefined) && (Array.isArray(asks))) {
1754
- const bestBid = this.safeValue(bids, 0, {});
1754
+ const bestBid = this.safeDict(bids, 0, {});
1755
1755
  bestBidPrice = this.safeString(bestBid, 'price');
1756
1756
  bestBidVolume = this.safeString(bestBid, 'quantity');
1757
- const bestAsk = this.safeValue(asks, 0, {});
1757
+ const bestAsk = this.safeDict(asks, 0, {});
1758
1758
  bestAskPrice = this.safeString(bestAsk, 'price');
1759
1759
  bestAskVolume = this.safeString(bestAsk, 'quantity');
1760
1760
  }
@@ -1991,7 +1991,7 @@ export default class bitteam extends Exchange {
1991
1991
  // }
1992
1992
  // }
1993
1993
  //
1994
- const result = this.safeValue(response, 'result', {});
1994
+ const result = this.safeDict(response, 'result', {});
1995
1995
  const trades = this.safeList(result, 'trades', []);
1996
1996
  return this.parseTrades(trades, market, since, limit);
1997
1997
  }
@@ -2074,11 +2074,11 @@ export default class bitteam extends Exchange {
2074
2074
  side = 'sell';
2075
2075
  }
2076
2076
  order = this.safeString(trade, 'makerOrderId');
2077
- feeInfo = this.safeValue(trade, 'feeMaker', {});
2077
+ feeInfo = this.safeDict(trade, 'feeMaker', {});
2078
2078
  }
2079
2079
  else if (takerOrMaker === 'taker') {
2080
2080
  order = this.safeString(trade, 'takerOrderId');
2081
- feeInfo = this.safeValue(trade, 'feeTaker', {});
2081
+ feeInfo = this.safeDict(trade, 'feeTaker', {});
2082
2082
  }
2083
2083
  const feeCurrencyId = this.safeString(feeInfo, 'symbol');
2084
2084
  const feeCost = this.safeString(feeInfo, 'amount');
@@ -2165,12 +2165,12 @@ export default class bitteam extends Exchange {
2165
2165
  'timestamp': undefined,
2166
2166
  'datetime': undefined,
2167
2167
  };
2168
- const result = this.safeValue(response, 'result', {});
2168
+ const result = this.safeDict(response, 'result', {});
2169
2169
  const balanceByCurrencies = this.omit(result, ['free', 'used', 'total']);
2170
2170
  const rawCurrencyIds = Object.keys(balanceByCurrencies);
2171
2171
  for (let i = 0; i < rawCurrencyIds.length; i++) {
2172
2172
  const rawCurrencyId = rawCurrencyIds[i];
2173
- const currencyBalance = this.safeValue(result, rawCurrencyId);
2173
+ const currencyBalance = this.safeDict(result, rawCurrencyId);
2174
2174
  const free = this.safeString(currencyBalance, 'free');
2175
2175
  const used = this.safeString(currencyBalance, 'used');
2176
2176
  const total = this.safeString(currencyBalance, 'total');
@@ -2298,7 +2298,7 @@ export default class bitteam extends Exchange {
2298
2298
  // }
2299
2299
  // }
2300
2300
  //
2301
- const result = this.safeValue(response, 'result', {});
2301
+ const result = this.safeDict(response, 'result', {});
2302
2302
  const transactions = this.safeList(result, 'transactions', []);
2303
2303
  return this.parseTransactions(transactions, currency, since, limit);
2304
2304
  }
@@ -2350,17 +2350,17 @@ export default class bitteam extends Exchange {
2350
2350
  // }
2351
2351
  // }
2352
2352
  //
2353
- const currencyObject = this.safeValue(transaction, 'currency');
2353
+ const currencyObject = this.safeDict(transaction, 'currency');
2354
2354
  const currencyId = this.safeString(currencyObject, 'symbol');
2355
2355
  const code = this.safeCurrencyCode(currencyId, currency);
2356
2356
  const id = this.safeString(transaction, 'id');
2357
- const params = this.safeValue(transaction, 'params');
2357
+ const params = this.safeDict(transaction, 'params');
2358
2358
  const txid = this.safeString(params, 'tx_id');
2359
2359
  const timestamp = this.safeInteger(transaction, 'timestamp');
2360
2360
  let networkId = this.safeString(transaction, 'blockChain');
2361
2361
  if (networkId === undefined) {
2362
- const links = this.safeValue(currencyObject, 'links', []);
2363
- const blockChain = this.safeValue(links, 0, {});
2362
+ const links = this.safeList(currencyObject, 'links', []);
2363
+ const blockChain = this.safeDict(links, 0, {});
2364
2364
  networkId = this.safeString(blockChain, 'blockChain');
2365
2365
  }
2366
2366
  const addressFrom = this.safeString(transaction, 'sender');
@@ -2368,7 +2368,7 @@ export default class bitteam extends Exchange {
2368
2368
  const tag = this.safeString(transaction, 'message');
2369
2369
  const type = this.parseTransactionType(this.safeString(transaction, 'type'));
2370
2370
  const amount = this.parseValueToPricision(transaction, 'amount', currencyObject, 'decimals');
2371
- const status = this.parseTransactionStatus(this.safeValue(transaction, 'status'));
2371
+ const status = this.parseTransactionStatus(this.safeString(transaction, 'status'));
2372
2372
  return {
2373
2373
  'info': transaction,
2374
2374
  'id': id,
@@ -1,5 +1,5 @@
1
1
  import Exchange from './abstract/bittrade.js';
2
- import type { Account, Balances, Currencies, Currency, CurrencyInterface, Dict, NullableDict, List, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, int } from './base/types.js';
2
+ import type { Account, Balances, Currencies, Currency, CurrencyInterface, Dict, NullableDict, Int, Market, Num, OHLCV, Order, OrderBook, OrderSide, OrderType, Str, Strings, Ticker, Tickers, Trade, Transaction, int, DepositAddress } from './base/types.js';
3
3
  /**
4
4
  * @class bittrade
5
5
  * @augments Exchange
@@ -13,10 +13,10 @@ export default class bittrade extends Exchange {
13
13
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14
14
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
15
15
  */
16
- fetchTime(params?: {}): Promise<Int>;
17
- fetchTradingLimits(symbols?: Strings, params?: {}): Promise<Dict>;
18
- fetchTradingLimitsById(id: Str, params?: {}): Promise<{
19
- info: any;
16
+ fetchTime(params?: Dict): Promise<Int>;
17
+ fetchTradingLimits(symbols?: Strings, params?: Dict): Promise<Dict>;
18
+ fetchTradingLimitsById(id: Str, params?: Dict): Promise<{
19
+ info: Dict;
20
20
  limits: {
21
21
  amount: {
22
22
  min: Num;
@@ -24,8 +24,8 @@ export default class bittrade extends Exchange {
24
24
  };
25
25
  };
26
26
  }>;
27
- parseTradingLimits(limits: any, symbol?: Str, params?: {}): {
28
- info: any;
27
+ parseTradingLimits(limits: Dict, symbol?: Str, params?: Dict): {
28
+ info: Dict;
29
29
  limits: {
30
30
  amount: {
31
31
  min: Num;
@@ -33,7 +33,7 @@ export default class bittrade extends Exchange {
33
33
  };
34
34
  };
35
35
  };
36
- costToPrecision(symbol: Str, cost: any): string;
36
+ costToPrecision(symbol: Str, cost: any): Str;
37
37
  /**
38
38
  * @method
39
39
  * @name bittrade#fetchMarkets
@@ -41,7 +41,7 @@ export default class bittrade extends Exchange {
41
41
  * @param {object} [params] extra parameters specific to the exchange API endpoint
42
42
  * @returns {object[]} an array of objects representing market data
43
43
  */
44
- fetchMarkets(params?: {}): Promise<Market[]>;
44
+ fetchMarkets(params?: Dict): Promise<Market[]>;
45
45
  parseTicker(ticker: Dict, market?: Market): Ticker;
46
46
  /**
47
47
  * @method
@@ -52,7 +52,7 @@ export default class bittrade extends Exchange {
52
52
  * @param {object} [params] extra parameters specific to the exchange API endpoint
53
53
  * @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
54
54
  */
55
- fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
55
+ fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
56
56
  /**
57
57
  * @method
58
58
  * @name bittrade#fetchTicker
@@ -61,7 +61,7 @@ export default class bittrade extends Exchange {
61
61
  * @param {object} [params] extra parameters specific to the exchange API endpoint
62
62
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
63
63
  */
64
- fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
64
+ fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
65
65
  /**
66
66
  * @method
67
67
  * @name bittrade#fetchTickers
@@ -70,7 +70,7 @@ export default class bittrade extends Exchange {
70
70
  * @param {object} [params] extra parameters specific to the exchange API endpoint
71
71
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
72
72
  */
73
- fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
73
+ fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
74
74
  parseTrade(trade: Dict, market?: Market): Trade;
75
75
  /**
76
76
  * @method
@@ -83,7 +83,7 @@ export default class bittrade extends Exchange {
83
83
  * @param {object} [params] extra parameters specific to the exchange API endpoint
84
84
  * @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
85
85
  */
86
- fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
86
+ fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
87
87
  /**
88
88
  * @method
89
89
  * @name bittrade#fetchMyTrades
@@ -94,7 +94,7 @@ export default class bittrade extends Exchange {
94
94
  * @param {object} [params] extra parameters specific to the exchange API endpoint
95
95
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
96
96
  */
97
- fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
97
+ fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
98
98
  /**
99
99
  * @method
100
100
  * @name bittrade#fetchTrades
@@ -105,7 +105,7 @@ export default class bittrade extends Exchange {
105
105
  * @param {object} [params] extra parameters specific to the exchange API endpoint
106
106
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
107
107
  */
108
- fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
108
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
109
109
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
110
110
  /**
111
111
  * @method
@@ -118,7 +118,7 @@ export default class bittrade extends Exchange {
118
118
  * @param {object} [params] extra parameters specific to the exchange API endpoint
119
119
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
120
120
  */
121
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
121
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
122
122
  /**
123
123
  * @method
124
124
  * @name bittrade#fetchAccounts
@@ -126,7 +126,7 @@ export default class bittrade extends Exchange {
126
126
  * @param {object} [params] extra parameters specific to the exchange API endpoint
127
127
  * @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
128
128
  */
129
- fetchAccounts(params?: {}): Promise<Account[]>;
129
+ fetchAccounts(params?: Dict): Promise<Account[]>;
130
130
  /**
131
131
  * @method
132
132
  * @name bittrade#fetchCurrencies
@@ -134,7 +134,7 @@ export default class bittrade extends Exchange {
134
134
  * @param {object} [params] extra parameters specific to the exchange API endpoint
135
135
  * @returns {object} an associative dictionary of currencies
136
136
  */
137
- fetchCurrencies(params?: {}): Promise<Currencies>;
137
+ fetchCurrencies(params?: Dict): Promise<Currencies>;
138
138
  parseCurrency(currency: Dict): CurrencyInterface;
139
139
  parseBalance(response: any): Balances;
140
140
  /**
@@ -144,8 +144,8 @@ export default class bittrade extends Exchange {
144
144
  * @param {object} [params] extra parameters specific to the exchange API endpoint
145
145
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
146
146
  */
147
- fetchBalance(params?: {}): Promise<Balances>;
148
- fetchOrdersByStates(states: any, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
147
+ fetchBalance(params?: Dict): Promise<Balances>;
148
+ fetchOrdersByStates(states: string, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
149
149
  /**
150
150
  * @method
151
151
  * @name bittrade#fetchOrder
@@ -155,7 +155,7 @@ export default class bittrade extends Exchange {
155
155
  * @param {object} [params] extra parameters specific to the exchange API endpoint
156
156
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
157
157
  */
158
- fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
158
+ fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
159
159
  /**
160
160
  * @method
161
161
  * @name bittrade#fetchOrders
@@ -166,7 +166,7 @@ export default class bittrade extends Exchange {
166
166
  * @param {object} [params] extra parameters specific to the exchange API endpoint
167
167
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
168
168
  */
169
- fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
169
+ fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
170
170
  /**
171
171
  * @method
172
172
  * @name bittrade#fetchOpenOrders
@@ -177,8 +177,8 @@ export default class bittrade extends Exchange {
177
177
  * @param {object} [params] extra parameters specific to the exchange API endpoint
178
178
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
179
179
  */
180
- fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
181
- fetchOpenOrdersV1(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
180
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
181
+ fetchOpenOrdersV1(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
182
182
  /**
183
183
  * @method
184
184
  * @name bittrade#fetchClosedOrders
@@ -189,7 +189,7 @@ export default class bittrade extends Exchange {
189
189
  * @param {object} [params] extra parameters specific to the exchange API endpoint
190
190
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
191
191
  */
192
- fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
192
+ fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
193
193
  fetchOpenOrdersV2(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
194
194
  parseOrderStatus(status: Str): Str;
195
195
  parseOrder(order: Dict, market?: Market): Order;
@@ -215,7 +215,7 @@ export default class bittrade extends Exchange {
215
215
  * @param {object} [params] extra parameters specific to the exchange API endpoint
216
216
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
217
217
  */
218
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
218
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
219
219
  /**
220
220
  * @method
221
221
  * @name bittrade#cancelOrder
@@ -225,7 +225,7 @@ export default class bittrade extends Exchange {
225
225
  * @param {object} [params] extra parameters specific to the exchange API endpoint
226
226
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
227
227
  */
228
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
228
+ cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
229
229
  /**
230
230
  * @method
231
231
  * @name bittrade#cancelOrders
@@ -235,8 +235,8 @@ export default class bittrade extends Exchange {
235
235
  * @param {object} [params] extra parameters specific to the exchange API endpoint
236
236
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
237
237
  */
238
- cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
239
- parseCancelOrders(orders: any): List;
238
+ cancelOrders(ids: string[], symbol?: Str, params?: Dict): Promise<Order[]>;
239
+ parseCancelOrders(orders: Dict): Order[];
240
240
  /**
241
241
  * @method
242
242
  * @name bittrade#cancelAllOrders
@@ -245,14 +245,8 @@ export default class bittrade extends Exchange {
245
245
  * @param {object} [params] extra parameters specific to the exchange API endpoint
246
246
  * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
247
247
  */
248
- cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
249
- parseDepositAddress(depositAddress: any, currency?: Currency): {
250
- currency: Str;
251
- address: Str;
252
- tag: Str;
253
- network: Str;
254
- info: any;
255
- };
248
+ cancelAllOrders(symbol?: Str, params?: Dict): Promise<Order[]>;
249
+ parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
256
250
  /**
257
251
  * @method
258
252
  * @name bittrade#fetchDeposits
@@ -263,7 +257,7 @@ export default class bittrade extends Exchange {
263
257
  * @param {object} [params] extra parameters specific to the exchange API endpoint
264
258
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
265
259
  */
266
- fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
260
+ fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
267
261
  /**
268
262
  * @method
269
263
  * @name bittrade#fetchWithdrawals
@@ -274,7 +268,7 @@ export default class bittrade extends Exchange {
274
268
  * @param {object} [params] extra parameters specific to the exchange API endpoint
275
269
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
276
270
  */
277
- fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
271
+ fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
278
272
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
279
273
  parseTransactionStatus(status: Str): Str;
280
274
  /**
@@ -288,12 +282,7 @@ export default class bittrade extends Exchange {
288
282
  * @param {object} [params] extra parameters specific to the exchange API endpoint
289
283
  * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
290
284
  */
291
- withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
292
- sign(path: any, api?: any, method?: string, params?: {}, headers?: NullableDict, body?: any): {
293
- url: string;
294
- method: string;
295
- body: any;
296
- headers: NullableDict;
297
- };
285
+ withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
286
+ sign(path: any, api?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
298
287
  handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
299
288
  }