@chainstream-io/sdk 0.0.1

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 (766) hide show
  1. package/README.md +0 -0
  2. package/dist/api/stream.d.ts +118 -0
  3. package/dist/api/stream.fields.d.ts +11 -0
  4. package/dist/api/stream.fields.js +208 -0
  5. package/dist/api/stream.fields.js.map +1 -0
  6. package/dist/api/stream.js +831 -0
  7. package/dist/api/stream.js.map +1 -0
  8. package/dist/api/stream.model.d.ts +253 -0
  9. package/dist/api/stream.model.js +41 -0
  10. package/dist/api/stream.model.js.map +1 -0
  11. package/dist/index.d.ts +37 -0
  12. package/dist/index.js +112 -0
  13. package/dist/index.js.map +1 -0
  14. package/dist/openapi/apis/BlockchainApi.d.ts +12 -0
  15. package/dist/openapi/apis/BlockchainApi.js +98 -0
  16. package/dist/openapi/apis/BlockchainApi.js.map +1 -0
  17. package/dist/openapi/apis/DefiSolanaMoonshotApi.d.ts +15 -0
  18. package/dist/openapi/apis/DefiSolanaMoonshotApi.js +112 -0
  19. package/dist/openapi/apis/DefiSolanaMoonshotApi.js.map +1 -0
  20. package/dist/openapi/apis/DefiSolanaPumpfunApi.d.ts +11 -0
  21. package/dist/openapi/apis/DefiSolanaPumpfunApi.js +68 -0
  22. package/dist/openapi/apis/DefiSolanaPumpfunApi.js.map +1 -0
  23. package/dist/openapi/apis/DexApi.d.ts +22 -0
  24. package/dist/openapi/apis/DexApi.js +215 -0
  25. package/dist/openapi/apis/DexApi.js.map +1 -0
  26. package/dist/openapi/apis/DexPoolApi.d.ts +12 -0
  27. package/dist/openapi/apis/DexPoolApi.js +114 -0
  28. package/dist/openapi/apis/DexPoolApi.js.map +1 -0
  29. package/dist/openapi/apis/IpfsApi.d.ts +9 -0
  30. package/dist/openapi/apis/IpfsApi.js +59 -0
  31. package/dist/openapi/apis/IpfsApi.js.map +1 -0
  32. package/dist/openapi/apis/JobsApi.d.ts +11 -0
  33. package/dist/openapi/apis/JobsApi.js +90 -0
  34. package/dist/openapi/apis/JobsApi.js.map +1 -0
  35. package/dist/openapi/apis/OpenbookApi.d.ts +19 -0
  36. package/dist/openapi/apis/OpenbookApi.js +180 -0
  37. package/dist/openapi/apis/OpenbookApi.js.map +1 -0
  38. package/dist/openapi/apis/OrderApi.d.ts +25 -0
  39. package/dist/openapi/apis/OrderApi.js +288 -0
  40. package/dist/openapi/apis/OrderApi.js.map +1 -0
  41. package/dist/openapi/apis/PrometheusApi.d.ts +9 -0
  42. package/dist/openapi/apis/PrometheusApi.js +53 -0
  43. package/dist/openapi/apis/PrometheusApi.js.map +1 -0
  44. package/dist/openapi/apis/RankingApi.d.ts +19 -0
  45. package/dist/openapi/apis/RankingApi.js +298 -0
  46. package/dist/openapi/apis/RankingApi.js.map +1 -0
  47. package/dist/openapi/apis/RealtimeApi.d.ts +9 -0
  48. package/dist/openapi/apis/RealtimeApi.js +53 -0
  49. package/dist/openapi/apis/RealtimeApi.js.map +1 -0
  50. package/dist/openapi/apis/RedPacketApi.d.ts +32 -0
  51. package/dist/openapi/apis/RedPacketApi.js +401 -0
  52. package/dist/openapi/apis/RedPacketApi.js.map +1 -0
  53. package/dist/openapi/apis/TokenApi.d.ts +69 -0
  54. package/dist/openapi/apis/TokenApi.js +1372 -0
  55. package/dist/openapi/apis/TokenApi.js.map +1 -0
  56. package/dist/openapi/apis/TokenRankingsApi.d.ts +10 -0
  57. package/dist/openapi/apis/TokenRankingsApi.js +67 -0
  58. package/dist/openapi/apis/TokenRankingsApi.js.map +1 -0
  59. package/dist/openapi/apis/TradeApi.d.ts +16 -0
  60. package/dist/openapi/apis/TradeApi.js +231 -0
  61. package/dist/openapi/apis/TradeApi.js.map +1 -0
  62. package/dist/openapi/apis/TransactionApi.d.ts +11 -0
  63. package/dist/openapi/apis/TransactionApi.js +72 -0
  64. package/dist/openapi/apis/TransactionApi.js.map +1 -0
  65. package/dist/openapi/apis/UserApi.d.ts +9 -0
  66. package/dist/openapi/apis/UserApi.js +67 -0
  67. package/dist/openapi/apis/UserApi.js.map +1 -0
  68. package/dist/openapi/apis/WalletApi.d.ts +18 -0
  69. package/dist/openapi/apis/WalletApi.js +211 -0
  70. package/dist/openapi/apis/WalletApi.js.map +1 -0
  71. package/dist/openapi/apis/WatchlistApi.d.ts +9 -0
  72. package/dist/openapi/apis/WatchlistApi.js +67 -0
  73. package/dist/openapi/apis/WatchlistApi.js.map +1 -0
  74. package/dist/openapi/apis/baseapi.d.ts +18 -0
  75. package/dist/openapi/apis/baseapi.js +27 -0
  76. package/dist/openapi/apis/baseapi.js.map +1 -0
  77. package/dist/openapi/apis/exception.d.ts +10 -0
  78. package/dist/openapi/apis/exception.js +14 -0
  79. package/dist/openapi/apis/exception.js.map +1 -0
  80. package/dist/openapi/auth/auth.d.ts +35 -0
  81. package/dist/openapi/auth/auth.js +39 -0
  82. package/dist/openapi/auth/auth.js.map +1 -0
  83. package/dist/openapi/configuration.d.ts +18 -0
  84. package/dist/openapi/configuration.js +21 -0
  85. package/dist/openapi/configuration.js.map +1 -0
  86. package/dist/openapi/http/http.d.ts +68 -0
  87. package/dist/openapi/http/http.js +195 -0
  88. package/dist/openapi/http/http.js.map +1 -0
  89. package/dist/openapi/http/isomorphic-fetch.d.ts +6 -0
  90. package/dist/openapi/http/isomorphic-fetch.js +31 -0
  91. package/dist/openapi/http/isomorphic-fetch.js.map +1 -0
  92. package/dist/openapi/index.d.ts +10 -0
  93. package/dist/openapi/index.js +42 -0
  94. package/dist/openapi/index.js.map +1 -0
  95. package/dist/openapi/middleware.d.ts +16 -0
  96. package/dist/openapi/middleware.js +17 -0
  97. package/dist/openapi/middleware.js.map +1 -0
  98. package/dist/openapi/models/BlockchainDTO.d.ts +23 -0
  99. package/dist/openapi/models/BlockchainDTO.js +40 -0
  100. package/dist/openapi/models/BlockchainDTO.js.map +1 -0
  101. package/dist/openapi/models/BlockchainLatestBlockDTO.d.ts +21 -0
  102. package/dist/openapi/models/BlockchainLatestBlockDTO.js +28 -0
  103. package/dist/openapi/models/BlockchainLatestBlockDTO.js.map +1 -0
  104. package/dist/openapi/models/BlockchainPage.d.ts +23 -0
  105. package/dist/openapi/models/BlockchainPage.js +34 -0
  106. package/dist/openapi/models/BlockchainPage.js.map +1 -0
  107. package/dist/openapi/models/CalculatePnlInput.d.ts +20 -0
  108. package/dist/openapi/models/CalculatePnlInput.js +22 -0
  109. package/dist/openapi/models/CalculatePnlInput.js.map +1 -0
  110. package/dist/openapi/models/CancelAllOrdersInput.d.ts +39 -0
  111. package/dist/openapi/models/CancelAllOrdersInput.js +74 -0
  112. package/dist/openapi/models/CancelAllOrdersInput.js.map +1 -0
  113. package/dist/openapi/models/CancelOrderInput.d.ts +36 -0
  114. package/dist/openapi/models/CancelOrderInput.js +75 -0
  115. package/dist/openapi/models/CancelOrderInput.js.map +1 -0
  116. package/dist/openapi/models/Candle.d.ts +27 -0
  117. package/dist/openapi/models/Candle.js +58 -0
  118. package/dist/openapi/models/Candle.js.map +1 -0
  119. package/dist/openapi/models/ClaimRedPacketInput.d.ts +23 -0
  120. package/dist/openapi/models/ClaimRedPacketInput.js +40 -0
  121. package/dist/openapi/models/ClaimRedPacketInput.js.map +1 -0
  122. package/dist/openapi/models/CloseMarketInput.d.ts +34 -0
  123. package/dist/openapi/models/CloseMarketInput.js +63 -0
  124. package/dist/openapi/models/CloseMarketInput.js.map +1 -0
  125. package/dist/openapi/models/CreateMarketInput.d.ts +43 -0
  126. package/dist/openapi/models/CreateMarketInput.js +117 -0
  127. package/dist/openapi/models/CreateMarketInput.js.map +1 -0
  128. package/dist/openapi/models/CreateRedPacketInput.d.ts +27 -0
  129. package/dist/openapi/models/CreateRedPacketInput.js +64 -0
  130. package/dist/openapi/models/CreateRedPacketInput.js.map +1 -0
  131. package/dist/openapi/models/CreateRedPacketReply.d.ts +21 -0
  132. package/dist/openapi/models/CreateRedPacketReply.js +28 -0
  133. package/dist/openapi/models/CreateRedPacketReply.js.map +1 -0
  134. package/dist/openapi/models/DexDTO.d.ts +23 -0
  135. package/dist/openapi/models/DexDTO.js +40 -0
  136. package/dist/openapi/models/DexDTO.js.map +1 -0
  137. package/dist/openapi/models/DexMintInput.d.ts +34 -0
  138. package/dist/openapi/models/DexMintInput.js +72 -0
  139. package/dist/openapi/models/DexMintInput.js.map +1 -0
  140. package/dist/openapi/models/DexPage.d.ts +26 -0
  141. package/dist/openapi/models/DexPage.js +52 -0
  142. package/dist/openapi/models/DexPage.js.map +1 -0
  143. package/dist/openapi/models/DexPoolDTO.d.ts +29 -0
  144. package/dist/openapi/models/DexPoolDTO.js +76 -0
  145. package/dist/openapi/models/DexPoolDTO.js.map +1 -0
  146. package/dist/openapi/models/FilterCondition.d.ts +51 -0
  147. package/dist/openapi/models/FilterCondition.js +64 -0
  148. package/dist/openapi/models/FilterCondition.js.map +1 -0
  149. package/dist/openapi/models/GainersAndLosersDTO.d.ts +23 -0
  150. package/dist/openapi/models/GainersAndLosersDTO.js +40 -0
  151. package/dist/openapi/models/GainersAndLosersDTO.js.map +1 -0
  152. package/dist/openapi/models/GainersAndLosersPage.d.ts +26 -0
  153. package/dist/openapi/models/GainersAndLosersPage.js +52 -0
  154. package/dist/openapi/models/GainersAndLosersPage.js.map +1 -0
  155. package/dist/openapi/models/JobControllerGetJob200Response.d.ts +21 -0
  156. package/dist/openapi/models/JobControllerGetJob200Response.js +28 -0
  157. package/dist/openapi/models/JobControllerGetJob200Response.js.map +1 -0
  158. package/dist/openapi/models/JobControllerGetJob404Response.d.ts +21 -0
  159. package/dist/openapi/models/JobControllerGetJob404Response.js +28 -0
  160. package/dist/openapi/models/JobControllerGetJob404Response.js.map +1 -0
  161. package/dist/openapi/models/JobControllerStreaming200Response.d.ts +26 -0
  162. package/dist/openapi/models/JobControllerStreaming200Response.js +39 -0
  163. package/dist/openapi/models/JobControllerStreaming200Response.js.map +1 -0
  164. package/dist/openapi/models/JobControllerStreaming404Response.d.ts +21 -0
  165. package/dist/openapi/models/JobControllerStreaming404Response.js +28 -0
  166. package/dist/openapi/models/JobControllerStreaming404Response.js.map +1 -0
  167. package/dist/openapi/models/Link.d.ts +27 -0
  168. package/dist/openapi/models/Link.js +35 -0
  169. package/dist/openapi/models/Link.js.map +1 -0
  170. package/dist/openapi/models/LiquidityDTO.d.ts +22 -0
  171. package/dist/openapi/models/LiquidityDTO.js +28 -0
  172. package/dist/openapi/models/LiquidityDTO.js.map +1 -0
  173. package/dist/openapi/models/MarketInfoDto.d.ts +32 -0
  174. package/dist/openapi/models/MarketInfoDto.js +94 -0
  175. package/dist/openapi/models/MarketInfoDto.js.map +1 -0
  176. package/dist/openapi/models/MintInput.d.ts +39 -0
  177. package/dist/openapi/models/MintInput.js +92 -0
  178. package/dist/openapi/models/MintInput.js.map +1 -0
  179. package/dist/openapi/models/MintReply.d.ts +21 -0
  180. package/dist/openapi/models/MintReply.js +28 -0
  181. package/dist/openapi/models/MintReply.js.map +1 -0
  182. package/dist/openapi/models/MoonshotMintReply.d.ts +21 -0
  183. package/dist/openapi/models/MoonshotMintReply.js +28 -0
  184. package/dist/openapi/models/MoonshotMintReply.js.map +1 -0
  185. package/dist/openapi/models/MoonshotSubmitMint200Response.d.ts +21 -0
  186. package/dist/openapi/models/MoonshotSubmitMint200Response.js +28 -0
  187. package/dist/openapi/models/MoonshotSubmitMint200Response.js.map +1 -0
  188. package/dist/openapi/models/ObjectSerializer.d.ts +68 -0
  189. package/dist/openapi/models/ObjectSerializer.js +454 -0
  190. package/dist/openapi/models/ObjectSerializer.js.map +1 -0
  191. package/dist/openapi/models/OrderBookInfoDto.d.ts +25 -0
  192. package/dist/openapi/models/OrderBookInfoDto.js +46 -0
  193. package/dist/openapi/models/OrderBookInfoDto.js.map +1 -0
  194. package/dist/openapi/models/OrderInfoDto.d.ts +22 -0
  195. package/dist/openapi/models/OrderInfoDto.js +34 -0
  196. package/dist/openapi/models/OrderInfoDto.js.map +1 -0
  197. package/dist/openapi/models/OrderReply.d.ts +20 -0
  198. package/dist/openapi/models/OrderReply.js +22 -0
  199. package/dist/openapi/models/OrderReply.js.map +1 -0
  200. package/dist/openapi/models/Page.d.ts +25 -0
  201. package/dist/openapi/models/Page.js +52 -0
  202. package/dist/openapi/models/Page.js.map +1 -0
  203. package/dist/openapi/models/PlaceOrderInput.d.ts +40 -0
  204. package/dist/openapi/models/PlaceOrderInput.js +80 -0
  205. package/dist/openapi/models/PlaceOrderInput.js.map +1 -0
  206. package/dist/openapi/models/PumpMintInput.d.ts +38 -0
  207. package/dist/openapi/models/PumpMintInput.js +97 -0
  208. package/dist/openapi/models/PumpMintInput.js.map +1 -0
  209. package/dist/openapi/models/PumpMintReply.d.ts +21 -0
  210. package/dist/openapi/models/PumpMintReply.js +28 -0
  211. package/dist/openapi/models/PumpMintReply.js.map +1 -0
  212. package/dist/openapi/models/RankingToken.d.ts +31 -0
  213. package/dist/openapi/models/RankingToken.js +76 -0
  214. package/dist/openapi/models/RankingToken.js.map +1 -0
  215. package/dist/openapi/models/RankingTokenMarketData.d.ts +27 -0
  216. package/dist/openapi/models/RankingTokenMarketData.js +64 -0
  217. package/dist/openapi/models/RankingTokenMarketData.js.map +1 -0
  218. package/dist/openapi/models/RankingTokenStat.d.ts +39 -0
  219. package/dist/openapi/models/RankingTokenStat.js +136 -0
  220. package/dist/openapi/models/RankingTokenStat.js.map +1 -0
  221. package/dist/openapi/models/RedPacketClaimDTO.d.ts +39 -0
  222. package/dist/openapi/models/RedPacketClaimDTO.js +77 -0
  223. package/dist/openapi/models/RedPacketClaimDTO.js.map +1 -0
  224. package/dist/openapi/models/RedPacketClaimsPage.d.ts +25 -0
  225. package/dist/openapi/models/RedPacketClaimsPage.js +46 -0
  226. package/dist/openapi/models/RedPacketClaimsPage.js.map +1 -0
  227. package/dist/openapi/models/RedPacketDTO.d.ts +48 -0
  228. package/dist/openapi/models/RedPacketDTO.js +131 -0
  229. package/dist/openapi/models/RedPacketDTO.js.map +1 -0
  230. package/dist/openapi/models/RedPacketReply.d.ts +20 -0
  231. package/dist/openapi/models/RedPacketReply.js +22 -0
  232. package/dist/openapi/models/RedPacketReply.js.map +1 -0
  233. package/dist/openapi/models/RedPacketSendTxInput.d.ts +20 -0
  234. package/dist/openapi/models/RedPacketSendTxInput.js +22 -0
  235. package/dist/openapi/models/RedPacketSendTxInput.js.map +1 -0
  236. package/dist/openapi/models/RedPacketSendTxResponse.d.ts +20 -0
  237. package/dist/openapi/models/RedPacketSendTxResponse.js +22 -0
  238. package/dist/openapi/models/RedPacketSendTxResponse.js.map +1 -0
  239. package/dist/openapi/models/RedPacketsPage.d.ts +25 -0
  240. package/dist/openapi/models/RedPacketsPage.js +46 -0
  241. package/dist/openapi/models/RedPacketsPage.js.map +1 -0
  242. package/dist/openapi/models/Resolution.d.ts +12 -0
  243. package/dist/openapi/models/Resolution.js +17 -0
  244. package/dist/openapi/models/Resolution.js.map +1 -0
  245. package/dist/openapi/models/SendTxInput.d.ts +26 -0
  246. package/dist/openapi/models/SendTxInput.js +39 -0
  247. package/dist/openapi/models/SendTxInput.js.map +1 -0
  248. package/dist/openapi/models/SendTxResponse.d.ts +22 -0
  249. package/dist/openapi/models/SendTxResponse.js +34 -0
  250. package/dist/openapi/models/SendTxResponse.js.map +1 -0
  251. package/dist/openapi/models/SimpleMarketDto.d.ts +24 -0
  252. package/dist/openapi/models/SimpleMarketDto.js +46 -0
  253. package/dist/openapi/models/SimpleMarketDto.js.map +1 -0
  254. package/dist/openapi/models/SubmitInput.d.ts +21 -0
  255. package/dist/openapi/models/SubmitInput.js +28 -0
  256. package/dist/openapi/models/SubmitInput.js.map +1 -0
  257. package/dist/openapi/models/SwapInput.d.ts +39 -0
  258. package/dist/openapi/models/SwapInput.js +83 -0
  259. package/dist/openapi/models/SwapInput.js.map +1 -0
  260. package/dist/openapi/models/SwapReply.d.ts +21 -0
  261. package/dist/openapi/models/SwapReply.js +28 -0
  262. package/dist/openapi/models/SwapReply.js.map +1 -0
  263. package/dist/openapi/models/SwapRouteInfo.d.ts +30 -0
  264. package/dist/openapi/models/SwapRouteInfo.js +63 -0
  265. package/dist/openapi/models/SwapRouteInfo.js.map +1 -0
  266. package/dist/openapi/models/SwapRouteInput.d.ts +40 -0
  267. package/dist/openapi/models/SwapRouteInput.js +104 -0
  268. package/dist/openapi/models/SwapRouteInput.js.map +1 -0
  269. package/dist/openapi/models/SwapRouteResponse.d.ts +24 -0
  270. package/dist/openapi/models/SwapRouteResponse.js +40 -0
  271. package/dist/openapi/models/SwapRouteResponse.js.map +1 -0
  272. package/dist/openapi/models/Token.d.ts +41 -0
  273. package/dist/openapi/models/Token.js +130 -0
  274. package/dist/openapi/models/Token.js.map +1 -0
  275. package/dist/openapi/models/TokenAddressesRequest.d.ts +57 -0
  276. package/dist/openapi/models/TokenAddressesRequest.js +75 -0
  277. package/dist/openapi/models/TokenAddressesRequest.js.map +1 -0
  278. package/dist/openapi/models/TokenCreationDTO.d.ts +31 -0
  279. package/dist/openapi/models/TokenCreationDTO.js +64 -0
  280. package/dist/openapi/models/TokenCreationDTO.js.map +1 -0
  281. package/dist/openapi/models/TokenCreationPage.d.ts +26 -0
  282. package/dist/openapi/models/TokenCreationPage.js +52 -0
  283. package/dist/openapi/models/TokenCreationPage.js.map +1 -0
  284. package/dist/openapi/models/TokenGainersPage.d.ts +22 -0
  285. package/dist/openapi/models/TokenGainersPage.js +34 -0
  286. package/dist/openapi/models/TokenGainersPage.js.map +1 -0
  287. package/dist/openapi/models/TokenHolder.d.ts +23 -0
  288. package/dist/openapi/models/TokenHolder.js +40 -0
  289. package/dist/openapi/models/TokenHolder.js.map +1 -0
  290. package/dist/openapi/models/TokenHolderPage.d.ts +26 -0
  291. package/dist/openapi/models/TokenHolderPage.js +52 -0
  292. package/dist/openapi/models/TokenHolderPage.js.map +1 -0
  293. package/dist/openapi/models/TokenListPage.d.ts +26 -0
  294. package/dist/openapi/models/TokenListPage.js +52 -0
  295. package/dist/openapi/models/TokenListPage.js.map +1 -0
  296. package/dist/openapi/models/TokenMarketCap.d.ts +31 -0
  297. package/dist/openapi/models/TokenMarketCap.js +88 -0
  298. package/dist/openapi/models/TokenMarketCap.js.map +1 -0
  299. package/dist/openapi/models/TokenMarketData.d.ts +32 -0
  300. package/dist/openapi/models/TokenMarketData.js +94 -0
  301. package/dist/openapi/models/TokenMarketData.js.map +1 -0
  302. package/dist/openapi/models/TokenMetadata.d.ts +32 -0
  303. package/dist/openapi/models/TokenMetadata.js +94 -0
  304. package/dist/openapi/models/TokenMetadata.js.map +1 -0
  305. package/dist/openapi/models/TokenPage.d.ts +27 -0
  306. package/dist/openapi/models/TokenPage.js +58 -0
  307. package/dist/openapi/models/TokenPage.js.map +1 -0
  308. package/dist/openapi/models/TokenPriceDTO.d.ts +23 -0
  309. package/dist/openapi/models/TokenPriceDTO.js +40 -0
  310. package/dist/openapi/models/TokenPriceDTO.js.map +1 -0
  311. package/dist/openapi/models/TokenPricePage.d.ts +26 -0
  312. package/dist/openapi/models/TokenPricePage.js +52 -0
  313. package/dist/openapi/models/TokenPricePage.js.map +1 -0
  314. package/dist/openapi/models/TokenSortFilterRequest.d.ts +56 -0
  315. package/dist/openapi/models/TokenSortFilterRequest.js +69 -0
  316. package/dist/openapi/models/TokenSortFilterRequest.js.map +1 -0
  317. package/dist/openapi/models/TokenStat.d.ts +146 -0
  318. package/dist/openapi/models/TokenStat.js +778 -0
  319. package/dist/openapi/models/TokenStat.js.map +1 -0
  320. package/dist/openapi/models/TopTradersDTO.d.ts +29 -0
  321. package/dist/openapi/models/TopTradersDTO.js +76 -0
  322. package/dist/openapi/models/TopTradersDTO.js.map +1 -0
  323. package/dist/openapi/models/TopTradersPage.d.ts +26 -0
  324. package/dist/openapi/models/TopTradersPage.js +52 -0
  325. package/dist/openapi/models/TopTradersPage.js.map +1 -0
  326. package/dist/openapi/models/Trade.d.ts +51 -0
  327. package/dist/openapi/models/Trade.js +202 -0
  328. package/dist/openapi/models/Trade.js.map +1 -0
  329. package/dist/openapi/models/TradeDetailDTO.d.ts +44 -0
  330. package/dist/openapi/models/TradeDetailDTO.js +166 -0
  331. package/dist/openapi/models/TradeDetailDTO.js.map +1 -0
  332. package/dist/openapi/models/TradeEvent.d.ts +33 -0
  333. package/dist/openapi/models/TradeEvent.js +94 -0
  334. package/dist/openapi/models/TradeEvent.js.map +1 -0
  335. package/dist/openapi/models/TradePage.d.ts +26 -0
  336. package/dist/openapi/models/TradePage.js +52 -0
  337. package/dist/openapi/models/TradePage.js.map +1 -0
  338. package/dist/openapi/models/TradeType.d.ts +4 -0
  339. package/dist/openapi/models/TradeType.js +9 -0
  340. package/dist/openapi/models/TradeType.js.map +1 -0
  341. package/dist/openapi/models/UserOrderDto.d.ts +28 -0
  342. package/dist/openapi/models/UserOrderDto.js +51 -0
  343. package/dist/openapi/models/UserOrderDto.js.map +1 -0
  344. package/dist/openapi/models/UserOrderInfoDto.d.ts +22 -0
  345. package/dist/openapi/models/UserOrderInfoDto.js +28 -0
  346. package/dist/openapi/models/UserOrderInfoDto.js.map +1 -0
  347. package/dist/openapi/models/WalletBalanceDetailDTO.d.ts +44 -0
  348. package/dist/openapi/models/WalletBalanceDetailDTO.js +166 -0
  349. package/dist/openapi/models/WalletBalanceDetailDTO.js.map +1 -0
  350. package/dist/openapi/models/WalletBalancesDTO.d.ts +23 -0
  351. package/dist/openapi/models/WalletBalancesDTO.js +34 -0
  352. package/dist/openapi/models/WalletBalancesDTO.js.map +1 -0
  353. package/dist/openapi/models/WalletPnlDTO.d.ts +42 -0
  354. package/dist/openapi/models/WalletPnlDTO.js +154 -0
  355. package/dist/openapi/models/WalletPnlDTO.js.map +1 -0
  356. package/dist/openapi/models/WalletTradeInfo.d.ts +27 -0
  357. package/dist/openapi/models/WalletTradeInfo.js +64 -0
  358. package/dist/openapi/models/WalletTradeInfo.js.map +1 -0
  359. package/dist/openapi/models/WalletTrades.d.ts +23 -0
  360. package/dist/openapi/models/WalletTrades.js +34 -0
  361. package/dist/openapi/models/WalletTrades.js.map +1 -0
  362. package/dist/openapi/models/all.d.ts +59 -0
  363. package/dist/openapi/models/all.js +76 -0
  364. package/dist/openapi/models/all.js.map +1 -0
  365. package/dist/openapi/rxjsStub.d.ts +10 -0
  366. package/dist/openapi/rxjsStub.js +32 -0
  367. package/dist/openapi/rxjsStub.js.map +1 -0
  368. package/dist/openapi/servers.d.ts +17 -0
  369. package/dist/openapi/servers.js +31 -0
  370. package/dist/openapi/servers.js.map +1 -0
  371. package/dist/openapi/types/ObjectParamAPI.d.ts +661 -0
  372. package/dist/openapi/types/ObjectParamAPI.js +438 -0
  373. package/dist/openapi/types/ObjectParamAPI.js.map +1 -0
  374. package/dist/openapi/types/ObservableAPI.d.ts +273 -0
  375. package/dist/openapi/types/ObservableAPI.js +1140 -0
  376. package/dist/openapi/types/ObservableAPI.js.map +1 -0
  377. package/dist/openapi/types/PromiseAPI.d.ts +244 -0
  378. package/dist/openapi/types/PromiseAPI.js +550 -0
  379. package/dist/openapi/types/PromiseAPI.js.map +1 -0
  380. package/dist/openapi/util.d.ts +2 -0
  381. package/dist/openapi/util.js +29 -0
  382. package/dist/openapi/util.js.map +1 -0
  383. package/dist/src/api/stream.d.ts +118 -0
  384. package/dist/src/api/stream.fields.d.ts +11 -0
  385. package/dist/src/api/stream.fields.js +208 -0
  386. package/dist/src/api/stream.fields.js.map +1 -0
  387. package/dist/src/api/stream.js +831 -0
  388. package/dist/src/api/stream.js.map +1 -0
  389. package/dist/src/api/stream.model.d.ts +249 -0
  390. package/dist/src/api/stream.model.js +36 -0
  391. package/dist/src/api/stream.model.js.map +1 -0
  392. package/dist/src/index.d.ts +37 -0
  393. package/dist/src/index.js +112 -0
  394. package/dist/src/index.js.map +1 -0
  395. package/dist/src/openapi/apis/BlockchainApi.d.ts +12 -0
  396. package/dist/src/openapi/apis/BlockchainApi.js +98 -0
  397. package/dist/src/openapi/apis/BlockchainApi.js.map +1 -0
  398. package/dist/src/openapi/apis/DefiSolanaMoonshotApi.d.ts +15 -0
  399. package/dist/src/openapi/apis/DefiSolanaMoonshotApi.js +112 -0
  400. package/dist/src/openapi/apis/DefiSolanaMoonshotApi.js.map +1 -0
  401. package/dist/src/openapi/apis/DefiSolanaPumpfunApi.d.ts +11 -0
  402. package/dist/src/openapi/apis/DefiSolanaPumpfunApi.js +68 -0
  403. package/dist/src/openapi/apis/DefiSolanaPumpfunApi.js.map +1 -0
  404. package/dist/src/openapi/apis/DexApi.d.ts +22 -0
  405. package/dist/src/openapi/apis/DexApi.js +215 -0
  406. package/dist/src/openapi/apis/DexApi.js.map +1 -0
  407. package/dist/src/openapi/apis/DexPoolApi.d.ts +12 -0
  408. package/dist/src/openapi/apis/DexPoolApi.js +114 -0
  409. package/dist/src/openapi/apis/DexPoolApi.js.map +1 -0
  410. package/dist/src/openapi/apis/IpfsApi.d.ts +9 -0
  411. package/dist/src/openapi/apis/IpfsApi.js +59 -0
  412. package/dist/src/openapi/apis/IpfsApi.js.map +1 -0
  413. package/dist/src/openapi/apis/JobsApi.d.ts +11 -0
  414. package/dist/src/openapi/apis/JobsApi.js +90 -0
  415. package/dist/src/openapi/apis/JobsApi.js.map +1 -0
  416. package/dist/src/openapi/apis/RankingApi.d.ts +19 -0
  417. package/dist/src/openapi/apis/RankingApi.js +298 -0
  418. package/dist/src/openapi/apis/RankingApi.js.map +1 -0
  419. package/dist/src/openapi/apis/RedPacketApi.d.ts +32 -0
  420. package/dist/src/openapi/apis/RedPacketApi.js +401 -0
  421. package/dist/src/openapi/apis/RedPacketApi.js.map +1 -0
  422. package/dist/src/openapi/apis/TokenApi.d.ts +69 -0
  423. package/dist/src/openapi/apis/TokenApi.js +1372 -0
  424. package/dist/src/openapi/apis/TokenApi.js.map +1 -0
  425. package/dist/src/openapi/apis/TradeApi.d.ts +16 -0
  426. package/dist/src/openapi/apis/TradeApi.js +231 -0
  427. package/dist/src/openapi/apis/TradeApi.js.map +1 -0
  428. package/dist/src/openapi/apis/TransactionApi.d.ts +11 -0
  429. package/dist/src/openapi/apis/TransactionApi.js +72 -0
  430. package/dist/src/openapi/apis/TransactionApi.js.map +1 -0
  431. package/dist/src/openapi/apis/WalletApi.d.ts +18 -0
  432. package/dist/src/openapi/apis/WalletApi.js +211 -0
  433. package/dist/src/openapi/apis/WalletApi.js.map +1 -0
  434. package/dist/src/openapi/apis/WatchlistApi.d.ts +9 -0
  435. package/dist/src/openapi/apis/WatchlistApi.js +67 -0
  436. package/dist/src/openapi/apis/WatchlistApi.js.map +1 -0
  437. package/dist/src/openapi/apis/baseapi.d.ts +18 -0
  438. package/dist/src/openapi/apis/baseapi.js +27 -0
  439. package/dist/src/openapi/apis/baseapi.js.map +1 -0
  440. package/dist/src/openapi/apis/exception.d.ts +10 -0
  441. package/dist/src/openapi/apis/exception.js +14 -0
  442. package/dist/src/openapi/apis/exception.js.map +1 -0
  443. package/dist/src/openapi/auth/auth.d.ts +35 -0
  444. package/dist/src/openapi/auth/auth.js +39 -0
  445. package/dist/src/openapi/auth/auth.js.map +1 -0
  446. package/dist/src/openapi/configuration.d.ts +18 -0
  447. package/dist/src/openapi/configuration.js +21 -0
  448. package/dist/src/openapi/configuration.js.map +1 -0
  449. package/dist/src/openapi/http/http.d.ts +68 -0
  450. package/dist/src/openapi/http/http.js +195 -0
  451. package/dist/src/openapi/http/http.js.map +1 -0
  452. package/dist/src/openapi/http/isomorphic-fetch.d.ts +6 -0
  453. package/dist/src/openapi/http/isomorphic-fetch.js +31 -0
  454. package/dist/src/openapi/http/isomorphic-fetch.js.map +1 -0
  455. package/dist/src/openapi/index.d.ts +10 -0
  456. package/dist/src/openapi/index.js +42 -0
  457. package/dist/src/openapi/index.js.map +1 -0
  458. package/dist/src/openapi/middleware.d.ts +16 -0
  459. package/dist/src/openapi/middleware.js +17 -0
  460. package/dist/src/openapi/middleware.js.map +1 -0
  461. package/dist/src/openapi/models/BlockchainLatestBlockDTO.d.ts +21 -0
  462. package/dist/src/openapi/models/BlockchainLatestBlockDTO.js +28 -0
  463. package/dist/src/openapi/models/BlockchainLatestBlockDTO.js.map +1 -0
  464. package/dist/src/openapi/models/CalculatePnlInput.d.ts +20 -0
  465. package/dist/src/openapi/models/CalculatePnlInput.js +22 -0
  466. package/dist/src/openapi/models/CalculatePnlInput.js.map +1 -0
  467. package/dist/src/openapi/models/Candle.d.ts +27 -0
  468. package/dist/src/openapi/models/Candle.js +58 -0
  469. package/dist/src/openapi/models/Candle.js.map +1 -0
  470. package/dist/src/openapi/models/ClaimRedPacketInput.d.ts +23 -0
  471. package/dist/src/openapi/models/ClaimRedPacketInput.js +40 -0
  472. package/dist/src/openapi/models/ClaimRedPacketInput.js.map +1 -0
  473. package/dist/src/openapi/models/CreateRedPacketInput.d.ts +27 -0
  474. package/dist/src/openapi/models/CreateRedPacketInput.js +64 -0
  475. package/dist/src/openapi/models/CreateRedPacketInput.js.map +1 -0
  476. package/dist/src/openapi/models/CreateRedPacketReply.d.ts +21 -0
  477. package/dist/src/openapi/models/CreateRedPacketReply.js +28 -0
  478. package/dist/src/openapi/models/CreateRedPacketReply.js.map +1 -0
  479. package/dist/src/openapi/models/DexDTO.d.ts +23 -0
  480. package/dist/src/openapi/models/DexDTO.js +40 -0
  481. package/dist/src/openapi/models/DexDTO.js.map +1 -0
  482. package/dist/src/openapi/models/DexMintInput.d.ts +34 -0
  483. package/dist/src/openapi/models/DexMintInput.js +72 -0
  484. package/dist/src/openapi/models/DexMintInput.js.map +1 -0
  485. package/dist/src/openapi/models/DexPage.d.ts +26 -0
  486. package/dist/src/openapi/models/DexPage.js +52 -0
  487. package/dist/src/openapi/models/DexPage.js.map +1 -0
  488. package/dist/src/openapi/models/DexPoolDTO.d.ts +29 -0
  489. package/dist/src/openapi/models/DexPoolDTO.js +76 -0
  490. package/dist/src/openapi/models/DexPoolDTO.js.map +1 -0
  491. package/dist/src/openapi/models/FilterCondition.d.ts +51 -0
  492. package/dist/src/openapi/models/FilterCondition.js +64 -0
  493. package/dist/src/openapi/models/FilterCondition.js.map +1 -0
  494. package/dist/src/openapi/models/GainersAndLosersDTO.d.ts +23 -0
  495. package/dist/src/openapi/models/GainersAndLosersDTO.js +40 -0
  496. package/dist/src/openapi/models/GainersAndLosersDTO.js.map +1 -0
  497. package/dist/src/openapi/models/GainersAndLosersPage.d.ts +26 -0
  498. package/dist/src/openapi/models/GainersAndLosersPage.js +52 -0
  499. package/dist/src/openapi/models/GainersAndLosersPage.js.map +1 -0
  500. package/dist/src/openapi/models/Link.d.ts +27 -0
  501. package/dist/src/openapi/models/Link.js +35 -0
  502. package/dist/src/openapi/models/Link.js.map +1 -0
  503. package/dist/src/openapi/models/MintInput.d.ts +39 -0
  504. package/dist/src/openapi/models/MintInput.js +92 -0
  505. package/dist/src/openapi/models/MintInput.js.map +1 -0
  506. package/dist/src/openapi/models/MintReply.d.ts +21 -0
  507. package/dist/src/openapi/models/MintReply.js +28 -0
  508. package/dist/src/openapi/models/MintReply.js.map +1 -0
  509. package/dist/src/openapi/models/MoonshotMintReply.d.ts +21 -0
  510. package/dist/src/openapi/models/MoonshotMintReply.js +28 -0
  511. package/dist/src/openapi/models/MoonshotMintReply.js.map +1 -0
  512. package/dist/src/openapi/models/MoonshotSubmitMint200Response.d.ts +21 -0
  513. package/dist/src/openapi/models/MoonshotSubmitMint200Response.js +28 -0
  514. package/dist/src/openapi/models/MoonshotSubmitMint200Response.js.map +1 -0
  515. package/dist/src/openapi/models/ObjectSerializer.d.ts +68 -0
  516. package/dist/src/openapi/models/ObjectSerializer.js +454 -0
  517. package/dist/src/openapi/models/ObjectSerializer.js.map +1 -0
  518. package/dist/src/openapi/models/PumpMintInput.d.ts +38 -0
  519. package/dist/src/openapi/models/PumpMintInput.js +97 -0
  520. package/dist/src/openapi/models/PumpMintInput.js.map +1 -0
  521. package/dist/src/openapi/models/PumpMintReply.d.ts +21 -0
  522. package/dist/src/openapi/models/PumpMintReply.js +28 -0
  523. package/dist/src/openapi/models/PumpMintReply.js.map +1 -0
  524. package/dist/src/openapi/models/RankingToken.d.ts +30 -0
  525. package/dist/src/openapi/models/RankingToken.js +70 -0
  526. package/dist/src/openapi/models/RankingToken.js.map +1 -0
  527. package/dist/src/openapi/models/RankingTokenMarketData.d.ts +26 -0
  528. package/dist/src/openapi/models/RankingTokenMarketData.js +58 -0
  529. package/dist/src/openapi/models/RankingTokenMarketData.js.map +1 -0
  530. package/dist/src/openapi/models/RankingTokenStat.d.ts +39 -0
  531. package/dist/src/openapi/models/RankingTokenStat.js +136 -0
  532. package/dist/src/openapi/models/RankingTokenStat.js.map +1 -0
  533. package/dist/src/openapi/models/RedPacketClaimDTO.d.ts +39 -0
  534. package/dist/src/openapi/models/RedPacketClaimDTO.js +77 -0
  535. package/dist/src/openapi/models/RedPacketClaimDTO.js.map +1 -0
  536. package/dist/src/openapi/models/RedPacketClaimsPage.d.ts +25 -0
  537. package/dist/src/openapi/models/RedPacketClaimsPage.js +46 -0
  538. package/dist/src/openapi/models/RedPacketClaimsPage.js.map +1 -0
  539. package/dist/src/openapi/models/RedPacketDTO.d.ts +48 -0
  540. package/dist/src/openapi/models/RedPacketDTO.js +131 -0
  541. package/dist/src/openapi/models/RedPacketDTO.js.map +1 -0
  542. package/dist/src/openapi/models/RedPacketReply.d.ts +20 -0
  543. package/dist/src/openapi/models/RedPacketReply.js +22 -0
  544. package/dist/src/openapi/models/RedPacketReply.js.map +1 -0
  545. package/dist/src/openapi/models/RedPacketSendTxInput.d.ts +20 -0
  546. package/dist/src/openapi/models/RedPacketSendTxInput.js +22 -0
  547. package/dist/src/openapi/models/RedPacketSendTxInput.js.map +1 -0
  548. package/dist/src/openapi/models/RedPacketSendTxResponse.d.ts +20 -0
  549. package/dist/src/openapi/models/RedPacketSendTxResponse.js +22 -0
  550. package/dist/src/openapi/models/RedPacketSendTxResponse.js.map +1 -0
  551. package/dist/src/openapi/models/RedPacketsPage.d.ts +25 -0
  552. package/dist/src/openapi/models/RedPacketsPage.js +46 -0
  553. package/dist/src/openapi/models/RedPacketsPage.js.map +1 -0
  554. package/dist/src/openapi/models/Resolution.d.ts +12 -0
  555. package/dist/src/openapi/models/Resolution.js +17 -0
  556. package/dist/src/openapi/models/Resolution.js.map +1 -0
  557. package/dist/src/openapi/models/SendTxInput.d.ts +26 -0
  558. package/dist/src/openapi/models/SendTxInput.js +39 -0
  559. package/dist/src/openapi/models/SendTxInput.js.map +1 -0
  560. package/dist/src/openapi/models/SendTxResponse.d.ts +22 -0
  561. package/dist/src/openapi/models/SendTxResponse.js +34 -0
  562. package/dist/src/openapi/models/SendTxResponse.js.map +1 -0
  563. package/dist/src/openapi/models/SubmitInput.d.ts +21 -0
  564. package/dist/src/openapi/models/SubmitInput.js +28 -0
  565. package/dist/src/openapi/models/SubmitInput.js.map +1 -0
  566. package/dist/src/openapi/models/SwapInput.d.ts +39 -0
  567. package/dist/src/openapi/models/SwapInput.js +83 -0
  568. package/dist/src/openapi/models/SwapInput.js.map +1 -0
  569. package/dist/src/openapi/models/SwapReply.d.ts +21 -0
  570. package/dist/src/openapi/models/SwapReply.js +28 -0
  571. package/dist/src/openapi/models/SwapReply.js.map +1 -0
  572. package/dist/src/openapi/models/SwapRouteInput.d.ts +40 -0
  573. package/dist/src/openapi/models/SwapRouteInput.js +104 -0
  574. package/dist/src/openapi/models/SwapRouteInput.js.map +1 -0
  575. package/dist/src/openapi/models/SwapRouteResponse.d.ts +24 -0
  576. package/dist/src/openapi/models/SwapRouteResponse.js +40 -0
  577. package/dist/src/openapi/models/SwapRouteResponse.js.map +1 -0
  578. package/dist/src/openapi/models/Token.d.ts +41 -0
  579. package/dist/src/openapi/models/Token.js +130 -0
  580. package/dist/src/openapi/models/Token.js.map +1 -0
  581. package/dist/src/openapi/models/TokenCreationDTO.d.ts +31 -0
  582. package/dist/src/openapi/models/TokenCreationDTO.js +64 -0
  583. package/dist/src/openapi/models/TokenCreationDTO.js.map +1 -0
  584. package/dist/src/openapi/models/TokenCreationPage.d.ts +26 -0
  585. package/dist/src/openapi/models/TokenCreationPage.js +52 -0
  586. package/dist/src/openapi/models/TokenCreationPage.js.map +1 -0
  587. package/dist/src/openapi/models/TokenHolder.d.ts +23 -0
  588. package/dist/src/openapi/models/TokenHolder.js +40 -0
  589. package/dist/src/openapi/models/TokenHolder.js.map +1 -0
  590. package/dist/src/openapi/models/TokenHolderPage.d.ts +26 -0
  591. package/dist/src/openapi/models/TokenHolderPage.js +52 -0
  592. package/dist/src/openapi/models/TokenHolderPage.js.map +1 -0
  593. package/dist/src/openapi/models/TokenListPage.d.ts +26 -0
  594. package/dist/src/openapi/models/TokenListPage.js +52 -0
  595. package/dist/src/openapi/models/TokenListPage.js.map +1 -0
  596. package/dist/src/openapi/models/TokenMarketData.d.ts +31 -0
  597. package/dist/src/openapi/models/TokenMarketData.js +88 -0
  598. package/dist/src/openapi/models/TokenMarketData.js.map +1 -0
  599. package/dist/src/openapi/models/TokenMetadata.d.ts +32 -0
  600. package/dist/src/openapi/models/TokenMetadata.js +94 -0
  601. package/dist/src/openapi/models/TokenMetadata.js.map +1 -0
  602. package/dist/src/openapi/models/TokenPage.d.ts +27 -0
  603. package/dist/src/openapi/models/TokenPage.js +58 -0
  604. package/dist/src/openapi/models/TokenPage.js.map +1 -0
  605. package/dist/src/openapi/models/TokenPriceDTO.d.ts +23 -0
  606. package/dist/src/openapi/models/TokenPriceDTO.js +40 -0
  607. package/dist/src/openapi/models/TokenPriceDTO.js.map +1 -0
  608. package/dist/src/openapi/models/TokenPricePage.d.ts +26 -0
  609. package/dist/src/openapi/models/TokenPricePage.js +52 -0
  610. package/dist/src/openapi/models/TokenPricePage.js.map +1 -0
  611. package/dist/src/openapi/models/TokenStat.d.ts +146 -0
  612. package/dist/src/openapi/models/TokenStat.js +778 -0
  613. package/dist/src/openapi/models/TokenStat.js.map +1 -0
  614. package/dist/src/openapi/models/TopTradersDTO.d.ts +29 -0
  615. package/dist/src/openapi/models/TopTradersDTO.js +76 -0
  616. package/dist/src/openapi/models/TopTradersDTO.js.map +1 -0
  617. package/dist/src/openapi/models/TopTradersPage.d.ts +26 -0
  618. package/dist/src/openapi/models/TopTradersPage.js +52 -0
  619. package/dist/src/openapi/models/TopTradersPage.js.map +1 -0
  620. package/dist/src/openapi/models/TradeDetailDTO.d.ts +44 -0
  621. package/dist/src/openapi/models/TradeDetailDTO.js +166 -0
  622. package/dist/src/openapi/models/TradeDetailDTO.js.map +1 -0
  623. package/dist/src/openapi/models/TradeEvent.d.ts +33 -0
  624. package/dist/src/openapi/models/TradeEvent.js +94 -0
  625. package/dist/src/openapi/models/TradeEvent.js.map +1 -0
  626. package/dist/src/openapi/models/TradePage.d.ts +26 -0
  627. package/dist/src/openapi/models/TradePage.js +52 -0
  628. package/dist/src/openapi/models/TradePage.js.map +1 -0
  629. package/dist/src/openapi/models/TradeType.d.ts +4 -0
  630. package/dist/src/openapi/models/TradeType.js +9 -0
  631. package/dist/src/openapi/models/TradeType.js.map +1 -0
  632. package/dist/src/openapi/models/WalletBalanceDetailDTO.d.ts +44 -0
  633. package/dist/src/openapi/models/WalletBalanceDetailDTO.js +166 -0
  634. package/dist/src/openapi/models/WalletBalanceDetailDTO.js.map +1 -0
  635. package/dist/src/openapi/models/WalletBalancesDTO.d.ts +23 -0
  636. package/dist/src/openapi/models/WalletBalancesDTO.js +34 -0
  637. package/dist/src/openapi/models/WalletBalancesDTO.js.map +1 -0
  638. package/dist/src/openapi/models/WalletPnlDTO.d.ts +42 -0
  639. package/dist/src/openapi/models/WalletPnlDTO.js +154 -0
  640. package/dist/src/openapi/models/WalletPnlDTO.js.map +1 -0
  641. package/dist/src/openapi/models/all.d.ts +59 -0
  642. package/dist/src/openapi/models/all.js +76 -0
  643. package/dist/src/openapi/models/all.js.map +1 -0
  644. package/dist/src/openapi/rxjsStub.d.ts +10 -0
  645. package/dist/src/openapi/rxjsStub.js +32 -0
  646. package/dist/src/openapi/rxjsStub.js.map +1 -0
  647. package/dist/src/openapi/servers.d.ts +17 -0
  648. package/dist/src/openapi/servers.js +31 -0
  649. package/dist/src/openapi/servers.js.map +1 -0
  650. package/dist/src/openapi/types/ObjectParamAPI.d.ts +661 -0
  651. package/dist/src/openapi/types/ObjectParamAPI.js +438 -0
  652. package/dist/src/openapi/types/ObjectParamAPI.js.map +1 -0
  653. package/dist/src/openapi/types/ObservableAPI.d.ts +273 -0
  654. package/dist/src/openapi/types/ObservableAPI.js +1140 -0
  655. package/dist/src/openapi/types/ObservableAPI.js.map +1 -0
  656. package/dist/src/openapi/types/PromiseAPI.d.ts +244 -0
  657. package/dist/src/openapi/types/PromiseAPI.js +550 -0
  658. package/dist/src/openapi/types/PromiseAPI.js.map +1 -0
  659. package/dist/src/openapi/util.d.ts +2 -0
  660. package/dist/src/openapi/util.js +29 -0
  661. package/dist/src/openapi/util.js.map +1 -0
  662. package/dist/stream.test.d.ts +1 -0
  663. package/dist/stream.test.js +84 -0
  664. package/dist/stream.test.js.map +1 -0
  665. package/package.json +55 -0
  666. package/src/api/stream.fields.ts +271 -0
  667. package/src/api/stream.model.ts +283 -0
  668. package/src/api/stream.ts +1000 -0
  669. package/src/index.ts +208 -0
  670. package/src/openapi/.gitattributes +8 -0
  671. package/src/openapi/.openapi-generator/FILES +96 -0
  672. package/src/openapi/.openapi-generator/VERSION +1 -0
  673. package/src/openapi/.openapi-generator-ignore +23 -0
  674. package/src/openapi/README.md +80 -0
  675. package/src/openapi/apis/BlockchainApi.ts +152 -0
  676. package/src/openapi/apis/DefiSolanaMoonshotApi.ts +183 -0
  677. package/src/openapi/apis/DefiSolanaPumpfunApi.ts +102 -0
  678. package/src/openapi/apis/DexApi.ts +374 -0
  679. package/src/openapi/apis/DexPoolApi.ts +184 -0
  680. package/src/openapi/apis/IpfsApi.ts +82 -0
  681. package/src/openapi/apis/JobsApi.ts +139 -0
  682. package/src/openapi/apis/RankingApi.ts +531 -0
  683. package/src/openapi/apis/RedPacketApi.ts +726 -0
  684. package/src/openapi/apis/TokenApi.ts +2697 -0
  685. package/src/openapi/apis/TradeApi.ts +427 -0
  686. package/src/openapi/apis/TransactionApi.ts +110 -0
  687. package/src/openapi/apis/WalletApi.ts +364 -0
  688. package/src/openapi/apis/WatchlistApi.ts +98 -0
  689. package/src/openapi/apis/baseapi.ts +37 -0
  690. package/src/openapi/apis/exception.ts +15 -0
  691. package/src/openapi/auth/auth.ts +80 -0
  692. package/src/openapi/configuration.ts +82 -0
  693. package/src/openapi/git_push.sh +51 -0
  694. package/src/openapi/http/http.ts +259 -0
  695. package/src/openapi/http/isomorphic-fetch.ts +32 -0
  696. package/src/openapi/index.ts +12 -0
  697. package/src/openapi/middleware.ts +66 -0
  698. package/src/openapi/models/BlockchainLatestBlockDTO.ts +49 -0
  699. package/src/openapi/models/CalculatePnlInput.ts +39 -0
  700. package/src/openapi/models/Candle.ts +102 -0
  701. package/src/openapi/models/ClaimRedPacketInput.ts +69 -0
  702. package/src/openapi/models/CreateRedPacketInput.ts +109 -0
  703. package/src/openapi/models/CreateRedPacketReply.ts +49 -0
  704. package/src/openapi/models/DexDTO.ts +69 -0
  705. package/src/openapi/models/DexMintInput.ts +118 -0
  706. package/src/openapi/models/DexPage.ts +90 -0
  707. package/src/openapi/models/DexPoolDTO.ts +129 -0
  708. package/src/openapi/models/FilterCondition.ts +90 -0
  709. package/src/openapi/models/GainersAndLosersDTO.ts +69 -0
  710. package/src/openapi/models/GainersAndLosersPage.ts +90 -0
  711. package/src/openapi/models/Link.ts +57 -0
  712. package/src/openapi/models/MintInput.ts +150 -0
  713. package/src/openapi/models/MintReply.ts +49 -0
  714. package/src/openapi/models/MoonshotMintReply.ts +49 -0
  715. package/src/openapi/models/MoonshotSubmitMint200Response.ts +49 -0
  716. package/src/openapi/models/ObjectSerializer.ts +497 -0
  717. package/src/openapi/models/PumpMintInput.ts +158 -0
  718. package/src/openapi/models/PumpMintReply.ts +49 -0
  719. package/src/openapi/models/RankingToken.ts +131 -0
  720. package/src/openapi/models/RankingTokenMarketData.ts +109 -0
  721. package/src/openapi/models/RankingTokenStat.ts +229 -0
  722. package/src/openapi/models/RedPacketClaimDTO.ts +123 -0
  723. package/src/openapi/models/RedPacketClaimsPage.ts +80 -0
  724. package/src/openapi/models/RedPacketDTO.ts +213 -0
  725. package/src/openapi/models/RedPacketReply.ts +39 -0
  726. package/src/openapi/models/RedPacketSendTxInput.ts +39 -0
  727. package/src/openapi/models/RedPacketSendTxResponse.ts +39 -0
  728. package/src/openapi/models/RedPacketsPage.ts +80 -0
  729. package/src/openapi/models/Resolution.ts +26 -0
  730. package/src/openapi/models/SendTxInput.ts +65 -0
  731. package/src/openapi/models/SendTxResponse.ts +59 -0
  732. package/src/openapi/models/SubmitInput.ts +49 -0
  733. package/src/openapi/models/SwapInput.ts +132 -0
  734. package/src/openapi/models/SwapReply.ts +49 -0
  735. package/src/openapi/models/SwapRouteInput.ts +169 -0
  736. package/src/openapi/models/SwapRouteResponse.ts +70 -0
  737. package/src/openapi/models/Token.ts +222 -0
  738. package/src/openapi/models/TokenCreationDTO.ts +106 -0
  739. package/src/openapi/models/TokenCreationPage.ts +90 -0
  740. package/src/openapi/models/TokenHolder.ts +69 -0
  741. package/src/openapi/models/TokenHolderPage.ts +90 -0
  742. package/src/openapi/models/TokenListPage.ts +90 -0
  743. package/src/openapi/models/TokenMarketData.ts +159 -0
  744. package/src/openapi/models/TokenMetadata.ts +159 -0
  745. package/src/openapi/models/TokenPage.ts +100 -0
  746. package/src/openapi/models/TokenPriceDTO.ts +69 -0
  747. package/src/openapi/models/TokenPricePage.ts +90 -0
  748. package/src/openapi/models/TokenStat.ts +1299 -0
  749. package/src/openapi/models/TopTradersDTO.ts +129 -0
  750. package/src/openapi/models/TopTradersPage.ts +90 -0
  751. package/src/openapi/models/TradeDetailDTO.ts +279 -0
  752. package/src/openapi/models/TradeEvent.ts +162 -0
  753. package/src/openapi/models/TradePage.ts +90 -0
  754. package/src/openapi/models/TradeType.ts +18 -0
  755. package/src/openapi/models/WalletBalanceDetailDTO.ts +279 -0
  756. package/src/openapi/models/WalletBalancesDTO.ts +60 -0
  757. package/src/openapi/models/WalletPnlDTO.ts +259 -0
  758. package/src/openapi/models/all.ts +59 -0
  759. package/src/openapi/package.json +43 -0
  760. package/src/openapi/rxjsStub.ts +27 -0
  761. package/src/openapi/servers.ts +55 -0
  762. package/src/openapi/tsconfig.json +37 -0
  763. package/src/openapi/types/ObjectParamAPI.ts +3556 -0
  764. package/src/openapi/types/ObservableAPI.ts +2661 -0
  765. package/src/openapi/types/PromiseAPI.ts +1946 -0
  766. package/src/openapi/util.ts +37 -0
@@ -0,0 +1,1372 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.TokenApiResponseProcessor = exports.TokenApiRequestFactory = void 0;
13
+ const baseapi_1 = require("./baseapi");
14
+ const http_1 = require("../http/http");
15
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
16
+ const exception_1 = require("./exception");
17
+ const util_1 = require("../util");
18
+ class TokenApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
19
+ getCandles(chain, tokenAddress, resolution, _from, to, limit, _options) {
20
+ var _a, _b, _c;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ let _config = _options || this.configuration;
23
+ if (chain === null || chain === undefined) {
24
+ throw new baseapi_1.RequiredError("TokenApi", "getCandles", "chain");
25
+ }
26
+ if (tokenAddress === null || tokenAddress === undefined) {
27
+ throw new baseapi_1.RequiredError("TokenApi", "getCandles", "tokenAddress");
28
+ }
29
+ if (resolution === null || resolution === undefined) {
30
+ throw new baseapi_1.RequiredError("TokenApi", "getCandles", "resolution");
31
+ }
32
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/candles'
33
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
34
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
35
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
36
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
37
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
38
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
39
+ if (resolution !== undefined) {
40
+ requestContext.setQueryParam("resolution", ObjectSerializer_1.ObjectSerializer.serialize(resolution, "string", ""));
41
+ }
42
+ if (_from !== undefined) {
43
+ requestContext.setQueryParam("from", ObjectSerializer_1.ObjectSerializer.serialize(_from, "number", ""));
44
+ }
45
+ if (to !== undefined) {
46
+ requestContext.setQueryParam("to", ObjectSerializer_1.ObjectSerializer.serialize(to, "number", ""));
47
+ }
48
+ if (limit !== undefined) {
49
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
50
+ }
51
+ let authMethod;
52
+ authMethod = _config.authMethods["bearer"];
53
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
54
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
55
+ }
56
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
57
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
58
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
59
+ }
60
+ return requestContext;
61
+ });
62
+ }
63
+ getCreation(chain, tokenAddress, _options) {
64
+ var _a, _b, _c;
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ let _config = _options || this.configuration;
67
+ if (chain === null || chain === undefined) {
68
+ throw new baseapi_1.RequiredError("TokenApi", "getCreation", "chain");
69
+ }
70
+ if (tokenAddress === null || tokenAddress === undefined) {
71
+ throw new baseapi_1.RequiredError("TokenApi", "getCreation", "tokenAddress");
72
+ }
73
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/creation'
74
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
75
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
76
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
77
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
78
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
79
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
80
+ let authMethod;
81
+ authMethod = _config.authMethods["bearer"];
82
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
83
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
84
+ }
85
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
86
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
87
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
88
+ }
89
+ return requestContext;
90
+ });
91
+ }
92
+ getHolders(chain, tokenAddress, cursor, limit, direction, _options) {
93
+ var _a, _b, _c;
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ let _config = _options || this.configuration;
96
+ if (chain === null || chain === undefined) {
97
+ throw new baseapi_1.RequiredError("TokenApi", "getHolders", "chain");
98
+ }
99
+ if (tokenAddress === null || tokenAddress === undefined) {
100
+ throw new baseapi_1.RequiredError("TokenApi", "getHolders", "tokenAddress");
101
+ }
102
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/holders'
103
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
104
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
105
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
106
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
107
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
108
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
109
+ if (cursor !== undefined) {
110
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
111
+ }
112
+ if (limit !== undefined) {
113
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
114
+ }
115
+ if (direction !== undefined) {
116
+ requestContext.setQueryParam("direction", ObjectSerializer_1.ObjectSerializer.serialize(direction, "'next' | 'prev'", ""));
117
+ }
118
+ let authMethod;
119
+ authMethod = _config.authMethods["bearer"];
120
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
121
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
122
+ }
123
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
124
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
125
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
126
+ }
127
+ return requestContext;
128
+ });
129
+ }
130
+ getHoldersMulti(chain, tokenAddress, walletAddresses, _options) {
131
+ var _a, _b, _c;
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ let _config = _options || this.configuration;
134
+ if (chain === null || chain === undefined) {
135
+ throw new baseapi_1.RequiredError("TokenApi", "getHoldersMulti", "chain");
136
+ }
137
+ if (tokenAddress === null || tokenAddress === undefined) {
138
+ throw new baseapi_1.RequiredError("TokenApi", "getHoldersMulti", "tokenAddress");
139
+ }
140
+ if (walletAddresses === null || walletAddresses === undefined) {
141
+ throw new baseapi_1.RequiredError("TokenApi", "getHoldersMulti", "walletAddresses");
142
+ }
143
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/holders/multi'
144
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
145
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
146
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
147
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
148
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
149
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
150
+ if (walletAddresses !== undefined) {
151
+ requestContext.setQueryParam("walletAddresses", ObjectSerializer_1.ObjectSerializer.serialize(walletAddresses, "string", ""));
152
+ }
153
+ let authMethod;
154
+ authMethod = _config.authMethods["bearer"];
155
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
156
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
157
+ }
158
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
159
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
160
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
161
+ }
162
+ return requestContext;
163
+ });
164
+ }
165
+ getMarketData(chain, tokenAddress, _options) {
166
+ var _a, _b, _c;
167
+ return __awaiter(this, void 0, void 0, function* () {
168
+ let _config = _options || this.configuration;
169
+ if (chain === null || chain === undefined) {
170
+ throw new baseapi_1.RequiredError("TokenApi", "getMarketData", "chain");
171
+ }
172
+ if (tokenAddress === null || tokenAddress === undefined) {
173
+ throw new baseapi_1.RequiredError("TokenApi", "getMarketData", "tokenAddress");
174
+ }
175
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/marketData'
176
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
177
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
178
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
179
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
180
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
181
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
182
+ let authMethod;
183
+ authMethod = _config.authMethods["bearer"];
184
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
185
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
186
+ }
187
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
188
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
189
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
190
+ }
191
+ return requestContext;
192
+ });
193
+ }
194
+ getMarketDataMulti(chain, tokenAddresses, _options) {
195
+ var _a, _b, _c;
196
+ return __awaiter(this, void 0, void 0, function* () {
197
+ let _config = _options || this.configuration;
198
+ if (chain === null || chain === undefined) {
199
+ throw new baseapi_1.RequiredError("TokenApi", "getMarketDataMulti", "chain");
200
+ }
201
+ if (tokenAddresses === null || tokenAddresses === undefined) {
202
+ throw new baseapi_1.RequiredError("TokenApi", "getMarketDataMulti", "tokenAddresses");
203
+ }
204
+ const localVarPath = '/v1/token/{chain}/marketData/multi'
205
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
206
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
207
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
208
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
209
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
210
+ if (tokenAddresses !== undefined) {
211
+ requestContext.setQueryParam("tokenAddresses", ObjectSerializer_1.ObjectSerializer.serialize(tokenAddresses, "string", ""));
212
+ }
213
+ let authMethod;
214
+ authMethod = _config.authMethods["bearer"];
215
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
216
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
217
+ }
218
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
219
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
220
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
221
+ }
222
+ return requestContext;
223
+ });
224
+ }
225
+ getMetadata(chain, tokenAddress, _options) {
226
+ var _a, _b, _c;
227
+ return __awaiter(this, void 0, void 0, function* () {
228
+ let _config = _options || this.configuration;
229
+ if (chain === null || chain === undefined) {
230
+ throw new baseapi_1.RequiredError("TokenApi", "getMetadata", "chain");
231
+ }
232
+ if (tokenAddress === null || tokenAddress === undefined) {
233
+ throw new baseapi_1.RequiredError("TokenApi", "getMetadata", "tokenAddress");
234
+ }
235
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/metadata'
236
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
237
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
238
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
239
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
240
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
241
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
242
+ let authMethod;
243
+ authMethod = _config.authMethods["bearer"];
244
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
245
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
246
+ }
247
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
248
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
249
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
250
+ }
251
+ return requestContext;
252
+ });
253
+ }
254
+ getMetadataMulti(chain, tokenAddresses, _options) {
255
+ var _a, _b, _c;
256
+ return __awaiter(this, void 0, void 0, function* () {
257
+ let _config = _options || this.configuration;
258
+ if (chain === null || chain === undefined) {
259
+ throw new baseapi_1.RequiredError("TokenApi", "getMetadataMulti", "chain");
260
+ }
261
+ if (tokenAddresses === null || tokenAddresses === undefined) {
262
+ throw new baseapi_1.RequiredError("TokenApi", "getMetadataMulti", "tokenAddresses");
263
+ }
264
+ const localVarPath = '/v1/token/{chain}/metadata/multi'
265
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
266
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
267
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
268
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
269
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
270
+ if (tokenAddresses !== undefined) {
271
+ requestContext.setQueryParam("tokenAddresses", ObjectSerializer_1.ObjectSerializer.serialize(tokenAddresses, "string", ""));
272
+ }
273
+ let authMethod;
274
+ authMethod = _config.authMethods["bearer"];
275
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
276
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
277
+ }
278
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
279
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
280
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
281
+ }
282
+ return requestContext;
283
+ });
284
+ }
285
+ getMintAndBurn(chain, tokenAddress, type, cursor, limit, direction, _options) {
286
+ var _a, _b, _c;
287
+ return __awaiter(this, void 0, void 0, function* () {
288
+ let _config = _options || this.configuration;
289
+ if (chain === null || chain === undefined) {
290
+ throw new baseapi_1.RequiredError("TokenApi", "getMintAndBurn", "chain");
291
+ }
292
+ if (tokenAddress === null || tokenAddress === undefined) {
293
+ throw new baseapi_1.RequiredError("TokenApi", "getMintAndBurn", "tokenAddress");
294
+ }
295
+ if (type === null || type === undefined) {
296
+ throw new baseapi_1.RequiredError("TokenApi", "getMintAndBurn", "type");
297
+ }
298
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/mintAndBurn'
299
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
300
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
301
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
302
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
303
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
304
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
305
+ if (cursor !== undefined) {
306
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
307
+ }
308
+ if (limit !== undefined) {
309
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
310
+ }
311
+ if (direction !== undefined) {
312
+ requestContext.setQueryParam("direction", ObjectSerializer_1.ObjectSerializer.serialize(direction, "'next' | 'prev'", ""));
313
+ }
314
+ if (type !== undefined) {
315
+ requestContext.setQueryParam("type", ObjectSerializer_1.ObjectSerializer.serialize(type, "'all' | 'mint' | 'burn'", ""));
316
+ }
317
+ let authMethod;
318
+ authMethod = _config.authMethods["bearer"];
319
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
320
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
321
+ }
322
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
323
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
324
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
325
+ }
326
+ return requestContext;
327
+ });
328
+ }
329
+ getPools(chain, tokenAddress, _options) {
330
+ var _a, _b, _c;
331
+ return __awaiter(this, void 0, void 0, function* () {
332
+ let _config = _options || this.configuration;
333
+ if (chain === null || chain === undefined) {
334
+ throw new baseapi_1.RequiredError("TokenApi", "getPools", "chain");
335
+ }
336
+ if (tokenAddress === null || tokenAddress === undefined) {
337
+ throw new baseapi_1.RequiredError("TokenApi", "getPools", "tokenAddress");
338
+ }
339
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/pools'
340
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
341
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
342
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
343
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
344
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
345
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
346
+ let authMethod;
347
+ authMethod = _config.authMethods["bearer"];
348
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
349
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
350
+ }
351
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
352
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
353
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
354
+ }
355
+ return requestContext;
356
+ });
357
+ }
358
+ getPriceByTime(chain, tokenAddress, timestamp, _options) {
359
+ var _a, _b, _c;
360
+ return __awaiter(this, void 0, void 0, function* () {
361
+ let _config = _options || this.configuration;
362
+ if (chain === null || chain === undefined) {
363
+ throw new baseapi_1.RequiredError("TokenApi", "getPriceByTime", "chain");
364
+ }
365
+ if (tokenAddress === null || tokenAddress === undefined) {
366
+ throw new baseapi_1.RequiredError("TokenApi", "getPriceByTime", "tokenAddress");
367
+ }
368
+ if (timestamp === null || timestamp === undefined) {
369
+ throw new baseapi_1.RequiredError("TokenApi", "getPriceByTime", "timestamp");
370
+ }
371
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/price'
372
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
373
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
374
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
375
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
376
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
377
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
378
+ if (timestamp !== undefined) {
379
+ requestContext.setQueryParam("timestamp", ObjectSerializer_1.ObjectSerializer.serialize(timestamp, "number", ""));
380
+ }
381
+ let authMethod;
382
+ authMethod = _config.authMethods["bearer"];
383
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
384
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
385
+ }
386
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
387
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
388
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
389
+ }
390
+ return requestContext;
391
+ });
392
+ }
393
+ getPrices(chain, tokenAddress, cursor, limit, direction, _options) {
394
+ var _a, _b, _c;
395
+ return __awaiter(this, void 0, void 0, function* () {
396
+ let _config = _options || this.configuration;
397
+ if (chain === null || chain === undefined) {
398
+ throw new baseapi_1.RequiredError("TokenApi", "getPrices", "chain");
399
+ }
400
+ if (tokenAddress === null || tokenAddress === undefined) {
401
+ throw new baseapi_1.RequiredError("TokenApi", "getPrices", "tokenAddress");
402
+ }
403
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/prices'
404
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
405
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
406
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
407
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
408
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
409
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
410
+ if (cursor !== undefined) {
411
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
412
+ }
413
+ if (limit !== undefined) {
414
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
415
+ }
416
+ if (direction !== undefined) {
417
+ requestContext.setQueryParam("direction", ObjectSerializer_1.ObjectSerializer.serialize(direction, "'next' | 'prev'", ""));
418
+ }
419
+ let authMethod;
420
+ authMethod = _config.authMethods["bearer"];
421
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
422
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
423
+ }
424
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
425
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
426
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
427
+ }
428
+ return requestContext;
429
+ });
430
+ }
431
+ getSecurity(chain, tokenAddress, _options) {
432
+ var _a, _b, _c;
433
+ return __awaiter(this, void 0, void 0, function* () {
434
+ let _config = _options || this.configuration;
435
+ if (chain === null || chain === undefined) {
436
+ throw new baseapi_1.RequiredError("TokenApi", "getSecurity", "chain");
437
+ }
438
+ if (tokenAddress === null || tokenAddress === undefined) {
439
+ throw new baseapi_1.RequiredError("TokenApi", "getSecurity", "tokenAddress");
440
+ }
441
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/security'
442
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
443
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
444
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
445
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
446
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
447
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
448
+ let authMethod;
449
+ authMethod = _config.authMethods["bearer"];
450
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
451
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
452
+ }
453
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
454
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
455
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
456
+ }
457
+ return requestContext;
458
+ });
459
+ }
460
+ getStats(chain, tokenAddress, _options) {
461
+ var _a, _b, _c;
462
+ return __awaiter(this, void 0, void 0, function* () {
463
+ let _config = _options || this.configuration;
464
+ if (chain === null || chain === undefined) {
465
+ throw new baseapi_1.RequiredError("TokenApi", "getStats", "chain");
466
+ }
467
+ if (tokenAddress === null || tokenAddress === undefined) {
468
+ throw new baseapi_1.RequiredError("TokenApi", "getStats", "tokenAddress");
469
+ }
470
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/stats'
471
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
472
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
473
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
474
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
475
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
476
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
477
+ let authMethod;
478
+ authMethod = _config.authMethods["bearer"];
479
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
480
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
481
+ }
482
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
483
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
484
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
485
+ }
486
+ return requestContext;
487
+ });
488
+ }
489
+ getStatsMulti(chain, tokenAddresses, _options) {
490
+ var _a, _b, _c;
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ let _config = _options || this.configuration;
493
+ if (chain === null || chain === undefined) {
494
+ throw new baseapi_1.RequiredError("TokenApi", "getStatsMulti", "chain");
495
+ }
496
+ if (tokenAddresses === null || tokenAddresses === undefined) {
497
+ throw new baseapi_1.RequiredError("TokenApi", "getStatsMulti", "tokenAddresses");
498
+ }
499
+ const localVarPath = '/v1/token/{chain}/stats/multi'
500
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
501
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
502
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
503
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
504
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
505
+ if (tokenAddresses !== undefined) {
506
+ requestContext.setQueryParam("tokenAddresses", ObjectSerializer_1.ObjectSerializer.serialize(tokenAddresses, "string", ""));
507
+ }
508
+ let authMethod;
509
+ authMethod = _config.authMethods["bearer"];
510
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
511
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
512
+ }
513
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
514
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
515
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
516
+ }
517
+ return requestContext;
518
+ });
519
+ }
520
+ getToken(chain, tokenAddress, _options) {
521
+ var _a, _b, _c;
522
+ return __awaiter(this, void 0, void 0, function* () {
523
+ let _config = _options || this.configuration;
524
+ if (chain === null || chain === undefined) {
525
+ throw new baseapi_1.RequiredError("TokenApi", "getToken", "chain");
526
+ }
527
+ if (tokenAddress === null || tokenAddress === undefined) {
528
+ throw new baseapi_1.RequiredError("TokenApi", "getToken", "tokenAddress");
529
+ }
530
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}'
531
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
532
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
533
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
534
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
535
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
536
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
537
+ let authMethod;
538
+ authMethod = _config.authMethods["bearer"];
539
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
540
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
541
+ }
542
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
543
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
544
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
545
+ }
546
+ return requestContext;
547
+ });
548
+ }
549
+ getTokenList(chain, cursor, limit, direction, sort, sortBy, minH24VolumeInUsd, maxH24VolumeInUsd, minH24PriceChangeRatio, maxH24PriceChangeRatio, minH24Buys, maxH24Buys, minH24Sells, maxH24Sells, minH24Trades, maxH24Trades, minH24Buyers, maxH24Buyers, minH24Sellers, maxH24Sellers, minH24BuyVolumeInUsd, maxH24BuyVolumeInUsd, minH24SellVolumeInUsd, maxH24SellVolumeInUsd, minH4VolumeInUsd, maxH4VolumeInUsd, minH4PriceChangeRatio, maxH4PriceChangeRatio, minH4Buys, maxH4Buys, minH4Sells, maxH4Sells, minH4Trades, maxH4Trades, minH4Buyers, maxH4Buyers, minH4Sellers, maxH4Sellers, minH4BuyVolumeInUsd, maxH4BuyVolumeInUsd, minH4SellVolumeInUsd, maxH4SellVolumeInUsd, minH1VolumeInUsd, maxH1VolumeInUsd, minH1PriceChangeRatio, maxH1PriceChangeRatio, minH1Buys, maxH1Buys, minH1Sells, maxH1Sells, minH1Trades, maxH1Trades, minH1Buyers, maxH1Buyers, minH1Sellers, maxH1Sellers, minH1BuyVolumeInUsd, maxH1BuyVolumeInUsd, minH1SellVolumeInUsd, maxH1SellVolumeInUsd, minM30VolumeInUsd, maxM30VolumeInUsd, minM30PriceChangeRatio, maxM30PriceChangeRatio, minM30Buys, maxM30Buys, minM30Sells, maxM30Sells, minM30Trades, maxM30Trades, minM30Buyers, maxM30Buyers, minM30Sellers, maxM30Sellers, minM30BuyVolumeInUsd, maxM30BuyVolumeInUsd, minM30SellVolumeInUsd, maxM30SellVolumeInUsd, minM15VolumeInUsd, maxM15VolumeInUsd, minM15PriceChangeRatio, maxM15PriceChangeRatio, minM15Buys, maxM15Buys, minM15Sells, maxM15Sells, minM15Trades, maxM15Trades, minM15Buyers, maxM15Buyers, minM15Sellers, maxM15Sellers, minM15BuyVolumeInUsd, maxM15BuyVolumeInUsd, minM15SellVolumeInUsd, maxM15SellVolumeInUsd, minM5VolumeInUsd, maxM5VolumeInUsd, minM5PriceChangeRatio, maxM5PriceChangeRatio, minM5Buys, maxM5Buys, minM5Sells, maxM5Sells, minM5Trades, maxM5Trades, minM5Buyers, maxM5Buyers, minM5Sellers, maxM5Sellers, minM5BuyVolumeInUsd, maxM5BuyVolumeInUsd, minM5SellVolumeInUsd, maxM5SellVolumeInUsd, minM1VolumeInUsd, maxM1VolumeInUsd, minM1PriceChangeRatio, maxM1PriceChangeRatio, minM1Buys, maxM1Buys, minM1Sells, maxM1Sells, minM1Trades, maxM1Trades, minM1Buyers, maxM1Buyers, minM1Sellers, maxM1Sellers, minM1BuyVolumeInUsd, maxM1BuyVolumeInUsd, minM1SellVolumeInUsd, maxM1SellVolumeInUsd, _options) {
550
+ var _a, _b, _c;
551
+ return __awaiter(this, void 0, void 0, function* () {
552
+ let _config = _options || this.configuration;
553
+ if (chain === null || chain === undefined) {
554
+ throw new baseapi_1.RequiredError("TokenApi", "getTokenList", "chain");
555
+ }
556
+ const localVarPath = '/v1/token/{chain}/list'
557
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
558
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
559
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
560
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
561
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
562
+ if (cursor !== undefined) {
563
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
564
+ }
565
+ if (limit !== undefined) {
566
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
567
+ }
568
+ if (direction !== undefined) {
569
+ requestContext.setQueryParam("direction", ObjectSerializer_1.ObjectSerializer.serialize(direction, "'next' | 'prev'", ""));
570
+ }
571
+ if (sort !== undefined) {
572
+ requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "'asc' | 'desc'", ""));
573
+ }
574
+ if (sortBy !== undefined) {
575
+ requestContext.setQueryParam("sortBy", ObjectSerializer_1.ObjectSerializer.serialize(sortBy, "'h24VolumeInUsd' | 'h24PriceChangeRatio' | 'h24Buys' | 'h24Sells' | 'h24Trades' | 'h24Buyers' | 'h24Sellers' | 'h24BuyVolumeInUsd' | 'h24SellVolumeInUsd' | 'h4VolumeInUsd' | 'h4PriceChangeRatio' | 'h4Buys' | 'h4Sells' | 'h4Trades' | 'h4Buyers' | 'h4Sellers' | 'h4BuyVolumeInUsd' | 'h4SellVolumeInUsd' | 'h1VolumeInUsd' | 'h1PriceChangeRatio' | 'h1Buys' | 'h1Sells' | 'h1Trades' | 'h1Buyers' | 'h1Sellers' | 'h1BuyVolumeInUsd' | 'h1SellVolumeInUsd' | 'm30VolumeInUsd' | 'm30PriceChangeRatio' | 'm30Buys' | 'm30Sells' | 'm30Trades' | 'm30Buyers' | 'm30Sellers' | 'm30BuyVolumeInUsd' | 'm30SellVolumeInUsd' | 'm15VolumeInUsd' | 'm15PriceChangeRatio' | 'm15Buys' | 'm15Sells' | 'm15Trades' | 'm15Buyers' | 'm15Sellers' | 'm15BuyVolumeInUsd' | 'm15SellVolumeInUsd' | 'm5VolumeInUsd' | 'm5PriceChangeRatio' | 'm5Buys' | 'm5Sells' | 'm5Trades' | 'm5Buyers' | 'm5Sellers' | 'm5BuyVolumeInUsd' | 'm5SellVolumeInUsd' | 'm1VolumeInUsd' | 'm1PriceChangeRatio' | 'm1Buys' | 'm1Sells' | 'm1Trades' | 'm1Buyers' | 'm1Sellers' | 'm1BuyVolumeInUsd' | 'm1SellVolumeInUsd'", ""));
576
+ }
577
+ if (minH24VolumeInUsd !== undefined) {
578
+ requestContext.setQueryParam("min_h24_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minH24VolumeInUsd, "string", ""));
579
+ }
580
+ if (maxH24VolumeInUsd !== undefined) {
581
+ requestContext.setQueryParam("max_h24_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxH24VolumeInUsd, "string", ""));
582
+ }
583
+ if (minH24PriceChangeRatio !== undefined) {
584
+ requestContext.setQueryParam("min_h24_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(minH24PriceChangeRatio, "string", ""));
585
+ }
586
+ if (maxH24PriceChangeRatio !== undefined) {
587
+ requestContext.setQueryParam("max_h24_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(maxH24PriceChangeRatio, "string", ""));
588
+ }
589
+ if (minH24Buys !== undefined) {
590
+ requestContext.setQueryParam("min_h24_buys", ObjectSerializer_1.ObjectSerializer.serialize(minH24Buys, "string", ""));
591
+ }
592
+ if (maxH24Buys !== undefined) {
593
+ requestContext.setQueryParam("max_h24_buys", ObjectSerializer_1.ObjectSerializer.serialize(maxH24Buys, "string", ""));
594
+ }
595
+ if (minH24Sells !== undefined) {
596
+ requestContext.setQueryParam("min_h24_sells", ObjectSerializer_1.ObjectSerializer.serialize(minH24Sells, "string", ""));
597
+ }
598
+ if (maxH24Sells !== undefined) {
599
+ requestContext.setQueryParam("max_h24_sells", ObjectSerializer_1.ObjectSerializer.serialize(maxH24Sells, "string", ""));
600
+ }
601
+ if (minH24Trades !== undefined) {
602
+ requestContext.setQueryParam("min_h24_trades", ObjectSerializer_1.ObjectSerializer.serialize(minH24Trades, "string", ""));
603
+ }
604
+ if (maxH24Trades !== undefined) {
605
+ requestContext.setQueryParam("max_h24_trades", ObjectSerializer_1.ObjectSerializer.serialize(maxH24Trades, "string", ""));
606
+ }
607
+ if (minH24Buyers !== undefined) {
608
+ requestContext.setQueryParam("min_h24_buyers", ObjectSerializer_1.ObjectSerializer.serialize(minH24Buyers, "string", ""));
609
+ }
610
+ if (maxH24Buyers !== undefined) {
611
+ requestContext.setQueryParam("max_h24_buyers", ObjectSerializer_1.ObjectSerializer.serialize(maxH24Buyers, "string", ""));
612
+ }
613
+ if (minH24Sellers !== undefined) {
614
+ requestContext.setQueryParam("min_h24_sellers", ObjectSerializer_1.ObjectSerializer.serialize(minH24Sellers, "string", ""));
615
+ }
616
+ if (maxH24Sellers !== undefined) {
617
+ requestContext.setQueryParam("max_h24_sellers", ObjectSerializer_1.ObjectSerializer.serialize(maxH24Sellers, "string", ""));
618
+ }
619
+ if (minH24BuyVolumeInUsd !== undefined) {
620
+ requestContext.setQueryParam("min_h24_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minH24BuyVolumeInUsd, "string", ""));
621
+ }
622
+ if (maxH24BuyVolumeInUsd !== undefined) {
623
+ requestContext.setQueryParam("max_h24_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxH24BuyVolumeInUsd, "string", ""));
624
+ }
625
+ if (minH24SellVolumeInUsd !== undefined) {
626
+ requestContext.setQueryParam("min_h24_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minH24SellVolumeInUsd, "string", ""));
627
+ }
628
+ if (maxH24SellVolumeInUsd !== undefined) {
629
+ requestContext.setQueryParam("max_h24_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxH24SellVolumeInUsd, "string", ""));
630
+ }
631
+ if (minH4VolumeInUsd !== undefined) {
632
+ requestContext.setQueryParam("min_h4_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minH4VolumeInUsd, "string", ""));
633
+ }
634
+ if (maxH4VolumeInUsd !== undefined) {
635
+ requestContext.setQueryParam("max_h4_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxH4VolumeInUsd, "string", ""));
636
+ }
637
+ if (minH4PriceChangeRatio !== undefined) {
638
+ requestContext.setQueryParam("min_h4_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(minH4PriceChangeRatio, "string", ""));
639
+ }
640
+ if (maxH4PriceChangeRatio !== undefined) {
641
+ requestContext.setQueryParam("max_h4_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(maxH4PriceChangeRatio, "string", ""));
642
+ }
643
+ if (minH4Buys !== undefined) {
644
+ requestContext.setQueryParam("min_h4_buys", ObjectSerializer_1.ObjectSerializer.serialize(minH4Buys, "string", ""));
645
+ }
646
+ if (maxH4Buys !== undefined) {
647
+ requestContext.setQueryParam("max_h4_buys", ObjectSerializer_1.ObjectSerializer.serialize(maxH4Buys, "string", ""));
648
+ }
649
+ if (minH4Sells !== undefined) {
650
+ requestContext.setQueryParam("min_h4_sells", ObjectSerializer_1.ObjectSerializer.serialize(minH4Sells, "string", ""));
651
+ }
652
+ if (maxH4Sells !== undefined) {
653
+ requestContext.setQueryParam("max_h4_sells", ObjectSerializer_1.ObjectSerializer.serialize(maxH4Sells, "string", ""));
654
+ }
655
+ if (minH4Trades !== undefined) {
656
+ requestContext.setQueryParam("min_h4_trades", ObjectSerializer_1.ObjectSerializer.serialize(minH4Trades, "string", ""));
657
+ }
658
+ if (maxH4Trades !== undefined) {
659
+ requestContext.setQueryParam("max_h4_trades", ObjectSerializer_1.ObjectSerializer.serialize(maxH4Trades, "string", ""));
660
+ }
661
+ if (minH4Buyers !== undefined) {
662
+ requestContext.setQueryParam("min_h4_buyers", ObjectSerializer_1.ObjectSerializer.serialize(minH4Buyers, "string", ""));
663
+ }
664
+ if (maxH4Buyers !== undefined) {
665
+ requestContext.setQueryParam("max_h4_buyers", ObjectSerializer_1.ObjectSerializer.serialize(maxH4Buyers, "string", ""));
666
+ }
667
+ if (minH4Sellers !== undefined) {
668
+ requestContext.setQueryParam("min_h4_sellers", ObjectSerializer_1.ObjectSerializer.serialize(minH4Sellers, "string", ""));
669
+ }
670
+ if (maxH4Sellers !== undefined) {
671
+ requestContext.setQueryParam("max_h4_sellers", ObjectSerializer_1.ObjectSerializer.serialize(maxH4Sellers, "string", ""));
672
+ }
673
+ if (minH4BuyVolumeInUsd !== undefined) {
674
+ requestContext.setQueryParam("min_h4_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minH4BuyVolumeInUsd, "string", ""));
675
+ }
676
+ if (maxH4BuyVolumeInUsd !== undefined) {
677
+ requestContext.setQueryParam("max_h4_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxH4BuyVolumeInUsd, "string", ""));
678
+ }
679
+ if (minH4SellVolumeInUsd !== undefined) {
680
+ requestContext.setQueryParam("min_h4_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minH4SellVolumeInUsd, "string", ""));
681
+ }
682
+ if (maxH4SellVolumeInUsd !== undefined) {
683
+ requestContext.setQueryParam("max_h4_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxH4SellVolumeInUsd, "string", ""));
684
+ }
685
+ if (minH1VolumeInUsd !== undefined) {
686
+ requestContext.setQueryParam("min_h1_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minH1VolumeInUsd, "string", ""));
687
+ }
688
+ if (maxH1VolumeInUsd !== undefined) {
689
+ requestContext.setQueryParam("max_h1_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxH1VolumeInUsd, "string", ""));
690
+ }
691
+ if (minH1PriceChangeRatio !== undefined) {
692
+ requestContext.setQueryParam("min_h1_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(minH1PriceChangeRatio, "string", ""));
693
+ }
694
+ if (maxH1PriceChangeRatio !== undefined) {
695
+ requestContext.setQueryParam("max_h1_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(maxH1PriceChangeRatio, "string", ""));
696
+ }
697
+ if (minH1Buys !== undefined) {
698
+ requestContext.setQueryParam("min_h1_buys", ObjectSerializer_1.ObjectSerializer.serialize(minH1Buys, "string", ""));
699
+ }
700
+ if (maxH1Buys !== undefined) {
701
+ requestContext.setQueryParam("max_h1_buys", ObjectSerializer_1.ObjectSerializer.serialize(maxH1Buys, "string", ""));
702
+ }
703
+ if (minH1Sells !== undefined) {
704
+ requestContext.setQueryParam("min_h1_sells", ObjectSerializer_1.ObjectSerializer.serialize(minH1Sells, "string", ""));
705
+ }
706
+ if (maxH1Sells !== undefined) {
707
+ requestContext.setQueryParam("max_h1_sells", ObjectSerializer_1.ObjectSerializer.serialize(maxH1Sells, "string", ""));
708
+ }
709
+ if (minH1Trades !== undefined) {
710
+ requestContext.setQueryParam("min_h1_trades", ObjectSerializer_1.ObjectSerializer.serialize(minH1Trades, "string", ""));
711
+ }
712
+ if (maxH1Trades !== undefined) {
713
+ requestContext.setQueryParam("max_h1_trades", ObjectSerializer_1.ObjectSerializer.serialize(maxH1Trades, "string", ""));
714
+ }
715
+ if (minH1Buyers !== undefined) {
716
+ requestContext.setQueryParam("min_h1_buyers", ObjectSerializer_1.ObjectSerializer.serialize(minH1Buyers, "string", ""));
717
+ }
718
+ if (maxH1Buyers !== undefined) {
719
+ requestContext.setQueryParam("max_h1_buyers", ObjectSerializer_1.ObjectSerializer.serialize(maxH1Buyers, "string", ""));
720
+ }
721
+ if (minH1Sellers !== undefined) {
722
+ requestContext.setQueryParam("min_h1_sellers", ObjectSerializer_1.ObjectSerializer.serialize(minH1Sellers, "string", ""));
723
+ }
724
+ if (maxH1Sellers !== undefined) {
725
+ requestContext.setQueryParam("max_h1_sellers", ObjectSerializer_1.ObjectSerializer.serialize(maxH1Sellers, "string", ""));
726
+ }
727
+ if (minH1BuyVolumeInUsd !== undefined) {
728
+ requestContext.setQueryParam("min_h1_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minH1BuyVolumeInUsd, "string", ""));
729
+ }
730
+ if (maxH1BuyVolumeInUsd !== undefined) {
731
+ requestContext.setQueryParam("max_h1_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxH1BuyVolumeInUsd, "string", ""));
732
+ }
733
+ if (minH1SellVolumeInUsd !== undefined) {
734
+ requestContext.setQueryParam("min_h1_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minH1SellVolumeInUsd, "string", ""));
735
+ }
736
+ if (maxH1SellVolumeInUsd !== undefined) {
737
+ requestContext.setQueryParam("max_h1_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxH1SellVolumeInUsd, "string", ""));
738
+ }
739
+ if (minM30VolumeInUsd !== undefined) {
740
+ requestContext.setQueryParam("min_m30_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM30VolumeInUsd, "string", ""));
741
+ }
742
+ if (maxM30VolumeInUsd !== undefined) {
743
+ requestContext.setQueryParam("max_m30_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM30VolumeInUsd, "string", ""));
744
+ }
745
+ if (minM30PriceChangeRatio !== undefined) {
746
+ requestContext.setQueryParam("min_m30_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(minM30PriceChangeRatio, "string", ""));
747
+ }
748
+ if (maxM30PriceChangeRatio !== undefined) {
749
+ requestContext.setQueryParam("max_m30_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(maxM30PriceChangeRatio, "string", ""));
750
+ }
751
+ if (minM30Buys !== undefined) {
752
+ requestContext.setQueryParam("min_m30_buys", ObjectSerializer_1.ObjectSerializer.serialize(minM30Buys, "string", ""));
753
+ }
754
+ if (maxM30Buys !== undefined) {
755
+ requestContext.setQueryParam("max_m30_buys", ObjectSerializer_1.ObjectSerializer.serialize(maxM30Buys, "string", ""));
756
+ }
757
+ if (minM30Sells !== undefined) {
758
+ requestContext.setQueryParam("min_m30_sells", ObjectSerializer_1.ObjectSerializer.serialize(minM30Sells, "string", ""));
759
+ }
760
+ if (maxM30Sells !== undefined) {
761
+ requestContext.setQueryParam("max_m30_sells", ObjectSerializer_1.ObjectSerializer.serialize(maxM30Sells, "string", ""));
762
+ }
763
+ if (minM30Trades !== undefined) {
764
+ requestContext.setQueryParam("min_m30_trades", ObjectSerializer_1.ObjectSerializer.serialize(minM30Trades, "string", ""));
765
+ }
766
+ if (maxM30Trades !== undefined) {
767
+ requestContext.setQueryParam("max_m30_trades", ObjectSerializer_1.ObjectSerializer.serialize(maxM30Trades, "string", ""));
768
+ }
769
+ if (minM30Buyers !== undefined) {
770
+ requestContext.setQueryParam("min_m30_buyers", ObjectSerializer_1.ObjectSerializer.serialize(minM30Buyers, "string", ""));
771
+ }
772
+ if (maxM30Buyers !== undefined) {
773
+ requestContext.setQueryParam("max_m30_buyers", ObjectSerializer_1.ObjectSerializer.serialize(maxM30Buyers, "string", ""));
774
+ }
775
+ if (minM30Sellers !== undefined) {
776
+ requestContext.setQueryParam("min_m30_sellers", ObjectSerializer_1.ObjectSerializer.serialize(minM30Sellers, "string", ""));
777
+ }
778
+ if (maxM30Sellers !== undefined) {
779
+ requestContext.setQueryParam("max_m30_sellers", ObjectSerializer_1.ObjectSerializer.serialize(maxM30Sellers, "string", ""));
780
+ }
781
+ if (minM30BuyVolumeInUsd !== undefined) {
782
+ requestContext.setQueryParam("min_m30_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM30BuyVolumeInUsd, "string", ""));
783
+ }
784
+ if (maxM30BuyVolumeInUsd !== undefined) {
785
+ requestContext.setQueryParam("max_m30_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM30BuyVolumeInUsd, "string", ""));
786
+ }
787
+ if (minM30SellVolumeInUsd !== undefined) {
788
+ requestContext.setQueryParam("min_m30_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM30SellVolumeInUsd, "string", ""));
789
+ }
790
+ if (maxM30SellVolumeInUsd !== undefined) {
791
+ requestContext.setQueryParam("max_m30_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM30SellVolumeInUsd, "string", ""));
792
+ }
793
+ if (minM15VolumeInUsd !== undefined) {
794
+ requestContext.setQueryParam("min_m15_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM15VolumeInUsd, "string", ""));
795
+ }
796
+ if (maxM15VolumeInUsd !== undefined) {
797
+ requestContext.setQueryParam("max_m15_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM15VolumeInUsd, "string", ""));
798
+ }
799
+ if (minM15PriceChangeRatio !== undefined) {
800
+ requestContext.setQueryParam("min_m15_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(minM15PriceChangeRatio, "string", ""));
801
+ }
802
+ if (maxM15PriceChangeRatio !== undefined) {
803
+ requestContext.setQueryParam("max_m15_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(maxM15PriceChangeRatio, "string", ""));
804
+ }
805
+ if (minM15Buys !== undefined) {
806
+ requestContext.setQueryParam("min_m15_buys", ObjectSerializer_1.ObjectSerializer.serialize(minM15Buys, "string", ""));
807
+ }
808
+ if (maxM15Buys !== undefined) {
809
+ requestContext.setQueryParam("max_m15_buys", ObjectSerializer_1.ObjectSerializer.serialize(maxM15Buys, "string", ""));
810
+ }
811
+ if (minM15Sells !== undefined) {
812
+ requestContext.setQueryParam("min_m15_sells", ObjectSerializer_1.ObjectSerializer.serialize(minM15Sells, "string", ""));
813
+ }
814
+ if (maxM15Sells !== undefined) {
815
+ requestContext.setQueryParam("max_m15_sells", ObjectSerializer_1.ObjectSerializer.serialize(maxM15Sells, "string", ""));
816
+ }
817
+ if (minM15Trades !== undefined) {
818
+ requestContext.setQueryParam("min_m15_trades", ObjectSerializer_1.ObjectSerializer.serialize(minM15Trades, "string", ""));
819
+ }
820
+ if (maxM15Trades !== undefined) {
821
+ requestContext.setQueryParam("max_m15_trades", ObjectSerializer_1.ObjectSerializer.serialize(maxM15Trades, "string", ""));
822
+ }
823
+ if (minM15Buyers !== undefined) {
824
+ requestContext.setQueryParam("min_m15_buyers", ObjectSerializer_1.ObjectSerializer.serialize(minM15Buyers, "string", ""));
825
+ }
826
+ if (maxM15Buyers !== undefined) {
827
+ requestContext.setQueryParam("max_m15_buyers", ObjectSerializer_1.ObjectSerializer.serialize(maxM15Buyers, "string", ""));
828
+ }
829
+ if (minM15Sellers !== undefined) {
830
+ requestContext.setQueryParam("min_m15_sellers", ObjectSerializer_1.ObjectSerializer.serialize(minM15Sellers, "string", ""));
831
+ }
832
+ if (maxM15Sellers !== undefined) {
833
+ requestContext.setQueryParam("max_m15_sellers", ObjectSerializer_1.ObjectSerializer.serialize(maxM15Sellers, "string", ""));
834
+ }
835
+ if (minM15BuyVolumeInUsd !== undefined) {
836
+ requestContext.setQueryParam("min_m15_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM15BuyVolumeInUsd, "string", ""));
837
+ }
838
+ if (maxM15BuyVolumeInUsd !== undefined) {
839
+ requestContext.setQueryParam("max_m15_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM15BuyVolumeInUsd, "string", ""));
840
+ }
841
+ if (minM15SellVolumeInUsd !== undefined) {
842
+ requestContext.setQueryParam("min_m15_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM15SellVolumeInUsd, "string", ""));
843
+ }
844
+ if (maxM15SellVolumeInUsd !== undefined) {
845
+ requestContext.setQueryParam("max_m15_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM15SellVolumeInUsd, "string", ""));
846
+ }
847
+ if (minM5VolumeInUsd !== undefined) {
848
+ requestContext.setQueryParam("min_m5_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM5VolumeInUsd, "string", ""));
849
+ }
850
+ if (maxM5VolumeInUsd !== undefined) {
851
+ requestContext.setQueryParam("max_m5_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM5VolumeInUsd, "string", ""));
852
+ }
853
+ if (minM5PriceChangeRatio !== undefined) {
854
+ requestContext.setQueryParam("min_m5_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(minM5PriceChangeRatio, "string", ""));
855
+ }
856
+ if (maxM5PriceChangeRatio !== undefined) {
857
+ requestContext.setQueryParam("max_m5_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(maxM5PriceChangeRatio, "string", ""));
858
+ }
859
+ if (minM5Buys !== undefined) {
860
+ requestContext.setQueryParam("min_m5_buys", ObjectSerializer_1.ObjectSerializer.serialize(minM5Buys, "string", ""));
861
+ }
862
+ if (maxM5Buys !== undefined) {
863
+ requestContext.setQueryParam("max_m5_buys", ObjectSerializer_1.ObjectSerializer.serialize(maxM5Buys, "string", ""));
864
+ }
865
+ if (minM5Sells !== undefined) {
866
+ requestContext.setQueryParam("min_m5_sells", ObjectSerializer_1.ObjectSerializer.serialize(minM5Sells, "string", ""));
867
+ }
868
+ if (maxM5Sells !== undefined) {
869
+ requestContext.setQueryParam("max_m5_sells", ObjectSerializer_1.ObjectSerializer.serialize(maxM5Sells, "string", ""));
870
+ }
871
+ if (minM5Trades !== undefined) {
872
+ requestContext.setQueryParam("min_m5_trades", ObjectSerializer_1.ObjectSerializer.serialize(minM5Trades, "string", ""));
873
+ }
874
+ if (maxM5Trades !== undefined) {
875
+ requestContext.setQueryParam("max_m5_trades", ObjectSerializer_1.ObjectSerializer.serialize(maxM5Trades, "string", ""));
876
+ }
877
+ if (minM5Buyers !== undefined) {
878
+ requestContext.setQueryParam("min_m5_buyers", ObjectSerializer_1.ObjectSerializer.serialize(minM5Buyers, "string", ""));
879
+ }
880
+ if (maxM5Buyers !== undefined) {
881
+ requestContext.setQueryParam("max_m5_buyers", ObjectSerializer_1.ObjectSerializer.serialize(maxM5Buyers, "string", ""));
882
+ }
883
+ if (minM5Sellers !== undefined) {
884
+ requestContext.setQueryParam("min_m5_sellers", ObjectSerializer_1.ObjectSerializer.serialize(minM5Sellers, "string", ""));
885
+ }
886
+ if (maxM5Sellers !== undefined) {
887
+ requestContext.setQueryParam("max_m5_sellers", ObjectSerializer_1.ObjectSerializer.serialize(maxM5Sellers, "string", ""));
888
+ }
889
+ if (minM5BuyVolumeInUsd !== undefined) {
890
+ requestContext.setQueryParam("min_m5_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM5BuyVolumeInUsd, "string", ""));
891
+ }
892
+ if (maxM5BuyVolumeInUsd !== undefined) {
893
+ requestContext.setQueryParam("max_m5_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM5BuyVolumeInUsd, "string", ""));
894
+ }
895
+ if (minM5SellVolumeInUsd !== undefined) {
896
+ requestContext.setQueryParam("min_m5_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM5SellVolumeInUsd, "string", ""));
897
+ }
898
+ if (maxM5SellVolumeInUsd !== undefined) {
899
+ requestContext.setQueryParam("max_m5_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM5SellVolumeInUsd, "string", ""));
900
+ }
901
+ if (minM1VolumeInUsd !== undefined) {
902
+ requestContext.setQueryParam("min_m1_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM1VolumeInUsd, "string", ""));
903
+ }
904
+ if (maxM1VolumeInUsd !== undefined) {
905
+ requestContext.setQueryParam("max_m1_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM1VolumeInUsd, "string", ""));
906
+ }
907
+ if (minM1PriceChangeRatio !== undefined) {
908
+ requestContext.setQueryParam("min_m1_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(minM1PriceChangeRatio, "string", ""));
909
+ }
910
+ if (maxM1PriceChangeRatio !== undefined) {
911
+ requestContext.setQueryParam("max_m1_price_change_ratio", ObjectSerializer_1.ObjectSerializer.serialize(maxM1PriceChangeRatio, "string", ""));
912
+ }
913
+ if (minM1Buys !== undefined) {
914
+ requestContext.setQueryParam("min_m1_buys", ObjectSerializer_1.ObjectSerializer.serialize(minM1Buys, "string", ""));
915
+ }
916
+ if (maxM1Buys !== undefined) {
917
+ requestContext.setQueryParam("max_m1_buys", ObjectSerializer_1.ObjectSerializer.serialize(maxM1Buys, "string", ""));
918
+ }
919
+ if (minM1Sells !== undefined) {
920
+ requestContext.setQueryParam("min_m1_sells", ObjectSerializer_1.ObjectSerializer.serialize(minM1Sells, "string", ""));
921
+ }
922
+ if (maxM1Sells !== undefined) {
923
+ requestContext.setQueryParam("max_m1_sells", ObjectSerializer_1.ObjectSerializer.serialize(maxM1Sells, "string", ""));
924
+ }
925
+ if (minM1Trades !== undefined) {
926
+ requestContext.setQueryParam("min_m1_trades", ObjectSerializer_1.ObjectSerializer.serialize(minM1Trades, "string", ""));
927
+ }
928
+ if (maxM1Trades !== undefined) {
929
+ requestContext.setQueryParam("max_m1_trades", ObjectSerializer_1.ObjectSerializer.serialize(maxM1Trades, "string", ""));
930
+ }
931
+ if (minM1Buyers !== undefined) {
932
+ requestContext.setQueryParam("min_m1_buyers", ObjectSerializer_1.ObjectSerializer.serialize(minM1Buyers, "string", ""));
933
+ }
934
+ if (maxM1Buyers !== undefined) {
935
+ requestContext.setQueryParam("max_m1_buyers", ObjectSerializer_1.ObjectSerializer.serialize(maxM1Buyers, "string", ""));
936
+ }
937
+ if (minM1Sellers !== undefined) {
938
+ requestContext.setQueryParam("min_m1_sellers", ObjectSerializer_1.ObjectSerializer.serialize(minM1Sellers, "string", ""));
939
+ }
940
+ if (maxM1Sellers !== undefined) {
941
+ requestContext.setQueryParam("max_m1_sellers", ObjectSerializer_1.ObjectSerializer.serialize(maxM1Sellers, "string", ""));
942
+ }
943
+ if (minM1BuyVolumeInUsd !== undefined) {
944
+ requestContext.setQueryParam("min_m1_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM1BuyVolumeInUsd, "string", ""));
945
+ }
946
+ if (maxM1BuyVolumeInUsd !== undefined) {
947
+ requestContext.setQueryParam("max_m1_buy_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM1BuyVolumeInUsd, "string", ""));
948
+ }
949
+ if (minM1SellVolumeInUsd !== undefined) {
950
+ requestContext.setQueryParam("min_m1_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(minM1SellVolumeInUsd, "string", ""));
951
+ }
952
+ if (maxM1SellVolumeInUsd !== undefined) {
953
+ requestContext.setQueryParam("max_m1_sell_volume_in_usd", ObjectSerializer_1.ObjectSerializer.serialize(maxM1SellVolumeInUsd, "string", ""));
954
+ }
955
+ let authMethod;
956
+ authMethod = _config.authMethods["bearer"];
957
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
958
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
959
+ }
960
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
961
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
962
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
963
+ }
964
+ return requestContext;
965
+ });
966
+ }
967
+ getTokens(chain, tokenAddresses, sortBy, sortDirection, filterBy, _options) {
968
+ var _a, _b, _c;
969
+ return __awaiter(this, void 0, void 0, function* () {
970
+ let _config = _options || this.configuration;
971
+ if (chain === null || chain === undefined) {
972
+ throw new baseapi_1.RequiredError("TokenApi", "getTokens", "chain");
973
+ }
974
+ if (tokenAddresses === null || tokenAddresses === undefined) {
975
+ throw new baseapi_1.RequiredError("TokenApi", "getTokens", "tokenAddresses");
976
+ }
977
+ const localVarPath = '/v1/token/{chain}/token/multi'
978
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
979
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
980
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
981
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
982
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
983
+ if (tokenAddresses !== undefined) {
984
+ requestContext.setQueryParam("tokenAddresses", ObjectSerializer_1.ObjectSerializer.serialize(tokenAddresses, "string", ""));
985
+ }
986
+ if (sortBy !== undefined) {
987
+ requestContext.setQueryParam("sortBy", ObjectSerializer_1.ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10HoldingsRatio' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'stats.trades1m' | 'stats.trades5m' | 'stats.trades1h' | 'stats.trades4h' | 'stats.trades24h' | 'stats.traders1m' | 'stats.traders5m' | 'stats.traders1h' | 'stats.traders4h' | 'stats.traders24h' | 'stats.volumesInUsd1m' | 'stats.volumesInUsd5m' | 'stats.volumesInUsd1h' | 'stats.volumesInUsd4h' | 'stats.volumesInUsd24h' | 'tokenCreatedAt'", ""));
988
+ }
989
+ if (sortDirection !== undefined) {
990
+ requestContext.setQueryParam("sortDirection", ObjectSerializer_1.ObjectSerializer.serialize(sortDirection, "'ASC' | 'DESC'", ""));
991
+ }
992
+ if (filterBy !== undefined) {
993
+ const serializedParams = ObjectSerializer_1.ObjectSerializer.serialize(filterBy, "Array<FilterCondition>", "");
994
+ for (const serializedParam of serializedParams) {
995
+ requestContext.appendQueryParam("filterBy", serializedParam);
996
+ }
997
+ }
998
+ let authMethod;
999
+ authMethod = _config.authMethods["bearer"];
1000
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
1001
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
1002
+ }
1003
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1004
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
1005
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
1006
+ }
1007
+ return requestContext;
1008
+ });
1009
+ }
1010
+ getTopHolders(chain, tokenAddress, _options) {
1011
+ var _a, _b, _c;
1012
+ return __awaiter(this, void 0, void 0, function* () {
1013
+ let _config = _options || this.configuration;
1014
+ if (chain === null || chain === undefined) {
1015
+ throw new baseapi_1.RequiredError("TokenApi", "getTopHolders", "chain");
1016
+ }
1017
+ if (tokenAddress === null || tokenAddress === undefined) {
1018
+ throw new baseapi_1.RequiredError("TokenApi", "getTopHolders", "tokenAddress");
1019
+ }
1020
+ const localVarPath = '/v1/token/{chain}/{tokenAddress}/topHolders'
1021
+ .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
1022
+ .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
1023
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1024
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1025
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
1026
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
1027
+ let authMethod;
1028
+ authMethod = _config.authMethods["bearer"];
1029
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
1030
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
1031
+ }
1032
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1033
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
1034
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
1035
+ }
1036
+ return requestContext;
1037
+ });
1038
+ }
1039
+ search(chains, q, limit, sort, protocols, cursor, sortBy, _options) {
1040
+ var _a, _b, _c;
1041
+ return __awaiter(this, void 0, void 0, function* () {
1042
+ let _config = _options || this.configuration;
1043
+ const localVarPath = '/v1/token/search';
1044
+ const requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1045
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1046
+ const randomId = Math.floor(Math.random() * Math.pow(2, 32));
1047
+ requestContext.setHeaderParam("x-req-id", randomId.toString());
1048
+ if (chains !== undefined) {
1049
+ const serializedParams = ObjectSerializer_1.ObjectSerializer.serialize(chains, "Array<string>", "");
1050
+ for (const serializedParam of serializedParams) {
1051
+ requestContext.appendQueryParam("chains", serializedParam);
1052
+ }
1053
+ }
1054
+ if (q !== undefined) {
1055
+ requestContext.setQueryParam("q", ObjectSerializer_1.ObjectSerializer.serialize(q, "string", ""));
1056
+ }
1057
+ if (limit !== undefined) {
1058
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
1059
+ }
1060
+ if (sort !== undefined) {
1061
+ requestContext.setQueryParam("sort", ObjectSerializer_1.ObjectSerializer.serialize(sort, "'asc' | 'desc'", ""));
1062
+ }
1063
+ if (protocols !== undefined) {
1064
+ const serializedParams = ObjectSerializer_1.ObjectSerializer.serialize(protocols, "Array<string>", "");
1065
+ for (const serializedParam of serializedParams) {
1066
+ requestContext.appendQueryParam("protocols", serializedParam);
1067
+ }
1068
+ }
1069
+ if (cursor !== undefined) {
1070
+ requestContext.setQueryParam("cursor", ObjectSerializer_1.ObjectSerializer.serialize(cursor, "string", ""));
1071
+ }
1072
+ if (sortBy !== undefined) {
1073
+ requestContext.setQueryParam("sortBy", ObjectSerializer_1.ObjectSerializer.serialize(sortBy, "'marketCapInUsd' | 'liquidityInUsd' | 'priceInUsd' | 'holderCount' | 'h24VolumeInUsd' | 'h24Transactions' | 'tokenCreatedAt'", ""));
1074
+ }
1075
+ let authMethod;
1076
+ authMethod = _config.authMethods["bearer"];
1077
+ if (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication) {
1078
+ yield (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext));
1079
+ }
1080
+ const defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
1081
+ if (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication) {
1082
+ yield (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext));
1083
+ }
1084
+ return requestContext;
1085
+ });
1086
+ }
1087
+ }
1088
+ exports.TokenApiRequestFactory = TokenApiRequestFactory;
1089
+ class TokenApiResponseProcessor {
1090
+ getCandlesWithHttpInfo(response) {
1091
+ return __awaiter(this, void 0, void 0, function* () {
1092
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1093
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1094
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<Candle>", "");
1095
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1096
+ }
1097
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1098
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<Candle>", "");
1099
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1100
+ }
1101
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1102
+ });
1103
+ }
1104
+ getCreationWithHttpInfo(response) {
1105
+ return __awaiter(this, void 0, void 0, function* () {
1106
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1107
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1108
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenCreationDTO", "");
1109
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1110
+ }
1111
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1112
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenCreationDTO", "");
1113
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1114
+ }
1115
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1116
+ });
1117
+ }
1118
+ getHoldersWithHttpInfo(response) {
1119
+ return __awaiter(this, void 0, void 0, function* () {
1120
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1121
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1122
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenHolderPage", "");
1123
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1124
+ }
1125
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1126
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenHolderPage", "");
1127
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1128
+ }
1129
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1130
+ });
1131
+ }
1132
+ getHoldersMultiWithHttpInfo(response) {
1133
+ return __awaiter(this, void 0, void 0, function* () {
1134
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1135
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1136
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<TokenHolder>", "");
1137
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1138
+ }
1139
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1140
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<TokenHolder>", "");
1141
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1142
+ }
1143
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1144
+ });
1145
+ }
1146
+ getMarketDataWithHttpInfo(response) {
1147
+ return __awaiter(this, void 0, void 0, function* () {
1148
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1149
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1150
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenMarketData", "");
1151
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1152
+ }
1153
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1154
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenMarketData", "");
1155
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1156
+ }
1157
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1158
+ });
1159
+ }
1160
+ getMarketDataMultiWithHttpInfo(response) {
1161
+ return __awaiter(this, void 0, void 0, function* () {
1162
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1163
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1164
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "{ [key: string]: TokenMarketData; }", "");
1165
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1166
+ }
1167
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1168
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "{ [key: string]: TokenMarketData; }", "");
1169
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1170
+ }
1171
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1172
+ });
1173
+ }
1174
+ getMetadataWithHttpInfo(response) {
1175
+ return __awaiter(this, void 0, void 0, function* () {
1176
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1177
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1178
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenMetadata", "");
1179
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1180
+ }
1181
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1182
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenMetadata", "");
1183
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1184
+ }
1185
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1186
+ });
1187
+ }
1188
+ getMetadataMultiWithHttpInfo(response) {
1189
+ return __awaiter(this, void 0, void 0, function* () {
1190
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1191
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1192
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "{ [key: string]: TokenMetadata; }", "");
1193
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1194
+ }
1195
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1196
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "{ [key: string]: TokenMetadata; }", "");
1197
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1198
+ }
1199
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1200
+ });
1201
+ }
1202
+ getMintAndBurnWithHttpInfo(response) {
1203
+ return __awaiter(this, void 0, void 0, function* () {
1204
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1205
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1206
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenCreationPage", "");
1207
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1208
+ }
1209
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1210
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenCreationPage", "");
1211
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1212
+ }
1213
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1214
+ });
1215
+ }
1216
+ getPoolsWithHttpInfo(response) {
1217
+ return __awaiter(this, void 0, void 0, function* () {
1218
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1219
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1220
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<DexPoolDTO>", "");
1221
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1222
+ }
1223
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1224
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<DexPoolDTO>", "");
1225
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1226
+ }
1227
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1228
+ });
1229
+ }
1230
+ getPriceByTimeWithHttpInfo(response) {
1231
+ return __awaiter(this, void 0, void 0, function* () {
1232
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1233
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1234
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenPriceDTO", "");
1235
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1236
+ }
1237
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1238
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenPriceDTO", "");
1239
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1240
+ }
1241
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1242
+ });
1243
+ }
1244
+ getPricesWithHttpInfo(response) {
1245
+ return __awaiter(this, void 0, void 0, function* () {
1246
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1247
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1248
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenPricePage", "");
1249
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1250
+ }
1251
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1252
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenPricePage", "");
1253
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1254
+ }
1255
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1256
+ });
1257
+ }
1258
+ getSecurityWithHttpInfo(response) {
1259
+ return __awaiter(this, void 0, void 0, function* () {
1260
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1261
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1262
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", "");
1263
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1264
+ }
1265
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1266
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "any", "");
1267
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1268
+ }
1269
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1270
+ });
1271
+ }
1272
+ getStatsWithHttpInfo(response) {
1273
+ return __awaiter(this, void 0, void 0, function* () {
1274
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1275
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1276
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenStat", "");
1277
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1278
+ }
1279
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1280
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenStat", "");
1281
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1282
+ }
1283
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1284
+ });
1285
+ }
1286
+ getStatsMultiWithHttpInfo(response) {
1287
+ return __awaiter(this, void 0, void 0, function* () {
1288
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1289
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1290
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "{ [key: string]: TokenStat; }", "");
1291
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1292
+ }
1293
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1294
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "{ [key: string]: TokenStat; }", "");
1295
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1296
+ }
1297
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1298
+ });
1299
+ }
1300
+ getTokenWithHttpInfo(response) {
1301
+ return __awaiter(this, void 0, void 0, function* () {
1302
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1303
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1304
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Token", "");
1305
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1306
+ }
1307
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1308
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Token", "");
1309
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1310
+ }
1311
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1312
+ });
1313
+ }
1314
+ getTokenListWithHttpInfo(response) {
1315
+ return __awaiter(this, void 0, void 0, function* () {
1316
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1317
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1318
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenListPage", "");
1319
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1320
+ }
1321
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1322
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenListPage", "");
1323
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1324
+ }
1325
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1326
+ });
1327
+ }
1328
+ getTokensWithHttpInfo(response) {
1329
+ return __awaiter(this, void 0, void 0, function* () {
1330
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1331
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1332
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<Token>", "");
1333
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1334
+ }
1335
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1336
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "Array<Token>", "");
1337
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1338
+ }
1339
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1340
+ });
1341
+ }
1342
+ getTopHoldersWithHttpInfo(response) {
1343
+ return __awaiter(this, void 0, void 0, function* () {
1344
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1345
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1346
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenHolderPage", "");
1347
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1348
+ }
1349
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1350
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenHolderPage", "");
1351
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1352
+ }
1353
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1354
+ });
1355
+ }
1356
+ searchWithHttpInfo(response) {
1357
+ return __awaiter(this, void 0, void 0, function* () {
1358
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1359
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1360
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenPage", "");
1361
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1362
+ }
1363
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1364
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "TokenPage", "");
1365
+ return new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body);
1366
+ }
1367
+ throw new exception_1.ApiException(response.httpStatusCode, "Unknown API Status Code!", yield response.getBodyAsAny(), response.headers);
1368
+ });
1369
+ }
1370
+ }
1371
+ exports.TokenApiResponseProcessor = TokenApiResponseProcessor;
1372
+ //# sourceMappingURL=TokenApi.js.map