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 blofin 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
@@ -26,7 +26,7 @@ export default class blofin extends Exchange {
26
26
  * @param {object} [params] extra parameters specific to the exchange API endpoint
27
27
  * @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
28
28
  */
29
- fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
29
+ fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
30
30
  parseTicker(ticker: Dict, market?: Market): Ticker;
31
31
  /**
32
32
  * @method
@@ -37,7 +37,7 @@ export default class blofin extends Exchange {
37
37
  * @param {object} [params] extra parameters specific to the exchange API endpoint
38
38
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
39
39
  */
40
- fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
40
+ fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
41
41
  /**
42
42
  * @method
43
43
  * @name blofin#fetchMarkPrice
@@ -48,7 +48,7 @@ export default class blofin extends Exchange {
48
48
  * @param {string} [params.subType] "linear" or "inverse"
49
49
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
50
50
  */
51
- fetchMarkPrice(symbol: string, params?: {}): Promise<Ticker>;
51
+ fetchMarkPrice(symbol: string, params?: Dict): Promise<Ticker>;
52
52
  /**
53
53
  * @method
54
54
  * @name blofin#fetchTickers
@@ -58,7 +58,7 @@ export default class blofin extends Exchange {
58
58
  * @param {object} [params] extra parameters specific to the exchange API endpoint
59
59
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
60
60
  */
61
- fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
61
+ fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
62
62
  parseTrade(trade: Dict, market?: Market): Trade;
63
63
  /**
64
64
  * @method
@@ -72,7 +72,7 @@ export default class blofin extends Exchange {
72
72
  * @param {boolean} [params.paginate] *only applies to publicGetMarketHistoryTrades* default false, when true will automatically paginate by calling this endpoint multiple times
73
73
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
74
74
  */
75
- fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
75
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
76
76
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
77
77
  /**
78
78
  * @method
@@ -88,7 +88,7 @@ export default class blofin extends Exchange {
88
88
  * @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)
89
89
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
90
90
  */
91
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
91
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
92
92
  /**
93
93
  * @method
94
94
  * @name blofin#fetchFundingRateHistory
@@ -102,7 +102,7 @@ export default class blofin extends Exchange {
102
102
  * @param {int} [params.until] timestamp in ms of the latest funding rate to fetch
103
103
  * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
104
104
  */
105
- fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
105
+ fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<FundingRateHistory[]>;
106
106
  parseFundingRate(contract: any, market?: Market): FundingRate;
107
107
  /**
108
108
  * @method
@@ -114,9 +114,9 @@ export default class blofin extends Exchange {
114
114
  * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
115
115
  */
116
116
  fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
117
- parseBalanceByType(response: any): Balances;
117
+ parseBalanceByType(response: Dict): Balances;
118
118
  parseBalance(response: any): Balances;
119
- parseFundingBalance(response: any): Balances;
119
+ parseFundingBalance(response: Dict): Balances;
120
120
  parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface;
121
121
  /**
122
122
  * @method
@@ -128,8 +128,8 @@ export default class blofin extends Exchange {
128
128
  * @param {string} [params.accountType] the type of account to fetch the balance for, either 'funding' or 'futures' or 'copy_trading' or 'earn'
129
129
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
130
130
  */
131
- fetchBalance(params?: {}): Promise<Balances>;
132
- createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: {}): any;
131
+ fetchBalance(params?: Dict): Promise<Balances>;
132
+ createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: Dict): Dict;
133
133
  parseOrderStatus(status: Str): Str;
134
134
  parseOrder(order: Dict, market?: Market): Order;
135
135
  /**
@@ -163,7 +163,7 @@ export default class blofin extends Exchange {
163
163
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
164
164
  */
165
165
  createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
166
- createTpslOrderRequest(symbol: Str, type: Str, side: Str, amount?: Num, price?: Num, params?: {}): any;
166
+ createTpslOrderRequest(symbol: Str, type: Str, side: Str, amount?: Num, price?: Num, params?: Dict): Dict;
167
167
  /**
168
168
  * @method
169
169
  * @name blofin#cancelOrder
@@ -177,7 +177,7 @@ export default class blofin extends Exchange {
177
177
  * @param {boolean} [params.tpsl] True if cancelling a tpsl order
178
178
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
179
179
  */
180
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
180
+ cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
181
181
  /**
182
182
  * @method
183
183
  * @name blofin#createOrders
@@ -187,7 +187,7 @@ export default class blofin extends Exchange {
187
187
  * @param {object} [params] extra parameters specific to the exchange API endpoint
188
188
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
189
189
  */
190
- createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
190
+ createOrders(orders: OrderRequest[], params?: Dict): Promise<Order[]>;
191
191
  /**
192
192
  * @method
193
193
  * @name blofin#fetchOpenOrders
@@ -203,7 +203,7 @@ export default class blofin extends Exchange {
203
203
  * @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)
204
204
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
205
205
  */
206
- fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
206
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
207
207
  /**
208
208
  * @method
209
209
  * @name blofin#fetchMyTrades
@@ -219,7 +219,7 @@ export default class blofin extends Exchange {
219
219
  * @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)
220
220
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
221
221
  */
222
- fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
222
+ fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
223
223
  /**
224
224
  * @method
225
225
  * @name blofin#fetchDeposits
@@ -233,7 +233,7 @@ export default class blofin extends Exchange {
233
233
  * @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)
234
234
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
235
235
  */
236
- fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
236
+ fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
237
237
  /**
238
238
  * @method
239
239
  * @name blofin#fetchWithdrawals
@@ -247,7 +247,7 @@ export default class blofin extends Exchange {
247
247
  * @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)
248
248
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
249
249
  */
250
- fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
250
+ fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
251
251
  networkCodeToChainId(networkCode: string): Str;
252
252
  chainIdToNetworkCode(chainId: Str): Str;
253
253
  /**
@@ -267,7 +267,7 @@ export default class blofin extends Exchange {
267
267
  * @param {string} [params.clientId] a client-supplied id of up to 32 case-sensitive alphanumerics
268
268
  * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
269
269
  */
270
- withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
270
+ withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
271
271
  /**
272
272
  * @method
273
273
  * @name blofin#fetchLedger
@@ -282,11 +282,11 @@ export default class blofin extends Exchange {
282
282
  * @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
283
283
  * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
284
284
  */
285
- fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
285
+ fetchLedger(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<LedgerEntry[]>;
286
286
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
287
287
  parseTransactionWithdrawalStatus(status: Str): Str;
288
288
  parseTransactionDepositStatus(status: Str): Str;
289
- parseLedgerEntryType(type: any): string;
289
+ parseLedgerEntryType(type: Str): Str;
290
290
  parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
291
291
  parseIds(ids: any): any;
292
292
  /**
@@ -300,7 +300,7 @@ export default class blofin extends Exchange {
300
300
  * @param {boolean} [params.trigger] whether the order is a stop/trigger order
301
301
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
302
302
  */
303
- cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
303
+ cancelOrders(ids: string[], symbol?: Str, params?: Dict): Promise<Order[]>;
304
304
  /**
305
305
  * @method
306
306
  * @name blofin#transfer
@@ -313,7 +313,7 @@ export default class blofin extends Exchange {
313
313
  * @param {object} [params] extra parameters specific to the exchange API endpoint
314
314
  * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
315
315
  */
316
- transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
316
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: Dict): Promise<TransferEntry>;
317
317
  parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
318
318
  /**
319
319
  * @method
@@ -325,7 +325,7 @@ export default class blofin extends Exchange {
325
325
  * @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
326
326
  * @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
327
327
  */
328
- fetchPosition(symbol: string, params?: {}): Promise<Position>;
328
+ fetchPosition(symbol: string, params?: Dict): Promise<Position>;
329
329
  /**
330
330
  * @method
331
331
  * @name blofin#fetchPositions
@@ -336,7 +336,7 @@ export default class blofin extends Exchange {
336
336
  * @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
337
337
  * @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
338
338
  */
339
- fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
339
+ fetchPositions(symbols?: Strings, params?: Dict): Promise<Position[]>;
340
340
  /**
341
341
  * @method
342
342
  * @name blofin#fetchPositionsHistory
@@ -351,7 +351,7 @@ export default class blofin extends Exchange {
351
351
  * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
352
352
  * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
353
353
  */
354
- fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
354
+ fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: Dict): Promise<Position[]>;
355
355
  parsePosition(position: Dict, market?: Market): Position;
356
356
  /**
357
357
  * @method
@@ -363,7 +363,7 @@ export default class blofin extends Exchange {
363
363
  * @param {string} [params.marginMode] 'cross' or 'isolated'
364
364
  * @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
365
365
  */
366
- fetchLeverages(symbols?: Strings, params?: {}): Promise<Leverages>;
366
+ fetchLeverages(symbols?: Strings, params?: Dict): Promise<Leverages>;
367
367
  /**
368
368
  * @method
369
369
  * @name blofin#fetchLeverage
@@ -374,7 +374,7 @@ export default class blofin extends Exchange {
374
374
  * @param {string} [params.marginMode] 'cross' or 'isolated'
375
375
  * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
376
376
  */
377
- fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
377
+ fetchLeverage(symbol: string, params?: Dict): Promise<Leverage>;
378
378
  parseLeverage(leverage: Dict, market?: Market): Leverage;
379
379
  /**
380
380
  * @method
@@ -388,7 +388,7 @@ export default class blofin extends Exchange {
388
388
  * @param {string} [params.positionSide] 'long' or 'short' - required for hedged mode in isolated margin
389
389
  * @returns {object} response from the exchange
390
390
  */
391
- setLeverage(leverage: int, symbol?: Str, params?: {}): Promise<Dict>;
391
+ setLeverage(leverage: int, symbol?: Str, params?: Dict): Promise<Dict>;
392
392
  /**
393
393
  * @method
394
394
  * @name blofin#closePosition
@@ -406,7 +406,7 @@ export default class blofin extends Exchange {
406
406
  * @param {string} [params.tag] order tag a combination of case-sensitive alphanumerics, all numbers, or all letters of up to 16 characters
407
407
  * @returns {object[]} [A list of position structures]{@link https://docs.ccxt.com/?id=position-structure}
408
408
  */
409
- closePosition(symbol: string, side?: OrderSide, params?: {}): Promise<Order>;
409
+ closePosition(symbol: string, side?: OrderSide, params?: Dict): Promise<Order>;
410
410
  /**
411
411
  * @method
412
412
  * @name blofin#fetchClosedOrders
@@ -421,7 +421,7 @@ export default class blofin extends Exchange {
421
421
  * @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)
422
422
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
423
423
  */
424
- fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
424
+ fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
425
425
  /**
426
426
  * @method
427
427
  * @name blofin#fetchMarginMode
@@ -431,7 +431,7 @@ export default class blofin extends Exchange {
431
431
  * @param {object} [params] extra parameters specific to the exchange API endpoint
432
432
  * @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/?id=margin-mode-structure}
433
433
  */
434
- fetchMarginMode(symbol: string, params?: {}): Promise<MarginMode>;
434
+ fetchMarginMode(symbol: string, params?: Dict): Promise<MarginMode>;
435
435
  parseMarginMode(marginMode: Dict, market?: Market): MarginMode;
436
436
  /**
437
437
  * @method
@@ -443,7 +443,7 @@ export default class blofin extends Exchange {
443
443
  * @param {object} [params] extra parameters specific to the exchange API endpoint
444
444
  * @returns {object} response from the exchange
445
445
  */
446
- setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<Dict>;
446
+ setMarginMode(marginMode: string, symbol?: Str, params?: Dict): Promise<Dict>;
447
447
  /**
448
448
  * @method
449
449
  * @name blofin#fetchPositionMode
@@ -453,7 +453,7 @@ export default class blofin extends Exchange {
453
453
  * @param {object} [params] extra parameters specific to the exchange API endpoint
454
454
  * @returns {object} an object detailing whether the market is in hedged or one-way mode
455
455
  */
456
- fetchPositionMode(symbol?: Str, params?: {}): Promise<PositionModeInfo>;
456
+ fetchPositionMode(symbol?: Str, params?: Dict): Promise<PositionModeInfo>;
457
457
  /**
458
458
  * @method
459
459
  * @name blofin#setPositionMode
@@ -464,7 +464,7 @@ export default class blofin extends Exchange {
464
464
  * @param {object} [params] extra parameters specific to the exchange API endpoint
465
465
  * @returns {object} response from the exchange
466
466
  */
467
- setPositionMode(hedged: boolean, symbol?: Str, params?: {}): Promise<Dict>;
467
+ setPositionMode(hedged: boolean, symbol?: Str, params?: Dict): Promise<Dict>;
468
468
  /**
469
469
  * @method
470
470
  * @name blofin#fetchPositionsADLRank
@@ -474,13 +474,8 @@ export default class blofin extends Exchange {
474
474
  * @param {object} [params] extra parameters specific to the exchange API endpoint
475
475
  * @returns {object[]} an array of [auto de leverage structures]{@link https://docs.ccxt.com/?id=auto-de-leverage-structure}
476
476
  */
477
- fetchPositionsADLRank(symbols?: Strings, params?: {}): Promise<ADL[]>;
477
+ fetchPositionsADLRank(symbols?: Strings, params?: Dict): Promise<ADL[]>;
478
478
  parseADLRank(info: Dict, market?: Market): ADL;
479
479
  handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
480
- sign(path: any, api?: any, method?: string, params?: {}, headers?: NullableDict, body?: Str): {
481
- url: string;
482
- method: string;
483
- body: Str;
484
- headers: NullableDict;
485
- };
480
+ sign(path: any, api?: string, method?: any, params?: Dict, headers?: NullableDict, body?: Str): Dict;
486
481
  }
@@ -13,7 +13,7 @@ export default class btcbox extends Exchange {
13
13
  * @param {object} [params] extra parameters specific to the exchange API endpoint
14
14
  * @returns {object[]} an array of objects representing market data
15
15
  */
16
- fetchMarkets(params?: {}): Promise<Market[]>;
16
+ fetchMarkets(params?: Dict): Promise<Market[]>;
17
17
  parseMarket(market: Dict): Market;
18
18
  parseBalance(response: any): Balances;
19
19
  /**
@@ -24,7 +24,7 @@ export default class btcbox extends Exchange {
24
24
  * @param {object} [params] extra parameters specific to the exchange API endpoint
25
25
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
26
26
  */
27
- fetchBalance(params?: {}): Promise<Balances>;
27
+ fetchBalance(params?: Dict): Promise<Balances>;
28
28
  /**
29
29
  * @method
30
30
  * @name btcbox#fetchOrderBook
@@ -35,7 +35,7 @@ export default class btcbox extends Exchange {
35
35
  * @param {object} [params] extra parameters specific to the exchange API endpoint
36
36
  * @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
37
37
  */
38
- fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
38
+ fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
39
39
  parseTicker(ticker: Dict, market?: Market): Ticker;
40
40
  /**
41
41
  * @method
@@ -46,7 +46,7 @@ export default class btcbox extends Exchange {
46
46
  * @param {object} [params] extra parameters specific to the exchange API endpoint
47
47
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
48
48
  */
49
- fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
49
+ fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
50
50
  /**
51
51
  * @method
52
52
  * @name btcbox#fetchTickers
@@ -55,7 +55,7 @@ export default class btcbox extends Exchange {
55
55
  * @param {object} [params] extra parameters specific to the exchange API endpoint
56
56
  * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
57
57
  */
58
- fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
58
+ fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
59
59
  parseTrade(trade: Dict, market?: Market): Trade;
60
60
  /**
61
61
  * @method
@@ -68,7 +68,7 @@ export default class btcbox extends Exchange {
68
68
  * @param {object} [params] extra parameters specific to the exchange API endpoint
69
69
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
70
70
  */
71
- fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
71
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
72
72
  /**
73
73
  * @method
74
74
  * @name btcbox#createOrder
@@ -82,7 +82,7 @@ export default class btcbox extends Exchange {
82
82
  * @param {object} [params] extra parameters specific to the exchange API endpoint
83
83
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
84
84
  */
85
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
85
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
86
86
  /**
87
87
  * @method
88
88
  * @name btcbox#cancelOrder
@@ -93,7 +93,7 @@ export default class btcbox extends Exchange {
93
93
  * @param {object} [params] extra parameters specific to the exchange API endpoint
94
94
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
95
95
  */
96
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
96
+ cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
97
97
  parseOrderStatus(status: Str): string | undefined;
98
98
  parseOrder(order: Dict, market?: Market): Order;
99
99
  /**
@@ -106,8 +106,8 @@ export default class btcbox extends Exchange {
106
106
  * @param {object} [params] extra parameters specific to the exchange API endpoint
107
107
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
108
108
  */
109
- fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
110
- fetchOrdersByType(type: any, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
109
+ fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
110
+ fetchOrdersByType(type: Str, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
111
111
  /**
112
112
  * @method
113
113
  * @name btcbox#fetchOrders
@@ -119,7 +119,7 @@ export default class btcbox extends Exchange {
119
119
  * @param {object} [params] extra parameters specific to the exchange API endpoint
120
120
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
121
121
  */
122
- fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
122
+ fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
123
123
  /**
124
124
  * @method
125
125
  * @name btcbox#fetchOpenOrders
@@ -131,14 +131,9 @@ export default class btcbox extends Exchange {
131
131
  * @param {object} [params] extra parameters specific to the exchange API endpoint
132
132
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
133
133
  */
134
- fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
134
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
135
135
  nonce(): number;
136
- sign(path: any, api?: any, method?: string, params?: {}, headers?: NullableDict, body?: any): {
137
- url: string;
138
- method: string;
139
- body: any;
140
- headers: NullableDict;
141
- };
136
+ sign(path: any, api?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
142
137
  handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
143
- request(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any, config?: {}): Promise<any>;
138
+ request(path: any, api?: string, method?: string, params?: Dict, headers?: any, body?: any, config?: any): Promise<any>;
144
139
  }
package/js/src/btcbox.js CHANGED
@@ -836,11 +836,11 @@ export default class btcbox extends Exchange {
836
836
  if (httpCode >= 400) {
837
837
  return undefined; // resort to defaultErrorHandler
838
838
  }
839
- const result = this.safeValue(response, 'result');
839
+ const result = this.safeBool(response, 'result');
840
840
  if (result === undefined || result === true) {
841
841
  return undefined; // either public API (no error codes expected) or success
842
842
  }
843
- const code = this.safeValue(response, 'code');
843
+ const code = this.safeString(response, 'code');
844
844
  const feedback = this.id + ' ' + body;
845
845
  this.throwExactlyMatchedException(this.exceptions, code, feedback);
846
846
  throw new ExchangeError(feedback); // unknown message
@@ -6,7 +6,7 @@ import type { Balances, Currency, Dict, NullableDict, Int, Market, Num, OHLCV, O
6
6
  */
7
7
  export default class btcmarkets extends Exchange {
8
8
  describe(): any;
9
- fetchTransactionsWithMethod(method: any, code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
9
+ fetchTransactionsWithMethod(method: string, code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
10
10
  /**
11
11
  * @method
12
12
  * @name btcmarkets#fetchDepositsWithdrawals
@@ -18,7 +18,7 @@ export default class btcmarkets extends Exchange {
18
18
  * @param {object} [params] extra parameters specific to the exchange API endpoint
19
19
  * @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
20
20
  */
21
- fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
21
+ fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
22
22
  /**
23
23
  * @method
24
24
  * @name btcmarkets#fetchDeposits
@@ -30,7 +30,7 @@ export default class btcmarkets extends Exchange {
30
30
  * @param {object} [params] extra parameters specific to the exchange API endpoint
31
31
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
32
32
  */
33
- fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
33
+ fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
34
34
  /**
35
35
  * @method
36
36
  * @name btcmarkets#fetchWithdrawals
@@ -42,9 +42,9 @@ export default class btcmarkets extends Exchange {
42
42
  * @param {object} [params] extra parameters specific to the exchange API endpoint
43
43
  * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
44
44
  */
45
- fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
45
+ fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
46
46
  parseTransactionStatus(status: Str): Str;
47
- parseTransactionType(type: any): string;
47
+ parseTransactionType(type: Str): Str;
48
48
  parseTransaction(transaction: Dict, currency?: Currency): Transaction;
49
49
  /**
50
50
  * @method
@@ -54,7 +54,7 @@ export default class btcmarkets extends Exchange {
54
54
  * @param {object} [params] extra parameters specific to the exchange API endpoint
55
55
  * @returns {object[]} an array of objects representing market data
56
56
  */
57
- fetchMarkets(params?: {}): Promise<Market[]>;
57
+ fetchMarkets(params?: Dict): Promise<Market[]>;
58
58
  parseMarket(market: Dict): Market;
59
59
  /**
60
60
  * @method
@@ -64,7 +64,7 @@ export default class btcmarkets extends Exchange {
64
64
  * @param {object} [params] extra parameters specific to the exchange API endpoint
65
65
  * @returns {int} the current integer timestamp in milliseconds from the exchange server
66
66
  */
67
- fetchTime(params?: {}): Promise<Int>;
67
+ fetchTime(params?: Dict): Promise<Int>;
68
68
  parseBalance(response: any): Balances;
69
69
  /**
70
70
  * @method
@@ -74,7 +74,7 @@ export default class btcmarkets extends Exchange {
74
74
  * @param {object} [params] extra parameters specific to the exchange API endpoint
75
75
  * @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
76
76
  */
77
- fetchBalance(params?: {}): Promise<Balances>;
77
+ fetchBalance(params?: Dict): Promise<Balances>;
78
78
  parseOHLCV(ohlcv: any, market?: Market): OHLCV;
79
79
  /**
80
80
  * @method
@@ -88,7 +88,7 @@ export default class btcmarkets extends Exchange {
88
88
  * @param {object} [params] extra parameters specific to the exchange API endpoint
89
89
  * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
90
90
  */
91
- fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
91
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
92
92
  /**
93
93
  * @method
94
94
  * @name btcmarkets#fetchOrderBook
@@ -99,7 +99,7 @@ export default class btcmarkets extends Exchange {
99
99
  * @param {object} [params] extra parameters specific to the exchange API endpoint
100
100
  * @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
101
101
  */
102
- fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
102
+ fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
103
103
  parseTicker(ticker: Dict, market?: Market): Ticker;
104
104
  /**
105
105
  * @method
@@ -110,8 +110,8 @@ export default class btcmarkets extends Exchange {
110
110
  * @param {object} [params] extra parameters specific to the exchange API endpoint
111
111
  * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
112
112
  */
113
- fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
114
- fetchTicker2(symbol: string, params?: {}): Promise<Ticker>;
113
+ fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
114
+ fetchTicker2(symbol: string, params?: Dict): Promise<Ticker>;
115
115
  parseTrade(trade: Dict, market?: Market): Trade;
116
116
  /**
117
117
  * @method
@@ -124,7 +124,7 @@ export default class btcmarkets extends Exchange {
124
124
  * @param {object} [params] extra parameters specific to the exchange API endpoint
125
125
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
126
126
  */
127
- fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
127
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
128
128
  /**
129
129
  * @method
130
130
  * @name btcmarkets#createOrder
@@ -139,7 +139,7 @@ export default class btcmarkets extends Exchange {
139
139
  * @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
140
140
  * @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
141
141
  */
142
- createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
142
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
143
143
  /**
144
144
  * @method
145
145
  * @name btcmarkets#cancelOrders
@@ -150,7 +150,7 @@ export default class btcmarkets extends Exchange {
150
150
  * @param {object} [params] extra parameters specific to the exchange API endpoint
151
151
  * @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
152
152
  */
153
- cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
153
+ cancelOrders(ids: string[], symbol?: Str, params?: Dict): Promise<Order[]>;
154
154
  /**
155
155
  * @method
156
156
  * @name btcmarkets#cancelOrder
@@ -161,9 +161,9 @@ export default class btcmarkets extends Exchange {
161
161
  * @param {object} [params] extra parameters specific to the exchange API endpoint
162
162
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
163
163
  */
164
- cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
165
- calculateFee(symbol: string, type: string, side: string, amount: number, price: number, takerOrMaker?: string, params?: {}): {
166
- type: string;
164
+ cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
165
+ calculateFee(symbol: string, type: string, side: string, amount: number, price: number, takerOrMaker?: any, params?: Dict): {
166
+ type: any;
167
167
  currency: string;
168
168
  rate: any;
169
169
  cost: number;
@@ -180,7 +180,7 @@ export default class btcmarkets extends Exchange {
180
180
  * @param {object} [params] extra parameters specific to the exchange API endpoint
181
181
  * @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
182
182
  */
183
- fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
183
+ fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
184
184
  /**
185
185
  * @method
186
186
  * @name btcmarkets#fetchOrders
@@ -192,7 +192,7 @@ export default class btcmarkets extends Exchange {
192
192
  * @param {object} [params] extra parameters specific to the exchange API endpoint
193
193
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
194
194
  */
195
- fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
195
+ fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
196
196
  /**
197
197
  * @method
198
198
  * @name btcmarkets#fetchOpenOrders
@@ -204,7 +204,7 @@ export default class btcmarkets extends Exchange {
204
204
  * @param {object} [params] extra parameters specific to the exchange API endpoint
205
205
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
206
206
  */
207
- fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
207
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
208
208
  /**
209
209
  * @method
210
210
  * @name btcmarkets#fetchClosedOrders
@@ -216,7 +216,7 @@ export default class btcmarkets extends Exchange {
216
216
  * @param {object} [params] extra parameters specific to the exchange API endpoint
217
217
  * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
218
218
  */
219
- fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
219
+ fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
220
220
  /**
221
221
  * @method
222
222
  * @name btcmarkets#fetchMyTrades
@@ -228,7 +228,7 @@ export default class btcmarkets extends Exchange {
228
228
  * @param {object} [params] extra parameters specific to the exchange API endpoint
229
229
  * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
230
230
  */
231
- fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
231
+ fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
232
232
  /**
233
233
  * @method
234
234
  * @name btcmarkets#withdraw
@@ -241,13 +241,8 @@ export default class btcmarkets extends Exchange {
241
241
  * @param {object} [params] extra parameters specific to the exchange API endpoint
242
242
  * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
243
243
  */
244
- withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
244
+ withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
245
245
  nonce(): number;
246
- sign(path: any, api?: any, method?: string, params?: {}, headers?: NullableDict, body?: Str): {
247
- url: string;
248
- method: string;
249
- body: Str;
250
- headers: NullableDict;
251
- };
246
+ sign(path: any, api?: string, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
252
247
  handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
253
248
  }
@@ -521,7 +521,7 @@ export default class btcmarkets extends Exchange {
521
521
  const base = this.safeCurrencyCode(baseId);
522
522
  const quote = this.safeCurrencyCode(quoteId);
523
523
  const symbol = base + '/' + quote;
524
- const fees = this.safeValue(this.safeDict(this.options, 'fees', {}), quote, this.fees);
524
+ const fees = this.safeDict(this.safeDict(this.options, 'fees', {}), quote, this.fees);
525
525
  const pricePrecision = this.parseNumber(this.parsePrecision(this.safeString(market, 'priceDecimals')));
526
526
  const minAmount = this.safeNumber(market, 'minOrderAmount');
527
527
  const maxAmount = this.safeNumber(market, 'maxOrderAmount');
@@ -957,7 +957,7 @@ export default class btcmarkets extends Exchange {
957
957
  // 'clientOrderId': this.uuid (),
958
958
  };
959
959
  const lowercaseType = type.toLowerCase();
960
- const orderTypes = this.safeValue(this.options, 'orderTypes', {
960
+ const orderTypes = this.safeDict(this.options, 'orderTypes', {
961
961
  'limit': 'Limit',
962
962
  'market': 'Market',
963
963
  'stop': 'Stop',