ccxt-ir 4.10.0 → 4.12.0

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 (1059) hide show
  1. package/README.md +4 -4
  2. package/dist/ccxt.browser.min.js +2 -2
  3. package/dist/cjs/ccxt.js +10 -1
  4. package/dist/cjs/src/abstract/bidarz.js +11 -0
  5. package/dist/cjs/src/bidarz.js +337 -0
  6. package/dist/cjs/src/bit24.js +4 -3
  7. package/dist/cjs/src/changefa.js +342 -0
  8. package/dist/cjs/src/ourbit.js +445 -0
  9. package/js/ccxt.d.ts +11 -2
  10. package/js/ccxt.js +8 -2
  11. package/js/src/abstract/bidarz.d.ts +9 -0
  12. package/js/src/abstract/bidarz.js +11 -0
  13. package/js/src/abstract/changefa.d.ts +8 -0
  14. package/js/src/abstract/changefa.js +11 -0
  15. package/js/src/abstract/ourbit.d.ts +10 -0
  16. package/js/src/abstract/ourbit.js +11 -0
  17. package/js/src/bidarz.d.ts +22 -0
  18. package/js/src/bidarz.js +336 -0
  19. package/js/src/bit24.js +4 -3
  20. package/js/src/changefa.d.ts +20 -0
  21. package/js/src/changefa.js +341 -0
  22. package/js/src/ourbit.d.ts +21 -0
  23. package/js/src/ourbit.js +444 -0
  24. package/js/src/src/abantether.d.ts +21 -0
  25. package/js/src/src/abantether.js +353 -0
  26. package/js/src/src/abstract/abantether.d.ts +8 -0
  27. package/js/src/src/abstract/abantether.js +11 -0
  28. package/js/src/src/abstract/afratether.d.ts +9 -0
  29. package/js/src/src/abstract/afratether.js +11 -0
  30. package/js/src/src/abstract/alpaca.d.ts +77 -0
  31. package/js/src/src/abstract/alpaca.js +11 -0
  32. package/js/src/src/abstract/apex.d.ts +34 -0
  33. package/js/src/src/abstract/apex.js +11 -0
  34. package/js/src/src/abstract/arzinja.d.ts +8 -0
  35. package/js/src/src/abstract/arzinja.js +11 -0
  36. package/js/src/src/abstract/arzplus.d.ts +11 -0
  37. package/js/src/src/abstract/arzplus.js +11 -0
  38. package/js/src/src/abstract/ascendex.d.ts +80 -0
  39. package/js/src/src/abstract/ascendex.js +11 -0
  40. package/js/src/src/abstract/asretether.d.ts +8 -0
  41. package/js/src/src/abstract/asretether.js +11 -0
  42. package/js/src/src/abstract/bidarz.d.ts +9 -0
  43. package/js/src/src/abstract/bidarz.js +11 -0
  44. package/js/src/src/abstract/bigone.d.ts +48 -0
  45. package/js/src/src/abstract/bigone.js +11 -0
  46. package/js/src/src/abstract/binance.d.ts +773 -0
  47. package/js/src/src/abstract/binance.js +11 -0
  48. package/js/src/src/abstract/bingx.d.ts +165 -0
  49. package/js/src/src/abstract/bingx.js +11 -0
  50. package/js/src/src/abstract/bit24.d.ts +9 -0
  51. package/js/src/src/abstract/bit24.js +11 -0
  52. package/js/src/src/abstract/bit2c.d.ts +30 -0
  53. package/js/src/src/abstract/bit2c.js +11 -0
  54. package/js/src/src/abstract/bitbank.d.ts +35 -0
  55. package/js/src/src/abstract/bitbank.js +11 -0
  56. package/js/src/src/abstract/bitbarg.d.ts +8 -0
  57. package/js/src/src/abstract/bitbarg.js +11 -0
  58. package/js/src/src/abstract/bitbns.d.ts +43 -0
  59. package/js/src/src/abstract/bitbns.js +11 -0
  60. package/js/src/src/abstract/bitfinex.d.ts +143 -0
  61. package/js/src/src/abstract/bitfinex.js +11 -0
  62. package/js/src/src/abstract/bitflyer.d.ts +42 -0
  63. package/js/src/src/abstract/bitflyer.js +11 -0
  64. package/js/src/src/abstract/bitget.d.ts +578 -0
  65. package/js/src/src/abstract/bitget.js +11 -0
  66. package/js/src/src/abstract/bithumb.d.ts +35 -0
  67. package/js/src/src/abstract/bithumb.js +11 -0
  68. package/js/src/src/abstract/bitimen.d.ts +10 -0
  69. package/js/src/src/abstract/bitimen.js +11 -0
  70. package/js/src/src/abstract/bitir.d.ts +10 -0
  71. package/js/src/src/abstract/bitir.js +11 -0
  72. package/js/src/src/abstract/bitmart.d.ts +120 -0
  73. package/js/src/src/abstract/bitmart.js +11 -0
  74. package/js/src/src/abstract/bitmex.d.ts +100 -0
  75. package/js/src/src/abstract/bitmex.js +11 -0
  76. package/js/src/src/abstract/bitopro.d.ts +33 -0
  77. package/js/src/src/abstract/bitopro.js +11 -0
  78. package/js/src/src/abstract/bitpin.d.ts +11 -0
  79. package/js/src/src/abstract/bitpin.js +11 -0
  80. package/js/src/src/abstract/bitrue.d.ts +75 -0
  81. package/js/src/src/abstract/bitrue.js +11 -0
  82. package/js/src/src/abstract/bitso.d.ts +46 -0
  83. package/js/src/src/abstract/bitso.js +11 -0
  84. package/js/src/src/abstract/bitstamp.d.ts +262 -0
  85. package/js/src/src/abstract/bitstamp.js +11 -0
  86. package/js/src/src/abstract/bitteam.d.ts +32 -0
  87. package/js/src/src/abstract/bitteam.js +11 -0
  88. package/js/src/src/abstract/bittrade.d.ts +117 -0
  89. package/js/src/src/abstract/bittrade.js +11 -0
  90. package/js/src/src/abstract/bitunix.d.ts +9 -0
  91. package/js/src/src/abstract/bitunix.js +11 -0
  92. package/js/src/src/abstract/bitvavo.d.ts +30 -0
  93. package/js/src/src/abstract/bitvavo.js +11 -0
  94. package/js/src/src/abstract/blockchaincom.d.ts +31 -0
  95. package/js/src/src/abstract/blockchaincom.js +11 -0
  96. package/js/src/src/abstract/blofin.d.ts +70 -0
  97. package/js/src/src/abstract/blofin.js +11 -0
  98. package/js/src/src/abstract/btcalpha.d.ts +21 -0
  99. package/js/src/src/abstract/btcalpha.js +11 -0
  100. package/js/src/src/abstract/btcbox.d.ts +18 -0
  101. package/js/src/src/abstract/btcbox.js +11 -0
  102. package/js/src/src/abstract/btcmarkets.d.ts +42 -0
  103. package/js/src/src/abstract/btcmarkets.js +11 -0
  104. package/js/src/src/abstract/btcturk.d.ts +23 -0
  105. package/js/src/src/abstract/btcturk.js +11 -0
  106. package/js/src/src/abstract/bybit.d.ts +316 -0
  107. package/js/src/src/abstract/bybit.js +11 -0
  108. package/js/src/src/abstract/bydfi.d.ts +11 -0
  109. package/js/src/src/abstract/bydfi.js +11 -0
  110. package/js/src/src/abstract/cafearz.d.ts +8 -0
  111. package/js/src/src/abstract/cafearz.js +11 -0
  112. package/js/src/src/abstract/cex.d.ts +35 -0
  113. package/js/src/src/abstract/cex.js +11 -0
  114. package/js/src/src/abstract/coinbase.d.ts +97 -0
  115. package/js/src/src/abstract/coinbase.js +11 -0
  116. package/js/src/src/abstract/coinbaseexchange.d.ts +71 -0
  117. package/js/src/src/abstract/coinbaseexchange.js +11 -0
  118. package/js/src/src/abstract/coinbaseinternational.d.ts +42 -0
  119. package/js/src/src/abstract/coinbaseinternational.js +11 -0
  120. package/js/src/src/abstract/coincatch.d.ts +97 -0
  121. package/js/src/src/abstract/coincatch.js +11 -0
  122. package/js/src/src/abstract/coincheck.d.ts +36 -0
  123. package/js/src/src/abstract/coincheck.js +11 -0
  124. package/js/src/src/abstract/coinex.d.ts +240 -0
  125. package/js/src/src/abstract/coinex.js +11 -0
  126. package/js/src/src/abstract/coinmate.d.ts +65 -0
  127. package/js/src/src/abstract/coinmate.js +11 -0
  128. package/js/src/src/abstract/coinmetro.d.ts +37 -0
  129. package/js/src/src/abstract/coinmetro.js +11 -0
  130. package/js/src/src/abstract/coinone.d.ts +70 -0
  131. package/js/src/src/abstract/coinone.js +11 -0
  132. package/js/src/src/abstract/coinsph.d.ts +57 -0
  133. package/js/src/src/abstract/coinsph.js +11 -0
  134. package/js/src/src/abstract/coinspot.d.ts +31 -0
  135. package/js/src/src/abstract/coinspot.js +11 -0
  136. package/js/src/src/abstract/cryptocom.d.ts +126 -0
  137. package/js/src/src/abstract/cryptocom.js +11 -0
  138. package/js/src/src/abstract/cryptomus.d.ts +23 -0
  139. package/js/src/src/abstract/cryptomus.js +11 -0
  140. package/js/src/src/abstract/defx.d.ts +72 -0
  141. package/js/src/src/abstract/defx.js +11 -0
  142. package/js/src/src/abstract/delta.d.ts +53 -0
  143. package/js/src/src/abstract/delta.js +11 -0
  144. package/js/src/src/abstract/deribit.d.ts +129 -0
  145. package/js/src/src/abstract/deribit.js +11 -0
  146. package/js/src/src/abstract/derive.d.ts +120 -0
  147. package/js/src/src/abstract/derive.js +11 -0
  148. package/js/src/src/abstract/digifinex.d.ts +95 -0
  149. package/js/src/src/abstract/digifinex.js +11 -0
  150. package/js/src/src/abstract/ellipx.d.ts +28 -0
  151. package/js/src/src/abstract/ellipx.js +11 -0
  152. package/js/src/src/abstract/eterex.d.ts +8 -0
  153. package/js/src/src/abstract/eterex.js +11 -0
  154. package/js/src/src/abstract/excoino.d.ts +10 -0
  155. package/js/src/src/abstract/excoino.js +11 -0
  156. package/js/src/src/abstract/exir.d.ts +11 -0
  157. package/js/src/src/abstract/exir.js +11 -0
  158. package/js/src/src/abstract/exmo.d.ts +58 -0
  159. package/js/src/src/abstract/exmo.js +11 -0
  160. package/js/src/src/abstract/exnovin.d.ts +9 -0
  161. package/js/src/src/abstract/exnovin.js +11 -0
  162. package/js/src/src/abstract/farhadexchange.d.ts +8 -0
  163. package/js/src/src/abstract/farhadexchange.js +11 -0
  164. package/js/src/src/abstract/foxbit.d.ts +29 -0
  165. package/js/src/src/abstract/foxbit.js +11 -0
  166. package/js/src/src/abstract/gate.d.ts +287 -0
  167. package/js/src/src/abstract/gate.js +11 -0
  168. package/js/src/src/abstract/gemini.d.ts +62 -0
  169. package/js/src/src/abstract/gemini.js +11 -0
  170. package/js/src/src/abstract/hamtapay.d.ts +9 -0
  171. package/js/src/src/abstract/hamtapay.js +11 -0
  172. package/js/src/src/abstract/hashkey.d.ts +70 -0
  173. package/js/src/src/abstract/hashkey.js +11 -0
  174. package/js/src/src/abstract/hibachi.d.ts +29 -0
  175. package/js/src/src/abstract/hibachi.js +11 -0
  176. package/js/src/src/abstract/hitbtc.d.ts +118 -0
  177. package/js/src/src/abstract/hitbtc.js +11 -0
  178. package/js/src/src/abstract/hitobit.d.ts +11 -0
  179. package/js/src/src/abstract/hitobit.js +11 -0
  180. package/js/src/src/abstract/hollaex.d.ts +36 -0
  181. package/js/src/src/abstract/hollaex.js +11 -0
  182. package/js/src/src/abstract/htx.d.ts +551 -0
  183. package/js/src/src/abstract/htx.js +11 -0
  184. package/js/src/src/abstract/hyperliquid.d.ts +9 -0
  185. package/js/src/src/abstract/hyperliquid.js +11 -0
  186. package/js/src/src/abstract/independentreserve.d.ts +46 -0
  187. package/js/src/src/abstract/independentreserve.js +11 -0
  188. package/js/src/src/abstract/indodax.d.ts +29 -0
  189. package/js/src/src/abstract/indodax.js +11 -0
  190. package/js/src/src/abstract/iranexchange.d.ts +9 -0
  191. package/js/src/src/abstract/iranexchange.js +11 -0
  192. package/js/src/src/abstract/jibitex.d.ts +10 -0
  193. package/js/src/src/abstract/jibitex.js +11 -0
  194. package/js/src/src/abstract/kcex.d.ts +10 -0
  195. package/js/src/src/abstract/kcex.js +11 -0
  196. package/js/src/src/abstract/kifpoolme.d.ts +9 -0
  197. package/js/src/src/abstract/kifpoolme.js +11 -0
  198. package/js/src/src/abstract/kraken.d.ts +61 -0
  199. package/js/src/src/abstract/kraken.js +11 -0
  200. package/js/src/src/abstract/krakenfutures.d.ts +45 -0
  201. package/js/src/src/abstract/krakenfutures.js +11 -0
  202. package/js/src/src/abstract/kucoin.d.ts +227 -0
  203. package/js/src/src/abstract/kucoin.js +11 -0
  204. package/js/src/src/abstract/kucoinfutures.d.ts +254 -0
  205. package/js/src/src/abstract/kucoinfutures.js +11 -0
  206. package/js/src/src/abstract/latoken.d.ts +59 -0
  207. package/js/src/src/abstract/latoken.js +11 -0
  208. package/js/src/src/abstract/lbank.d.ts +65 -0
  209. package/js/src/src/abstract/lbank.js +11 -0
  210. package/js/src/src/abstract/luno.d.ts +41 -0
  211. package/js/src/src/abstract/luno.js +11 -0
  212. package/js/src/src/abstract/mazdax.d.ts +11 -0
  213. package/js/src/src/abstract/mazdax.js +11 -0
  214. package/js/src/src/abstract/mercado.d.ts +28 -0
  215. package/js/src/src/abstract/mercado.js +11 -0
  216. package/js/src/src/abstract/mexc.d.ts +183 -0
  217. package/js/src/src/abstract/mexc.js +11 -0
  218. package/js/src/src/abstract/modetrade.d.ts +122 -0
  219. package/js/src/src/abstract/modetrade.js +11 -0
  220. package/js/src/src/abstract/ndax.d.ts +100 -0
  221. package/js/src/src/abstract/ndax.js +11 -0
  222. package/js/src/src/abstract/nobitex.d.ts +10 -0
  223. package/js/src/src/abstract/nobitex.js +11 -0
  224. package/js/src/src/abstract/novadax.d.ts +32 -0
  225. package/js/src/src/abstract/novadax.js +11 -0
  226. package/js/src/src/abstract/oceanex.d.ts +30 -0
  227. package/js/src/src/abstract/oceanex.js +11 -0
  228. package/js/src/src/abstract/okcoin.d.ts +77 -0
  229. package/js/src/src/abstract/okcoin.js +11 -0
  230. package/js/src/src/abstract/okexchange.d.ts +11 -0
  231. package/js/src/src/abstract/okexchange.js +11 -0
  232. package/js/src/src/abstract/okx.d.ts +352 -0
  233. package/js/src/src/abstract/okx.js +11 -0
  234. package/js/src/src/abstract/ompfinex.d.ts +10 -0
  235. package/js/src/src/abstract/ompfinex.js +11 -0
  236. package/js/src/src/abstract/onetrading.d.ts +26 -0
  237. package/js/src/src/abstract/onetrading.js +11 -0
  238. package/js/src/src/abstract/oxfun.d.ts +37 -0
  239. package/js/src/src/abstract/oxfun.js +11 -0
  240. package/js/src/src/abstract/p2b.d.ts +25 -0
  241. package/js/src/src/abstract/p2b.js +11 -0
  242. package/js/src/src/abstract/paradex.d.ts +66 -0
  243. package/js/src/src/abstract/paradex.js +11 -0
  244. package/js/src/src/abstract/paymium.d.ts +31 -0
  245. package/js/src/src/abstract/paymium.js +11 -0
  246. package/js/src/src/abstract/phemex.d.ts +120 -0
  247. package/js/src/src/abstract/phemex.js +11 -0
  248. package/js/src/src/abstract/pingi.d.ts +9 -0
  249. package/js/src/src/abstract/pingi.js +11 -0
  250. package/js/src/src/abstract/poloniex.d.ts +108 -0
  251. package/js/src/src/abstract/poloniex.js +11 -0
  252. package/js/src/src/abstract/pooleno.d.ts +8 -0
  253. package/js/src/src/abstract/pooleno.js +11 -0
  254. package/js/src/src/abstract/probit.d.ts +26 -0
  255. package/js/src/src/abstract/probit.js +11 -0
  256. package/js/src/src/abstract/raastin.d.ts +11 -0
  257. package/js/src/src/abstract/raastin.js +11 -0
  258. package/js/src/src/abstract/ramzinex.d.ts +10 -0
  259. package/js/src/src/abstract/ramzinex.js +11 -0
  260. package/js/src/src/abstract/sarmayex.d.ts +8 -0
  261. package/js/src/src/abstract/sarmayex.js +11 -0
  262. package/js/src/src/abstract/sarrafex.d.ts +10 -0
  263. package/js/src/src/abstract/sarrafex.js +11 -0
  264. package/js/src/src/abstract/tabdeal.d.ts +10 -0
  265. package/js/src/src/abstract/tabdeal.js +11 -0
  266. package/js/src/src/abstract/tehran_exchange.d.ts +9 -0
  267. package/js/src/src/abstract/tehran_exchange.js +11 -0
  268. package/js/src/src/abstract/tetherland.d.ts +8 -0
  269. package/js/src/src/abstract/tetherland.js +11 -0
  270. package/js/src/src/abstract/timex.d.ts +65 -0
  271. package/js/src/src/abstract/timex.js +11 -0
  272. package/js/src/src/abstract/tokocrypto.d.ts +40 -0
  273. package/js/src/src/abstract/tokocrypto.js +11 -0
  274. package/js/src/src/abstract/toobit.d.ts +10 -0
  275. package/js/src/src/abstract/toobit.js +11 -0
  276. package/js/src/src/abstract/tradeogre.d.ts +21 -0
  277. package/js/src/src/abstract/tradeogre.js +11 -0
  278. package/js/src/src/abstract/twox.d.ts +8 -0
  279. package/js/src/src/abstract/twox.js +11 -0
  280. package/js/src/src/abstract/ubitex.d.ts +10 -0
  281. package/js/src/src/abstract/ubitex.js +11 -0
  282. package/js/src/src/abstract/upbit.d.ts +58 -0
  283. package/js/src/src/abstract/upbit.js +11 -0
  284. package/js/src/src/abstract/vertex.d.ts +22 -0
  285. package/js/src/src/abstract/vertex.js +11 -0
  286. package/js/src/src/abstract/wallex.d.ts +11 -0
  287. package/js/src/src/abstract/wallex.js +11 -0
  288. package/js/src/src/abstract/wavesexchange.d.ts +157 -0
  289. package/js/src/src/abstract/wavesexchange.js +11 -0
  290. package/js/src/src/abstract/whitebit.d.ts +117 -0
  291. package/js/src/src/abstract/whitebit.js +11 -0
  292. package/js/src/src/abstract/woo.d.ts +144 -0
  293. package/js/src/src/abstract/woo.js +11 -0
  294. package/js/src/src/abstract/woofipro.d.ts +122 -0
  295. package/js/src/src/abstract/woofipro.js +11 -0
  296. package/js/src/src/abstract/xt.d.ts +160 -0
  297. package/js/src/src/abstract/xt.js +11 -0
  298. package/js/src/src/abstract/yobit.d.ts +19 -0
  299. package/js/src/src/abstract/yobit.js +11 -0
  300. package/js/src/src/abstract/zaif.d.ts +41 -0
  301. package/js/src/src/abstract/zaif.js +11 -0
  302. package/js/src/src/abstract/zonda.d.ts +56 -0
  303. package/js/src/src/abstract/zonda.js +11 -0
  304. package/js/src/src/afratether.d.ts +21 -0
  305. package/js/src/src/afratether.js +356 -0
  306. package/js/src/src/alpaca.d.ts +332 -0
  307. package/js/src/src/alpaca.js +1908 -0
  308. package/js/src/src/apex.d.ts +333 -0
  309. package/js/src/src/apex.js +1942 -0
  310. package/js/src/src/arzinja.d.ts +21 -0
  311. package/js/src/src/arzinja.js +298 -0
  312. package/js/src/src/arzplus.d.ts +26 -0
  313. package/js/src/src/arzplus.js +581 -0
  314. package/js/src/src/ascendex.d.ts +424 -0
  315. package/js/src/src/ascendex.js +3699 -0
  316. package/js/src/src/asretether.d.ts +21 -0
  317. package/js/src/src/asretether.js +324 -0
  318. package/js/src/src/base/Exchange.d.ts +926 -0
  319. package/js/src/src/base/Exchange.js +7399 -0
  320. package/js/src/src/base/Precise.d.ts +42 -0
  321. package/js/src/src/base/Precise.js +275 -0
  322. package/js/src/src/base/errors.d.ts +168 -0
  323. package/js/src/src/base/errors.js +255 -0
  324. package/js/src/src/base/functions/crypto.d.ts +16 -0
  325. package/js/src/src/base/functions/crypto.js +131 -0
  326. package/js/src/src/base/functions/encode.d.ts +4 -0
  327. package/js/src/src/base/functions/encode.js +32 -0
  328. package/js/src/src/base/functions/generic.d.ts +29 -0
  329. package/js/src/src/base/functions/generic.js +203 -0
  330. package/js/src/src/base/functions/misc.d.ts +9 -0
  331. package/js/src/src/base/functions/misc.js +101 -0
  332. package/js/src/src/base/functions/number.d.ts +27 -0
  333. package/js/src/src/base/functions/number.js +313 -0
  334. package/js/src/src/base/functions/platform.d.ts +7 -0
  335. package/js/src/src/base/functions/platform.js +27 -0
  336. package/js/src/src/base/functions/rsa.d.ts +5 -0
  337. package/js/src/src/base/functions/rsa.js +49 -0
  338. package/js/src/src/base/functions/string.d.ts +7 -0
  339. package/js/src/src/base/functions/string.js +44 -0
  340. package/js/src/src/base/functions/throttle.d.ts +6 -0
  341. package/js/src/src/base/functions/throttle.js +67 -0
  342. package/js/src/src/base/functions/time.d.ts +21 -0
  343. package/js/src/src/base/functions/time.js +171 -0
  344. package/js/src/src/base/functions/totp.d.ts +3 -0
  345. package/js/src/src/base/functions/totp.js +25 -0
  346. package/js/src/src/base/functions/type.d.ts +37 -0
  347. package/js/src/src/base/functions/type.js +179 -0
  348. package/js/src/src/base/functions.d.ts +10 -0
  349. package/js/src/src/base/functions.js +18 -0
  350. package/js/src/src/base/types.d.ts +586 -0
  351. package/js/src/src/base/types.js +7 -0
  352. package/js/src/src/base/ws/Cache.d.ts +27 -0
  353. package/js/src/src/base/ws/Cache.js +260 -0
  354. package/js/src/src/base/ws/Client.d.ts +53 -0
  355. package/js/src/src/base/ws/Client.js +307 -0
  356. package/js/src/src/base/ws/Future.d.ts +8 -0
  357. package/js/src/src/base/ws/Future.js +35 -0
  358. package/js/src/src/base/ws/OrderBook.d.ts +25 -0
  359. package/js/src/src/base/ws/OrderBook.js +130 -0
  360. package/js/src/src/base/ws/OrderBookSide.d.ts +40 -0
  361. package/js/src/src/base/ws/OrderBookSide.js +286 -0
  362. package/js/src/src/base/ws/WsClient.d.ts +11 -0
  363. package/js/src/src/base/ws/WsClient.js +69 -0
  364. package/js/src/src/bequant.d.ts +4 -0
  365. package/js/src/src/bequant.js +35 -0
  366. package/js/src/src/bidarz.d.ts +16 -0
  367. package/js/src/src/bidarz.js +327 -0
  368. package/js/src/src/bigone.d.ts +296 -0
  369. package/js/src/src/bigone.js +2340 -0
  370. package/js/src/src/binance.d.ts +1667 -0
  371. package/js/src/src/binance.js +14400 -0
  372. package/js/src/src/binancecoinm.d.ts +6 -0
  373. package/js/src/src/binancecoinm.js +51 -0
  374. package/js/src/src/binanceus.d.ts +4 -0
  375. package/js/src/src/binanceus.js +225 -0
  376. package/js/src/src/binanceusdm.d.ts +6 -0
  377. package/js/src/src/binanceusdm.js +63 -0
  378. package/js/src/src/bingx.d.ts +778 -0
  379. package/js/src/src/bingx.js +6705 -0
  380. package/js/src/src/bit24.d.ts +24 -0
  381. package/js/src/src/bit24.js +520 -0
  382. package/js/src/src/bit2c.d.ts +146 -0
  383. package/js/src/src/bit2c.js +1029 -0
  384. package/js/src/src/bitbank.d.ts +181 -0
  385. package/js/src/src/bitbank.js +1146 -0
  386. package/js/src/src/bitbarg.d.ts +21 -0
  387. package/js/src/src/bitbarg.js +312 -0
  388. package/js/src/src/bitbns.d.ts +184 -0
  389. package/js/src/src/bitbns.js +1288 -0
  390. package/js/src/src/bitfinex.d.ts +516 -0
  391. package/js/src/src/bitfinex.js +3951 -0
  392. package/js/src/src/bitflyer.d.ts +229 -0
  393. package/js/src/src/bitflyer.js +1209 -0
  394. package/js/src/src/bitget.d.ts +1109 -0
  395. package/js/src/src/bitget.js +11033 -0
  396. package/js/src/src/bithumb.d.ts +165 -0
  397. package/js/src/src/bithumb.js +1257 -0
  398. package/js/src/src/bitimen.d.ts +23 -0
  399. package/js/src/src/bitimen.js +424 -0
  400. package/js/src/src/bitir.d.ts +23 -0
  401. package/js/src/src/bitir.js +521 -0
  402. package/js/src/src/bitmart.d.ts +736 -0
  403. package/js/src/src/bitmart.js +5639 -0
  404. package/js/src/src/bitmex.d.ts +395 -0
  405. package/js/src/src/bitmex.js +3088 -0
  406. package/js/src/src/bitopro.d.ts +295 -0
  407. package/js/src/src/bitopro.js +1892 -0
  408. package/js/src/src/bitpin.d.ts +23 -0
  409. package/js/src/src/bitpin.js +487 -0
  410. package/js/src/src/bitrue.d.ts +384 -0
  411. package/js/src/src/bitrue.js +3382 -0
  412. package/js/src/src/bitso.d.ts +270 -0
  413. package/js/src/src/bitso.js +1881 -0
  414. package/js/src/src/bitstamp.d.ts +355 -0
  415. package/js/src/src/bitstamp.js +2445 -0
  416. package/js/src/src/bitteam.d.ts +229 -0
  417. package/js/src/src/bitteam.js +2420 -0
  418. package/js/src/src/bittrade.d.ts +298 -0
  419. package/js/src/src/bittrade.js +2050 -0
  420. package/js/src/src/bitunix.d.ts +21 -0
  421. package/js/src/src/bitunix.js +326 -0
  422. package/js/src/src/bitvavo.d.ts +311 -0
  423. package/js/src/src/bitvavo.js +2204 -0
  424. package/js/src/src/blockchaincom.d.ts +256 -0
  425. package/js/src/src/blockchaincom.js +1259 -0
  426. package/js/src/src/blofin.d.ts +439 -0
  427. package/js/src/src/blofin.js +2576 -0
  428. package/js/src/src/btcalpha.d.ts +209 -0
  429. package/js/src/src/btcalpha.js +1056 -0
  430. package/js/src/src/btcbox.d.ts +144 -0
  431. package/js/src/src/btcbox.js +834 -0
  432. package/js/src/src/btcmarkets.d.ts +253 -0
  433. package/js/src/src/btcmarkets.js +1418 -0
  434. package/js/src/src/btcturk.d.ts +161 -0
  435. package/js/src/src/btcturk.js +1058 -0
  436. package/js/src/src/bybit.d.ts +1097 -0
  437. package/js/src/src/bybit.js +9382 -0
  438. package/js/src/src/bydfi.d.ts +23 -0
  439. package/js/src/src/bydfi.js +434 -0
  440. package/js/src/src/cafearz.d.ts +21 -0
  441. package/js/src/src/cafearz.js +346 -0
  442. package/js/src/src/cex.d.ts +286 -0
  443. package/js/src/src/cex.js +1799 -0
  444. package/js/src/src/coinbase.d.ts +623 -0
  445. package/js/src/src/coinbase.js +5220 -0
  446. package/js/src/src/coinbaseadvanced.d.ts +4 -0
  447. package/js/src/src/coinbaseadvanced.js +18 -0
  448. package/js/src/src/coinbaseexchange.d.ts +334 -0
  449. package/js/src/src/coinbaseexchange.js +2127 -0
  450. package/js/src/src/coinbaseinternational.d.ts +443 -0
  451. package/js/src/src/coinbaseinternational.js +2336 -0
  452. package/js/src/src/coincatch.d.ts +786 -0
  453. package/js/src/src/coincatch.js +5492 -0
  454. package/js/src/src/coincheck.d.ts +147 -0
  455. package/js/src/src/coincheck.js +962 -0
  456. package/js/src/src/coinex.d.ts +719 -0
  457. package/js/src/src/coinex.js +6166 -0
  458. package/js/src/src/coinmate.d.ts +202 -0
  459. package/js/src/src/coinmate.js +1215 -0
  460. package/js/src/src/coinmetro.d.ts +244 -0
  461. package/js/src/src/coinmetro.js +2024 -0
  462. package/js/src/src/coinone.d.ts +158 -0
  463. package/js/src/src/coinone.js +1278 -0
  464. package/js/src/src/coinsph.d.ts +310 -0
  465. package/js/src/src/coinsph.js +2203 -0
  466. package/js/src/src/coinspot.d.ts +108 -0
  467. package/js/src/src/coinspot.js +653 -0
  468. package/js/src/src/cryptocom.d.ts +463 -0
  469. package/js/src/src/cryptocom.js +3549 -0
  470. package/js/src/src/cryptomus.d.ts +158 -0
  471. package/js/src/src/cryptomus.js +1169 -0
  472. package/js/src/src/defx.d.ts +348 -0
  473. package/js/src/src/defx.js +2139 -0
  474. package/js/src/src/delta.d.ts +407 -0
  475. package/js/src/src/delta.js +3654 -0
  476. package/js/src/src/deribit.d.ts +516 -0
  477. package/js/src/src/deribit.js +3790 -0
  478. package/js/src/src/derive.d.ts +324 -0
  479. package/js/src/src/derive.js +2655 -0
  480. package/js/src/src/digifinex.d.ts +544 -0
  481. package/js/src/src/digifinex.js +4453 -0
  482. package/js/src/src/ellipx.d.ts +237 -0
  483. package/js/src/src/ellipx.js +2071 -0
  484. package/js/src/src/eterex.d.ts +21 -0
  485. package/js/src/src/eterex.js +299 -0
  486. package/js/src/src/excoino.d.ts +23 -0
  487. package/js/src/src/excoino.js +426 -0
  488. package/js/src/src/exir.d.ts +23 -0
  489. package/js/src/src/exir.js +403 -0
  490. package/js/src/src/exmo.d.ts +426 -0
  491. package/js/src/src/exmo.js +2825 -0
  492. package/js/src/src/exnovin.d.ts +22 -0
  493. package/js/src/src/exnovin.js +378 -0
  494. package/js/src/src/farhadexchange.d.ts +21 -0
  495. package/js/src/src/farhadexchange.js +280 -0
  496. package/js/src/src/fmfwio.d.ts +4 -0
  497. package/js/src/src/fmfwio.js +35 -0
  498. package/js/src/src/foxbit.d.ts +352 -0
  499. package/js/src/src/foxbit.js +2016 -0
  500. package/js/src/src/gate.d.ts +1071 -0
  501. package/js/src/src/gate.js +8282 -0
  502. package/js/src/src/gateio.d.ts +4 -0
  503. package/js/src/src/gateio.js +17 -0
  504. package/js/src/src/gemini.d.ts +257 -0
  505. package/js/src/src/gemini.js +2006 -0
  506. package/js/src/src/hamtapay.d.ts +21 -0
  507. package/js/src/src/hamtapay.js +303 -0
  508. package/js/src/src/hashkey.d.ts +628 -0
  509. package/js/src/src/hashkey.js +4363 -0
  510. package/js/src/src/hibachi.d.ts +346 -0
  511. package/js/src/src/hibachi.js +2137 -0
  512. package/js/src/src/hitbtc.d.ts +558 -0
  513. package/js/src/src/hitbtc.js +3847 -0
  514. package/js/src/src/hitobit.d.ts +23 -0
  515. package/js/src/src/hitobit.js +412 -0
  516. package/js/src/src/hollaex.d.ts +305 -0
  517. package/js/src/src/hollaex.js +2046 -0
  518. package/js/src/src/htx.d.ts +961 -0
  519. package/js/src/src/htx.js +9668 -0
  520. package/js/src/src/huobi.d.ts +4 -0
  521. package/js/src/src/huobi.js +17 -0
  522. package/js/src/src/hyperliquid.d.ts +651 -0
  523. package/js/src/src/hyperliquid.js +3937 -0
  524. package/js/src/src/independentreserve.d.ts +169 -0
  525. package/js/src/src/independentreserve.js +1115 -0
  526. package/js/src/src/indodax.d.ts +217 -0
  527. package/js/src/src/indodax.js +1454 -0
  528. package/js/src/src/iranexchange.d.ts +21 -0
  529. package/js/src/src/iranexchange.js +399 -0
  530. package/js/src/src/jibitex.d.ts +23 -0
  531. package/js/src/src/jibitex.js +416 -0
  532. package/js/src/src/kcex.d.ts +21 -0
  533. package/js/src/src/kcex.js +335 -0
  534. package/js/src/src/kifpoolme.d.ts +23 -0
  535. package/js/src/src/kifpoolme.js +410 -0
  536. package/js/src/src/kraken.d.ts +484 -0
  537. package/js/src/src/kraken.js +3518 -0
  538. package/js/src/src/krakenfutures.d.ts +362 -0
  539. package/js/src/src/krakenfutures.js +2885 -0
  540. package/js/src/src/kucoin.d.ts +759 -0
  541. package/js/src/src/kucoin.js +5153 -0
  542. package/js/src/src/kucoinfutures.d.ts +521 -0
  543. package/js/src/src/kucoinfutures.js +3381 -0
  544. package/js/src/src/latoken.d.ts +274 -0
  545. package/js/src/src/latoken.js +1824 -0
  546. package/js/src/src/lbank.d.ts +350 -0
  547. package/js/src/src/lbank.js +3146 -0
  548. package/js/src/src/luno.d.ts +252 -0
  549. package/js/src/src/luno.js +1479 -0
  550. package/js/src/src/mazdax.d.ts +23 -0
  551. package/js/src/src/mazdax.js +534 -0
  552. package/js/src/src/mercado.d.ts +160 -0
  553. package/js/src/src/mercado.js +1011 -0
  554. package/js/src/src/mexc.d.ts +768 -0
  555. package/js/src/src/mexc.js +6102 -0
  556. package/js/src/src/modetrade.d.ts +496 -0
  557. package/js/src/src/modetrade.js +2936 -0
  558. package/js/src/src/myokx.d.ts +4 -0
  559. package/js/src/src/myokx.js +54 -0
  560. package/js/src/src/ndax.d.ts +285 -0
  561. package/js/src/src/ndax.js +2598 -0
  562. package/js/src/src/nobitex.d.ts +23 -0
  563. package/js/src/src/nobitex.js +454 -0
  564. package/js/src/src/novadax.d.ts +279 -0
  565. package/js/src/src/novadax.js +1676 -0
  566. package/js/src/src/oceanex.d.ts +231 -0
  567. package/js/src/src/oceanex.js +1123 -0
  568. package/js/src/src/okcoin.d.ts +346 -0
  569. package/js/src/src/okcoin.js +3211 -0
  570. package/js/src/src/okexchange.d.ts +23 -0
  571. package/js/src/src/okexchange.js +373 -0
  572. package/js/src/src/okx.d.ts +1125 -0
  573. package/js/src/src/okx.js +9009 -0
  574. package/js/src/src/okxus.d.ts +4 -0
  575. package/js/src/src/okxus.js +54 -0
  576. package/js/src/src/ompfinex.d.ts +23 -0
  577. package/js/src/src/ompfinex.js +510 -0
  578. package/js/src/src/onetrading.d.ts +228 -0
  579. package/js/src/src/onetrading.js +1769 -0
  580. package/js/src/src/oxfun.d.ts +442 -0
  581. package/js/src/src/oxfun.js +2920 -0
  582. package/js/src/src/p2b.d.ts +189 -0
  583. package/js/src/src/p2b.js +1344 -0
  584. package/js/src/src/paradex.d.ts +389 -0
  585. package/js/src/src/paradex.js +2607 -0
  586. package/js/src/src/paymium.d.ts +133 -0
  587. package/js/src/src/paymium.js +644 -0
  588. package/js/src/src/phemex.d.ts +497 -0
  589. package/js/src/src/phemex.js +5333 -0
  590. package/js/src/src/pingi.d.ts +22 -0
  591. package/js/src/src/pingi.js +446 -0
  592. package/js/src/src/poloniex.d.ts +441 -0
  593. package/js/src/src/poloniex.js +3681 -0
  594. package/js/src/src/pooleno.d.ts +21 -0
  595. package/js/src/src/pooleno.js +347 -0
  596. package/js/src/src/pro/alpaca.d.ts +95 -0
  597. package/js/src/src/pro/alpaca.js +724 -0
  598. package/js/src/src/pro/apex.d.ts +160 -0
  599. package/js/src/src/pro/apex.js +1044 -0
  600. package/js/src/src/pro/ascendex.d.ts +99 -0
  601. package/js/src/src/pro/ascendex.js +1012 -0
  602. package/js/src/src/pro/bequant.d.ts +4 -0
  603. package/js/src/src/pro/bequant.js +42 -0
  604. package/js/src/src/pro/binance.d.ts +796 -0
  605. package/js/src/src/pro/binance.js +4373 -0
  606. package/js/src/src/pro/binancecoinm.d.ts +4 -0
  607. package/js/src/src/pro/binancecoinm.js +32 -0
  608. package/js/src/src/pro/binanceus.d.ts +4 -0
  609. package/js/src/src/pro/binanceus.js +52 -0
  610. package/js/src/src/pro/binanceusdm.d.ts +4 -0
  611. package/js/src/src/pro/binanceusdm.js +37 -0
  612. package/js/src/src/pro/bingx.d.ts +151 -0
  613. package/js/src/src/pro/bingx.js +1568 -0
  614. package/js/src/src/pro/bitfinex.d.ts +99 -0
  615. package/js/src/src/pro/bitfinex.js +1165 -0
  616. package/js/src/src/pro/bitget.d.ts +257 -0
  617. package/js/src/src/pro/bitget.js +2327 -0
  618. package/js/src/src/pro/bithumb.d.ts +59 -0
  619. package/js/src/src/pro/bithumb.js +395 -0
  620. package/js/src/src/pro/bitmart.d.ts +168 -0
  621. package/js/src/src/pro/bitmart.js +1686 -0
  622. package/js/src/src/pro/bitmex.d.ts +170 -0
  623. package/js/src/src/pro/bitmex.js +1760 -0
  624. package/js/src/src/pro/bitopro.d.ts +69 -0
  625. package/js/src/src/pro/bitopro.js +477 -0
  626. package/js/src/src/pro/bitrue.d.ts +40 -0
  627. package/js/src/src/pro/bitrue.js +461 -0
  628. package/js/src/src/pro/bitstamp.d.ts +53 -0
  629. package/js/src/src/pro/bitstamp.js +587 -0
  630. package/js/src/src/pro/bittrade.d.ts +66 -0
  631. package/js/src/src/pro/bittrade.js +606 -0
  632. package/js/src/src/pro/bitvavo.d.ts +321 -0
  633. package/js/src/src/pro/bitvavo.js +1451 -0
  634. package/js/src/src/pro/blockchaincom.d.ts +89 -0
  635. package/js/src/src/pro/blockchaincom.js +777 -0
  636. package/js/src/src/pro/blofin.d.ts +174 -0
  637. package/js/src/src/pro/blofin.js +743 -0
  638. package/js/src/src/pro/bybit.d.ts +397 -0
  639. package/js/src/src/pro/bybit.js +2519 -0
  640. package/js/src/src/pro/cex.d.ts +220 -0
  641. package/js/src/src/pro/cex.js +1535 -0
  642. package/js/src/src/pro/coinbase.d.ts +119 -0
  643. package/js/src/src/pro/coinbase.js +736 -0
  644. package/js/src/src/pro/coinbaseadvanced.d.ts +4 -0
  645. package/js/src/src/pro/coinbaseadvanced.js +18 -0
  646. package/js/src/src/pro/coinbaseexchange.d.ts +133 -0
  647. package/js/src/src/pro/coinbaseexchange.js +969 -0
  648. package/js/src/src/pro/coinbaseinternational.d.ts +143 -0
  649. package/js/src/src/pro/coinbaseinternational.js +804 -0
  650. package/js/src/src/pro/coincatch.d.ts +207 -0
  651. package/js/src/src/pro/coincatch.js +1562 -0
  652. package/js/src/src/pro/coincheck.d.ts +33 -0
  653. package/js/src/src/pro/coincheck.js +210 -0
  654. package/js/src/src/pro/coinex.d.ts +147 -0
  655. package/js/src/src/pro/coinex.js +1426 -0
  656. package/js/src/src/pro/coinone.d.ts +51 -0
  657. package/js/src/src/pro/coinone.js +413 -0
  658. package/js/src/src/pro/cryptocom.d.ts +300 -0
  659. package/js/src/src/pro/cryptocom.js +1414 -0
  660. package/js/src/src/pro/defx.d.ts +236 -0
  661. package/js/src/src/pro/defx.js +865 -0
  662. package/js/src/src/pro/deribit.d.ts +163 -0
  663. package/js/src/src/pro/deribit.js +1066 -0
  664. package/js/src/src/pro/derive.d.ts +100 -0
  665. package/js/src/src/pro/derive.js +753 -0
  666. package/js/src/src/pro/exmo.d.ts +97 -0
  667. package/js/src/src/pro/exmo.js +903 -0
  668. package/js/src/src/pro/gate.d.ts +360 -0
  669. package/js/src/src/pro/gate.js +2119 -0
  670. package/js/src/src/pro/gateio.d.ts +4 -0
  671. package/js/src/src/pro/gateio.js +17 -0
  672. package/js/src/src/pro/gemini.d.ts +106 -0
  673. package/js/src/src/pro/gemini.js +932 -0
  674. package/js/src/src/pro/hashkey.d.ts +121 -0
  675. package/js/src/src/pro/hashkey.js +843 -0
  676. package/js/src/src/pro/hitbtc.d.ts +235 -0
  677. package/js/src/src/pro/hitbtc.js +1400 -0
  678. package/js/src/src/pro/hollaex.d.ts +77 -0
  679. package/js/src/src/pro/hollaex.js +604 -0
  680. package/js/src/src/pro/htx.d.ts +141 -0
  681. package/js/src/src/pro/htx.js +2415 -0
  682. package/js/src/src/pro/huobi.d.ts +4 -0
  683. package/js/src/src/pro/huobi.js +17 -0
  684. package/js/src/src/pro/hyperliquid.d.ts +218 -0
  685. package/js/src/src/pro/hyperliquid.js +1126 -0
  686. package/js/src/src/pro/independentreserve.d.ts +36 -0
  687. package/js/src/src/pro/independentreserve.js +287 -0
  688. package/js/src/src/pro/kraken.d.ts +233 -0
  689. package/js/src/src/pro/kraken.js +1785 -0
  690. package/js/src/src/pro/krakenfutures.d.ts +178 -0
  691. package/js/src/src/pro/krakenfutures.js +1592 -0
  692. package/js/src/src/pro/kucoin.d.ts +221 -0
  693. package/js/src/src/pro/kucoin.js +1430 -0
  694. package/js/src/src/pro/kucoinfutures.d.ts +205 -0
  695. package/js/src/src/pro/kucoinfutures.js +1295 -0
  696. package/js/src/src/pro/lbank.d.ts +134 -0
  697. package/js/src/src/pro/lbank.js +950 -0
  698. package/js/src/src/pro/luno.d.ts +44 -0
  699. package/js/src/src/pro/luno.js +322 -0
  700. package/js/src/src/pro/mexc.d.ts +210 -0
  701. package/js/src/src/pro/mexc.js +2009 -0
  702. package/js/src/src/pro/modetrade.d.ts +155 -0
  703. package/js/src/src/pro/modetrade.js +1335 -0
  704. package/js/src/src/pro/myokx.d.ts +4 -0
  705. package/js/src/src/pro/myokx.js +39 -0
  706. package/js/src/src/pro/ndax.d.ts +60 -0
  707. package/js/src/src/pro/ndax.js +545 -0
  708. package/js/src/src/pro/okcoin.d.ts +91 -0
  709. package/js/src/src/pro/okcoin.js +763 -0
  710. package/js/src/src/pro/okx.d.ts +408 -0
  711. package/js/src/src/pro/okx.js +2479 -0
  712. package/js/src/src/pro/okxus.d.ts +4 -0
  713. package/js/src/src/pro/okxus.js +39 -0
  714. package/js/src/src/pro/onetrading.d.ts +107 -0
  715. package/js/src/src/pro/onetrading.js +1343 -0
  716. package/js/src/src/pro/oxfun.d.ts +234 -0
  717. package/js/src/src/pro/oxfun.js +1112 -0
  718. package/js/src/src/pro/p2b.d.ts +104 -0
  719. package/js/src/src/pro/p2b.js +506 -0
  720. package/js/src/src/pro/paradex.d.ts +54 -0
  721. package/js/src/src/pro/paradex.js +370 -0
  722. package/js/src/src/pro/phemex.d.ts +129 -0
  723. package/js/src/src/pro/phemex.js +1569 -0
  724. package/js/src/src/pro/poloniex.d.ts +214 -0
  725. package/js/src/src/pro/poloniex.js +1318 -0
  726. package/js/src/src/pro/probit.d.ts +91 -0
  727. package/js/src/src/pro/probit.js +593 -0
  728. package/js/src/src/pro/tradeogre.d.ts +49 -0
  729. package/js/src/src/pro/tradeogre.js +284 -0
  730. package/js/src/src/pro/upbit.d.ts +124 -0
  731. package/js/src/src/pro/upbit.js +689 -0
  732. package/js/src/src/pro/vertex.d.ts +104 -0
  733. package/js/src/src/pro/vertex.js +999 -0
  734. package/js/src/src/pro/whitebit.d.ts +123 -0
  735. package/js/src/src/pro/whitebit.js +971 -0
  736. package/js/src/src/pro/woo.d.ts +161 -0
  737. package/js/src/src/pro/woo.js +1351 -0
  738. package/js/src/src/pro/woofipro.d.ts +155 -0
  739. package/js/src/src/pro/woofipro.js +1335 -0
  740. package/js/src/src/pro/xt.d.ts +165 -0
  741. package/js/src/src/pro/xt.js +1230 -0
  742. package/js/src/src/probit.d.ts +283 -0
  743. package/js/src/src/probit.js +1935 -0
  744. package/js/src/src/protobuf/mexc/compiled.cjs +7186 -0
  745. package/js/src/src/protobuf/mexc/compiled.d.cts +8 -0
  746. package/js/src/src/raastin.d.ts +24 -0
  747. package/js/src/src/raastin.js +494 -0
  748. package/js/src/src/ramzinex.d.ts +23 -0
  749. package/js/src/src/ramzinex.js +510 -0
  750. package/js/src/src/sarmayex.d.ts +21 -0
  751. package/js/src/src/sarmayex.js +376 -0
  752. package/js/src/src/sarrafex.d.ts +23 -0
  753. package/js/src/src/sarrafex.js +501 -0
  754. package/js/src/src/static_dependencies/ethers/abi-coder.d.ts +50 -0
  755. package/js/src/src/static_dependencies/ethers/abi-coder.js +148 -0
  756. package/js/src/src/static_dependencies/ethers/address/address.d.ts +55 -0
  757. package/js/src/src/static_dependencies/ethers/address/address.js +162 -0
  758. package/js/src/src/static_dependencies/ethers/address/checks.d.ts +80 -0
  759. package/js/src/src/static_dependencies/ethers/address/checks.js +119 -0
  760. package/js/src/src/static_dependencies/ethers/address/contract-address.d.ts +47 -0
  761. package/js/src/src/static_dependencies/ethers/address/contract-address.js +73 -0
  762. package/js/src/src/static_dependencies/ethers/address/index.d.ts +48 -0
  763. package/js/src/src/static_dependencies/ethers/address/index.js +24 -0
  764. package/js/src/src/static_dependencies/ethers/bytes32.d.ts +14 -0
  765. package/js/src/src/static_dependencies/ethers/bytes32.js +45 -0
  766. package/js/src/src/static_dependencies/ethers/coders/abstract-coder.d.ts +120 -0
  767. package/js/src/src/static_dependencies/ethers/coders/abstract-coder.js +424 -0
  768. package/js/src/src/static_dependencies/ethers/coders/address.d.ts +12 -0
  769. package/js/src/src/static_dependencies/ethers/coders/address.js +34 -0
  770. package/js/src/src/static_dependencies/ethers/coders/anonymous.d.ts +14 -0
  771. package/js/src/src/static_dependencies/ethers/coders/anonymous.js +27 -0
  772. package/js/src/src/static_dependencies/ethers/coders/array.d.ts +24 -0
  773. package/js/src/src/static_dependencies/ethers/coders/array.js +162 -0
  774. package/js/src/src/static_dependencies/ethers/coders/boolean.d.ts +12 -0
  775. package/js/src/src/static_dependencies/ethers/coders/boolean.js +26 -0
  776. package/js/src/src/static_dependencies/ethers/coders/bytes.d.ts +18 -0
  777. package/js/src/src/static_dependencies/ethers/coders/bytes.js +39 -0
  778. package/js/src/src/static_dependencies/ethers/coders/fixed-bytes.d.ts +14 -0
  779. package/js/src/src/static_dependencies/ethers/coders/fixed-bytes.js +32 -0
  780. package/js/src/src/static_dependencies/ethers/coders/null.d.ts +11 -0
  781. package/js/src/src/static_dependencies/ethers/coders/null.js +29 -0
  782. package/js/src/src/static_dependencies/ethers/coders/number.d.ts +15 -0
  783. package/js/src/src/static_dependencies/ethers/coders/number.js +48 -0
  784. package/js/src/src/static_dependencies/ethers/coders/string.d.ts +12 -0
  785. package/js/src/src/static_dependencies/ethers/coders/string.js +26 -0
  786. package/js/src/src/static_dependencies/ethers/coders/tuple.d.ts +15 -0
  787. package/js/src/src/static_dependencies/ethers/coders/tuple.js +67 -0
  788. package/js/src/src/static_dependencies/ethers/fragments.d.ts +458 -0
  789. package/js/src/src/static_dependencies/ethers/fragments.js +1252 -0
  790. package/js/src/src/static_dependencies/ethers/hash/index.d.ts +10 -0
  791. package/js/src/src/static_dependencies/ethers/hash/index.js +15 -0
  792. package/js/src/src/static_dependencies/ethers/hash/solidity.d.ts +30 -0
  793. package/js/src/src/static_dependencies/ethers/hash/solidity.js +107 -0
  794. package/js/src/src/static_dependencies/ethers/hash/typed-data.d.ts +144 -0
  795. package/js/src/src/static_dependencies/ethers/hash/typed-data.js +490 -0
  796. package/js/src/src/static_dependencies/ethers/index.d.ts +19 -0
  797. package/js/src/src/static_dependencies/ethers/index.js +22 -0
  798. package/js/src/src/static_dependencies/ethers/interface.d.ts +380 -0
  799. package/js/src/src/static_dependencies/ethers/interface.js +990 -0
  800. package/js/src/src/static_dependencies/ethers/typed.d.ts +569 -0
  801. package/js/src/src/static_dependencies/ethers/typed.js +608 -0
  802. package/js/src/src/static_dependencies/ethers/utils/base58.d.ts +22 -0
  803. package/js/src/src/static_dependencies/ethers/utils/base58.js +68 -0
  804. package/js/src/src/static_dependencies/ethers/utils/base64.d.ts +39 -0
  805. package/js/src/src/static_dependencies/ethers/utils/base64.js +58 -0
  806. package/js/src/src/static_dependencies/ethers/utils/data.d.ts +92 -0
  807. package/js/src/src/static_dependencies/ethers/utils/data.js +175 -0
  808. package/js/src/src/static_dependencies/ethers/utils/errors.d.ts +509 -0
  809. package/js/src/src/static_dependencies/ethers/utils/errors.js +227 -0
  810. package/js/src/src/static_dependencies/ethers/utils/events.d.ts +76 -0
  811. package/js/src/src/static_dependencies/ethers/utils/events.js +52 -0
  812. package/js/src/src/static_dependencies/ethers/utils/fixednumber.d.ts +251 -0
  813. package/js/src/src/static_dependencies/ethers/utils/fixednumber.js +529 -0
  814. package/js/src/src/static_dependencies/ethers/utils/index.d.ts +30 -0
  815. package/js/src/src/static_dependencies/ethers/utils/index.js +38 -0
  816. package/js/src/src/static_dependencies/ethers/utils/maths.d.ts +65 -0
  817. package/js/src/src/static_dependencies/ethers/utils/maths.js +220 -0
  818. package/js/src/src/static_dependencies/ethers/utils/properties.d.ts +22 -0
  819. package/js/src/src/static_dependencies/ethers/utils/properties.js +59 -0
  820. package/js/src/src/static_dependencies/ethers/utils/rlp-decode.d.ts +5 -0
  821. package/js/src/src/static_dependencies/ethers/utils/rlp-decode.js +84 -0
  822. package/js/src/src/static_dependencies/ethers/utils/rlp-encode.d.ts +5 -0
  823. package/js/src/src/static_dependencies/ethers/utils/rlp-encode.js +54 -0
  824. package/js/src/src/static_dependencies/ethers/utils/rlp.d.ts +16 -0
  825. package/js/src/src/static_dependencies/ethers/utils/rlp.js +14 -0
  826. package/js/src/src/static_dependencies/ethers/utils/units.d.ts +23 -0
  827. package/js/src/src/static_dependencies/ethers/utils/units.js +88 -0
  828. package/js/src/src/static_dependencies/ethers/utils/utf8.d.ts +95 -0
  829. package/js/src/src/static_dependencies/ethers/utils/utf8.js +225 -0
  830. package/js/src/src/static_dependencies/ethers/utils/uuid.d.ts +7 -0
  831. package/js/src/src/static_dependencies/ethers/utils/uuid.js +35 -0
  832. package/js/src/src/static_dependencies/fflake/browser.d.ts +222 -0
  833. package/js/src/src/static_dependencies/fflake/browser.js +2578 -0
  834. package/js/src/src/static_dependencies/jsencrypt/JSEncrypt.d.ts +116 -0
  835. package/js/src/src/static_dependencies/jsencrypt/JSEncrypt.js +194 -0
  836. package/js/src/src/static_dependencies/jsencrypt/JSEncryptRSAKey.d.ts +142 -0
  837. package/js/src/src/static_dependencies/jsencrypt/JSEncryptRSAKey.js +307 -0
  838. package/js/src/src/static_dependencies/jsencrypt/lib/asn1js/asn1.d.ts +51 -0
  839. package/js/src/src/static_dependencies/jsencrypt/lib/asn1js/asn1.js +565 -0
  840. package/js/src/src/static_dependencies/jsencrypt/lib/asn1js/base64.d.ts +5 -0
  841. package/js/src/src/static_dependencies/jsencrypt/lib/asn1js/base64.js +94 -0
  842. package/js/src/src/static_dependencies/jsencrypt/lib/asn1js/hex.d.ts +3 -0
  843. package/js/src/src/static_dependencies/jsencrypt/lib/asn1js/hex.js +70 -0
  844. package/js/src/src/static_dependencies/jsencrypt/lib/asn1js/int10.d.ts +9 -0
  845. package/js/src/src/static_dependencies/jsencrypt/lib/asn1js/int10.js +91 -0
  846. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/base64.d.ts +3 -0
  847. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/base64.js +25 -0
  848. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +101 -0
  849. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.js +1757 -0
  850. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/prng4.d.ts +10 -0
  851. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/prng4.js +50 -0
  852. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/rng.d.ts +3 -0
  853. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/rng.js +80 -0
  854. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/rsa.d.ts +23 -0
  855. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/rsa.js +377 -0
  856. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/util.d.ts +7 -0
  857. package/js/src/src/static_dependencies/jsencrypt/lib/jsbn/util.js +64 -0
  858. package/js/src/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.d.ts +24 -0
  859. package/js/src/src/static_dependencies/jsencrypt/lib/jsrsasign/asn1-1.0.js +1627 -0
  860. package/js/src/src/static_dependencies/noble-curves/_shortw_utils.d.ts +60 -0
  861. package/js/src/src/static_dependencies/noble-curves/_shortw_utils.js +22 -0
  862. package/js/src/src/static_dependencies/noble-curves/abstract/curve.d.ts +67 -0
  863. package/js/src/src/static_dependencies/noble-curves/abstract/curve.js +157 -0
  864. package/js/src/src/static_dependencies/noble-curves/abstract/edwards.d.ts +79 -0
  865. package/js/src/src/static_dependencies/noble-curves/abstract/edwards.js +432 -0
  866. package/js/src/src/static_dependencies/noble-curves/abstract/hash-to-curve.d.ts +56 -0
  867. package/js/src/src/static_dependencies/noble-curves/abstract/hash-to-curve.js +171 -0
  868. package/js/src/src/static_dependencies/noble-curves/abstract/modular.d.ts +68 -0
  869. package/js/src/src/static_dependencies/noble-curves/abstract/modular.js +351 -0
  870. package/js/src/src/static_dependencies/noble-curves/abstract/montgomery.d.ts +25 -0
  871. package/js/src/src/static_dependencies/noble-curves/abstract/montgomery.js +162 -0
  872. package/js/src/src/static_dependencies/noble-curves/abstract/poseidon.d.ts +29 -0
  873. package/js/src/src/static_dependencies/noble-curves/abstract/poseidon.js +115 -0
  874. package/js/src/src/static_dependencies/noble-curves/abstract/utils.d.ts +53 -0
  875. package/js/src/src/static_dependencies/noble-curves/abstract/utils.js +227 -0
  876. package/js/src/src/static_dependencies/noble-curves/abstract/weierstrass.d.ts +204 -0
  877. package/js/src/src/static_dependencies/noble-curves/abstract/weierstrass.js +1016 -0
  878. package/js/src/src/static_dependencies/noble-curves/ed25519.d.ts +53 -0
  879. package/js/src/src/static_dependencies/noble-curves/ed25519.js +402 -0
  880. package/js/src/src/static_dependencies/noble-curves/p256.d.ts +103 -0
  881. package/js/src/src/static_dependencies/noble-curves/p256.js +47 -0
  882. package/js/src/src/static_dependencies/noble-curves/secp256k1.d.ts +91 -0
  883. package/js/src/src/static_dependencies/noble-curves/secp256k1.js +257 -0
  884. package/js/src/src/static_dependencies/noble-hashes/_assert.d.ts +21 -0
  885. package/js/src/src/static_dependencies/noble-hashes/_assert.js +48 -0
  886. package/js/src/src/static_dependencies/noble-hashes/_sha2.d.ts +23 -0
  887. package/js/src/src/static_dependencies/noble-hashes/_sha2.js +119 -0
  888. package/js/src/src/static_dependencies/noble-hashes/_u64.d.ts +35 -0
  889. package/js/src/src/static_dependencies/noble-hashes/_u64.js +66 -0
  890. package/js/src/src/static_dependencies/noble-hashes/crypto.d.ts +1 -0
  891. package/js/src/src/static_dependencies/noble-hashes/crypto.js +7 -0
  892. package/js/src/src/static_dependencies/noble-hashes/hmac.d.ts +26 -0
  893. package/js/src/src/static_dependencies/noble-hashes/hmac.js +82 -0
  894. package/js/src/src/static_dependencies/noble-hashes/md5.d.ts +18 -0
  895. package/js/src/src/static_dependencies/noble-hashes/md5.js +242 -0
  896. package/js/src/src/static_dependencies/noble-hashes/sha1.d.ts +21 -0
  897. package/js/src/src/static_dependencies/noble-hashes/sha1.js +90 -0
  898. package/js/src/src/static_dependencies/noble-hashes/sha256.d.ts +34 -0
  899. package/js/src/src/static_dependencies/noble-hashes/sha256.js +129 -0
  900. package/js/src/src/static_dependencies/noble-hashes/sha3.d.ts +97 -0
  901. package/js/src/src/static_dependencies/noble-hashes/sha3.js +211 -0
  902. package/js/src/src/static_dependencies/noble-hashes/sha512.d.ts +66 -0
  903. package/js/src/src/static_dependencies/noble-hashes/sha512.js +236 -0
  904. package/js/src/src/static_dependencies/noble-hashes/utils.d.ts +77 -0
  905. package/js/src/src/static_dependencies/noble-hashes/utils.js +147 -0
  906. package/js/src/src/static_dependencies/proxies/agent-base/helpers.d.ts +14 -0
  907. package/js/src/src/static_dependencies/proxies/agent-base/helpers.js +42 -0
  908. package/js/src/src/static_dependencies/proxies/agent-base/index.d.ts +33 -0
  909. package/js/src/src/static_dependencies/proxies/agent-base/index.js +82 -0
  910. package/js/src/src/static_dependencies/proxies/http-proxy-agent/index.d.ts +40 -0
  911. package/js/src/src/static_dependencies/proxies/http-proxy-agent/index.js +119 -0
  912. package/js/src/src/static_dependencies/proxies/https-proxy-agent/index.d.ts +45 -0
  913. package/js/src/src/static_dependencies/proxies/https-proxy-agent/index.js +150 -0
  914. package/js/src/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.d.ts +15 -0
  915. package/js/src/src/static_dependencies/proxies/https-proxy-agent/parse-proxy-response.js +95 -0
  916. package/js/src/src/static_dependencies/qs/formats.cjs +22 -0
  917. package/js/src/src/static_dependencies/qs/formats.d.cts +14 -0
  918. package/js/src/src/static_dependencies/qs/index.cjs +15 -0
  919. package/js/src/src/static_dependencies/qs/index.d.cts +10 -0
  920. package/js/src/src/static_dependencies/qs/parse.cjs +208 -0
  921. package/js/src/src/static_dependencies/qs/parse.d.cts +8 -0
  922. package/js/src/src/static_dependencies/qs/stringify.cjs +192 -0
  923. package/js/src/src/static_dependencies/qs/stringify.d.cts +8 -0
  924. package/js/src/src/static_dependencies/qs/utils.cjs +202 -0
  925. package/js/src/src/static_dependencies/qs/utils.d.cts +15 -0
  926. package/js/src/src/static_dependencies/scure-base/index.d.ts +92 -0
  927. package/js/src/src/static_dependencies/scure-base/index.js +420 -0
  928. package/js/src/src/static_dependencies/scure-starknet/index.d.ts +79 -0
  929. package/js/src/src/static_dependencies/scure-starknet/index.js +323 -0
  930. package/js/src/src/static_dependencies/starknet/constants.d.ts +61 -0
  931. package/js/src/src/static_dependencies/starknet/constants.js +67 -0
  932. package/js/src/src/static_dependencies/starknet/index.d.ts +3 -0
  933. package/js/src/src/static_dependencies/starknet/index.js +9 -0
  934. package/js/src/src/static_dependencies/starknet/types/cairoEnum.d.ts +2 -0
  935. package/js/src/src/static_dependencies/starknet/types/cairoEnum.js +7 -0
  936. package/js/src/src/static_dependencies/starknet/types/calldata.d.ts +19 -0
  937. package/js/src/src/static_dependencies/starknet/types/calldata.js +28 -0
  938. package/js/src/src/static_dependencies/starknet/types/index.d.ts +13 -0
  939. package/js/src/src/static_dependencies/starknet/types/index.js +16 -0
  940. package/js/src/src/static_dependencies/starknet/types/lib/contract/abi.d.ts +71 -0
  941. package/js/src/src/static_dependencies/starknet/types/lib/contract/abi.js +13 -0
  942. package/js/src/src/static_dependencies/starknet/types/lib/contract/index.d.ts +24 -0
  943. package/js/src/src/static_dependencies/starknet/types/lib/contract/index.js +16 -0
  944. package/js/src/src/static_dependencies/starknet/types/lib/contract/legacy.d.ts +33 -0
  945. package/js/src/src/static_dependencies/starknet/types/lib/contract/legacy.js +7 -0
  946. package/js/src/src/static_dependencies/starknet/types/lib/contract/sierra.d.ts +52 -0
  947. package/js/src/src/static_dependencies/starknet/types/lib/contract/sierra.js +7 -0
  948. package/js/src/src/static_dependencies/starknet/types/lib/index.d.ts +248 -0
  949. package/js/src/src/static_dependencies/starknet/types/lib/index.js +52 -0
  950. package/js/src/src/static_dependencies/starknet/types/typedData.d.ts +44 -0
  951. package/js/src/src/static_dependencies/starknet/types/typedData.js +19 -0
  952. package/js/src/src/static_dependencies/starknet/utils/assert.d.ts +7 -0
  953. package/js/src/src/static_dependencies/starknet/utils/assert.js +17 -0
  954. package/js/src/src/static_dependencies/starknet/utils/cairoDataTypes/felt.d.ts +6 -0
  955. package/js/src/src/static_dependencies/starknet/utils/cairoDataTypes/felt.js +43 -0
  956. package/js/src/src/static_dependencies/starknet/utils/cairoDataTypes/uint256.d.ts +72 -0
  957. package/js/src/src/static_dependencies/starknet/utils/cairoDataTypes/uint256.js +117 -0
  958. package/js/src/src/static_dependencies/starknet/utils/cairoDataTypes/uint512.d.ts +76 -0
  959. package/js/src/src/static_dependencies/starknet/utils/cairoDataTypes/uint512.js +136 -0
  960. package/js/src/src/static_dependencies/starknet/utils/calldata/byteArray.d.ts +32 -0
  961. package/js/src/src/static_dependencies/starknet/utils/calldata/byteArray.js +59 -0
  962. package/js/src/src/static_dependencies/starknet/utils/calldata/cairo.d.ts +183 -0
  963. package/js/src/src/static_dependencies/starknet/utils/calldata/cairo.js +229 -0
  964. package/js/src/src/static_dependencies/starknet/utils/calldata/enum/CairoCustomEnum.d.ts +38 -0
  965. package/js/src/src/static_dependencies/starknet/utils/calldata/enum/CairoCustomEnum.js +57 -0
  966. package/js/src/src/static_dependencies/starknet/utils/calldata/enum/CairoOption.d.ts +35 -0
  967. package/js/src/src/static_dependencies/starknet/utils/calldata/enum/CairoOption.js +64 -0
  968. package/js/src/src/static_dependencies/starknet/utils/calldata/enum/CairoResult.d.ts +34 -0
  969. package/js/src/src/static_dependencies/starknet/utils/calldata/enum/CairoResult.js +63 -0
  970. package/js/src/src/static_dependencies/starknet/utils/calldata/enum/index.d.ts +3 -0
  971. package/js/src/src/static_dependencies/starknet/utils/calldata/enum/index.js +9 -0
  972. package/js/src/src/static_dependencies/starknet/utils/calldata/formatter.d.ts +9 -0
  973. package/js/src/src/static_dependencies/starknet/utils/calldata/formatter.js +67 -0
  974. package/js/src/src/static_dependencies/starknet/utils/calldata/index.d.ts +89 -0
  975. package/js/src/src/static_dependencies/starknet/utils/calldata/index.js +280 -0
  976. package/js/src/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts +5 -0
  977. package/js/src/src/static_dependencies/starknet/utils/calldata/parser/index.js +30 -0
  978. package/js/src/src/static_dependencies/starknet/utils/calldata/parser/interface.d.ts +20 -0
  979. package/js/src/src/static_dependencies/starknet/utils/calldata/parser/interface.js +8 -0
  980. package/js/src/src/static_dependencies/starknet/utils/calldata/parser/parser-0-1.1.0.d.ts +24 -0
  981. package/js/src/src/static_dependencies/starknet/utils/calldata/parser/parser-0-1.1.0.js +36 -0
  982. package/js/src/src/static_dependencies/starknet/utils/calldata/parser/parser-2.0.0.d.ts +23 -0
  983. package/js/src/src/static_dependencies/starknet/utils/calldata/parser/parser-2.0.0.js +40 -0
  984. package/js/src/src/static_dependencies/starknet/utils/calldata/propertyOrder.d.ts +2 -0
  985. package/js/src/src/static_dependencies/starknet/utils/calldata/propertyOrder.js +155 -0
  986. package/js/src/src/static_dependencies/starknet/utils/calldata/requestParser.d.ts +11 -0
  987. package/js/src/src/static_dependencies/starknet/utils/calldata/requestParser.js +248 -0
  988. package/js/src/src/static_dependencies/starknet/utils/calldata/responseParser.d.ts +11 -0
  989. package/js/src/src/static_dependencies/starknet/utils/calldata/responseParser.js +214 -0
  990. package/js/src/src/static_dependencies/starknet/utils/calldata/tuple.d.ts +6 -0
  991. package/js/src/src/static_dependencies/starknet/utils/calldata/tuple.js +113 -0
  992. package/js/src/src/static_dependencies/starknet/utils/calldata/validate.d.ts +6 -0
  993. package/js/src/src/static_dependencies/starknet/utils/calldata/validate.js +208 -0
  994. package/js/src/src/static_dependencies/starknet/utils/encode.d.ts +207 -0
  995. package/js/src/src/static_dependencies/starknet/utils/encode.js +282 -0
  996. package/js/src/src/static_dependencies/starknet/utils/hash/classHash.d.ts +57 -0
  997. package/js/src/src/static_dependencies/starknet/utils/hash/classHash.js +223 -0
  998. package/js/src/src/static_dependencies/starknet/utils/hash/index.d.ts +6 -0
  999. package/js/src/src/static_dependencies/starknet/utils/hash/index.js +13 -0
  1000. package/js/src/src/static_dependencies/starknet/utils/merkle.d.ts +35 -0
  1001. package/js/src/src/static_dependencies/starknet/utils/merkle.js +84 -0
  1002. package/js/src/src/static_dependencies/starknet/utils/num.d.ts +182 -0
  1003. package/js/src/src/static_dependencies/starknet/utils/num.js +244 -0
  1004. package/js/src/src/static_dependencies/starknet/utils/selector.d.ts +48 -0
  1005. package/js/src/src/static_dependencies/starknet/utils/selector.js +85 -0
  1006. package/js/src/src/static_dependencies/starknet/utils/shortString.d.ts +57 -0
  1007. package/js/src/src/static_dependencies/starknet/utils/shortString.js +96 -0
  1008. package/js/src/src/static_dependencies/starknet/utils/typedData.d.ts +54 -0
  1009. package/js/src/src/static_dependencies/starknet/utils/typedData.js +321 -0
  1010. package/js/src/src/static_dependencies/watchable/src/types.d.ts +28 -0
  1011. package/js/src/src/static_dependencies/watchable/src/types.js +8 -0
  1012. package/js/src/src/static_dependencies/watchable/src/unpromise.d.ts +120 -0
  1013. package/js/src/src/static_dependencies/watchable/src/unpromise.js +297 -0
  1014. package/js/src/src/static_dependencies/zklink/zklink-sdk-web.d.ts +1279 -0
  1015. package/js/src/src/static_dependencies/zklink/zklink-sdk-web.js +4282 -0
  1016. package/js/src/src/tabdeal.d.ts +23 -0
  1017. package/js/src/src/tabdeal.js +387 -0
  1018. package/js/src/src/tehran_exchange.d.ts +21 -0
  1019. package/js/src/src/tehran_exchange.js +333 -0
  1020. package/js/src/src/tetherland.d.ts +21 -0
  1021. package/js/src/src/tetherland.js +367 -0
  1022. package/js/src/src/timex.d.ts +247 -0
  1023. package/js/src/src/timex.js +1792 -0
  1024. package/js/src/src/tokocrypto.d.ts +261 -0
  1025. package/js/src/src/tokocrypto.js +2641 -0
  1026. package/js/src/src/toobit.d.ts +22 -0
  1027. package/js/src/src/toobit.js +445 -0
  1028. package/js/src/src/tradeogre.d.ts +149 -0
  1029. package/js/src/src/tradeogre.js +878 -0
  1030. package/js/src/src/twox.d.ts +21 -0
  1031. package/js/src/src/twox.js +371 -0
  1032. package/js/src/src/ubitex.d.ts +23 -0
  1033. package/js/src/src/ubitex.js +433 -0
  1034. package/js/src/src/upbit.d.ts +377 -0
  1035. package/js/src/src/upbit.js +2340 -0
  1036. package/js/src/src/vertex.d.ts +346 -0
  1037. package/js/src/src/vertex.js +3146 -0
  1038. package/js/src/src/wallex.d.ts +23 -0
  1039. package/js/src/src/wallex.js +467 -0
  1040. package/js/src/src/wavesexchange.d.ts +244 -0
  1041. package/js/src/src/wavesexchange.js +2747 -0
  1042. package/js/src/src/whitebit.d.ts +571 -0
  1043. package/js/src/src/whitebit.js +3437 -0
  1044. package/js/src/src/woo.d.ts +727 -0
  1045. package/js/src/src/woo.js +4183 -0
  1046. package/js/src/src/woofipro.d.ts +497 -0
  1047. package/js/src/src/woofipro.js +2941 -0
  1048. package/js/src/src/xt.d.ts +568 -0
  1049. package/js/src/src/xt.js +5184 -0
  1050. package/js/src/src/yobit.d.ts +197 -0
  1051. package/js/src/src/yobit.js +1453 -0
  1052. package/js/src/src/zaif.d.ts +136 -0
  1053. package/js/src/src/zaif.js +821 -0
  1054. package/js/src/src/zonda.d.ts +214 -0
  1055. package/js/src/src/zonda.js +1984 -0
  1056. package/js/src/static_dependencies/jsencrypt/lib/jsbn/jsbn.d.ts +1 -1
  1057. package/js/src/static_dependencies/starknet/utils/calldata/parser/index.d.ts +1 -1
  1058. package/js/test.js +9 -17
  1059. package/package.json +1 -1
@@ -0,0 +1,1109 @@
1
+ import Exchange from './abstract/bitget.js';
2
+ import type { Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Balances, Str, Transaction, Ticker, OrderBook, Tickers, Market, Strings, Currency, Position, Liquidation, TransferEntry, Leverage, MarginMode, Num, MarginModification, TradingFeeInterface, Currencies, TradingFees, Conversion, CrossBorrowRate, IsolatedBorrowRate, Dict, LeverageTier, int, LedgerEntry, FundingRate, DepositAddress, LongShortRatio, BorrowInterest, FundingRates } from './base/types.js';
3
+ /**
4
+ * @class bitget
5
+ * @augments Exchange
6
+ */
7
+ export default class bitget extends Exchange {
8
+ describe(): any;
9
+ setSandboxMode(enabled: any): void;
10
+ handleProductTypeAndParams(market?: any, params?: {}): {}[];
11
+ /**
12
+ * @method
13
+ * @name bitget#fetchTime
14
+ * @description fetches the current integer timestamp in milliseconds from the exchange server
15
+ * @see https://www.bitget.com/api-doc/common/public/Get-Server-Time
16
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
17
+ * @returns {int} the current integer timestamp in milliseconds from the exchange server
18
+ */
19
+ fetchTime(params?: {}): Promise<Int>;
20
+ /**
21
+ * @method
22
+ * @name bitget#fetchMarkets
23
+ * @description retrieves data on all markets for bitget
24
+ * @see https://www.bitget.com/api-doc/spot/market/Get-Symbols
25
+ * @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbols-Contracts
26
+ * @see https://www.bitget.com/api-doc/margin/common/support-currencies
27
+ * @see https://www.bitget.com/api-doc/uta/public/Instruments
28
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
29
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
30
+ * @returns {object[]} an array of objects representing market data
31
+ */
32
+ fetchMarkets(params?: {}): Promise<Market[]>;
33
+ fetchDefaultMarkets(params: any): Promise<Market[]>;
34
+ fetchUtaMarkets(params: any): Promise<Market[]>;
35
+ /**
36
+ * @method
37
+ * @name bitget#fetchCurrencies
38
+ * @description fetches all available currencies on an exchange
39
+ * @see https://www.bitget.com/api-doc/spot/market/Get-Coin-List
40
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
41
+ * @returns {object} an associative dictionary of currencies
42
+ */
43
+ fetchCurrencies(params?: {}): Promise<Currencies>;
44
+ /**
45
+ * @method
46
+ * @name bitget#fetchMarketLeverageTiers
47
+ * @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
48
+ * @see https://www.bitget.com/api-doc/contract/position/Get-Query-Position-Lever
49
+ * @see https://www.bitget.com/api-doc/margin/cross/account/Cross-Tier-Data
50
+ * @see https://www.bitget.com/api-doc/margin/isolated/account/Isolated-Tier-Data
51
+ * @see https://www.bitget.com/api-doc/uta/public/Get-Position-Tier-Data
52
+ * @param {string} symbol unified market symbol
53
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
54
+ * @param {string} [params.marginMode] for spot margin 'cross' or 'isolated', default is 'isolated'
55
+ * @param {string} [params.code] required for cross spot margin
56
+ * @param {string} [params.productType] *contract and uta only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
57
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
58
+ * @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
59
+ */
60
+ fetchMarketLeverageTiers(symbol: string, params?: {}): Promise<LeverageTier[]>;
61
+ parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
62
+ /**
63
+ * @method
64
+ * @name bitget#fetchDeposits
65
+ * @description fetch all deposits made to an account
66
+ * @see https://www.bitget.com/api-doc/spot/account/Get-Deposit-Record
67
+ * @param {string} code unified currency code
68
+ * @param {int} [since] the earliest time in ms to fetch deposits for
69
+ * @param {int} [limit] the maximum number of deposits structures to retrieve
70
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
71
+ * @param {int} [params.until] end time in milliseconds
72
+ * @param {string} [params.idLessThan] return records with id less than the provided value
73
+ * @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)
74
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
75
+ */
76
+ fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
77
+ /**
78
+ * @method
79
+ * @name bitget#withdraw
80
+ * @description make a withdrawal
81
+ * @see https://www.bitget.com/api-doc/spot/account/Wallet-Withdrawal
82
+ * @param {string} code unified currency code
83
+ * @param {float} amount the amount to withdraw
84
+ * @param {string} address the address to withdraw to
85
+ * @param {string} tag
86
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
87
+ * @param {string} [params.chain] the blockchain network the withdrawal is taking place on
88
+ * @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
89
+ */
90
+ withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
91
+ /**
92
+ * @method
93
+ * @name bitget#fetchWithdrawals
94
+ * @description fetch all withdrawals made from an account
95
+ * @see https://www.bitget.com/api-doc/spot/account/Get-Withdraw-Record
96
+ * @param {string} code unified currency code
97
+ * @param {int} [since] the earliest time in ms to fetch withdrawals for
98
+ * @param {int} [limit] the maximum number of withdrawals structures to retrieve
99
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
100
+ * @param {int} [params.until] end time in milliseconds
101
+ * @param {string} [params.idLessThan] return records with id less than the provided value
102
+ * @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)
103
+ * @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
104
+ */
105
+ fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
106
+ parseTransaction(transaction: Dict, currency?: Currency): Transaction;
107
+ parseTransactionStatus(status: Str): string;
108
+ /**
109
+ * @method
110
+ * @name bitget#fetchDepositAddress
111
+ * @description fetch the deposit address for a currency associated with this account
112
+ * @see https://www.bitget.com/api-doc/spot/account/Get-Deposit-Address
113
+ * @param {string} code unified currency code
114
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
115
+ * @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
116
+ */
117
+ fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
118
+ parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
119
+ /**
120
+ * @method
121
+ * @name bitget#fetchOrderBook
122
+ * @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
123
+ * @see https://www.bitget.com/api-doc/spot/market/Get-Orderbook
124
+ * @see https://www.bitget.com/api-doc/contract/market/Get-Merge-Depth
125
+ * @see https://www.bitget.com/api-doc/uta/public/OrderBook
126
+ * @param {string} symbol unified symbol of the market to fetch the order book for
127
+ * @param {int} [limit] the maximum amount of order book entries to return
128
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
129
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
130
+ * @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
131
+ */
132
+ fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
133
+ parseTicker(ticker: Dict, market?: Market): Ticker;
134
+ /**
135
+ * @method
136
+ * @name bitget#fetchTicker
137
+ * @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
138
+ * @see https://www.bitget.com/api-doc/spot/market/Get-Tickers
139
+ * @see https://www.bitget.com/api-doc/contract/market/Get-Ticker
140
+ * @see https://www.bitget.com/api-doc/uta/public/Tickers
141
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
142
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
143
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
144
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
145
+ */
146
+ fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
147
+ /**
148
+ * @method
149
+ * @name bitget#fetchMarkPrice
150
+ * @description fetches the mark price for a specific market
151
+ * @see https://www.bitget.com/api-doc/contract/market/Get-Symbol-Price
152
+ * @param {string} symbol unified symbol of the market to fetch the ticker for
153
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
154
+ * @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
155
+ */
156
+ fetchMarkPrice(symbol: string, params?: {}): Promise<Ticker>;
157
+ /**
158
+ * @method
159
+ * @name bitget#fetchTickers
160
+ * @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
161
+ * @see https://www.bitget.com/api-doc/spot/market/Get-Tickers
162
+ * @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbol-Ticker
163
+ * @see https://www.bitget.com/api-doc/uta/public/Tickers
164
+ * @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
165
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
166
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
167
+ * @param {string} [params.subType] *contract only* 'linear', 'inverse'
168
+ * @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
169
+ * @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
170
+ */
171
+ fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
172
+ parseTrade(trade: Dict, market?: Market): Trade;
173
+ /**
174
+ * @method
175
+ * @name bitget#fetchTrades
176
+ * @description get the list of most recent trades for a particular symbol
177
+ * @see https://www.bitget.com/api-doc/spot/market/Get-Recent-Trades
178
+ * @see https://www.bitget.com/api-doc/spot/market/Get-Market-Trades
179
+ * @see https://www.bitget.com/api-doc/contract/market/Get-Recent-Fills
180
+ * @see https://www.bitget.com/api-doc/contract/market/Get-Fills-History
181
+ * @see https://www.bitget.com/api-doc/uta/public/Fills
182
+ * @param {string} symbol unified symbol of the market to fetch trades for
183
+ * @param {int} [since] timestamp in ms of the earliest trade to fetch
184
+ * @param {int} [limit] the maximum amount of trades to fetch
185
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
186
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
187
+ * @param {int} [params.until] *only applies to publicSpotGetV2SpotMarketFillsHistory and publicMixGetV2MixMarketFillsHistory* the latest time in ms to fetch trades for
188
+ * @param {boolean} [params.paginate] *only applies to publicSpotGetV2SpotMarketFillsHistory and publicMixGetV2MixMarketFillsHistory* default false, when true will automatically paginate by calling this endpoint multiple times
189
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
190
+ */
191
+ fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
192
+ /**
193
+ * @method
194
+ * @name bitget#fetchTradingFee
195
+ * @description fetch the trading fees for a market
196
+ * @see https://www.bitget.com/api-doc/common/public/Get-Trade-Rate
197
+ * @param {string} symbol unified market symbol
198
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
199
+ * @param {string} [params.marginMode] 'isolated' or 'cross', for finding the fee rate of spot margin trading pairs
200
+ * @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
201
+ */
202
+ fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
203
+ /**
204
+ * @method
205
+ * @name bitget#fetchTradingFees
206
+ * @description fetch the trading fees for multiple markets
207
+ * @see https://www.bitget.com/api-doc/spot/market/Get-Symbols
208
+ * @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbols-Contracts
209
+ * @see https://www.bitget.com/api-doc/margin/common/support-currencies
210
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
211
+ * @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
212
+ * @param {boolean} [params.margin] set to true for spot margin
213
+ * @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
214
+ */
215
+ fetchTradingFees(params?: {}): Promise<TradingFees>;
216
+ parseTradingFee(data: any, market?: Market): {
217
+ info: any;
218
+ symbol: string;
219
+ maker: number;
220
+ taker: number;
221
+ percentage: any;
222
+ tierBased: any;
223
+ };
224
+ parseOHLCV(ohlcv: any, market?: Market): OHLCV;
225
+ /**
226
+ * @method
227
+ * @name bitget#fetchOHLCV
228
+ * @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
229
+ * @see https://www.bitget.com/api-doc/spot/market/Get-Candle-Data
230
+ * @see https://www.bitget.com/api-doc/spot/market/Get-History-Candle-Data
231
+ * @see https://www.bitget.com/api-doc/contract/market/Get-Candle-Data
232
+ * @see https://www.bitget.com/api-doc/contract/market/Get-History-Candle-Data
233
+ * @see https://www.bitget.com/api-doc/contract/market/Get-History-Index-Candle-Data
234
+ * @see https://www.bitget.com/api-doc/contract/market/Get-History-Mark-Candle-Data
235
+ * @see https://www.bitget.com/api-doc/uta/public/Get-Candle-Data
236
+ * @param {string} symbol unified symbol of the market to fetch OHLCV data for
237
+ * @param {string} timeframe the length of time each candle represents
238
+ * @param {int} [since] timestamp in ms of the earliest candle to fetch
239
+ * @param {int} [limit] the maximum amount of candles to fetch
240
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
241
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
242
+ * @param {int} [params.until] timestamp in ms of the latest candle to fetch
243
+ * @param {boolean} [params.useHistoryEndpoint] whether to force to use historical endpoint (it has max limit of 200)
244
+ * @param {boolean} [params.useHistoryEndpointForPagination] whether to force to use historical endpoint for pagination (default true)
245
+ * @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)
246
+ * @param {string} [params.price] *swap only* "mark" (to fetch mark price candles) or "index" (to fetch index price candles)
247
+ * @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
248
+ */
249
+ fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
250
+ /**
251
+ * @method
252
+ * @name bitget#fetchBalance
253
+ * @description query for balance and get the amount of funds available for trading or funds locked in orders
254
+ * @see https://www.bitget.com/api-doc/spot/account/Get-Account-Assets
255
+ * @see https://www.bitget.com/api-doc/contract/account/Get-Account-List
256
+ * @see https://www.bitget.com/api-doc/margin/cross/account/Get-Cross-Assets
257
+ * @see https://www.bitget.com/api-doc/margin/isolated/account/Get-Isolated-Assets
258
+ * @see https://bitgetlimited.github.io/apidoc/en/margin/#get-cross-assets
259
+ * @see https://bitgetlimited.github.io/apidoc/en/margin/#get-isolated-assets
260
+ * @see https://www.bitget.com/api-doc/uta/account/Get-Account
261
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
262
+ * @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
263
+ * @param {string} [params.uta] set to true for the unified trading account (uta), defaults to false
264
+ * @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
265
+ */
266
+ fetchBalance(params?: {}): Promise<Balances>;
267
+ parseUtaBalance(balance: any): Balances;
268
+ parseBalance(balance: any): Balances;
269
+ parseOrderStatus(status: Str): string;
270
+ parseOrder(order: Dict, market?: Market): Order;
271
+ /**
272
+ * @method
273
+ * @name bitget#createMarketBuyOrderWithCost
274
+ * @description create a market buy order by providing the symbol and cost
275
+ * @see https://www.bitget.com/api-doc/spot/trade/Place-Order
276
+ * @see https://www.bitget.com/api-doc/margin/cross/trade/Cross-Place-Order
277
+ * @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Place-Order
278
+ * @param {string} symbol unified symbol of the market to create an order in
279
+ * @param {float} cost how much you want to trade in units of the quote currency
280
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
281
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
282
+ */
283
+ createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
284
+ /**
285
+ * @method
286
+ * @name bitget#createOrder
287
+ * @description create a trade order
288
+ * @see https://www.bitget.com/api-doc/spot/trade/Place-Order
289
+ * @see https://www.bitget.com/api-doc/spot/plan/Place-Plan-Order
290
+ * @see https://www.bitget.com/api-doc/contract/trade/Place-Order
291
+ * @see https://www.bitget.com/api-doc/contract/plan/Place-Tpsl-Order
292
+ * @see https://www.bitget.com/api-doc/contract/plan/Place-Plan-Order
293
+ * @see https://www.bitget.com/api-doc/margin/cross/trade/Cross-Place-Order
294
+ * @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Place-Order
295
+ * @see https://www.bitget.com/api-doc/uta/trade/Place-Order
296
+ * @see https://www.bitget.com/api-doc/uta/strategy/Place-Strategy-Order
297
+ * @param {string} symbol unified symbol of the market to create an order in
298
+ * @param {string} type 'market' or 'limit'
299
+ * @param {string} side 'buy' or 'sell'
300
+ * @param {float} amount how much you want to trade in units of the base currency
301
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
302
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
303
+ * @param {float} [params.cost] *spot only* how much you want to trade in units of the quote currency, for market buy orders only
304
+ * @param {float} [params.triggerPrice] *swap only* The price at which a trigger order is triggered at
305
+ * @param {float} [params.stopLossPrice] *swap only* The price at which a stop loss order is triggered at
306
+ * @param {float} [params.takeProfitPrice] *swap only* The price at which a take profit order is triggered at
307
+ * @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
308
+ * @param {float} [params.takeProfit.triggerPrice] *swap only* take profit trigger price
309
+ * @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
310
+ * @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
311
+ * @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
312
+ * @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
313
+ * @param {string} [params.loanType] *spot margin only* 'normal', 'autoLoan', 'autoRepay', or 'autoLoanAndRepay' default is 'normal'
314
+ * @param {string} [params.holdSide] *contract stopLossPrice, takeProfitPrice only* Two-way position: ('long' or 'short'), one-way position: ('buy' or 'sell')
315
+ * @param {float} [params.stopLoss.price] *swap only* the execution price for a stop loss attached to a trigger order
316
+ * @param {float} [params.takeProfit.price] *swap only* the execution price for a take profit attached to a trigger order
317
+ * @param {string} [params.stopLoss.type] *swap only* the type for a stop loss attached to a trigger order, 'fill_price', 'index_price' or 'mark_price', default is 'mark_price'
318
+ * @param {string} [params.takeProfit.type] *swap only* the type for a take profit attached to a trigger order, 'fill_price', 'index_price' or 'mark_price', default is 'mark_price'
319
+ * @param {string} [params.trailingPercent] *swap and future only* the percent to trail away from the current market price, rate can not be greater than 10
320
+ * @param {string} [params.trailingTriggerPrice] *swap and future only* the price to trigger a trailing stop order, default uses the price argument
321
+ * @param {string} [params.triggerType] *swap and future only* 'fill_price', 'mark_price' or 'index_price'
322
+ * @param {boolean} [params.oneWayMode] *swap and future only* required to set this to true in one_way_mode and you can leave this as undefined in hedge_mode, can adjust the mode using the setPositionMode() method
323
+ * @param {bool} [params.hedged] *swap and future only* true for hedged mode, false for one way mode, default is false
324
+ * @param {bool} [params.reduceOnly] true or false whether the order is reduce-only
325
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
326
+ * @param {string} [params.posSide] *uta only* hedged two-way position side, long or short
327
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
328
+ */
329
+ createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
330
+ createUtaOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
331
+ createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
332
+ createUtaOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
333
+ /**
334
+ * @method
335
+ * @name bitget#createOrders
336
+ * @description create a list of trade orders (all orders should be of the same symbol)
337
+ * @see https://www.bitget.com/api-doc/spot/trade/Batch-Place-Orders
338
+ * @see https://www.bitget.com/api-doc/contract/trade/Batch-Order
339
+ * @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Batch-Order
340
+ * @see https://www.bitget.com/api-doc/margin/cross/trade/Cross-Batch-Order
341
+ * @see https://www.bitget.com/api-doc/uta/trade/Place-Batch
342
+ * @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
343
+ * @param {object} [params] extra parameters specific to the api endpoint
344
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
345
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
346
+ */
347
+ createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
348
+ /**
349
+ * @method
350
+ * @name bitget#editOrder
351
+ * @description edit a trade order
352
+ * @see https://www.bitget.com/api-doc/spot/plan/Modify-Plan-Order
353
+ * @see https://www.bitget.com/api-doc/contract/trade/Modify-Order
354
+ * @see https://www.bitget.com/api-doc/contract/plan/Modify-Tpsl-Order
355
+ * @see https://www.bitget.com/api-doc/contract/plan/Modify-Plan-Order
356
+ * @see https://www.bitget.com/api-doc/uta/trade/Modify-Order
357
+ * @see https://www.bitget.com/api-doc/uta/strategy/Modify-Strategy-Order
358
+ * @param {string} id cancel order id
359
+ * @param {string} symbol unified symbol of the market to create an order in
360
+ * @param {string} type 'market' or 'limit'
361
+ * @param {string} side 'buy' or 'sell'
362
+ * @param {float} amount how much you want to trade in units of the base currency
363
+ * @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
364
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
365
+ * @param {float} [params.triggerPrice] the price that a trigger order is triggered at
366
+ * @param {float} [params.stopLossPrice] *swap only* The price at which a stop loss order is triggered at
367
+ * @param {float} [params.takeProfitPrice] *swap only* The price at which a take profit order is triggered at
368
+ * @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
369
+ * @param {float} [params.takeProfit.triggerPrice] *swap only* take profit trigger price
370
+ * @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
371
+ * @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
372
+ * @param {float} [params.stopLoss.price] *swap only* the execution price for a stop loss attached to a trigger order
373
+ * @param {float} [params.takeProfit.price] *swap only* the execution price for a take profit attached to a trigger order
374
+ * @param {string} [params.stopLoss.type] *swap only* the type for a stop loss attached to a trigger order, 'fill_price', 'index_price' or 'mark_price', default is 'mark_price'
375
+ * @param {string} [params.takeProfit.type] *swap only* the type for a take profit attached to a trigger order, 'fill_price', 'index_price' or 'mark_price', default is 'mark_price'
376
+ * @param {string} [params.trailingPercent] *swap and future only* the percent to trail away from the current market price, rate can not be greater than 10
377
+ * @param {string} [params.trailingTriggerPrice] *swap and future only* the price to trigger a trailing stop order, default uses the price argument
378
+ * @param {string} [params.newTriggerType] *swap and future only* 'fill_price', 'mark_price' or 'index_price'
379
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
380
+ * @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
381
+ */
382
+ editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
383
+ /**
384
+ * @method
385
+ * @name bitget#cancelOrder
386
+ * @description cancels an open order
387
+ * @see https://www.bitget.com/api-doc/spot/trade/Cancel-Order
388
+ * @see https://www.bitget.com/api-doc/spot/plan/Cancel-Plan-Order
389
+ * @see https://www.bitget.com/api-doc/contract/trade/Cancel-Order
390
+ * @see https://www.bitget.com/api-doc/contract/plan/Cancel-Plan-Order
391
+ * @see https://www.bitget.com/api-doc/margin/cross/trade/Cross-Cancel-Order
392
+ * @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Cancel-Order
393
+ * @see https://www.bitget.com/api-doc/uta/trade/Cancel-Order
394
+ * @see https://www.bitget.com/api-doc/uta/strategy/Cancel-Strategy-Order
395
+ * @param {string} id order id
396
+ * @param {string} symbol unified symbol of the market the order was made in
397
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
398
+ * @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
399
+ * @param {boolean} [params.trigger] set to true for canceling trigger orders
400
+ * @param {string} [params.planType] *swap only* either profit_plan, loss_plan, normal_plan, pos_profit, pos_loss, moving_plan or track_plan
401
+ * @param {boolean} [params.trailing] set to true if you want to cancel a trailing order
402
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
403
+ * @param {string} [params.clientOrderId] the clientOrderId of the order, id does not need to be provided if clientOrderId is provided
404
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
405
+ */
406
+ cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
407
+ cancelUtaOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
408
+ /**
409
+ * @method
410
+ * @name bitget#cancelOrders
411
+ * @description cancel multiple orders
412
+ * @see https://www.bitget.com/api-doc/spot/trade/Batch-Cancel-Orders
413
+ * @see https://www.bitget.com/api-doc/contract/trade/Batch-Cancel-Orders
414
+ * @see https://www.bitget.com/api-doc/contract/plan/Cancel-Plan-Order
415
+ * @see https://www.bitget.com/api-doc/margin/cross/trade/Cross-Batch-Cancel-Order
416
+ * @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Batch-Cancel-Orders
417
+ * @see https://www.bitget.com/api-doc/uta/trade/Cancel-Batch
418
+ * @param {string[]} ids order ids
419
+ * @param {string} symbol unified market symbol, default is undefined
420
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
421
+ * @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
422
+ * @param {boolean} [params.trigger] *contract only* set to true for canceling trigger orders
423
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
424
+ * @returns {object} an array of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
425
+ */
426
+ cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
427
+ /**
428
+ * @method
429
+ * @name bitget#cancelAllOrders
430
+ * @description cancel all open orders
431
+ * @see https://www.bitget.com/api-doc/spot/trade/Cancel-Symbol-Orders
432
+ * @see https://www.bitget.com/api-doc/spot/plan/Batch-Cancel-Plan-Order
433
+ * @see https://www.bitget.com/api-doc/contract/trade/Batch-Cancel-Orders
434
+ * @see https://bitgetlimited.github.io/apidoc/en/margin/#isolated-batch-cancel-orders
435
+ * @see https://bitgetlimited.github.io/apidoc/en/margin/#cross-batch-cancel-order
436
+ * @see https://www.bitget.com/api-doc/uta/trade/Cancel-All-Order
437
+ * @param {string} symbol unified market symbol
438
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
439
+ * @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
440
+ * @param {boolean} [params.trigger] *contract only* set to true for canceling trigger orders
441
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
442
+ * @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
443
+ */
444
+ cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
445
+ /**
446
+ * @method
447
+ * @name bitget#fetchOrder
448
+ * @description fetches information on an order made by the user
449
+ * @see https://www.bitget.com/api-doc/spot/trade/Get-Order-Info
450
+ * @see https://www.bitget.com/api-doc/contract/trade/Get-Order-Details
451
+ * @see https://www.bitget.com/api-doc/uta/trade/Get-Order-Details
452
+ * @param {string} id the order id
453
+ * @param {string} symbol unified symbol of the market the order was made in
454
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
455
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
456
+ * @param {string} [params.clientOrderId] the clientOrderId of the order, id does not need to be provided if clientOrderId is provided
457
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
458
+ */
459
+ fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
460
+ /**
461
+ * @method
462
+ * @name bitget#fetchOpenOrders
463
+ * @description fetch all unfilled currently open orders
464
+ * @see https://www.bitget.com/api-doc/spot/trade/Get-Unfilled-Orders
465
+ * @see https://www.bitget.com/api-doc/spot/plan/Get-Current-Plan-Order
466
+ * @see https://www.bitget.com/api-doc/contract/trade/Get-Orders-Pending
467
+ * @see https://www.bitget.com/api-doc/contract/plan/get-orders-plan-pending
468
+ * @see https://www.bitget.com/api-doc/margin/cross/trade/Get-Cross-Open-Orders
469
+ * @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Open-Orders
470
+ * @see https://www.bitget.com/api-doc/uta/strategy/Get-Unfilled-Strategy-Orders
471
+ * @param {string} symbol unified market symbol
472
+ * @param {int} [since] the earliest time in ms to fetch open orders for
473
+ * @param {int} [limit] the maximum number of open order structures to retrieve
474
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
475
+ * @param {int} [params.until] the latest time in ms to fetch orders for
476
+ * @param {string} [params.planType] *contract stop only* 'normal_plan': average trigger order, 'profit_loss': opened tp/sl orders, 'track_plan': trailing stop order, default is 'normal_plan'
477
+ * @param {boolean} [params.trigger] set to true for fetching trigger orders
478
+ * @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)
479
+ * @param {string} [params.isPlan] *swap only* 'plan' for stop orders and 'profit_loss' for tp/sl orders, default is 'plan'
480
+ * @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
481
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
482
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
483
+ */
484
+ fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
485
+ /**
486
+ * @method
487
+ * @name bitget#fetchClosedOrders
488
+ * @description fetches information on multiple closed orders made by the user
489
+ * @see https://www.bitget.com/api-doc/spot/trade/Get-History-Orders
490
+ * @see https://www.bitget.com/api-doc/spot/plan/Get-History-Plan-Order
491
+ * @see https://www.bitget.com/api-doc/contract/trade/Get-Orders-History
492
+ * @see https://www.bitget.com/api-doc/contract/plan/orders-plan-history
493
+ * @see https://www.bitget.com/api-doc/margin/cross/trade/Get-Cross-Order-History
494
+ * @see https://www.bitget.com/api-doc/margin/isolated/trade/Get-Isolated-Order-History
495
+ * @see https://www.bitget.com/api-doc/uta/trade/Get-Order-History
496
+ * @param {string} symbol unified market symbol of the closed orders
497
+ * @param {int} [since] timestamp in ms of the earliest order
498
+ * @param {int} [limit] the max number of closed orders to return
499
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
500
+ * @param {int} [params.until] the latest time in ms to fetch orders for
501
+ * @param {string} [params.planType] *contract stop only* 'normal_plan': average trigger order, 'profit_loss': opened tp/sl orders, 'track_plan': trailing stop order, default is 'normal_plan'
502
+ * @param {boolean} [params.trigger] set to true for fetching trigger orders
503
+ * @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)
504
+ * @param {string} [params.isPlan] *swap only* 'plan' for stop orders and 'profit_loss' for tp/sl orders, default is 'plan'
505
+ * @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
506
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
507
+ */
508
+ fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
509
+ /**
510
+ * @method
511
+ * @name bitget#fetchCanceledOrders
512
+ * @description fetches information on multiple canceled orders made by the user
513
+ * @see https://www.bitget.com/api-doc/spot/trade/Get-History-Orders
514
+ * @see https://www.bitget.com/api-doc/spot/plan/Get-History-Plan-Order
515
+ * @see https://www.bitget.com/api-doc/contract/trade/Get-Orders-History
516
+ * @see https://www.bitget.com/api-doc/contract/plan/orders-plan-history
517
+ * @see https://www.bitget.com/api-doc/margin/cross/trade/Get-Cross-Order-History
518
+ * @see https://www.bitget.com/api-doc/margin/isolated/trade/Get-Isolated-Order-History
519
+ * @see https://www.bitget.com/api-doc/uta/trade/Get-Order-History
520
+ * @param {string} symbol unified market symbol of the canceled orders
521
+ * @param {int} [since] timestamp in ms of the earliest order
522
+ * @param {int} [limit] the max number of canceled orders to return
523
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
524
+ * @param {int} [params.until] the latest time in ms to fetch orders for
525
+ * @param {string} [params.planType] *contract stop only* 'normal_plan': average trigger order, 'profit_loss': opened tp/sl orders, 'track_plan': trailing stop order, default is 'normal_plan'
526
+ * @param {boolean} [params.trigger] set to true for fetching trigger orders
527
+ * @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)
528
+ * @param {string} [params.isPlan] *swap only* 'plan' for stop orders and 'profit_loss' for tp/sl orders, default is 'plan'
529
+ * @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
530
+ * @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
531
+ */
532
+ fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
533
+ /**
534
+ * @method
535
+ * @name bitget#fetchCanceledAndClosedOrders
536
+ * @see https://www.bitget.com/api-doc/spot/trade/Get-History-Orders
537
+ * @see https://www.bitget.com/api-doc/spot/plan/Get-History-Plan-Order
538
+ * @see https://www.bitget.com/api-doc/contract/trade/Get-Orders-History
539
+ * @see https://www.bitget.com/api-doc/contract/plan/orders-plan-history
540
+ * @see https://www.bitget.com/api-doc/margin/cross/trade/Get-Cross-Order-History
541
+ * @see https://www.bitget.com/api-doc/margin/isolated/trade/Get-Isolated-Order-History
542
+ * @see https://www.bitget.com/api-doc/uta/trade/Get-Order-History
543
+ * @see https://www.bitget.com/api-doc/uta/strategy/Get-History-Strategy-Orders
544
+ * @description fetches information on multiple canceled and closed orders made by the user
545
+ * @param {string} symbol unified market symbol of the market orders were made in
546
+ * @param {int} [since] the earliest time in ms to fetch orders for
547
+ * @param {int} [limit] the maximum number of order structures to retrieve
548
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
549
+ * @param {int} [params.until] the latest time in ms to fetch orders for
550
+ * @param {string} [params.planType] *contract stop only* 'normal_plan': average trigger order, 'profit_loss': opened tp/sl orders, 'track_plan': trailing stop order, default is 'normal_plan'
551
+ * @param {boolean} [params.trigger] set to true for fetching trigger orders
552
+ * @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)
553
+ * @param {string} [params.isPlan] *swap only* 'plan' for stop orders and 'profit_loss' for tp/sl orders, default is 'plan'
554
+ * @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
555
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
556
+ * @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
557
+ */
558
+ fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
559
+ fetchUtaCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
560
+ /**
561
+ * @method
562
+ * @name bitget#fetchLedger
563
+ * @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
564
+ * @see https://www.bitget.com/api-doc/spot/account/Get-Account-Bills
565
+ * @see https://www.bitget.com/api-doc/contract/account/Get-Account-Bill
566
+ * @param {string} [code] unified currency code, default is undefined
567
+ * @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
568
+ * @param {int} [limit] max number of ledger entries to return, default is undefined
569
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
570
+ * @param {int} [params.until] end time in ms
571
+ * @param {string} [params.symbol] *contract only* unified market symbol
572
+ * @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
573
+ * @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)
574
+ * @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger}
575
+ */
576
+ fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
577
+ parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
578
+ parseLedgerType(type: any): string;
579
+ /**
580
+ * @method
581
+ * @name bitget#fetchMyTrades
582
+ * @description fetch all trades made by the user
583
+ * @see https://www.bitget.com/api-doc/spot/trade/Get-Fills
584
+ * @see https://www.bitget.com/api-doc/contract/trade/Get-Order-Fills
585
+ * @see https://www.bitget.com/api-doc/margin/cross/trade/Get-Cross-Order-Fills
586
+ * @see https://www.bitget.com/api-doc/margin/isolated/trade/Get-Isolated-Transaction-Details
587
+ * @see https://www.bitget.com/api-doc/uta/trade/Get-Order-Fills
588
+ * @param {string} symbol unified market symbol
589
+ * @param {int} [since] the earliest time in ms to fetch trades for
590
+ * @param {int} [limit] the maximum number of trades structures to retrieve
591
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
592
+ * @param {int} [params.until] the latest time in ms to fetch trades for
593
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
594
+ * @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)
595
+ * @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
596
+ */
597
+ fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
598
+ /**
599
+ * @method
600
+ * @name bitget#fetchPosition
601
+ * @description fetch data on a single open contract trade position
602
+ * @see https://www.bitget.com/api-doc/contract/position/get-single-position
603
+ * @see https://www.bitget.com/api-doc/uta/trade/Get-Position
604
+ * @param {string} symbol unified market symbol of the market the position is held in
605
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
606
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
607
+ * @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
608
+ */
609
+ fetchPosition(symbol: string, params?: {}): Promise<Position>;
610
+ /**
611
+ * @method
612
+ * @name bitget#fetchPositions
613
+ * @description fetch all open positions
614
+ * @see https://www.bitget.com/api-doc/contract/position/get-all-position
615
+ * @see https://www.bitget.com/api-doc/contract/position/Get-History-Position
616
+ * @param {string[]} [symbols] list of unified market symbols
617
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
618
+ * @param {string} [params.marginCoin] the settle currency of the positions, needs to match the productType
619
+ * @param {string} [params.productType] 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
620
+ * @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)
621
+ * @param {boolean} [params.useHistoryEndpoint] default false, when true will use the historic endpoint to fetch positions
622
+ * @param {string} [params.method] either (default) 'privateMixGetV2MixPositionAllPosition' or 'privateMixGetV2MixPositionHistoryPosition'
623
+ * @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
624
+ */
625
+ fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
626
+ parsePosition(position: Dict, market?: Market): Position;
627
+ /**
628
+ * @method
629
+ * @name bitget#fetchFundingRateHistory
630
+ * @description fetches historical funding rate prices
631
+ * @see https://www.bitget.com/api-doc/contract/market/Get-History-Funding-Rate
632
+ * @see https://www.bitget.com/api-doc/uta/public/Get-History-Funding-Rate
633
+ * @param {string} symbol unified symbol of the market to fetch the funding rate history for
634
+ * @param {int} [since] timestamp in ms of the earliest funding rate to fetch
635
+ * @param {int} [limit] the maximum amount of funding rate structures to fetch
636
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
637
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
638
+ * @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)
639
+ * @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
640
+ */
641
+ fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
642
+ /**
643
+ * @method
644
+ * @name bitget#fetchFundingRate
645
+ * @description fetch the current funding rate
646
+ * @see https://www.bitget.com/api-doc/contract/market/Get-Current-Funding-Rate
647
+ * @see https://www.bitget.com/api-doc/contract/market/Get-Symbol-Next-Funding-Time
648
+ * @see https://www.bitget.com/api-doc/uta/public/Get-Current-Funding-Rate
649
+ * @param {string} symbol unified market symbol
650
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
651
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
652
+ * @param {string} [params.method] either (default) 'publicMixGetV2MixMarketCurrentFundRate' or 'publicMixGetV2MixMarketFundingTime'
653
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
654
+ */
655
+ fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
656
+ /**
657
+ * @method
658
+ * @name bitget#fetchFundingRates
659
+ * @description fetch the current funding rates for all markets
660
+ * @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbol-Ticker
661
+ * @param {string[]} [symbols] list of unified market symbols
662
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
663
+ * @param {string} [params.subType] *contract only* 'linear', 'inverse'
664
+ * @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
665
+ * @returns {object} a dictionary of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
666
+ */
667
+ fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
668
+ parseFundingRate(contract: any, market?: Market): FundingRate;
669
+ /**
670
+ * @method
671
+ * @name bitget#fetchFundingHistory
672
+ * @description fetch the funding history
673
+ * @see https://www.bitget.com/api-doc/contract/account/Get-Account-Bill
674
+ * @param {string} symbol unified market symbol
675
+ * @param {int} [since] the starting timestamp in milliseconds
676
+ * @param {int} [limit] the number of entries to return
677
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
678
+ * @param {int} [params.until] the latest time in ms to fetch funding history for
679
+ * @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)
680
+ * @returns {object[]} a list of [funding history structures]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
681
+ */
682
+ fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
683
+ parseFundingHistory(contract: any, market?: Market): {
684
+ info: any;
685
+ symbol: string;
686
+ timestamp: number;
687
+ datetime: string;
688
+ code: string;
689
+ amount: number;
690
+ id: string;
691
+ };
692
+ parseFundingHistories(contracts: any, market?: any, since?: Int, limit?: Int): FundingHistory[];
693
+ modifyMarginHelper(symbol: string, amount: any, type: any, params?: {}): Promise<MarginModification>;
694
+ parseMarginModification(data: Dict, market?: Market): MarginModification;
695
+ /**
696
+ * @method
697
+ * @name bitget#reduceMargin
698
+ * @description remove margin from a position
699
+ * @see https://www.bitget.com/api-doc/contract/account/Change-Margin
700
+ * @param {string} symbol unified market symbol
701
+ * @param {float} amount the amount of margin to remove
702
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
703
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
704
+ */
705
+ reduceMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
706
+ /**
707
+ * @method
708
+ * @name bitget#addMargin
709
+ * @description add margin
710
+ * @see https://www.bitget.com/api-doc/contract/account/Change-Margin
711
+ * @param {string} symbol unified market symbol
712
+ * @param {float} amount the amount of margin to add
713
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
714
+ * @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
715
+ */
716
+ addMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
717
+ /**
718
+ * @method
719
+ * @name bitget#fetchLeverage
720
+ * @description fetch the set leverage for a market
721
+ * @see https://www.bitget.com/api-doc/contract/account/Get-Single-Account
722
+ * @param {string} symbol unified market symbol
723
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
724
+ * @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
725
+ */
726
+ fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
727
+ parseLeverage(leverage: Dict, market?: Market): Leverage;
728
+ /**
729
+ * @method
730
+ * @name bitget#setLeverage
731
+ * @description set the level of leverage for a market
732
+ * @see https://www.bitget.com/api-doc/contract/account/Change-Leverage
733
+ * @see https://www.bitget.com/api-doc/uta/account/Change-Leverage
734
+ * @param {int} leverage the rate of leverage
735
+ * @param {string} symbol unified market symbol
736
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
737
+ * @param {string} [params.holdSide] *isolated only* position direction, 'long' or 'short'
738
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
739
+ * @param {boolean} [params.posSide] required for uta isolated margin, long or short
740
+ * @returns {object} response from the exchange
741
+ */
742
+ setLeverage(leverage: int, symbol?: Str, params?: {}): Promise<any>;
743
+ /**
744
+ * @method
745
+ * @name bitget#setMarginMode
746
+ * @description set margin mode to 'cross' or 'isolated'
747
+ * @see https://www.bitget.com/api-doc/contract/account/Change-Margin-Mode
748
+ * @param {string} marginMode 'cross' or 'isolated'
749
+ * @param {string} symbol unified market symbol
750
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
751
+ * @returns {object} response from the exchange
752
+ */
753
+ setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<any>;
754
+ /**
755
+ * @method
756
+ * @name bitget#setPositionMode
757
+ * @description set hedged to true or false for a market
758
+ * @see https://www.bitget.com/api-doc/contract/account/Change-Hold-Mode
759
+ * @see https://www.bitget.com/api-doc/uta/account/Change-Position-Mode
760
+ * @param {bool} hedged set to true to use dualSidePosition
761
+ * @param {string} symbol not used by bitget setPositionMode ()
762
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
763
+ * @param {string} [params.productType] required if not uta and symbol is undefined: 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
764
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
765
+ * @returns {object} response from the exchange
766
+ */
767
+ setPositionMode(hedged: boolean, symbol?: Str, params?: {}): Promise<any>;
768
+ /**
769
+ * @method
770
+ * @name bitget#fetchOpenInterest
771
+ * @description retrieves the open interest of a contract trading pair
772
+ * @see https://www.bitget.com/api-doc/contract/market/Get-Open-Interest
773
+ * @see https://www.bitget.com/api-doc/uta/public/Get-Open-Interest
774
+ * @param {string} symbol unified CCXT market symbol
775
+ * @param {object} [params] exchange specific parameters
776
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
777
+ * @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
778
+ */
779
+ fetchOpenInterest(symbol: string, params?: {}): Promise<import("./base/types.js").OpenInterest>;
780
+ parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
781
+ /**
782
+ * @method
783
+ * @name bitget#fetchTransfers
784
+ * @description fetch a history of internal transfers made on an account
785
+ * @see https://www.bitget.com/api-doc/spot/account/Get-Account-TransferRecords
786
+ * @param {string} code unified currency code of the currency transferred
787
+ * @param {int} [since] the earliest time in ms to fetch transfers for
788
+ * @param {int} [limit] the maximum number of transfers structures to retrieve
789
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
790
+ * @param {int} [params.until] the latest time in ms to fetch entries for
791
+ * @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
792
+ */
793
+ fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
794
+ /**
795
+ * @method
796
+ * @name bitget#transfer
797
+ * @description transfer currency internally between wallets on the same account
798
+ * @see https://www.bitget.com/api-doc/spot/account/Wallet-Transfer
799
+ * @param {string} code unified currency code
800
+ * @param {float} amount amount to transfer
801
+ * @param {string} fromAccount account to transfer from
802
+ * @param {string} toAccount account to transfer to
803
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
804
+ * @param {string} [params.symbol] unified CCXT market symbol, required when transferring to or from an account type that is a leveraged position-by-position account
805
+ * @param {string} [params.clientOid] custom id
806
+ * @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
807
+ */
808
+ transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
809
+ parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
810
+ parseTransferStatus(status: Str): Str;
811
+ parseDepositWithdrawFee(fee: any, currency?: Currency): Dict;
812
+ /**
813
+ * @method
814
+ * @name bitget#fetchDepositWithdrawFees
815
+ * @description fetch deposit and withdraw fees
816
+ * @see https://www.bitget.com/api-doc/spot/market/Get-Coin-List
817
+ * @param {string[]|undefined} codes list of unified currency codes
818
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
819
+ * @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
820
+ */
821
+ fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
822
+ /**
823
+ * @method
824
+ * @name bitget#borrowCrossMargin
825
+ * @description create a loan to borrow margin
826
+ * @see https://www.bitget.com/api-doc/margin/cross/account/Cross-Borrow
827
+ * @param {string} code unified currency code of the currency to borrow
828
+ * @param {string} amount the amount to borrow
829
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
830
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
831
+ */
832
+ borrowCrossMargin(code: string, amount: number, params?: {}): Promise<{
833
+ id: string;
834
+ currency: string;
835
+ amount: number;
836
+ symbol: any;
837
+ timestamp: any;
838
+ datetime: any;
839
+ info: any;
840
+ }>;
841
+ /**
842
+ * @method
843
+ * @name bitget#borrowIsolatedMargin
844
+ * @description create a loan to borrow margin
845
+ * @see https://www.bitget.com/api-doc/margin/isolated/account/Isolated-Borrow
846
+ * @param {string} symbol unified market symbol
847
+ * @param {string} code unified currency code of the currency to borrow
848
+ * @param {string} amount the amount to borrow
849
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
850
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
851
+ */
852
+ borrowIsolatedMargin(symbol: string, code: string, amount: number, params?: {}): Promise<{
853
+ id: string;
854
+ currency: string;
855
+ amount: number;
856
+ symbol: any;
857
+ timestamp: any;
858
+ datetime: any;
859
+ info: any;
860
+ }>;
861
+ /**
862
+ * @method
863
+ * @name bitget#repayIsolatedMargin
864
+ * @description repay borrowed margin and interest
865
+ * @see https://www.bitget.com/api-doc/margin/isolated/account/Isolated-Repay
866
+ * @param {string} symbol unified market symbol
867
+ * @param {string} code unified currency code of the currency to repay
868
+ * @param {string} amount the amount to repay
869
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
870
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
871
+ */
872
+ repayIsolatedMargin(symbol: string, code: string, amount: any, params?: {}): Promise<{
873
+ id: string;
874
+ currency: string;
875
+ amount: number;
876
+ symbol: any;
877
+ timestamp: any;
878
+ datetime: any;
879
+ info: any;
880
+ }>;
881
+ /**
882
+ * @method
883
+ * @name bitget#repayCrossMargin
884
+ * @description repay borrowed margin and interest
885
+ * @see https://www.bitget.com/api-doc/margin/cross/account/Cross-Repay
886
+ * @param {string} code unified currency code of the currency to repay
887
+ * @param {string} amount the amount to repay
888
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
889
+ * @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
890
+ */
891
+ repayCrossMargin(code: string, amount: any, params?: {}): Promise<{
892
+ id: string;
893
+ currency: string;
894
+ amount: number;
895
+ symbol: any;
896
+ timestamp: any;
897
+ datetime: any;
898
+ info: any;
899
+ }>;
900
+ parseMarginLoan(info: any, currency?: Currency, market?: Market): {
901
+ id: string;
902
+ currency: string;
903
+ amount: number;
904
+ symbol: any;
905
+ timestamp: any;
906
+ datetime: any;
907
+ info: any;
908
+ };
909
+ /**
910
+ * @method
911
+ * @name bitget#fetchMyLiquidations
912
+ * @description retrieves the users liquidated positions
913
+ * @see https://www.bitget.com/api-doc/margin/cross/record/Get-Cross-Liquidation-Records
914
+ * @see https://www.bitget.com/api-doc/margin/isolated/record/Get-Isolated-Liquidation-Records
915
+ * @param {string} [symbol] unified CCXT market symbol
916
+ * @param {int} [since] the earliest time in ms to fetch liquidations for
917
+ * @param {int} [limit] the maximum number of liquidation structures to retrieve
918
+ * @param {object} [params] exchange specific parameters for the bitget api endpoint
919
+ * @param {int} [params.until] timestamp in ms of the latest liquidation
920
+ * @param {string} [params.marginMode] 'cross' or 'isolated' default value is 'cross'
921
+ * @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)
922
+ * @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
923
+ */
924
+ fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
925
+ parseLiquidation(liquidation: any, market?: Market): Liquidation;
926
+ /**
927
+ * @method
928
+ * @name bitget#fetchIsolatedBorrowRate
929
+ * @description fetch the rate of interest to borrow a currency for margin trading
930
+ * @see https://www.bitget.com/api-doc/margin/isolated/account/Isolated-Margin-Interest-Rate-And-Max-Borrowable-Amount
931
+ * @param {string} symbol unified market symbol
932
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
933
+ * @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure}
934
+ */
935
+ fetchIsolatedBorrowRate(symbol: string, params?: {}): Promise<IsolatedBorrowRate>;
936
+ parseIsolatedBorrowRate(info: Dict, market?: Market): IsolatedBorrowRate;
937
+ /**
938
+ * @method
939
+ * @name bitget#fetchCrossBorrowRate
940
+ * @description fetch the rate of interest to borrow a currency for margin trading
941
+ * @see https://www.bitget.com/api-doc/margin/cross/account/Get-Cross-Margin-Interest-Rate-And-Borrowable
942
+ * @see https://www.bitget.com/api-doc/uta/public/Get-Margin-Loans
943
+ * @param {string} code unified currency code
944
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
945
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
946
+ * @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
947
+ */
948
+ fetchCrossBorrowRate(code: string, params?: {}): Promise<CrossBorrowRate>;
949
+ parseBorrowRate(info: any, currency?: Currency): {
950
+ currency: string;
951
+ rate: number;
952
+ period: number;
953
+ timestamp: number;
954
+ datetime: string;
955
+ info: any;
956
+ };
957
+ /**
958
+ * @method
959
+ * @name bitget#fetchBorrowInterest
960
+ * @description fetch the interest owed by the user for borrowing currency for margin trading
961
+ * @see https://www.bitget.com/api-doc/margin/cross/record/Get-Cross-Interest-Records
962
+ * @see https://www.bitget.com/api-doc/margin/isolated/record/Get-Isolated-Interest-Records
963
+ * @param {string} [code] unified currency code
964
+ * @param {string} [symbol] unified market symbol when fetching interest in isolated markets
965
+ * @param {int} [since] the earliest time in ms to fetch borrow interest for
966
+ * @param {int} [limit] the maximum number of structures to retrieve
967
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
968
+ * @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)
969
+ * @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
970
+ */
971
+ fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<BorrowInterest[]>;
972
+ parseBorrowInterest(info: Dict, market?: Market): BorrowInterest;
973
+ /**
974
+ * @method
975
+ * @name bitget#closePosition
976
+ * @description closes an open position for a market
977
+ * @see https://www.bitget.com/api-doc/contract/trade/Flash-Close-Position
978
+ * @see https://www.bitget.com/api-doc/uta/trade/Close-All-Positions
979
+ * @param {string} symbol unified CCXT market symbol
980
+ * @param {string} [side] one-way mode: 'buy' or 'sell', hedge-mode: 'long' or 'short'
981
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
982
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
983
+ * @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
984
+ */
985
+ closePosition(symbol: string, side?: OrderSide, params?: {}): Promise<Order>;
986
+ /**
987
+ * @method
988
+ * @name bitget#closeAllPositions
989
+ * @description closes all open positions for a market type
990
+ * @see https://www.bitget.com/api-doc/contract/trade/Flash-Close-Position
991
+ * @see https://www.bitget.com/api-doc/uta/trade/Close-All-Positions
992
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
993
+ * @param {string} [params.productType] 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
994
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
995
+ * @returns {object[]} A list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
996
+ */
997
+ closeAllPositions(params?: {}): Promise<Position[]>;
998
+ /**
999
+ * @method
1000
+ * @name bitget#fetchMarginMode
1001
+ * @description fetches the margin mode of a trading pair
1002
+ * @see https://www.bitget.com/api-doc/contract/account/Get-Single-Account
1003
+ * @param {string} symbol unified symbol of the market to fetch the margin mode for
1004
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1005
+ * @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/#/?id=margin-mode-structure}
1006
+ */
1007
+ fetchMarginMode(symbol: string, params?: {}): Promise<MarginMode>;
1008
+ parseMarginMode(marginMode: Dict, market?: any): MarginMode;
1009
+ /**
1010
+ * @method
1011
+ * @name bitget#fetchPositionsHistory
1012
+ * @description fetches historical positions
1013
+ * @see https://www.bitget.com/api-doc/contract/position/Get-History-Position
1014
+ * @see https://www.bitget.com/api-doc/uta/trade/Get-Position-History
1015
+ * @param {string[]} [symbols] unified contract symbols
1016
+ * @param {int} [since] timestamp in ms of the earliest position to fetch, default=3 months ago, max range for params["until"] - since is 3 months
1017
+ * @param {int} [limit] the maximum amount of records to fetch, default=20, max=100
1018
+ * @param {object} params extra parameters specific to the exchange api endpoint
1019
+ * @param {int} [params.until] timestamp in ms of the latest position to fetch, max range for params["until"] - since is 3 months
1020
+ * @param {string} [params.productType] USDT-FUTURES (default), COIN-FUTURES, USDC-FUTURES, SUSDT-FUTURES, SCOIN-FUTURES, or SUSDC-FUTURES
1021
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
1022
+ * @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
1023
+ */
1024
+ fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
1025
+ /**
1026
+ * @method
1027
+ * @name bitget#fetchConvertQuote
1028
+ * @description fetch a quote for converting from one currency to another
1029
+ * @see https://www.bitget.com/api-doc/common/convert/Get-Quoted-Price
1030
+ * @param {string} fromCode the currency that you want to sell and convert from
1031
+ * @param {string} toCode the currency that you want to buy and convert into
1032
+ * @param {float} [amount] how much you want to trade in units of the from currency
1033
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1034
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
1035
+ */
1036
+ fetchConvertQuote(fromCode: string, toCode: string, amount?: Num, params?: {}): Promise<Conversion>;
1037
+ /**
1038
+ * @method
1039
+ * @name bitget#createConvertTrade
1040
+ * @description convert from one currency to another
1041
+ * @see https://www.bitget.com/api-doc/common/convert/Trade
1042
+ * @param {string} id the id of the trade that you want to make
1043
+ * @param {string} fromCode the currency that you want to sell and convert from
1044
+ * @param {string} toCode the currency that you want to buy and convert into
1045
+ * @param {float} amount how much you want to trade in units of the from currency
1046
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1047
+ * @param {string} params.price the price of the conversion, obtained from fetchConvertQuote()
1048
+ * @param {string} params.toAmount the amount you want to trade in units of the toCurrency, obtained from fetchConvertQuote()
1049
+ * @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
1050
+ */
1051
+ createConvertTrade(id: string, fromCode: string, toCode: string, amount?: Num, params?: {}): Promise<Conversion>;
1052
+ /**
1053
+ * @method
1054
+ * @name bitget#fetchConvertTradeHistory
1055
+ * @description fetch the users history of conversion trades
1056
+ * @see https://www.bitget.com/api-doc/common/convert/Get-Convert-Record
1057
+ * @param {string} [code] the unified currency code
1058
+ * @param {int} [since] the earliest time in ms to fetch conversions for
1059
+ * @param {int} [limit] the maximum number of conversion structures to retrieve
1060
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1061
+ * @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/#/?id=conversion-structure}
1062
+ */
1063
+ fetchConvertTradeHistory(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Conversion[]>;
1064
+ parseConversion(conversion: Dict, fromCurrency?: Currency, toCurrency?: Currency): Conversion;
1065
+ /**
1066
+ * @method
1067
+ * @name bitget#fetchConvertCurrencies
1068
+ * @description fetches all available currencies that can be converted
1069
+ * @see https://www.bitget.com/api-doc/common/convert/Get-Convert-Currencies
1070
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1071
+ * @returns {object} an associative dictionary of currencies
1072
+ */
1073
+ fetchConvertCurrencies(params?: {}): Promise<Currencies>;
1074
+ /**
1075
+ * @method
1076
+ * @name bitget#fetchFundingInterval
1077
+ * @description fetch the current funding rate interval
1078
+ * @see https://www.bitget.com/api-doc/contract/market/Get-Symbol-Next-Funding-Time
1079
+ * @see https://www.bitget.com/api-doc/uta/public/Get-Current-Funding-Rate
1080
+ * @param {string} symbol unified market symbol
1081
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1082
+ * @param {boolean} [params.uta] set to true for the unified trading account (uta), defaults to false
1083
+ * @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
1084
+ */
1085
+ fetchFundingInterval(symbol: string, params?: {}): Promise<FundingRate>;
1086
+ /**
1087
+ * @method
1088
+ * @name bitget#fetchLongShortRatioHistory
1089
+ * @description fetches the long short ratio history for a unified market symbol
1090
+ * @see https://www.bitget.com/api-doc/common/apidata/Margin-Ls-Ratio
1091
+ * @see https://www.bitget.com/api-doc/common/apidata/Account-Long-Short
1092
+ * @param {string} symbol unified symbol of the market to fetch the long short ratio for
1093
+ * @param {string} [timeframe] the period for the ratio
1094
+ * @param {int} [since] the earliest time in ms to fetch ratios for
1095
+ * @param {int} [limit] the maximum number of long short ratio structures to retrieve
1096
+ * @param {object} [params] extra parameters specific to the exchange API endpoint
1097
+ * @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/#/?id=long-short-ratio-structure}
1098
+ */
1099
+ fetchLongShortRatioHistory(symbol?: Str, timeframe?: Str, since?: Int, limit?: Int, params?: {}): Promise<LongShortRatio[]>;
1100
+ parseLongShortRatio(info: Dict, market?: Market): LongShortRatio;
1101
+ handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
1102
+ nonce(): number;
1103
+ sign(path: any, api?: any[], method?: string, params?: {}, headers?: any, body?: any): {
1104
+ url: string;
1105
+ method: string;
1106
+ body: any;
1107
+ headers: any;
1108
+ };
1109
+ }