@chainstream-io/sdk 0.0.12 → 0.1.5

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 (1026) hide show
  1. package/dist/api/stream.d.ts +19 -0
  2. package/dist/api/stream.fields.d.ts +29 -0
  3. package/dist/api/stream.fields.js +45 -5
  4. package/dist/api/stream.js +123 -37
  5. package/dist/api/stream.model.js +5 -6
  6. package/dist/{src → esm}/api/stream.d.ts +68 -44
  7. package/dist/esm/api/stream.fields.d.ts +40 -0
  8. package/dist/{src → esm}/api/stream.fields.js +46 -12
  9. package/dist/{src → esm}/api/stream.js +575 -423
  10. package/dist/{src → esm}/api/stream.model.d.ts +28 -2
  11. package/dist/{src → esm}/api/stream.model.js +13 -12
  12. package/dist/{src → esm}/index.d.ts +5 -2
  13. package/dist/esm/index.js +108 -0
  14. package/dist/esm/openapi/apis/BlockchainApi.d.ts +57 -0
  15. package/dist/esm/openapi/apis/BlockchainApi.js +101 -0
  16. package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.d.ts +44 -0
  17. package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +92 -0
  18. package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.d.ts +31 -0
  19. package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +56 -0
  20. package/dist/esm/openapi/apis/DexApi.d.ts +166 -0
  21. package/dist/esm/openapi/apis/DexApi.js +318 -0
  22. package/dist/esm/openapi/apis/DexPoolApi.d.ts +48 -0
  23. package/dist/esm/openapi/apis/DexPoolApi.js +74 -0
  24. package/dist/esm/openapi/apis/EndpointApi.d.ts +119 -0
  25. package/dist/esm/openapi/apis/EndpointApi.js +279 -0
  26. package/dist/esm/openapi/apis/IpfsApi.d.ts +27 -0
  27. package/dist/esm/openapi/apis/IpfsApi.js +55 -0
  28. package/dist/esm/openapi/apis/JobsApi.d.ts +44 -0
  29. package/dist/esm/openapi/apis/JobsApi.js +90 -0
  30. package/dist/esm/openapi/apis/RankingApi.d.ts +565 -0
  31. package/dist/esm/openapi/apis/RankingApi.js +739 -0
  32. package/dist/esm/openapi/apis/RedPacketApi.d.ts +202 -0
  33. package/dist/esm/openapi/apis/RedPacketApi.js +413 -0
  34. package/dist/esm/openapi/apis/TokenApi.d.ts +966 -0
  35. package/dist/esm/openapi/apis/TokenApi.js +1748 -0
  36. package/dist/esm/openapi/apis/TradeApi.d.ts +278 -0
  37. package/dist/esm/openapi/apis/TradeApi.js +425 -0
  38. package/dist/esm/openapi/apis/TransactionApi.d.ts +32 -0
  39. package/dist/esm/openapi/apis/TransactionApi.js +60 -0
  40. package/dist/esm/openapi/apis/WalletApi.d.ts +141 -0
  41. package/dist/esm/openapi/apis/WalletApi.js +247 -0
  42. package/dist/esm/openapi/apis/WatchlistApi.d.ts +48 -0
  43. package/dist/esm/openapi/apis/WatchlistApi.js +74 -0
  44. package/dist/esm/openapi/apis/index.d.ts +15 -0
  45. package/dist/esm/openapi/apis/index.js +17 -0
  46. package/dist/esm/openapi/index.d.ts +3 -0
  47. package/dist/esm/openapi/index.js +5 -0
  48. package/dist/esm/openapi/models/BlockchainDTO.d.ts +50 -0
  49. package/dist/esm/openapi/models/BlockchainDTO.js +55 -0
  50. package/dist/esm/openapi/models/BlockchainLatestBlockDTO.d.ts +38 -0
  51. package/dist/esm/openapi/models/BlockchainLatestBlockDTO.js +47 -0
  52. package/dist/esm/openapi/models/BooleanResultDTO.d.ts +32 -0
  53. package/dist/esm/openapi/models/BooleanResultDTO.js +43 -0
  54. package/dist/esm/openapi/models/CalculatePnlInput.d.ts +32 -0
  55. package/dist/esm/openapi/models/CalculatePnlInput.js +41 -0
  56. package/dist/esm/openapi/models/Candle.d.ts +69 -0
  57. package/dist/esm/openapi/models/Candle.js +68 -0
  58. package/dist/esm/openapi/models/ClaimRedPacketInput.d.ts +50 -0
  59. package/dist/esm/openapi/models/ClaimRedPacketInput.js +49 -0
  60. package/dist/esm/openapi/models/CreateEndpointInput.d.ts +74 -0
  61. package/dist/esm/openapi/models/CreateEndpointInput.js +55 -0
  62. package/dist/esm/openapi/models/CreateRedPacketInput.d.ts +74 -0
  63. package/dist/esm/openapi/models/CreateRedPacketInput.js +61 -0
  64. package/dist/esm/openapi/models/CreateRedPacketReply.d.ts +38 -0
  65. package/dist/esm/openapi/models/CreateRedPacketReply.js +47 -0
  66. package/dist/esm/openapi/models/CreateTokenInput.d.ts +85 -0
  67. package/dist/esm/openapi/models/CreateTokenInput.js +73 -0
  68. package/dist/esm/openapi/models/CreateTokenReply.d.ts +38 -0
  69. package/dist/esm/openapi/models/CreateTokenReply.js +47 -0
  70. package/dist/esm/openapi/models/DexDTO.d.ts +50 -0
  71. package/dist/esm/openapi/models/DexDTO.js +49 -0
  72. package/dist/esm/openapi/models/DexPage.d.ts +63 -0
  73. package/dist/esm/openapi/models/DexPage.js +54 -0
  74. package/dist/esm/openapi/models/DexPoolDTO.d.ts +86 -0
  75. package/dist/esm/openapi/models/DexPoolDTO.js +67 -0
  76. package/dist/esm/openapi/models/EndpointListResponse.d.ts +51 -0
  77. package/dist/esm/openapi/models/EndpointListResponse.js +48 -0
  78. package/dist/esm/openapi/models/EndpointOperationResponse.d.ts +32 -0
  79. package/dist/esm/openapi/models/EndpointOperationResponse.js +41 -0
  80. package/dist/esm/openapi/models/EndpointResponse.d.ts +92 -0
  81. package/dist/esm/openapi/models/EndpointResponse.js +61 -0
  82. package/dist/esm/openapi/models/EndpointSecretResponse.d.ts +32 -0
  83. package/dist/esm/openapi/models/EndpointSecretResponse.js +41 -0
  84. package/dist/esm/openapi/models/FilterCondition.d.ts +95 -0
  85. package/dist/esm/openapi/models/FilterCondition.js +95 -0
  86. package/dist/esm/openapi/models/GainersAndLosersDTO.d.ts +50 -0
  87. package/dist/esm/openapi/models/GainersAndLosersDTO.js +55 -0
  88. package/dist/esm/openapi/models/GainersAndLosersPage.d.ts +63 -0
  89. package/dist/esm/openapi/models/GainersAndLosersPage.js +54 -0
  90. package/dist/esm/openapi/models/JobDTO.d.ts +38 -0
  91. package/dist/esm/openapi/models/JobDTO.js +47 -0
  92. package/dist/esm/openapi/models/JobStreamingDTO.d.ts +38 -0
  93. package/dist/esm/openapi/models/JobStreamingDTO.js +47 -0
  94. package/dist/esm/openapi/models/Link.d.ts +48 -0
  95. package/dist/esm/openapi/models/Link.js +56 -0
  96. package/dist/esm/openapi/models/MoonshotCreateTokenInput.d.ts +109 -0
  97. package/dist/esm/openapi/models/MoonshotCreateTokenInput.js +94 -0
  98. package/dist/esm/openapi/models/MoonshotCreateTokenReply.d.ts +38 -0
  99. package/dist/esm/openapi/models/MoonshotCreateTokenReply.js +47 -0
  100. package/dist/esm/openapi/models/MoonshotSubmitCreateToken200Response.d.ts +38 -0
  101. package/dist/esm/openapi/models/MoonshotSubmitCreateToken200Response.js +43 -0
  102. package/dist/esm/openapi/models/MoonshotSubmitCreateTokenInput.d.ts +38 -0
  103. package/dist/esm/openapi/models/MoonshotSubmitCreateTokenInput.js +45 -0
  104. package/dist/esm/openapi/models/PumpCreateTokenInput.d.ts +113 -0
  105. package/dist/esm/openapi/models/PumpCreateTokenInput.js +92 -0
  106. package/dist/esm/openapi/models/PumpCreateTokenReply.d.ts +38 -0
  107. package/dist/esm/openapi/models/PumpCreateTokenReply.js +45 -0
  108. package/dist/esm/openapi/models/QuoteResponse.d.ts +62 -0
  109. package/dist/esm/openapi/models/QuoteResponse.js +51 -0
  110. package/dist/esm/openapi/models/RedPacketClaimDTO.d.ts +90 -0
  111. package/dist/esm/openapi/models/RedPacketClaimDTO.js +86 -0
  112. package/dist/esm/openapi/models/RedPacketClaimsPage.d.ts +57 -0
  113. package/dist/esm/openapi/models/RedPacketClaimsPage.js +60 -0
  114. package/dist/esm/openapi/models/RedPacketDTO.d.ts +144 -0
  115. package/dist/esm/openapi/models/RedPacketDTO.js +122 -0
  116. package/dist/esm/openapi/models/RedPacketReply.d.ts +32 -0
  117. package/dist/esm/openapi/models/RedPacketReply.js +43 -0
  118. package/dist/esm/openapi/models/RedPacketSendTxInput.d.ts +32 -0
  119. package/dist/esm/openapi/models/RedPacketSendTxInput.js +43 -0
  120. package/dist/esm/openapi/models/RedPacketSendTxResponse.d.ts +32 -0
  121. package/dist/esm/openapi/models/RedPacketSendTxResponse.js +43 -0
  122. package/dist/esm/openapi/models/RedPacketsPage.d.ts +57 -0
  123. package/dist/esm/openapi/models/RedPacketsPage.js +60 -0
  124. package/dist/esm/openapi/models/Resolution.d.ts +33 -0
  125. package/dist/esm/openapi/models/Resolution.js +51 -0
  126. package/dist/esm/openapi/models/SendTxInput.d.ts +52 -0
  127. package/dist/esm/openapi/models/SendTxInput.js +54 -0
  128. package/dist/esm/openapi/models/SendTxResponse.d.ts +44 -0
  129. package/dist/esm/openapi/models/SendTxResponse.js +51 -0
  130. package/dist/esm/openapi/models/SwapInput.d.ts +99 -0
  131. package/dist/esm/openapi/models/SwapInput.js +84 -0
  132. package/dist/esm/openapi/models/SwapReply.d.ts +38 -0
  133. package/dist/esm/openapi/models/SwapReply.js +47 -0
  134. package/dist/esm/openapi/models/SwapRouteInput.d.ts +120 -0
  135. package/dist/esm/openapi/models/SwapRouteInput.js +89 -0
  136. package/dist/esm/openapi/models/SwapRouteResponse.d.ts +51 -0
  137. package/dist/esm/openapi/models/SwapRouteResponse.js +56 -0
  138. package/dist/esm/openapi/models/Token.d.ts +140 -0
  139. package/dist/esm/openapi/models/Token.js +95 -0
  140. package/dist/esm/openapi/models/TokenCreationDTO.d.ts +77 -0
  141. package/dist/esm/openapi/models/TokenCreationDTO.js +73 -0
  142. package/dist/esm/openapi/models/TokenCreationPage.d.ts +63 -0
  143. package/dist/esm/openapi/models/TokenCreationPage.js +54 -0
  144. package/dist/esm/openapi/models/TokenCreatorsDTO.d.ts +44 -0
  145. package/dist/esm/openapi/models/TokenCreatorsDTO.js +45 -0
  146. package/dist/esm/openapi/models/TokenExtraDTO.d.ts +152 -0
  147. package/dist/esm/openapi/models/TokenExtraDTO.js +81 -0
  148. package/dist/esm/openapi/models/TokenHolder.d.ts +50 -0
  149. package/dist/esm/openapi/models/TokenHolder.js +55 -0
  150. package/dist/esm/openapi/models/TokenHolderPage.d.ts +63 -0
  151. package/dist/esm/openapi/models/TokenHolderPage.js +54 -0
  152. package/dist/esm/openapi/models/TokenListPage.d.ts +63 -0
  153. package/dist/esm/openapi/models/TokenListPage.js +54 -0
  154. package/dist/esm/openapi/models/TokenMarketData.d.ts +122 -0
  155. package/dist/esm/openapi/models/TokenMarketData.js +81 -0
  156. package/dist/esm/openapi/models/TokenMetadata.d.ts +107 -0
  157. package/dist/esm/openapi/models/TokenMetadata.js +78 -0
  158. package/dist/esm/openapi/models/TokenPage.d.ts +69 -0
  159. package/dist/esm/openapi/models/TokenPage.js +56 -0
  160. package/dist/esm/openapi/models/TokenPriceDTO.d.ts +50 -0
  161. package/dist/esm/openapi/models/TokenPriceDTO.js +55 -0
  162. package/dist/esm/openapi/models/TokenPricePage.d.ts +63 -0
  163. package/dist/esm/openapi/models/TokenPricePage.js +54 -0
  164. package/dist/esm/openapi/models/TokenSocialMediasDTO.d.ts +104 -0
  165. package/dist/esm/openapi/models/TokenSocialMediasDTO.js +65 -0
  166. package/dist/esm/openapi/models/TokenStat.d.ts +788 -0
  167. package/dist/esm/openapi/models/TokenStat.js +451 -0
  168. package/dist/esm/openapi/models/TopTradersDTO.d.ts +98 -0
  169. package/dist/esm/openapi/models/TopTradersDTO.js +85 -0
  170. package/dist/esm/openapi/models/TopTradersPage.d.ts +63 -0
  171. package/dist/esm/openapi/models/TopTradersPage.js +54 -0
  172. package/dist/esm/openapi/models/TradeDetailDTO.d.ts +176 -0
  173. package/dist/esm/openapi/models/TradeDetailDTO.js +139 -0
  174. package/dist/esm/openapi/models/TradeEvent.d.ts +105 -0
  175. package/dist/esm/openapi/models/TradeEvent.js +92 -0
  176. package/dist/esm/openapi/models/TradePage.d.ts +63 -0
  177. package/dist/esm/openapi/models/TradePage.js +54 -0
  178. package/dist/esm/openapi/models/TradeType.d.ts +25 -0
  179. package/dist/esm/openapi/models/TradeType.js +43 -0
  180. package/dist/esm/openapi/models/UpdateEndpointInput.d.ts +80 -0
  181. package/dist/esm/openapi/models/UpdateEndpointInput.js +57 -0
  182. package/dist/esm/openapi/models/WalletBalanceDetailDTO.d.ts +176 -0
  183. package/dist/esm/openapi/models/WalletBalanceDetailDTO.js +139 -0
  184. package/dist/esm/openapi/models/WalletBalancesDTO.d.ts +45 -0
  185. package/dist/esm/openapi/models/WalletBalancesDTO.js +52 -0
  186. package/dist/esm/openapi/models/WalletPnlDTO.d.ts +164 -0
  187. package/dist/esm/openapi/models/WalletPnlDTO.js +131 -0
  188. package/dist/esm/openapi/models/index.d.ts +70 -0
  189. package/dist/esm/openapi/models/index.js +72 -0
  190. package/dist/esm/openapi/runtime.d.ts +184 -0
  191. package/dist/esm/openapi/runtime.js +322 -0
  192. package/dist/index.d.ts +3 -2
  193. package/dist/index.js +65 -67
  194. package/dist/openapi/apis/BlockchainApi.d.ts +55 -10
  195. package/dist/openapi/apis/BlockchainApi.js +129 -89
  196. package/dist/openapi/apis/DefiSolanaMoonshotApi.d.ts +42 -13
  197. package/dist/openapi/apis/DefiSolanaMoonshotApi.js +120 -103
  198. package/dist/openapi/apis/DefiSolanaPumpfunApi.d.ts +29 -9
  199. package/dist/openapi/apis/DefiSolanaPumpfunApi.js +87 -62
  200. package/dist/openapi/apis/DexApi.d.ts +164 -23
  201. package/dist/openapi/apis/DexApi.js +342 -277
  202. package/dist/openapi/apis/DexPoolApi.d.ts +46 -8
  203. package/dist/openapi/apis/DexPoolApi.js +105 -61
  204. package/dist/openapi/apis/EndpointApi.d.ts +119 -0
  205. package/dist/openapi/apis/EndpointApi.js +316 -0
  206. package/dist/openapi/apis/IpfsApi.d.ts +26 -8
  207. package/dist/openapi/apis/IpfsApi.js +86 -53
  208. package/dist/openapi/apis/JobsApi.d.ts +42 -9
  209. package/dist/openapi/apis/JobsApi.js +118 -81
  210. package/dist/openapi/apis/RankingApi.d.ts +563 -17
  211. package/dist/openapi/apis/RankingApi.js +763 -405
  212. package/dist/openapi/apis/RedPacketApi.d.ts +201 -31
  213. package/dist/openapi/apis/RedPacketApi.js +431 -382
  214. package/dist/openapi/apis/TokenApi.d.ts +959 -62
  215. package/dist/openapi/apis/TokenApi.js +1742 -1329
  216. package/dist/openapi/apis/TradeApi.d.ts +276 -16
  217. package/dist/openapi/apis/TradeApi.js +451 -295
  218. package/dist/openapi/apis/TransactionApi.d.ts +30 -9
  219. package/dist/openapi/apis/TransactionApi.js +91 -66
  220. package/dist/openapi/apis/WalletApi.d.ts +139 -16
  221. package/dist/openapi/apis/WalletApi.js +269 -196
  222. package/dist/openapi/apis/WatchlistApi.d.ts +46 -7
  223. package/dist/openapi/apis/WatchlistApi.js +105 -61
  224. package/dist/openapi/apis/index.d.ts +15 -0
  225. package/dist/openapi/apis/index.js +33 -0
  226. package/dist/openapi/index.d.ts +3 -10
  227. package/dist/openapi/index.js +5 -26
  228. package/dist/openapi/models/BlockchainDTO.d.ts +49 -22
  229. package/dist/openapi/models/BlockchainDTO.js +57 -35
  230. package/dist/openapi/models/BlockchainLatestBlockDTO.d.ts +37 -20
  231. package/dist/openapi/models/BlockchainLatestBlockDTO.js +49 -23
  232. package/dist/openapi/models/BooleanResultDTO.d.ts +32 -0
  233. package/dist/openapi/models/BooleanResultDTO.js +50 -0
  234. package/dist/openapi/models/CalculatePnlInput.d.ts +31 -19
  235. package/dist/openapi/models/CalculatePnlInput.js +43 -17
  236. package/dist/openapi/models/Candle.d.ts +68 -26
  237. package/dist/openapi/models/Candle.js +70 -53
  238. package/dist/openapi/models/ClaimRedPacketInput.d.ts +49 -22
  239. package/dist/openapi/models/ClaimRedPacketInput.js +51 -35
  240. package/dist/openapi/models/CreateEndpointInput.d.ts +74 -0
  241. package/dist/openapi/models/CreateEndpointInput.js +62 -0
  242. package/dist/openapi/models/CreateRedPacketInput.d.ts +73 -26
  243. package/dist/openapi/models/CreateRedPacketInput.js +63 -59
  244. package/dist/openapi/models/CreateRedPacketReply.d.ts +37 -20
  245. package/dist/openapi/models/CreateRedPacketReply.js +49 -23
  246. package/dist/openapi/models/CreateTokenInput.d.ts +84 -33
  247. package/dist/openapi/models/CreateTokenInput.js +76 -67
  248. package/dist/openapi/models/CreateTokenReply.d.ts +37 -20
  249. package/dist/openapi/models/CreateTokenReply.js +49 -23
  250. package/dist/openapi/models/DexDTO.d.ts +49 -22
  251. package/dist/openapi/models/DexDTO.js +51 -35
  252. package/dist/openapi/models/DexPage.d.ts +62 -25
  253. package/dist/openapi/models/DexPage.js +56 -47
  254. package/dist/openapi/models/DexPoolDTO.d.ts +85 -28
  255. package/dist/openapi/models/DexPoolDTO.js +69 -71
  256. package/dist/openapi/models/EndpointListResponse.d.ts +51 -0
  257. package/dist/openapi/models/EndpointListResponse.js +55 -0
  258. package/dist/openapi/models/EndpointOperationResponse.d.ts +32 -0
  259. package/dist/openapi/models/EndpointOperationResponse.js +48 -0
  260. package/dist/openapi/models/EndpointResponse.d.ts +92 -0
  261. package/dist/openapi/models/EndpointResponse.js +68 -0
  262. package/dist/openapi/models/EndpointSecretResponse.d.ts +32 -0
  263. package/dist/openapi/models/EndpointSecretResponse.js +48 -0
  264. package/dist/openapi/models/FilterCondition.d.ts +94 -68
  265. package/dist/openapi/models/FilterCondition.js +98 -77
  266. package/dist/openapi/models/GainersAndLosersDTO.d.ts +49 -22
  267. package/dist/openapi/models/GainersAndLosersDTO.js +57 -35
  268. package/dist/openapi/models/GainersAndLosersPage.d.ts +62 -25
  269. package/dist/openapi/models/GainersAndLosersPage.js +56 -47
  270. package/dist/openapi/models/JobDTO.d.ts +38 -0
  271. package/dist/openapi/models/JobDTO.js +54 -0
  272. package/dist/openapi/models/JobStreamingDTO.d.ts +38 -0
  273. package/dist/openapi/models/JobStreamingDTO.js +54 -0
  274. package/dist/openapi/models/Link.d.ts +47 -26
  275. package/dist/openapi/models/Link.js +59 -30
  276. package/dist/openapi/models/MoonshotCreateTokenInput.d.ts +108 -38
  277. package/dist/openapi/models/MoonshotCreateTokenInput.js +97 -87
  278. package/dist/openapi/models/MoonshotCreateTokenReply.d.ts +37 -20
  279. package/dist/openapi/models/MoonshotCreateTokenReply.js +49 -23
  280. package/dist/openapi/models/MoonshotSubmitCreateToken200Response.d.ts +37 -20
  281. package/dist/openapi/models/MoonshotSubmitCreateToken200Response.js +45 -23
  282. package/dist/openapi/models/MoonshotSubmitCreateTokenInput.d.ts +37 -20
  283. package/dist/openapi/models/MoonshotSubmitCreateTokenInput.js +47 -23
  284. package/dist/openapi/models/PumpCreateTokenInput.d.ts +112 -37
  285. package/dist/openapi/models/PumpCreateTokenInput.js +95 -92
  286. package/dist/openapi/models/PumpCreateTokenReply.d.ts +37 -20
  287. package/dist/openapi/models/PumpCreateTokenReply.js +47 -23
  288. package/dist/openapi/models/QuoteResponse.d.ts +61 -24
  289. package/dist/openapi/models/QuoteResponse.js +53 -47
  290. package/dist/openapi/models/RedPacketClaimDTO.d.ts +89 -38
  291. package/dist/openapi/models/RedPacketClaimDTO.js +89 -72
  292. package/dist/openapi/models/RedPacketClaimsPage.d.ts +56 -24
  293. package/dist/openapi/models/RedPacketClaimsPage.js +62 -41
  294. package/dist/openapi/models/RedPacketDTO.d.ts +143 -47
  295. package/dist/openapi/models/RedPacketDTO.js +125 -126
  296. package/dist/openapi/models/RedPacketReply.d.ts +31 -19
  297. package/dist/openapi/models/RedPacketReply.js +45 -17
  298. package/dist/openapi/models/RedPacketSendTxInput.d.ts +31 -19
  299. package/dist/openapi/models/RedPacketSendTxInput.js +45 -17
  300. package/dist/openapi/models/RedPacketSendTxResponse.d.ts +31 -19
  301. package/dist/openapi/models/RedPacketSendTxResponse.js +45 -17
  302. package/dist/openapi/models/RedPacketsPage.d.ts +56 -24
  303. package/dist/openapi/models/RedPacketsPage.js +62 -41
  304. package/dist/openapi/models/Resolution.d.ts +33 -12
  305. package/dist/openapi/models/Resolution.js +56 -14
  306. package/dist/openapi/models/SendTxInput.d.ts +51 -25
  307. package/dist/openapi/models/SendTxInput.js +57 -34
  308. package/dist/openapi/models/SendTxResponse.d.ts +43 -21
  309. package/dist/openapi/models/SendTxResponse.js +53 -29
  310. package/dist/openapi/models/SwapInput.d.ts +98 -38
  311. package/dist/openapi/models/SwapInput.js +87 -78
  312. package/dist/openapi/models/SwapReply.d.ts +37 -20
  313. package/dist/openapi/models/SwapReply.js +49 -23
  314. package/dist/openapi/models/SwapRouteInput.d.ts +119 -39
  315. package/dist/openapi/models/SwapRouteInput.js +92 -99
  316. package/dist/openapi/models/SwapRouteResponse.d.ts +50 -23
  317. package/dist/openapi/models/SwapRouteResponse.js +58 -35
  318. package/dist/openapi/models/Token.d.ts +139 -43
  319. package/dist/openapi/models/Token.js +97 -125
  320. package/dist/openapi/models/TokenCreationDTO.d.ts +76 -30
  321. package/dist/openapi/models/TokenCreationDTO.js +76 -59
  322. package/dist/openapi/models/TokenCreationPage.d.ts +62 -25
  323. package/dist/openapi/models/TokenCreationPage.js +56 -47
  324. package/dist/openapi/models/TokenCreatorsDTO.d.ts +43 -21
  325. package/dist/openapi/models/TokenCreatorsDTO.js +47 -29
  326. package/dist/openapi/models/TokenExtraDTO.d.ts +151 -39
  327. package/dist/openapi/models/TokenExtraDTO.js +83 -137
  328. package/dist/openapi/models/TokenHolder.d.ts +49 -22
  329. package/dist/openapi/models/TokenHolder.js +57 -35
  330. package/dist/openapi/models/TokenHolderPage.d.ts +62 -25
  331. package/dist/openapi/models/TokenHolderPage.js +56 -47
  332. package/dist/openapi/models/TokenListPage.d.ts +62 -25
  333. package/dist/openapi/models/TokenListPage.js +56 -47
  334. package/dist/openapi/models/TokenMarketData.d.ts +121 -34
  335. package/dist/openapi/models/TokenMarketData.js +83 -107
  336. package/dist/openapi/models/TokenMetadata.d.ts +106 -34
  337. package/dist/openapi/models/TokenMetadata.js +80 -89
  338. package/dist/openapi/models/TokenPage.d.ts +68 -26
  339. package/dist/openapi/models/TokenPage.js +58 -53
  340. package/dist/openapi/models/TokenPriceDTO.d.ts +49 -22
  341. package/dist/openapi/models/TokenPriceDTO.js +57 -35
  342. package/dist/openapi/models/TokenPricePage.d.ts +62 -25
  343. package/dist/openapi/models/TokenPricePage.js +56 -47
  344. package/dist/openapi/models/TokenSocialMediasDTO.d.ts +103 -31
  345. package/dist/openapi/models/TokenSocialMediasDTO.js +67 -89
  346. package/dist/openapi/models/TokenStat.d.ts +787 -145
  347. package/dist/openapi/models/TokenStat.js +453 -773
  348. package/dist/openapi/models/TopTradersDTO.d.ts +97 -28
  349. package/dist/openapi/models/TopTradersDTO.js +87 -71
  350. package/dist/openapi/models/TopTradersPage.d.ts +62 -25
  351. package/dist/openapi/models/TopTradersPage.js +56 -47
  352. package/dist/openapi/models/TradeDetailDTO.d.ts +175 -43
  353. package/dist/openapi/models/TradeDetailDTO.js +141 -161
  354. package/dist/openapi/models/TradeEvent.d.ts +104 -32
  355. package/dist/openapi/models/TradeEvent.js +94 -89
  356. package/dist/openapi/models/TradePage.d.ts +62 -25
  357. package/dist/openapi/models/TradePage.js +56 -47
  358. package/dist/openapi/models/TradeType.d.ts +25 -4
  359. package/dist/openapi/models/TradeType.js +48 -6
  360. package/dist/openapi/models/UpdateEndpointInput.d.ts +80 -0
  361. package/dist/openapi/models/UpdateEndpointInput.js +64 -0
  362. package/dist/openapi/models/WalletBalanceDetailDTO.d.ts +175 -43
  363. package/dist/openapi/models/WalletBalanceDetailDTO.js +141 -161
  364. package/dist/openapi/models/WalletBalancesDTO.d.ts +44 -22
  365. package/dist/openapi/models/WalletBalancesDTO.js +54 -29
  366. package/dist/openapi/models/WalletPnlDTO.d.ts +163 -41
  367. package/dist/openapi/models/WalletPnlDTO.js +133 -149
  368. package/dist/openapi/models/index.d.ts +70 -0
  369. package/dist/openapi/models/index.js +88 -0
  370. package/dist/openapi/runtime.d.ts +184 -0
  371. package/dist/openapi/runtime.js +338 -0
  372. package/package.json +38 -39
  373. package/src/api/stream.ts +1 -1
  374. package/src/index.ts +29 -55
  375. package/src/openapi/apis/BlockchainApi.ts +101 -113
  376. package/src/openapi/apis/DefiSolanaMoonshotApi.ts +102 -140
  377. package/src/openapi/apis/DefiSolanaPumpfunApi.ts +60 -76
  378. package/src/openapi/apis/DexApi.ts +372 -398
  379. package/src/openapi/apis/DexPoolApi.ts +80 -72
  380. package/src/openapi/apis/EndpointApi.ts +421 -0
  381. package/src/openapi/apis/IpfsApi.ts +42 -58
  382. package/src/openapi/apis/JobsApi.ts +94 -98
  383. package/src/openapi/apis/RankingApi.ts +775 -567
  384. package/src/openapi/apis/RedPacketApi.ts +467 -572
  385. package/src/openapi/apis/TokenApi.ts +1930 -2058
  386. package/src/openapi/apis/TradeApi.ts +453 -437
  387. package/src/openapi/apis/TransactionApi.ts +67 -82
  388. package/src/openapi/apis/WalletApi.ts +279 -278
  389. package/src/openapi/apis/WatchlistApi.ts +80 -71
  390. package/src/openapi/apis/index.ts +17 -0
  391. package/src/openapi/index.ts +5 -12
  392. package/src/openapi/models/BlockchainDTO.ts +93 -0
  393. package/src/openapi/models/BlockchainLatestBlockDTO.ts +58 -32
  394. package/src/openapi/models/BooleanResultDTO.ts +66 -0
  395. package/src/openapi/models/CalculatePnlInput.ts +46 -20
  396. package/src/openapi/models/Candle.ts +102 -74
  397. package/src/openapi/models/ClaimRedPacketInput.ts +68 -47
  398. package/src/openapi/models/CreateEndpointInput.ts +121 -0
  399. package/src/openapi/models/CreateRedPacketInput.ts +98 -83
  400. package/src/openapi/models/CreateRedPacketReply.ts +58 -32
  401. package/src/openapi/models/CreateTokenInput.ts +110 -89
  402. package/src/openapi/models/CreateTokenReply.ts +58 -32
  403. package/src/openapi/models/DexDTO.ts +68 -47
  404. package/src/openapi/models/DexPage.ts +89 -65
  405. package/src/openapi/models/DexPoolDTO.ts +113 -101
  406. package/src/openapi/models/EndpointListResponse.ts +97 -0
  407. package/src/openapi/models/EndpointOperationResponse.ts +65 -0
  408. package/src/openapi/models/EndpointResponse.ts +145 -0
  409. package/src/openapi/models/EndpointSecretResponse.ts +65 -0
  410. package/src/openapi/models/FilterCondition.ts +111 -84
  411. package/src/openapi/models/GainersAndLosersDTO.ts +71 -47
  412. package/src/openapi/models/GainersAndLosersPage.ts +89 -65
  413. package/src/openapi/models/JobDTO.ts +75 -0
  414. package/src/openapi/models/JobStreamingDTO.ts +75 -0
  415. package/src/openapi/models/Link.ts +69 -38
  416. package/src/openapi/models/MoonshotCreateTokenInput.ts +148 -116
  417. package/src/openapi/models/MoonshotCreateTokenReply.ts +58 -32
  418. package/src/openapi/models/MoonshotSubmitCreateToken200Response.ts +56 -32
  419. package/src/openapi/models/MoonshotSubmitCreateTokenInput.ts +57 -32
  420. package/src/openapi/models/PumpCreateTokenInput.ts +146 -124
  421. package/src/openapi/models/PumpCreateTokenReply.ts +57 -32
  422. package/src/openapi/models/QuoteResponse.ts +81 -65
  423. package/src/openapi/models/RedPacketClaimDTO.ts +119 -94
  424. package/src/openapi/models/RedPacketClaimsPage.ts +86 -56
  425. package/src/openapi/models/RedPacketDTO.ts +207 -191
  426. package/src/openapi/models/RedPacketReply.ts +47 -20
  427. package/src/openapi/models/RedPacketSendTxInput.ts +47 -20
  428. package/src/openapi/models/RedPacketSendTxResponse.ts +47 -20
  429. package/src/openapi/models/RedPacketsPage.ts +86 -56
  430. package/src/openapi/models/Resolution.ts +49 -14
  431. package/src/openapi/models/SendTxInput.ts +69 -41
  432. package/src/openapi/models/SendTxResponse.ts +66 -41
  433. package/src/openapi/models/SwapInput.ts +126 -101
  434. package/src/openapi/models/SwapReply.ts +58 -32
  435. package/src/openapi/models/SwapRouteInput.ts +151 -134
  436. package/src/openapi/models/SwapRouteResponse.ts +78 -47
  437. package/src/openapi/models/Token.ts +232 -206
  438. package/src/openapi/models/TokenCreationDTO.ts +103 -78
  439. package/src/openapi/models/TokenCreationPage.ts +89 -65
  440. package/src/openapi/models/TokenCreatorsDTO.ts +63 -41
  441. package/src/openapi/models/TokenExtraDTO.ts +206 -220
  442. package/src/openapi/models/TokenHolder.ts +71 -47
  443. package/src/openapi/models/TokenHolderPage.ts +89 -65
  444. package/src/openapi/models/TokenListPage.ts +89 -65
  445. package/src/openapi/models/TokenMarketData.ts +171 -170
  446. package/src/openapi/models/TokenMetadata.ts +156 -130
  447. package/src/openapi/models/TokenPage.ts +96 -74
  448. package/src/openapi/models/TokenPriceDTO.ts +71 -47
  449. package/src/openapi/models/TokenPricePage.ts +89 -65
  450. package/src/openapi/models/TokenSocialMediasDTO.ts +130 -128
  451. package/src/openapi/models/TokenStat.ts +1133 -1280
  452. package/src/openapi/models/TopTradersDTO.ts +136 -101
  453. package/src/openapi/models/TopTradersPage.ts +89 -65
  454. package/src/openapi/models/TradeDetailDTO.ts +239 -236
  455. package/src/openapi/models/TradeEvent.ts +150 -128
  456. package/src/openapi/models/TradePage.ts +89 -65
  457. package/src/openapi/models/TradeType.ts +40 -5
  458. package/src/openapi/models/UpdateEndpointInput.ts +129 -0
  459. package/src/openapi/models/WalletBalanceDetailDTO.ts +239 -236
  460. package/src/openapi/models/WalletBalancesDTO.ts +73 -41
  461. package/src/openapi/models/WalletPnlDTO.ts +223 -218
  462. package/src/openapi/models/index.ts +72 -0
  463. package/src/openapi/runtime.ts +432 -0
  464. package/README.md +0 -0
  465. package/dist/api/stream.fields.js.map +0 -1
  466. package/dist/api/stream.js.map +0 -1
  467. package/dist/api/stream.model.js.map +0 -1
  468. package/dist/index.js.map +0 -1
  469. package/dist/openapi/apis/BlockchainApi.js.map +0 -1
  470. package/dist/openapi/apis/DefiSolanaMoonshotApi.js.map +0 -1
  471. package/dist/openapi/apis/DefiSolanaPumpfunApi.js.map +0 -1
  472. package/dist/openapi/apis/DexApi.js.map +0 -1
  473. package/dist/openapi/apis/DexPoolApi.js.map +0 -1
  474. package/dist/openapi/apis/IpfsApi.js.map +0 -1
  475. package/dist/openapi/apis/JobsApi.js.map +0 -1
  476. package/dist/openapi/apis/OpenbookApi.d.ts +0 -19
  477. package/dist/openapi/apis/OpenbookApi.js +0 -180
  478. package/dist/openapi/apis/OpenbookApi.js.map +0 -1
  479. package/dist/openapi/apis/OrderApi.d.ts +0 -25
  480. package/dist/openapi/apis/OrderApi.js +0 -288
  481. package/dist/openapi/apis/OrderApi.js.map +0 -1
  482. package/dist/openapi/apis/PrometheusApi.d.ts +0 -9
  483. package/dist/openapi/apis/PrometheusApi.js +0 -53
  484. package/dist/openapi/apis/PrometheusApi.js.map +0 -1
  485. package/dist/openapi/apis/RankingApi.js.map +0 -1
  486. package/dist/openapi/apis/RealtimeApi.d.ts +0 -9
  487. package/dist/openapi/apis/RealtimeApi.js +0 -53
  488. package/dist/openapi/apis/RealtimeApi.js.map +0 -1
  489. package/dist/openapi/apis/RedPacketApi.js.map +0 -1
  490. package/dist/openapi/apis/TokenApi.js.map +0 -1
  491. package/dist/openapi/apis/TokenRankingsApi.d.ts +0 -10
  492. package/dist/openapi/apis/TokenRankingsApi.js +0 -67
  493. package/dist/openapi/apis/TokenRankingsApi.js.map +0 -1
  494. package/dist/openapi/apis/TradeApi.js.map +0 -1
  495. package/dist/openapi/apis/TransactionApi.js.map +0 -1
  496. package/dist/openapi/apis/UserApi.d.ts +0 -9
  497. package/dist/openapi/apis/UserApi.js +0 -67
  498. package/dist/openapi/apis/UserApi.js.map +0 -1
  499. package/dist/openapi/apis/WalletApi.js.map +0 -1
  500. package/dist/openapi/apis/WatchlistApi.js.map +0 -1
  501. package/dist/openapi/apis/baseapi.d.ts +0 -18
  502. package/dist/openapi/apis/baseapi.js +0 -27
  503. package/dist/openapi/apis/baseapi.js.map +0 -1
  504. package/dist/openapi/apis/exception.d.ts +0 -10
  505. package/dist/openapi/apis/exception.js +0 -14
  506. package/dist/openapi/apis/exception.js.map +0 -1
  507. package/dist/openapi/auth/auth.d.ts +0 -35
  508. package/dist/openapi/auth/auth.js +0 -39
  509. package/dist/openapi/auth/auth.js.map +0 -1
  510. package/dist/openapi/configuration.d.ts +0 -18
  511. package/dist/openapi/configuration.js +0 -21
  512. package/dist/openapi/configuration.js.map +0 -1
  513. package/dist/openapi/http/http.d.ts +0 -68
  514. package/dist/openapi/http/http.js +0 -195
  515. package/dist/openapi/http/http.js.map +0 -1
  516. package/dist/openapi/http/isomorphic-fetch.d.ts +0 -6
  517. package/dist/openapi/http/isomorphic-fetch.js +0 -31
  518. package/dist/openapi/http/isomorphic-fetch.js.map +0 -1
  519. package/dist/openapi/index.js.map +0 -1
  520. package/dist/openapi/middleware.d.ts +0 -16
  521. package/dist/openapi/middleware.js +0 -17
  522. package/dist/openapi/middleware.js.map +0 -1
  523. package/dist/openapi/models/BlockchainDTO.js.map +0 -1
  524. package/dist/openapi/models/BlockchainLatestBlockDTO.js.map +0 -1
  525. package/dist/openapi/models/BlockchainPage.d.ts +0 -23
  526. package/dist/openapi/models/BlockchainPage.js +0 -34
  527. package/dist/openapi/models/BlockchainPage.js.map +0 -1
  528. package/dist/openapi/models/CalculatePnlInput.js.map +0 -1
  529. package/dist/openapi/models/CancelAllOrdersInput.d.ts +0 -39
  530. package/dist/openapi/models/CancelAllOrdersInput.js +0 -74
  531. package/dist/openapi/models/CancelAllOrdersInput.js.map +0 -1
  532. package/dist/openapi/models/CancelOrderInput.d.ts +0 -36
  533. package/dist/openapi/models/CancelOrderInput.js +0 -75
  534. package/dist/openapi/models/CancelOrderInput.js.map +0 -1
  535. package/dist/openapi/models/Candle.js.map +0 -1
  536. package/dist/openapi/models/ClaimRedPacketInput.js.map +0 -1
  537. package/dist/openapi/models/CloseMarketInput.d.ts +0 -34
  538. package/dist/openapi/models/CloseMarketInput.js +0 -63
  539. package/dist/openapi/models/CloseMarketInput.js.map +0 -1
  540. package/dist/openapi/models/CreateMarketInput.d.ts +0 -43
  541. package/dist/openapi/models/CreateMarketInput.js +0 -117
  542. package/dist/openapi/models/CreateMarketInput.js.map +0 -1
  543. package/dist/openapi/models/CreateRedPacketInput.js.map +0 -1
  544. package/dist/openapi/models/CreateRedPacketReply.js.map +0 -1
  545. package/dist/openapi/models/CreateTokenInput.js.map +0 -1
  546. package/dist/openapi/models/CreateTokenReply.js.map +0 -1
  547. package/dist/openapi/models/DexCreateTokenInput.d.ts +0 -34
  548. package/dist/openapi/models/DexCreateTokenInput.js +0 -72
  549. package/dist/openapi/models/DexCreateTokenInput.js.map +0 -1
  550. package/dist/openapi/models/DexDTO.js.map +0 -1
  551. package/dist/openapi/models/DexMintInput.d.ts +0 -34
  552. package/dist/openapi/models/DexMintInput.js +0 -72
  553. package/dist/openapi/models/DexMintInput.js.map +0 -1
  554. package/dist/openapi/models/DexPage.js.map +0 -1
  555. package/dist/openapi/models/DexPoolDTO.js.map +0 -1
  556. package/dist/openapi/models/FilterCondition.js.map +0 -1
  557. package/dist/openapi/models/GainersAndLosersDTO.js.map +0 -1
  558. package/dist/openapi/models/GainersAndLosersPage.js.map +0 -1
  559. package/dist/openapi/models/JobControllerGetJob200Response.d.ts +0 -21
  560. package/dist/openapi/models/JobControllerGetJob200Response.js +0 -28
  561. package/dist/openapi/models/JobControllerGetJob200Response.js.map +0 -1
  562. package/dist/openapi/models/JobControllerGetJob404Response.d.ts +0 -21
  563. package/dist/openapi/models/JobControllerGetJob404Response.js +0 -28
  564. package/dist/openapi/models/JobControllerGetJob404Response.js.map +0 -1
  565. package/dist/openapi/models/JobControllerStreaming200Response.d.ts +0 -26
  566. package/dist/openapi/models/JobControllerStreaming200Response.js +0 -39
  567. package/dist/openapi/models/JobControllerStreaming200Response.js.map +0 -1
  568. package/dist/openapi/models/JobControllerStreaming404Response.d.ts +0 -21
  569. package/dist/openapi/models/JobControllerStreaming404Response.js +0 -28
  570. package/dist/openapi/models/JobControllerStreaming404Response.js.map +0 -1
  571. package/dist/openapi/models/Link.js.map +0 -1
  572. package/dist/openapi/models/LiquidityDTO.d.ts +0 -22
  573. package/dist/openapi/models/LiquidityDTO.js +0 -28
  574. package/dist/openapi/models/LiquidityDTO.js.map +0 -1
  575. package/dist/openapi/models/MarketInfoDto.d.ts +0 -32
  576. package/dist/openapi/models/MarketInfoDto.js +0 -94
  577. package/dist/openapi/models/MarketInfoDto.js.map +0 -1
  578. package/dist/openapi/models/MintInput.d.ts +0 -39
  579. package/dist/openapi/models/MintInput.js +0 -92
  580. package/dist/openapi/models/MintInput.js.map +0 -1
  581. package/dist/openapi/models/MintReply.d.ts +0 -21
  582. package/dist/openapi/models/MintReply.js +0 -28
  583. package/dist/openapi/models/MintReply.js.map +0 -1
  584. package/dist/openapi/models/MoonshotCreateTokenInput.js.map +0 -1
  585. package/dist/openapi/models/MoonshotCreateTokenReply.js.map +0 -1
  586. package/dist/openapi/models/MoonshotMintReply.d.ts +0 -21
  587. package/dist/openapi/models/MoonshotMintReply.js +0 -28
  588. package/dist/openapi/models/MoonshotMintReply.js.map +0 -1
  589. package/dist/openapi/models/MoonshotSubmitCreateToken200Response.js.map +0 -1
  590. package/dist/openapi/models/MoonshotSubmitCreateTokenInput.js.map +0 -1
  591. package/dist/openapi/models/MoonshotSubmitMint200Response.d.ts +0 -21
  592. package/dist/openapi/models/MoonshotSubmitMint200Response.js +0 -28
  593. package/dist/openapi/models/MoonshotSubmitMint200Response.js.map +0 -1
  594. package/dist/openapi/models/ObjectSerializer.d.ts +0 -69
  595. package/dist/openapi/models/ObjectSerializer.js +0 -457
  596. package/dist/openapi/models/ObjectSerializer.js.map +0 -1
  597. package/dist/openapi/models/OrderBookInfoDto.d.ts +0 -25
  598. package/dist/openapi/models/OrderBookInfoDto.js +0 -46
  599. package/dist/openapi/models/OrderBookInfoDto.js.map +0 -1
  600. package/dist/openapi/models/OrderInfoDto.d.ts +0 -22
  601. package/dist/openapi/models/OrderInfoDto.js +0 -34
  602. package/dist/openapi/models/OrderInfoDto.js.map +0 -1
  603. package/dist/openapi/models/OrderReply.d.ts +0 -20
  604. package/dist/openapi/models/OrderReply.js +0 -22
  605. package/dist/openapi/models/OrderReply.js.map +0 -1
  606. package/dist/openapi/models/Page.d.ts +0 -25
  607. package/dist/openapi/models/Page.js +0 -52
  608. package/dist/openapi/models/Page.js.map +0 -1
  609. package/dist/openapi/models/PlaceOrderInput.d.ts +0 -40
  610. package/dist/openapi/models/PlaceOrderInput.js +0 -80
  611. package/dist/openapi/models/PlaceOrderInput.js.map +0 -1
  612. package/dist/openapi/models/PumpCreateTokenInput.js.map +0 -1
  613. package/dist/openapi/models/PumpCreateTokenReply.js.map +0 -1
  614. package/dist/openapi/models/PumpMintInput.d.ts +0 -38
  615. package/dist/openapi/models/PumpMintInput.js +0 -97
  616. package/dist/openapi/models/PumpMintInput.js.map +0 -1
  617. package/dist/openapi/models/PumpMintReply.d.ts +0 -21
  618. package/dist/openapi/models/PumpMintReply.js +0 -28
  619. package/dist/openapi/models/PumpMintReply.js.map +0 -1
  620. package/dist/openapi/models/QuoteResponse.js.map +0 -1
  621. package/dist/openapi/models/RankingToken.d.ts +0 -32
  622. package/dist/openapi/models/RankingToken.js +0 -76
  623. package/dist/openapi/models/RankingToken.js.map +0 -1
  624. package/dist/openapi/models/RankingTokenMarketData.d.ts +0 -27
  625. package/dist/openapi/models/RankingTokenMarketData.js +0 -64
  626. package/dist/openapi/models/RankingTokenMarketData.js.map +0 -1
  627. package/dist/openapi/models/RankingTokenStat.d.ts +0 -49
  628. package/dist/openapi/models/RankingTokenStat.js +0 -196
  629. package/dist/openapi/models/RankingTokenStat.js.map +0 -1
  630. package/dist/openapi/models/RedPacketClaimDTO.js.map +0 -1
  631. package/dist/openapi/models/RedPacketClaimsPage.js.map +0 -1
  632. package/dist/openapi/models/RedPacketDTO.js.map +0 -1
  633. package/dist/openapi/models/RedPacketReply.js.map +0 -1
  634. package/dist/openapi/models/RedPacketSendTxInput.js.map +0 -1
  635. package/dist/openapi/models/RedPacketSendTxResponse.js.map +0 -1
  636. package/dist/openapi/models/RedPacketsPage.js.map +0 -1
  637. package/dist/openapi/models/Resolution.js.map +0 -1
  638. package/dist/openapi/models/SendTxInput.js.map +0 -1
  639. package/dist/openapi/models/SendTxResponse.js.map +0 -1
  640. package/dist/openapi/models/SimpleMarketDto.d.ts +0 -24
  641. package/dist/openapi/models/SimpleMarketDto.js +0 -46
  642. package/dist/openapi/models/SimpleMarketDto.js.map +0 -1
  643. package/dist/openapi/models/SubmitInput.d.ts +0 -21
  644. package/dist/openapi/models/SubmitInput.js +0 -28
  645. package/dist/openapi/models/SubmitInput.js.map +0 -1
  646. package/dist/openapi/models/SwapInput.js.map +0 -1
  647. package/dist/openapi/models/SwapReply.js.map +0 -1
  648. package/dist/openapi/models/SwapRouteInfo.d.ts +0 -30
  649. package/dist/openapi/models/SwapRouteInfo.js +0 -63
  650. package/dist/openapi/models/SwapRouteInfo.js.map +0 -1
  651. package/dist/openapi/models/SwapRouteInput.js.map +0 -1
  652. package/dist/openapi/models/SwapRouteResponse.js.map +0 -1
  653. package/dist/openapi/models/Token.js.map +0 -1
  654. package/dist/openapi/models/TokenAddressesRequest.d.ts +0 -57
  655. package/dist/openapi/models/TokenAddressesRequest.js +0 -75
  656. package/dist/openapi/models/TokenAddressesRequest.js.map +0 -1
  657. package/dist/openapi/models/TokenCreationDTO.js.map +0 -1
  658. package/dist/openapi/models/TokenCreationPage.js.map +0 -1
  659. package/dist/openapi/models/TokenCreatorsDTO.js.map +0 -1
  660. package/dist/openapi/models/TokenExtraDTO.js.map +0 -1
  661. package/dist/openapi/models/TokenExtraJsonDTO.d.ts +0 -35
  662. package/dist/openapi/models/TokenExtraJsonDTO.js +0 -112
  663. package/dist/openapi/models/TokenExtraJsonDTO.js.map +0 -1
  664. package/dist/openapi/models/TokenGainersPage.d.ts +0 -22
  665. package/dist/openapi/models/TokenGainersPage.js +0 -34
  666. package/dist/openapi/models/TokenGainersPage.js.map +0 -1
  667. package/dist/openapi/models/TokenHolder.js.map +0 -1
  668. package/dist/openapi/models/TokenHolderPage.js.map +0 -1
  669. package/dist/openapi/models/TokenListPage.js.map +0 -1
  670. package/dist/openapi/models/TokenMarketCap.d.ts +0 -31
  671. package/dist/openapi/models/TokenMarketCap.js +0 -88
  672. package/dist/openapi/models/TokenMarketCap.js.map +0 -1
  673. package/dist/openapi/models/TokenMarketData.js.map +0 -1
  674. package/dist/openapi/models/TokenMetadata.js.map +0 -1
  675. package/dist/openapi/models/TokenPage.js.map +0 -1
  676. package/dist/openapi/models/TokenPriceDTO.js.map +0 -1
  677. package/dist/openapi/models/TokenPricePage.js.map +0 -1
  678. package/dist/openapi/models/TokenSocialMediasDTO.js.map +0 -1
  679. package/dist/openapi/models/TokenSortFilterRequest.d.ts +0 -56
  680. package/dist/openapi/models/TokenSortFilterRequest.js +0 -69
  681. package/dist/openapi/models/TokenSortFilterRequest.js.map +0 -1
  682. package/dist/openapi/models/TokenStat.js.map +0 -1
  683. package/dist/openapi/models/TopTradersDTO.js.map +0 -1
  684. package/dist/openapi/models/TopTradersPage.js.map +0 -1
  685. package/dist/openapi/models/Trade.d.ts +0 -51
  686. package/dist/openapi/models/Trade.js +0 -202
  687. package/dist/openapi/models/Trade.js.map +0 -1
  688. package/dist/openapi/models/TradeDetailDTO.js.map +0 -1
  689. package/dist/openapi/models/TradeEvent.js.map +0 -1
  690. package/dist/openapi/models/TradePage.js.map +0 -1
  691. package/dist/openapi/models/TradeType.js.map +0 -1
  692. package/dist/openapi/models/UserOrderDto.d.ts +0 -28
  693. package/dist/openapi/models/UserOrderDto.js +0 -51
  694. package/dist/openapi/models/UserOrderDto.js.map +0 -1
  695. package/dist/openapi/models/UserOrderInfoDto.d.ts +0 -22
  696. package/dist/openapi/models/UserOrderInfoDto.js +0 -28
  697. package/dist/openapi/models/UserOrderInfoDto.js.map +0 -1
  698. package/dist/openapi/models/WalletBalanceDetailDTO.js.map +0 -1
  699. package/dist/openapi/models/WalletBalancesDTO.js.map +0 -1
  700. package/dist/openapi/models/WalletPnlDTO.js.map +0 -1
  701. package/dist/openapi/models/WalletTradeInfo.d.ts +0 -27
  702. package/dist/openapi/models/WalletTradeInfo.js +0 -64
  703. package/dist/openapi/models/WalletTradeInfo.js.map +0 -1
  704. package/dist/openapi/models/WalletTrades.d.ts +0 -23
  705. package/dist/openapi/models/WalletTrades.js +0 -34
  706. package/dist/openapi/models/WalletTrades.js.map +0 -1
  707. package/dist/openapi/models/all.d.ts +0 -60
  708. package/dist/openapi/models/all.js +0 -77
  709. package/dist/openapi/models/all.js.map +0 -1
  710. package/dist/openapi/rxjsStub.d.ts +0 -10
  711. package/dist/openapi/rxjsStub.js +0 -32
  712. package/dist/openapi/rxjsStub.js.map +0 -1
  713. package/dist/openapi/servers.d.ts +0 -17
  714. package/dist/openapi/servers.js +0 -31
  715. package/dist/openapi/servers.js.map +0 -1
  716. package/dist/openapi/types/ObjectParamAPI.d.ts +0 -702
  717. package/dist/openapi/types/ObjectParamAPI.js +0 -444
  718. package/dist/openapi/types/ObjectParamAPI.js.map +0 -1
  719. package/dist/openapi/types/ObservableAPI.d.ts +0 -275
  720. package/dist/openapi/types/ObservableAPI.js +0 -1158
  721. package/dist/openapi/types/ObservableAPI.js.map +0 -1
  722. package/dist/openapi/types/PromiseAPI.d.ts +0 -246
  723. package/dist/openapi/types/PromiseAPI.js +0 -558
  724. package/dist/openapi/types/PromiseAPI.js.map +0 -1
  725. package/dist/openapi/util.d.ts +0 -2
  726. package/dist/openapi/util.js +0 -29
  727. package/dist/openapi/util.js.map +0 -1
  728. package/dist/src/api/stream.fields.d.ts +0 -11
  729. package/dist/src/api/stream.fields.js.map +0 -1
  730. package/dist/src/api/stream.js.map +0 -1
  731. package/dist/src/api/stream.model.js.map +0 -1
  732. package/dist/src/index.js +0 -112
  733. package/dist/src/index.js.map +0 -1
  734. package/dist/src/openapi/apis/BlockchainApi.d.ts +0 -12
  735. package/dist/src/openapi/apis/BlockchainApi.js +0 -98
  736. package/dist/src/openapi/apis/BlockchainApi.js.map +0 -1
  737. package/dist/src/openapi/apis/DefiSolanaMoonshotApi.d.ts +0 -15
  738. package/dist/src/openapi/apis/DefiSolanaMoonshotApi.js +0 -112
  739. package/dist/src/openapi/apis/DefiSolanaMoonshotApi.js.map +0 -1
  740. package/dist/src/openapi/apis/DefiSolanaPumpfunApi.d.ts +0 -11
  741. package/dist/src/openapi/apis/DefiSolanaPumpfunApi.js +0 -68
  742. package/dist/src/openapi/apis/DefiSolanaPumpfunApi.js.map +0 -1
  743. package/dist/src/openapi/apis/DexApi.d.ts +0 -22
  744. package/dist/src/openapi/apis/DexApi.js +0 -215
  745. package/dist/src/openapi/apis/DexApi.js.map +0 -1
  746. package/dist/src/openapi/apis/DexPoolApi.d.ts +0 -12
  747. package/dist/src/openapi/apis/DexPoolApi.js +0 -114
  748. package/dist/src/openapi/apis/DexPoolApi.js.map +0 -1
  749. package/dist/src/openapi/apis/IpfsApi.d.ts +0 -9
  750. package/dist/src/openapi/apis/IpfsApi.js +0 -59
  751. package/dist/src/openapi/apis/IpfsApi.js.map +0 -1
  752. package/dist/src/openapi/apis/JobsApi.d.ts +0 -11
  753. package/dist/src/openapi/apis/JobsApi.js +0 -90
  754. package/dist/src/openapi/apis/JobsApi.js.map +0 -1
  755. package/dist/src/openapi/apis/RankingApi.d.ts +0 -19
  756. package/dist/src/openapi/apis/RankingApi.js +0 -298
  757. package/dist/src/openapi/apis/RankingApi.js.map +0 -1
  758. package/dist/src/openapi/apis/RedPacketApi.d.ts +0 -32
  759. package/dist/src/openapi/apis/RedPacketApi.js +0 -401
  760. package/dist/src/openapi/apis/RedPacketApi.js.map +0 -1
  761. package/dist/src/openapi/apis/TokenApi.d.ts +0 -69
  762. package/dist/src/openapi/apis/TokenApi.js +0 -1372
  763. package/dist/src/openapi/apis/TokenApi.js.map +0 -1
  764. package/dist/src/openapi/apis/TradeApi.d.ts +0 -16
  765. package/dist/src/openapi/apis/TradeApi.js +0 -231
  766. package/dist/src/openapi/apis/TradeApi.js.map +0 -1
  767. package/dist/src/openapi/apis/TransactionApi.d.ts +0 -11
  768. package/dist/src/openapi/apis/TransactionApi.js +0 -72
  769. package/dist/src/openapi/apis/TransactionApi.js.map +0 -1
  770. package/dist/src/openapi/apis/WalletApi.d.ts +0 -18
  771. package/dist/src/openapi/apis/WalletApi.js +0 -211
  772. package/dist/src/openapi/apis/WalletApi.js.map +0 -1
  773. package/dist/src/openapi/apis/WatchlistApi.d.ts +0 -9
  774. package/dist/src/openapi/apis/WatchlistApi.js +0 -67
  775. package/dist/src/openapi/apis/WatchlistApi.js.map +0 -1
  776. package/dist/src/openapi/apis/baseapi.d.ts +0 -18
  777. package/dist/src/openapi/apis/baseapi.js +0 -27
  778. package/dist/src/openapi/apis/baseapi.js.map +0 -1
  779. package/dist/src/openapi/apis/exception.d.ts +0 -10
  780. package/dist/src/openapi/apis/exception.js +0 -14
  781. package/dist/src/openapi/apis/exception.js.map +0 -1
  782. package/dist/src/openapi/auth/auth.d.ts +0 -35
  783. package/dist/src/openapi/auth/auth.js +0 -39
  784. package/dist/src/openapi/auth/auth.js.map +0 -1
  785. package/dist/src/openapi/configuration.d.ts +0 -18
  786. package/dist/src/openapi/configuration.js +0 -21
  787. package/dist/src/openapi/configuration.js.map +0 -1
  788. package/dist/src/openapi/http/http.d.ts +0 -68
  789. package/dist/src/openapi/http/http.js +0 -195
  790. package/dist/src/openapi/http/http.js.map +0 -1
  791. package/dist/src/openapi/http/isomorphic-fetch.d.ts +0 -6
  792. package/dist/src/openapi/http/isomorphic-fetch.js +0 -31
  793. package/dist/src/openapi/http/isomorphic-fetch.js.map +0 -1
  794. package/dist/src/openapi/index.d.ts +0 -10
  795. package/dist/src/openapi/index.js +0 -42
  796. package/dist/src/openapi/index.js.map +0 -1
  797. package/dist/src/openapi/middleware.d.ts +0 -16
  798. package/dist/src/openapi/middleware.js +0 -17
  799. package/dist/src/openapi/middleware.js.map +0 -1
  800. package/dist/src/openapi/models/BlockchainLatestBlockDTO.d.ts +0 -21
  801. package/dist/src/openapi/models/BlockchainLatestBlockDTO.js +0 -28
  802. package/dist/src/openapi/models/BlockchainLatestBlockDTO.js.map +0 -1
  803. package/dist/src/openapi/models/CalculatePnlInput.d.ts +0 -20
  804. package/dist/src/openapi/models/CalculatePnlInput.js +0 -22
  805. package/dist/src/openapi/models/CalculatePnlInput.js.map +0 -1
  806. package/dist/src/openapi/models/Candle.d.ts +0 -27
  807. package/dist/src/openapi/models/Candle.js +0 -58
  808. package/dist/src/openapi/models/Candle.js.map +0 -1
  809. package/dist/src/openapi/models/ClaimRedPacketInput.d.ts +0 -23
  810. package/dist/src/openapi/models/ClaimRedPacketInput.js +0 -40
  811. package/dist/src/openapi/models/ClaimRedPacketInput.js.map +0 -1
  812. package/dist/src/openapi/models/CreateRedPacketInput.d.ts +0 -27
  813. package/dist/src/openapi/models/CreateRedPacketInput.js +0 -64
  814. package/dist/src/openapi/models/CreateRedPacketInput.js.map +0 -1
  815. package/dist/src/openapi/models/CreateRedPacketReply.d.ts +0 -21
  816. package/dist/src/openapi/models/CreateRedPacketReply.js +0 -28
  817. package/dist/src/openapi/models/CreateRedPacketReply.js.map +0 -1
  818. package/dist/src/openapi/models/DexDTO.d.ts +0 -23
  819. package/dist/src/openapi/models/DexDTO.js +0 -40
  820. package/dist/src/openapi/models/DexDTO.js.map +0 -1
  821. package/dist/src/openapi/models/DexMintInput.d.ts +0 -34
  822. package/dist/src/openapi/models/DexMintInput.js +0 -72
  823. package/dist/src/openapi/models/DexMintInput.js.map +0 -1
  824. package/dist/src/openapi/models/DexPage.d.ts +0 -26
  825. package/dist/src/openapi/models/DexPage.js +0 -52
  826. package/dist/src/openapi/models/DexPage.js.map +0 -1
  827. package/dist/src/openapi/models/DexPoolDTO.d.ts +0 -29
  828. package/dist/src/openapi/models/DexPoolDTO.js +0 -76
  829. package/dist/src/openapi/models/DexPoolDTO.js.map +0 -1
  830. package/dist/src/openapi/models/FilterCondition.d.ts +0 -51
  831. package/dist/src/openapi/models/FilterCondition.js +0 -64
  832. package/dist/src/openapi/models/FilterCondition.js.map +0 -1
  833. package/dist/src/openapi/models/GainersAndLosersDTO.d.ts +0 -23
  834. package/dist/src/openapi/models/GainersAndLosersDTO.js +0 -40
  835. package/dist/src/openapi/models/GainersAndLosersDTO.js.map +0 -1
  836. package/dist/src/openapi/models/GainersAndLosersPage.d.ts +0 -26
  837. package/dist/src/openapi/models/GainersAndLosersPage.js +0 -52
  838. package/dist/src/openapi/models/GainersAndLosersPage.js.map +0 -1
  839. package/dist/src/openapi/models/Link.d.ts +0 -27
  840. package/dist/src/openapi/models/Link.js +0 -35
  841. package/dist/src/openapi/models/Link.js.map +0 -1
  842. package/dist/src/openapi/models/MintInput.d.ts +0 -39
  843. package/dist/src/openapi/models/MintInput.js +0 -92
  844. package/dist/src/openapi/models/MintInput.js.map +0 -1
  845. package/dist/src/openapi/models/MintReply.d.ts +0 -21
  846. package/dist/src/openapi/models/MintReply.js +0 -28
  847. package/dist/src/openapi/models/MintReply.js.map +0 -1
  848. package/dist/src/openapi/models/MoonshotMintReply.d.ts +0 -21
  849. package/dist/src/openapi/models/MoonshotMintReply.js +0 -28
  850. package/dist/src/openapi/models/MoonshotMintReply.js.map +0 -1
  851. package/dist/src/openapi/models/MoonshotSubmitMint200Response.d.ts +0 -21
  852. package/dist/src/openapi/models/MoonshotSubmitMint200Response.js +0 -28
  853. package/dist/src/openapi/models/MoonshotSubmitMint200Response.js.map +0 -1
  854. package/dist/src/openapi/models/ObjectSerializer.d.ts +0 -68
  855. package/dist/src/openapi/models/ObjectSerializer.js +0 -454
  856. package/dist/src/openapi/models/ObjectSerializer.js.map +0 -1
  857. package/dist/src/openapi/models/PumpMintInput.d.ts +0 -38
  858. package/dist/src/openapi/models/PumpMintInput.js +0 -97
  859. package/dist/src/openapi/models/PumpMintInput.js.map +0 -1
  860. package/dist/src/openapi/models/PumpMintReply.d.ts +0 -21
  861. package/dist/src/openapi/models/PumpMintReply.js +0 -28
  862. package/dist/src/openapi/models/PumpMintReply.js.map +0 -1
  863. package/dist/src/openapi/models/RankingToken.d.ts +0 -30
  864. package/dist/src/openapi/models/RankingToken.js +0 -70
  865. package/dist/src/openapi/models/RankingToken.js.map +0 -1
  866. package/dist/src/openapi/models/RankingTokenMarketData.d.ts +0 -26
  867. package/dist/src/openapi/models/RankingTokenMarketData.js +0 -58
  868. package/dist/src/openapi/models/RankingTokenMarketData.js.map +0 -1
  869. package/dist/src/openapi/models/RankingTokenStat.d.ts +0 -39
  870. package/dist/src/openapi/models/RankingTokenStat.js +0 -136
  871. package/dist/src/openapi/models/RankingTokenStat.js.map +0 -1
  872. package/dist/src/openapi/models/RedPacketClaimDTO.d.ts +0 -39
  873. package/dist/src/openapi/models/RedPacketClaimDTO.js +0 -77
  874. package/dist/src/openapi/models/RedPacketClaimDTO.js.map +0 -1
  875. package/dist/src/openapi/models/RedPacketClaimsPage.d.ts +0 -25
  876. package/dist/src/openapi/models/RedPacketClaimsPage.js +0 -46
  877. package/dist/src/openapi/models/RedPacketClaimsPage.js.map +0 -1
  878. package/dist/src/openapi/models/RedPacketDTO.d.ts +0 -48
  879. package/dist/src/openapi/models/RedPacketDTO.js +0 -131
  880. package/dist/src/openapi/models/RedPacketDTO.js.map +0 -1
  881. package/dist/src/openapi/models/RedPacketReply.d.ts +0 -20
  882. package/dist/src/openapi/models/RedPacketReply.js +0 -22
  883. package/dist/src/openapi/models/RedPacketReply.js.map +0 -1
  884. package/dist/src/openapi/models/RedPacketSendTxInput.d.ts +0 -20
  885. package/dist/src/openapi/models/RedPacketSendTxInput.js +0 -22
  886. package/dist/src/openapi/models/RedPacketSendTxInput.js.map +0 -1
  887. package/dist/src/openapi/models/RedPacketSendTxResponse.d.ts +0 -20
  888. package/dist/src/openapi/models/RedPacketSendTxResponse.js +0 -22
  889. package/dist/src/openapi/models/RedPacketSendTxResponse.js.map +0 -1
  890. package/dist/src/openapi/models/RedPacketsPage.d.ts +0 -25
  891. package/dist/src/openapi/models/RedPacketsPage.js +0 -46
  892. package/dist/src/openapi/models/RedPacketsPage.js.map +0 -1
  893. package/dist/src/openapi/models/Resolution.d.ts +0 -12
  894. package/dist/src/openapi/models/Resolution.js +0 -17
  895. package/dist/src/openapi/models/Resolution.js.map +0 -1
  896. package/dist/src/openapi/models/SendTxInput.d.ts +0 -26
  897. package/dist/src/openapi/models/SendTxInput.js +0 -39
  898. package/dist/src/openapi/models/SendTxInput.js.map +0 -1
  899. package/dist/src/openapi/models/SendTxResponse.d.ts +0 -22
  900. package/dist/src/openapi/models/SendTxResponse.js +0 -34
  901. package/dist/src/openapi/models/SendTxResponse.js.map +0 -1
  902. package/dist/src/openapi/models/SubmitInput.d.ts +0 -21
  903. package/dist/src/openapi/models/SubmitInput.js +0 -28
  904. package/dist/src/openapi/models/SubmitInput.js.map +0 -1
  905. package/dist/src/openapi/models/SwapInput.d.ts +0 -39
  906. package/dist/src/openapi/models/SwapInput.js +0 -83
  907. package/dist/src/openapi/models/SwapInput.js.map +0 -1
  908. package/dist/src/openapi/models/SwapReply.d.ts +0 -21
  909. package/dist/src/openapi/models/SwapReply.js +0 -28
  910. package/dist/src/openapi/models/SwapReply.js.map +0 -1
  911. package/dist/src/openapi/models/SwapRouteInput.d.ts +0 -40
  912. package/dist/src/openapi/models/SwapRouteInput.js +0 -104
  913. package/dist/src/openapi/models/SwapRouteInput.js.map +0 -1
  914. package/dist/src/openapi/models/SwapRouteResponse.d.ts +0 -24
  915. package/dist/src/openapi/models/SwapRouteResponse.js +0 -40
  916. package/dist/src/openapi/models/SwapRouteResponse.js.map +0 -1
  917. package/dist/src/openapi/models/Token.d.ts +0 -41
  918. package/dist/src/openapi/models/Token.js +0 -130
  919. package/dist/src/openapi/models/Token.js.map +0 -1
  920. package/dist/src/openapi/models/TokenCreationDTO.d.ts +0 -31
  921. package/dist/src/openapi/models/TokenCreationDTO.js +0 -64
  922. package/dist/src/openapi/models/TokenCreationDTO.js.map +0 -1
  923. package/dist/src/openapi/models/TokenCreationPage.d.ts +0 -26
  924. package/dist/src/openapi/models/TokenCreationPage.js +0 -52
  925. package/dist/src/openapi/models/TokenCreationPage.js.map +0 -1
  926. package/dist/src/openapi/models/TokenHolder.d.ts +0 -23
  927. package/dist/src/openapi/models/TokenHolder.js +0 -40
  928. package/dist/src/openapi/models/TokenHolder.js.map +0 -1
  929. package/dist/src/openapi/models/TokenHolderPage.d.ts +0 -26
  930. package/dist/src/openapi/models/TokenHolderPage.js +0 -52
  931. package/dist/src/openapi/models/TokenHolderPage.js.map +0 -1
  932. package/dist/src/openapi/models/TokenListPage.d.ts +0 -26
  933. package/dist/src/openapi/models/TokenListPage.js +0 -52
  934. package/dist/src/openapi/models/TokenListPage.js.map +0 -1
  935. package/dist/src/openapi/models/TokenMarketData.d.ts +0 -31
  936. package/dist/src/openapi/models/TokenMarketData.js +0 -88
  937. package/dist/src/openapi/models/TokenMarketData.js.map +0 -1
  938. package/dist/src/openapi/models/TokenMetadata.d.ts +0 -32
  939. package/dist/src/openapi/models/TokenMetadata.js +0 -94
  940. package/dist/src/openapi/models/TokenMetadata.js.map +0 -1
  941. package/dist/src/openapi/models/TokenPage.d.ts +0 -27
  942. package/dist/src/openapi/models/TokenPage.js +0 -58
  943. package/dist/src/openapi/models/TokenPage.js.map +0 -1
  944. package/dist/src/openapi/models/TokenPriceDTO.d.ts +0 -23
  945. package/dist/src/openapi/models/TokenPriceDTO.js +0 -40
  946. package/dist/src/openapi/models/TokenPriceDTO.js.map +0 -1
  947. package/dist/src/openapi/models/TokenPricePage.d.ts +0 -26
  948. package/dist/src/openapi/models/TokenPricePage.js +0 -52
  949. package/dist/src/openapi/models/TokenPricePage.js.map +0 -1
  950. package/dist/src/openapi/models/TokenStat.d.ts +0 -146
  951. package/dist/src/openapi/models/TokenStat.js +0 -778
  952. package/dist/src/openapi/models/TokenStat.js.map +0 -1
  953. package/dist/src/openapi/models/TopTradersDTO.d.ts +0 -29
  954. package/dist/src/openapi/models/TopTradersDTO.js +0 -76
  955. package/dist/src/openapi/models/TopTradersDTO.js.map +0 -1
  956. package/dist/src/openapi/models/TopTradersPage.d.ts +0 -26
  957. package/dist/src/openapi/models/TopTradersPage.js +0 -52
  958. package/dist/src/openapi/models/TopTradersPage.js.map +0 -1
  959. package/dist/src/openapi/models/TradeDetailDTO.d.ts +0 -44
  960. package/dist/src/openapi/models/TradeDetailDTO.js +0 -166
  961. package/dist/src/openapi/models/TradeDetailDTO.js.map +0 -1
  962. package/dist/src/openapi/models/TradeEvent.d.ts +0 -33
  963. package/dist/src/openapi/models/TradeEvent.js +0 -94
  964. package/dist/src/openapi/models/TradeEvent.js.map +0 -1
  965. package/dist/src/openapi/models/TradePage.d.ts +0 -26
  966. package/dist/src/openapi/models/TradePage.js +0 -52
  967. package/dist/src/openapi/models/TradePage.js.map +0 -1
  968. package/dist/src/openapi/models/TradeType.d.ts +0 -4
  969. package/dist/src/openapi/models/TradeType.js +0 -9
  970. package/dist/src/openapi/models/TradeType.js.map +0 -1
  971. package/dist/src/openapi/models/WalletBalanceDetailDTO.d.ts +0 -44
  972. package/dist/src/openapi/models/WalletBalanceDetailDTO.js +0 -166
  973. package/dist/src/openapi/models/WalletBalanceDetailDTO.js.map +0 -1
  974. package/dist/src/openapi/models/WalletBalancesDTO.d.ts +0 -23
  975. package/dist/src/openapi/models/WalletBalancesDTO.js +0 -34
  976. package/dist/src/openapi/models/WalletBalancesDTO.js.map +0 -1
  977. package/dist/src/openapi/models/WalletPnlDTO.d.ts +0 -42
  978. package/dist/src/openapi/models/WalletPnlDTO.js +0 -154
  979. package/dist/src/openapi/models/WalletPnlDTO.js.map +0 -1
  980. package/dist/src/openapi/models/all.d.ts +0 -59
  981. package/dist/src/openapi/models/all.js +0 -76
  982. package/dist/src/openapi/models/all.js.map +0 -1
  983. package/dist/src/openapi/rxjsStub.d.ts +0 -10
  984. package/dist/src/openapi/rxjsStub.js +0 -32
  985. package/dist/src/openapi/rxjsStub.js.map +0 -1
  986. package/dist/src/openapi/servers.d.ts +0 -17
  987. package/dist/src/openapi/servers.js +0 -31
  988. package/dist/src/openapi/servers.js.map +0 -1
  989. package/dist/src/openapi/types/ObjectParamAPI.d.ts +0 -661
  990. package/dist/src/openapi/types/ObjectParamAPI.js +0 -438
  991. package/dist/src/openapi/types/ObjectParamAPI.js.map +0 -1
  992. package/dist/src/openapi/types/ObservableAPI.d.ts +0 -273
  993. package/dist/src/openapi/types/ObservableAPI.js +0 -1140
  994. package/dist/src/openapi/types/ObservableAPI.js.map +0 -1
  995. package/dist/src/openapi/types/PromiseAPI.d.ts +0 -244
  996. package/dist/src/openapi/types/PromiseAPI.js +0 -550
  997. package/dist/src/openapi/types/PromiseAPI.js.map +0 -1
  998. package/dist/src/openapi/util.d.ts +0 -2
  999. package/dist/src/openapi/util.js +0 -29
  1000. package/dist/src/openapi/util.js.map +0 -1
  1001. package/dist/stream.test.d.ts +0 -1
  1002. package/dist/stream.test.js +0 -84
  1003. package/dist/stream.test.js.map +0 -1
  1004. package/src/openapi/.gitattributes +0 -8
  1005. package/src/openapi/.openapi-generator/FILES +0 -97
  1006. package/src/openapi/.openapi-generator/VERSION +0 -1
  1007. package/src/openapi/.openapi-generator-ignore +0 -23
  1008. package/src/openapi/README.md +0 -80
  1009. package/src/openapi/apis/baseapi.ts +0 -37
  1010. package/src/openapi/apis/exception.ts +0 -15
  1011. package/src/openapi/auth/auth.ts +0 -80
  1012. package/src/openapi/configuration.ts +0 -82
  1013. package/src/openapi/git_push.sh +0 -51
  1014. package/src/openapi/http/http.ts +0 -259
  1015. package/src/openapi/http/isomorphic-fetch.ts +0 -32
  1016. package/src/openapi/middleware.ts +0 -66
  1017. package/src/openapi/models/ObjectSerializer.ts +0 -500
  1018. package/src/openapi/models/all.ts +0 -60
  1019. package/src/openapi/package.json +0 -43
  1020. package/src/openapi/rxjsStub.ts +0 -27
  1021. package/src/openapi/servers.ts +0 -55
  1022. package/src/openapi/tsconfig.json +0 -37
  1023. package/src/openapi/types/ObjectParamAPI.ts +0 -3839
  1024. package/src/openapi/types/ObservableAPI.ts +0 -2767
  1025. package/src/openapi/types/PromiseAPI.ts +0 -2039
  1026. package/src/openapi/util.ts +0 -37
@@ -1,2697 +1,2569 @@
1
- // TODO: better import syntax?
2
- import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
3
- import {Configuration} from '../configuration';
4
- import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http';
5
- import {ObjectSerializer} from '../models/ObjectSerializer';
6
- import {ApiException} from './exception';
7
- import {canConsumeForm, isCodeInRange} from '../util';
8
- import {SecurityAuthentication} from '../auth/auth';
9
-
10
-
11
- import { Candle } from '../models/Candle';
12
- import { DexPoolDTO } from '../models/DexPoolDTO';
13
- import { FilterCondition } from '../models/FilterCondition';
14
- import { Resolution } from '../models/Resolution';
15
- import { Token } from '../models/Token';
16
- import { TokenCreationDTO } from '../models/TokenCreationDTO';
17
- import { TokenCreationPage } from '../models/TokenCreationPage';
18
- import { TokenHolder } from '../models/TokenHolder';
19
- import { TokenHolderPage } from '../models/TokenHolderPage';
20
- import { TokenListPage } from '../models/TokenListPage';
21
- import { TokenMarketData } from '../models/TokenMarketData';
22
- import { TokenMetadata } from '../models/TokenMetadata';
23
- import { TokenPage } from '../models/TokenPage';
24
- import { TokenPriceDTO } from '../models/TokenPriceDTO';
25
- import { TokenPricePage } from '../models/TokenPricePage';
26
- import { TokenStat } from '../models/TokenStat';
27
-
1
+ /* tslint:disable */
2
+ /* eslint-disable */
28
3
  /**
29
- * no description
4
+ * Dex Aggregator API
5
+ * Dex Aggregator API ⚡️
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: ai@sx.ai
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
30
13
  */
31
- export class TokenApiRequestFactory extends BaseAPIRequestFactory {
32
14
 
33
- /**
34
- * CONTROLLER.TOKEN.GET_CANDLES.DESCRIPTION
35
- * CONTROLLER.TOKEN.GET_CANDLES.SUMMARY
36
- * @param chain GLOBAL.CHAIN.DESCRIPTION
37
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
38
- * @param resolution DTO.CANDLE.RESOLUTION
39
- * @param _from DTO.CANDLE.FROM
40
- * @param to DTO.CANDLE.TO
41
- * @param limit DTO.CANDLE.LIMIT
42
- */
43
- public async getCandles(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, resolution: Resolution, _from?: number, to?: number, limit?: number, _options?: Configuration): Promise<RequestContext> {
44
- let _config = _options || this.configuration;
45
15
 
46
- // verify required parameter 'chain' is not null or undefined
47
- if (chain === null || chain === undefined) {
48
- throw new RequiredError("TokenApi", "getCandles", "chain");
49
- }
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ Candle,
19
+ DexPoolDTO,
20
+ FilterCondition,
21
+ Resolution,
22
+ Token,
23
+ TokenCreationDTO,
24
+ TokenCreationPage,
25
+ TokenHolder,
26
+ TokenHolderPage,
27
+ TokenListPage,
28
+ TokenMarketData,
29
+ TokenMetadata,
30
+ TokenPage,
31
+ TokenPriceDTO,
32
+ TokenPricePage,
33
+ TokenStat,
34
+ } from '../models/index';
35
+ import {
36
+ CandleFromJSON,
37
+ CandleToJSON,
38
+ DexPoolDTOFromJSON,
39
+ DexPoolDTOToJSON,
40
+ FilterConditionFromJSON,
41
+ FilterConditionToJSON,
42
+ ResolutionFromJSON,
43
+ ResolutionToJSON,
44
+ TokenFromJSON,
45
+ TokenToJSON,
46
+ TokenCreationDTOFromJSON,
47
+ TokenCreationDTOToJSON,
48
+ TokenCreationPageFromJSON,
49
+ TokenCreationPageToJSON,
50
+ TokenHolderFromJSON,
51
+ TokenHolderToJSON,
52
+ TokenHolderPageFromJSON,
53
+ TokenHolderPageToJSON,
54
+ TokenListPageFromJSON,
55
+ TokenListPageToJSON,
56
+ TokenMarketDataFromJSON,
57
+ TokenMarketDataToJSON,
58
+ TokenMetadataFromJSON,
59
+ TokenMetadataToJSON,
60
+ TokenPageFromJSON,
61
+ TokenPageToJSON,
62
+ TokenPriceDTOFromJSON,
63
+ TokenPriceDTOToJSON,
64
+ TokenPricePageFromJSON,
65
+ TokenPricePageToJSON,
66
+ TokenStatFromJSON,
67
+ TokenStatToJSON,
68
+ } from '../models/index';
69
+
70
+ export interface GetCandlesRequest {
71
+ chain: GetCandlesChainEnum;
72
+ tokenAddress: string;
73
+ resolution: Resolution;
74
+ from?: number;
75
+ to?: number;
76
+ limit?: number;
77
+ }
50
78
 
79
+ export interface GetCreationRequest {
80
+ chain: GetCreationChainEnum;
81
+ tokenAddress: string;
82
+ }
51
83
 
52
- // verify required parameter 'tokenAddress' is not null or undefined
53
- if (tokenAddress === null || tokenAddress === undefined) {
54
- throw new RequiredError("TokenApi", "getCandles", "tokenAddress");
55
- }
84
+ export interface GetHoldersRequest {
85
+ chain: GetHoldersChainEnum;
86
+ tokenAddress: string;
87
+ cursor?: string;
88
+ limit?: number;
89
+ direction?: GetHoldersDirectionEnum;
90
+ }
56
91
 
92
+ export interface GetHoldersMultiRequest {
93
+ chain: GetHoldersMultiChainEnum;
94
+ tokenAddress: string;
95
+ walletAddresses: string;
96
+ }
57
97
 
58
- // verify required parameter 'resolution' is not null or undefined
59
- if (resolution === null || resolution === undefined) {
60
- throw new RequiredError("TokenApi", "getCandles", "resolution");
61
- }
98
+ export interface GetMarketDataRequest {
99
+ chain: GetMarketDataChainEnum;
100
+ tokenAddress: string;
101
+ }
62
102
 
103
+ export interface GetMarketDataMultiRequest {
104
+ chain: GetMarketDataMultiChainEnum;
105
+ tokenAddresses: string;
106
+ }
63
107
 
108
+ export interface GetMetadataRequest {
109
+ chain: GetMetadataChainEnum;
110
+ tokenAddress: string;
111
+ }
64
112
 
113
+ export interface GetMetadataMultiRequest {
114
+ chain: GetMetadataMultiChainEnum;
115
+ tokenAddresses: string;
116
+ }
65
117
 
118
+ export interface GetMintAndBurnRequest {
119
+ chain: GetMintAndBurnChainEnum;
120
+ tokenAddress: string;
121
+ cursor?: string;
122
+ limit?: number;
123
+ direction?: GetMintAndBurnDirectionEnum;
124
+ type?: GetMintAndBurnTypeEnum;
125
+ }
66
126
 
67
- // Path Params
68
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/candles'
69
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
70
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
127
+ export interface GetPoolsRequest {
128
+ chain: GetPoolsChainEnum;
129
+ tokenAddress: string;
130
+ }
71
131
 
72
- // Make Request Context
73
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
74
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
75
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
76
- requestContext.setHeaderParam("x-req-id", randomId.toString())
132
+ export interface GetPriceByTimeRequest {
133
+ chain: GetPriceByTimeChainEnum;
134
+ tokenAddress: string;
135
+ timestamp: number;
136
+ }
77
137
 
138
+ export interface GetPricesRequest {
139
+ chain: GetPricesChainEnum;
140
+ tokenAddress: string;
141
+ cursor?: string;
142
+ limit?: number;
143
+ direction?: GetPricesDirectionEnum;
144
+ }
78
145
 
79
- // Query Params
80
- if (resolution !== undefined) {
81
- requestContext.setQueryParam("resolution", ObjectSerializer.serialize(resolution, "string", ""));
82
- }
146
+ export interface GetSecurityRequest {
147
+ chain: GetSecurityChainEnum;
148
+ tokenAddress: string;
149
+ }
83
150
 
84
- // Query Params
85
- if (_from !== undefined) {
86
- requestContext.setQueryParam("from", ObjectSerializer.serialize(_from, "number", ""));
87
- }
151
+ export interface GetStatsRequest {
152
+ chain: GetStatsChainEnum;
153
+ tokenAddress: string;
154
+ }
88
155
 
89
- // Query Params
90
- if (to !== undefined) {
91
- requestContext.setQueryParam("to", ObjectSerializer.serialize(to, "number", ""));
92
- }
156
+ export interface GetStatsMultiRequest {
157
+ chain: GetStatsMultiChainEnum;
158
+ tokenAddresses: string;
159
+ }
93
160
 
94
- // Query Params
95
- if (limit !== undefined) {
96
- requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
97
- }
161
+ export interface GetTokenRequest {
162
+ chain: GetTokenChainEnum;
163
+ tokenAddress: string;
164
+ }
98
165
 
166
+ export interface GetTokensRequest {
167
+ chain: GetTokensChainEnum;
168
+ tokenAddresses: string;
169
+ sortBy?: GetTokensSortByEnum;
170
+ sortDirection?: GetTokensSortDirectionEnum;
171
+ filterBy?: Array<FilterCondition>;
172
+ }
99
173
 
100
- let authMethod: SecurityAuthentication | undefined;
101
- // Apply auth methods
102
- authMethod = _config.authMethods["bearer"]
103
- if (authMethod?.applySecurityAuthentication) {
104
- await authMethod?.applySecurityAuthentication(requestContext);
105
- }
174
+ export interface GetTopHoldersRequest {
175
+ chain: GetTopHoldersChainEnum;
176
+ tokenAddress: string;
177
+ }
106
178
 
107
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
108
- if (defaultAuth?.applySecurityAuthentication) {
109
- await defaultAuth?.applySecurityAuthentication(requestContext);
110
- }
179
+ export interface ListTokenRequest {
180
+ chain: ListTokenChainEnum;
181
+ cursor?: string;
182
+ limit?: number;
183
+ direction?: ListTokenDirectionEnum;
184
+ sort?: ListTokenSortEnum;
185
+ sortBy?: ListTokenSortByEnum;
186
+ minH24VolumeInUsd?: string;
187
+ maxH24VolumeInUsd?: string;
188
+ minH24PriceChangeRatio?: string;
189
+ maxH24PriceChangeRatio?: string;
190
+ minH24Buys?: string;
191
+ maxH24Buys?: string;
192
+ minH24Sells?: string;
193
+ maxH24Sells?: string;
194
+ minH24Trades?: string;
195
+ maxH24Trades?: string;
196
+ minH24Buyers?: string;
197
+ maxH24Buyers?: string;
198
+ minH24Sellers?: string;
199
+ maxH24Sellers?: string;
200
+ minH24BuyVolumeInUsd?: string;
201
+ maxH24BuyVolumeInUsd?: string;
202
+ minH24SellVolumeInUsd?: string;
203
+ maxH24SellVolumeInUsd?: string;
204
+ minH4VolumeInUsd?: string;
205
+ maxH4VolumeInUsd?: string;
206
+ minH4PriceChangeRatio?: string;
207
+ maxH4PriceChangeRatio?: string;
208
+ minH4Buys?: string;
209
+ maxH4Buys?: string;
210
+ minH4Sells?: string;
211
+ maxH4Sells?: string;
212
+ minH4Trades?: string;
213
+ maxH4Trades?: string;
214
+ minH4Buyers?: string;
215
+ maxH4Buyers?: string;
216
+ minH4Sellers?: string;
217
+ maxH4Sellers?: string;
218
+ minH4BuyVolumeInUsd?: string;
219
+ maxH4BuyVolumeInUsd?: string;
220
+ minH4SellVolumeInUsd?: string;
221
+ maxH4SellVolumeInUsd?: string;
222
+ minH1VolumeInUsd?: string;
223
+ maxH1VolumeInUsd?: string;
224
+ minH1PriceChangeRatio?: string;
225
+ maxH1PriceChangeRatio?: string;
226
+ minH1Buys?: string;
227
+ maxH1Buys?: string;
228
+ minH1Sells?: string;
229
+ maxH1Sells?: string;
230
+ minH1Trades?: string;
231
+ maxH1Trades?: string;
232
+ minH1Buyers?: string;
233
+ maxH1Buyers?: string;
234
+ minH1Sellers?: string;
235
+ maxH1Sellers?: string;
236
+ minH1BuyVolumeInUsd?: string;
237
+ maxH1BuyVolumeInUsd?: string;
238
+ minH1SellVolumeInUsd?: string;
239
+ maxH1SellVolumeInUsd?: string;
240
+ minM30VolumeInUsd?: string;
241
+ maxM30VolumeInUsd?: string;
242
+ minM30PriceChangeRatio?: string;
243
+ maxM30PriceChangeRatio?: string;
244
+ minM30Buys?: string;
245
+ maxM30Buys?: string;
246
+ minM30Sells?: string;
247
+ maxM30Sells?: string;
248
+ minM30Trades?: string;
249
+ maxM30Trades?: string;
250
+ minM30Buyers?: string;
251
+ maxM30Buyers?: string;
252
+ minM30Sellers?: string;
253
+ maxM30Sellers?: string;
254
+ minM30BuyVolumeInUsd?: string;
255
+ maxM30BuyVolumeInUsd?: string;
256
+ minM30SellVolumeInUsd?: string;
257
+ maxM30SellVolumeInUsd?: string;
258
+ minM15VolumeInUsd?: string;
259
+ maxM15VolumeInUsd?: string;
260
+ minM15PriceChangeRatio?: string;
261
+ maxM15PriceChangeRatio?: string;
262
+ minM15Buys?: string;
263
+ maxM15Buys?: string;
264
+ minM15Sells?: string;
265
+ maxM15Sells?: string;
266
+ minM15Trades?: string;
267
+ maxM15Trades?: string;
268
+ minM15Buyers?: string;
269
+ maxM15Buyers?: string;
270
+ minM15Sellers?: string;
271
+ maxM15Sellers?: string;
272
+ minM15BuyVolumeInUsd?: string;
273
+ maxM15BuyVolumeInUsd?: string;
274
+ minM15SellVolumeInUsd?: string;
275
+ maxM15SellVolumeInUsd?: string;
276
+ minM5VolumeInUsd?: string;
277
+ maxM5VolumeInUsd?: string;
278
+ minM5PriceChangeRatio?: string;
279
+ maxM5PriceChangeRatio?: string;
280
+ minM5Buys?: string;
281
+ maxM5Buys?: string;
282
+ minM5Sells?: string;
283
+ maxM5Sells?: string;
284
+ minM5Trades?: string;
285
+ maxM5Trades?: string;
286
+ minM5Buyers?: string;
287
+ maxM5Buyers?: string;
288
+ minM5Sellers?: string;
289
+ maxM5Sellers?: string;
290
+ minM5BuyVolumeInUsd?: string;
291
+ maxM5BuyVolumeInUsd?: string;
292
+ minM5SellVolumeInUsd?: string;
293
+ maxM5SellVolumeInUsd?: string;
294
+ minM1VolumeInUsd?: string;
295
+ maxM1VolumeInUsd?: string;
296
+ minM1PriceChangeRatio?: string;
297
+ maxM1PriceChangeRatio?: string;
298
+ minM1Buys?: string;
299
+ maxM1Buys?: string;
300
+ minM1Sells?: string;
301
+ maxM1Sells?: string;
302
+ minM1Trades?: string;
303
+ maxM1Trades?: string;
304
+ minM1Buyers?: string;
305
+ maxM1Buyers?: string;
306
+ minM1Sellers?: string;
307
+ maxM1Sellers?: string;
308
+ minM1BuyVolumeInUsd?: string;
309
+ maxM1BuyVolumeInUsd?: string;
310
+ minM1SellVolumeInUsd?: string;
311
+ maxM1SellVolumeInUsd?: string;
312
+ }
111
313
 
112
- return requestContext;
113
- }
314
+ export interface SearchRequest {
315
+ chains?: Array<string>;
316
+ q?: string;
317
+ limit?: number;
318
+ sort?: SearchSortEnum;
319
+ protocols?: Array<string>;
320
+ cursor?: string;
321
+ sortBy?: SearchSortByEnum;
322
+ }
323
+
324
+ /**
325
+ *
326
+ */
327
+ export class TokenApi extends runtime.BaseAPI {
114
328
 
115
329
  /**
116
- * CONTROLLER.TOKEN.GET_CREATION.DESCRIPTION
117
- * CONTROLLER.TOKEN.GET_CREATION.SUMMARY
118
- * @param chain GLOBAL.CHAIN.DESCRIPTION
119
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
330
+ * CONTROLLER.TOKEN.GET_CANDLES.DESCRIPTION
331
+ * CONTROLLER.TOKEN.GET_CANDLES.SUMMARY
120
332
  */
121
- public async getCreation(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, _options?: Configuration): Promise<RequestContext> {
122
- let _config = _options || this.configuration;
333
+ async getCandlesRaw(requestParameters: GetCandlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Candle>>> {
334
+ if (requestParameters['chain'] == null) {
335
+ throw new runtime.RequiredError(
336
+ 'chain',
337
+ 'Required parameter "chain" was null or undefined when calling getCandles().'
338
+ );
339
+ }
123
340
 
124
- // verify required parameter 'chain' is not null or undefined
125
- if (chain === null || chain === undefined) {
126
- throw new RequiredError("TokenApi", "getCreation", "chain");
341
+ if (requestParameters['tokenAddress'] == null) {
342
+ throw new runtime.RequiredError(
343
+ 'tokenAddress',
344
+ 'Required parameter "tokenAddress" was null or undefined when calling getCandles().'
345
+ );
127
346
  }
128
347
 
348
+ if (requestParameters['resolution'] == null) {
349
+ throw new runtime.RequiredError(
350
+ 'resolution',
351
+ 'Required parameter "resolution" was null or undefined when calling getCandles().'
352
+ );
353
+ }
129
354
 
130
- // verify required parameter 'tokenAddress' is not null or undefined
131
- if (tokenAddress === null || tokenAddress === undefined) {
132
- throw new RequiredError("TokenApi", "getCreation", "tokenAddress");
355
+ const queryParameters: any = {};
356
+
357
+ if (requestParameters['resolution'] != null) {
358
+ queryParameters['resolution'] = requestParameters['resolution'];
133
359
  }
134
360
 
361
+ if (requestParameters['from'] != null) {
362
+ queryParameters['from'] = requestParameters['from'];
363
+ }
135
364
 
136
- // Path Params
137
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/creation'
138
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
139
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
365
+ if (requestParameters['to'] != null) {
366
+ queryParameters['to'] = requestParameters['to'];
367
+ }
140
368
 
141
- // Make Request Context
142
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
143
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
144
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
145
- requestContext.setHeaderParam("x-req-id", randomId.toString())
369
+ if (requestParameters['limit'] != null) {
370
+ queryParameters['limit'] = requestParameters['limit'];
371
+ }
146
372
 
373
+ const headerParameters: runtime.HTTPHeaders = {};
147
374
 
375
+ if (this.configuration && this.configuration.accessToken) {
376
+ const token = this.configuration.accessToken;
377
+ const tokenString = await token("bearer", []);
148
378
 
149
- let authMethod: SecurityAuthentication | undefined;
150
- // Apply auth methods
151
- authMethod = _config.authMethods["bearer"]
152
- if (authMethod?.applySecurityAuthentication) {
153
- await authMethod?.applySecurityAuthentication(requestContext);
379
+ if (tokenString) {
380
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
381
+ }
154
382
  }
155
383
 
156
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
157
- if (defaultAuth?.applySecurityAuthentication) {
158
- await defaultAuth?.applySecurityAuthentication(requestContext);
159
- }
384
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/candles`;
385
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
386
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
387
+
388
+ const response = await this.request({
389
+ path: urlPath,
390
+ method: 'GET',
391
+ headers: headerParameters,
392
+ query: queryParameters,
393
+ }, initOverrides);
160
394
 
161
- return requestContext;
395
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CandleFromJSON));
162
396
  }
163
397
 
164
398
  /**
165
- * CONTROLLER.TOKEN.GET_HOLDERS.DESCRIPTION
166
- * CONTROLLER.TOKEN.GET_HOLDERS.SUMMARY
167
- * @param chain GLOBAL.CHAIN.DESCRIPTION
168
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
169
- * @param cursor DTO.PAGE.CURSOR.DESCRIPTION
170
- * @param limit DTO.PAGE.LIMIT
171
- * @param direction DTO.PAGE.DIRECTION
399
+ * CONTROLLER.TOKEN.GET_CANDLES.DESCRIPTION
400
+ * CONTROLLER.TOKEN.GET_CANDLES.SUMMARY
172
401
  */
173
- public async getHolders(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, cursor?: string, limit?: number, direction?: 'next' | 'prev', _options?: Configuration): Promise<RequestContext> {
174
- let _config = _options || this.configuration;
402
+ async getCandles(requestParameters: GetCandlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Candle>> {
403
+ const response = await this.getCandlesRaw(requestParameters, initOverrides);
404
+ return await response.value();
405
+ }
175
406
 
176
- // verify required parameter 'chain' is not null or undefined
177
- if (chain === null || chain === undefined) {
178
- throw new RequiredError("TokenApi", "getHolders", "chain");
407
+ /**
408
+ * CONTROLLER.TOKEN.GET_CREATION.DESCRIPTION
409
+ * CONTROLLER.TOKEN.GET_CREATION.SUMMARY
410
+ */
411
+ async getCreationRaw(requestParameters: GetCreationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenCreationDTO>> {
412
+ if (requestParameters['chain'] == null) {
413
+ throw new runtime.RequiredError(
414
+ 'chain',
415
+ 'Required parameter "chain" was null or undefined when calling getCreation().'
416
+ );
179
417
  }
180
418
 
181
-
182
- // verify required parameter 'tokenAddress' is not null or undefined
183
- if (tokenAddress === null || tokenAddress === undefined) {
184
- throw new RequiredError("TokenApi", "getHolders", "tokenAddress");
419
+ if (requestParameters['tokenAddress'] == null) {
420
+ throw new runtime.RequiredError(
421
+ 'tokenAddress',
422
+ 'Required parameter "tokenAddress" was null or undefined when calling getCreation().'
423
+ );
185
424
  }
186
425
 
426
+ const queryParameters: any = {};
187
427
 
428
+ const headerParameters: runtime.HTTPHeaders = {};
188
429
 
430
+ if (this.configuration && this.configuration.accessToken) {
431
+ const token = this.configuration.accessToken;
432
+ const tokenString = await token("bearer", []);
189
433
 
434
+ if (tokenString) {
435
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
436
+ }
437
+ }
190
438
 
191
- // Path Params
192
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/holders'
193
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
194
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
439
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/creation`;
440
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
441
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
195
442
 
196
- // Make Request Context
197
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
198
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
199
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
200
- requestContext.setHeaderParam("x-req-id", randomId.toString())
443
+ const response = await this.request({
444
+ path: urlPath,
445
+ method: 'GET',
446
+ headers: headerParameters,
447
+ query: queryParameters,
448
+ }, initOverrides);
201
449
 
450
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenCreationDTOFromJSON(jsonValue));
451
+ }
452
+
453
+ /**
454
+ * CONTROLLER.TOKEN.GET_CREATION.DESCRIPTION
455
+ * CONTROLLER.TOKEN.GET_CREATION.SUMMARY
456
+ */
457
+ async getCreation(requestParameters: GetCreationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenCreationDTO> {
458
+ const response = await this.getCreationRaw(requestParameters, initOverrides);
459
+ return await response.value();
460
+ }
202
461
 
203
- // Query Params
204
- if (cursor !== undefined) {
205
- requestContext.setQueryParam("cursor", ObjectSerializer.serialize(cursor, "string", ""));
462
+ /**
463
+ * CONTROLLER.TOKEN.GET_HOLDERS.DESCRIPTION
464
+ * CONTROLLER.TOKEN.GET_HOLDERS.SUMMARY
465
+ */
466
+ async getHoldersRaw(requestParameters: GetHoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenHolderPage>> {
467
+ if (requestParameters['chain'] == null) {
468
+ throw new runtime.RequiredError(
469
+ 'chain',
470
+ 'Required parameter "chain" was null or undefined when calling getHolders().'
471
+ );
206
472
  }
207
473
 
208
- // Query Params
209
- if (limit !== undefined) {
210
- requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
474
+ if (requestParameters['tokenAddress'] == null) {
475
+ throw new runtime.RequiredError(
476
+ 'tokenAddress',
477
+ 'Required parameter "tokenAddress" was null or undefined when calling getHolders().'
478
+ );
211
479
  }
212
480
 
213
- // Query Params
214
- if (direction !== undefined) {
215
- requestContext.setQueryParam("direction", ObjectSerializer.serialize(direction, "'next' | 'prev'", ""));
481
+ const queryParameters: any = {};
482
+
483
+ if (requestParameters['cursor'] != null) {
484
+ queryParameters['cursor'] = requestParameters['cursor'];
216
485
  }
217
486
 
487
+ if (requestParameters['limit'] != null) {
488
+ queryParameters['limit'] = requestParameters['limit'];
489
+ }
218
490
 
219
- let authMethod: SecurityAuthentication | undefined;
220
- // Apply auth methods
221
- authMethod = _config.authMethods["bearer"]
222
- if (authMethod?.applySecurityAuthentication) {
223
- await authMethod?.applySecurityAuthentication(requestContext);
491
+ if (requestParameters['direction'] != null) {
492
+ queryParameters['direction'] = requestParameters['direction'];
224
493
  }
225
494
 
226
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
227
- if (defaultAuth?.applySecurityAuthentication) {
228
- await defaultAuth?.applySecurityAuthentication(requestContext);
495
+ const headerParameters: runtime.HTTPHeaders = {};
496
+
497
+ if (this.configuration && this.configuration.accessToken) {
498
+ const token = this.configuration.accessToken;
499
+ const tokenString = await token("bearer", []);
500
+
501
+ if (tokenString) {
502
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
503
+ }
229
504
  }
230
505
 
231
- return requestContext;
506
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/holders`;
507
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
508
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
509
+
510
+ const response = await this.request({
511
+ path: urlPath,
512
+ method: 'GET',
513
+ headers: headerParameters,
514
+ query: queryParameters,
515
+ }, initOverrides);
516
+
517
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenHolderPageFromJSON(jsonValue));
518
+ }
519
+
520
+ /**
521
+ * CONTROLLER.TOKEN.GET_HOLDERS.DESCRIPTION
522
+ * CONTROLLER.TOKEN.GET_HOLDERS.SUMMARY
523
+ */
524
+ async getHolders(requestParameters: GetHoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenHolderPage> {
525
+ const response = await this.getHoldersRaw(requestParameters, initOverrides);
526
+ return await response.value();
232
527
  }
233
528
 
234
529
  /**
235
530
  * CONTROLLER.TOKEN.GET_HOLDERS_MULTI.DESCRIPTION
236
531
  * CONTROLLER.TOKEN.GET_HOLDERS_MULTI.SUMMARY
237
- * @param chain GLOBAL.CHAIN.DESCRIPTION
238
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
239
- * @param walletAddresses GLOBAL.WALLETADDRESSES.DESCRIPTION
240
532
  */
241
- public async getHoldersMulti(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, walletAddresses: string, _options?: Configuration): Promise<RequestContext> {
242
- let _config = _options || this.configuration;
243
-
244
- // verify required parameter 'chain' is not null or undefined
245
- if (chain === null || chain === undefined) {
246
- throw new RequiredError("TokenApi", "getHoldersMulti", "chain");
533
+ async getHoldersMultiRaw(requestParameters: GetHoldersMultiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<TokenHolder>>> {
534
+ if (requestParameters['chain'] == null) {
535
+ throw new runtime.RequiredError(
536
+ 'chain',
537
+ 'Required parameter "chain" was null or undefined when calling getHoldersMulti().'
538
+ );
247
539
  }
248
540
 
249
-
250
- // verify required parameter 'tokenAddress' is not null or undefined
251
- if (tokenAddress === null || tokenAddress === undefined) {
252
- throw new RequiredError("TokenApi", "getHoldersMulti", "tokenAddress");
541
+ if (requestParameters['tokenAddress'] == null) {
542
+ throw new runtime.RequiredError(
543
+ 'tokenAddress',
544
+ 'Required parameter "tokenAddress" was null or undefined when calling getHoldersMulti().'
545
+ );
253
546
  }
254
547
 
255
-
256
- // verify required parameter 'walletAddresses' is not null or undefined
257
- if (walletAddresses === null || walletAddresses === undefined) {
258
- throw new RequiredError("TokenApi", "getHoldersMulti", "walletAddresses");
548
+ if (requestParameters['walletAddresses'] == null) {
549
+ throw new runtime.RequiredError(
550
+ 'walletAddresses',
551
+ 'Required parameter "walletAddresses" was null or undefined when calling getHoldersMulti().'
552
+ );
259
553
  }
260
554
 
555
+ const queryParameters: any = {};
261
556
 
262
- // Path Params
263
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/holders/multi'
264
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
265
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
557
+ if (requestParameters['walletAddresses'] != null) {
558
+ queryParameters['walletAddresses'] = requestParameters['walletAddresses'];
559
+ }
266
560
 
267
- // Make Request Context
268
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
269
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
270
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
271
- requestContext.setHeaderParam("x-req-id", randomId.toString())
561
+ const headerParameters: runtime.HTTPHeaders = {};
272
562
 
563
+ if (this.configuration && this.configuration.accessToken) {
564
+ const token = this.configuration.accessToken;
565
+ const tokenString = await token("bearer", []);
273
566
 
274
- // Query Params
275
- if (walletAddresses !== undefined) {
276
- requestContext.setQueryParam("walletAddresses", ObjectSerializer.serialize(walletAddresses, "string", ""));
567
+ if (tokenString) {
568
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
569
+ }
277
570
  }
278
571
 
572
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/holders/multi`;
573
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
574
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
279
575
 
280
- let authMethod: SecurityAuthentication | undefined;
281
- // Apply auth methods
282
- authMethod = _config.authMethods["bearer"]
283
- if (authMethod?.applySecurityAuthentication) {
284
- await authMethod?.applySecurityAuthentication(requestContext);
285
- }
576
+ const response = await this.request({
577
+ path: urlPath,
578
+ method: 'GET',
579
+ headers: headerParameters,
580
+ query: queryParameters,
581
+ }, initOverrides);
286
582
 
287
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
288
- if (defaultAuth?.applySecurityAuthentication) {
289
- await defaultAuth?.applySecurityAuthentication(requestContext);
290
- }
583
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TokenHolderFromJSON));
584
+ }
291
585
 
292
- return requestContext;
586
+ /**
587
+ * CONTROLLER.TOKEN.GET_HOLDERS_MULTI.DESCRIPTION
588
+ * CONTROLLER.TOKEN.GET_HOLDERS_MULTI.SUMMARY
589
+ */
590
+ async getHoldersMulti(requestParameters: GetHoldersMultiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<TokenHolder>> {
591
+ const response = await this.getHoldersMultiRaw(requestParameters, initOverrides);
592
+ return await response.value();
293
593
  }
294
594
 
295
595
  /**
296
596
  * CONTROLLER.TOKEN.GET_MARKET_CAP.DESCRIPTION
297
597
  * CONTROLLER.TOKEN.GET_MARKET_CAP.SUMMARY
298
- * @param chain GLOBAL.CHAIN.DESCRIPTION
299
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
300
598
  */
301
- public async getMarketData(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, _options?: Configuration): Promise<RequestContext> {
302
- let _config = _options || this.configuration;
303
-
304
- // verify required parameter 'chain' is not null or undefined
305
- if (chain === null || chain === undefined) {
306
- throw new RequiredError("TokenApi", "getMarketData", "chain");
599
+ async getMarketDataRaw(requestParameters: GetMarketDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenMarketData>> {
600
+ if (requestParameters['chain'] == null) {
601
+ throw new runtime.RequiredError(
602
+ 'chain',
603
+ 'Required parameter "chain" was null or undefined when calling getMarketData().'
604
+ );
307
605
  }
308
606
 
309
-
310
- // verify required parameter 'tokenAddress' is not null or undefined
311
- if (tokenAddress === null || tokenAddress === undefined) {
312
- throw new RequiredError("TokenApi", "getMarketData", "tokenAddress");
607
+ if (requestParameters['tokenAddress'] == null) {
608
+ throw new runtime.RequiredError(
609
+ 'tokenAddress',
610
+ 'Required parameter "tokenAddress" was null or undefined when calling getMarketData().'
611
+ );
313
612
  }
314
613
 
614
+ const queryParameters: any = {};
315
615
 
316
- // Path Params
317
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/marketData'
318
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
319
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
616
+ const headerParameters: runtime.HTTPHeaders = {};
320
617
 
321
- // Make Request Context
322
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
323
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
324
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
325
- requestContext.setHeaderParam("x-req-id", randomId.toString())
618
+ if (this.configuration && this.configuration.accessToken) {
619
+ const token = this.configuration.accessToken;
620
+ const tokenString = await token("bearer", []);
326
621
 
622
+ if (tokenString) {
623
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
624
+ }
625
+ }
327
626
 
627
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/marketData`;
628
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
629
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
328
630
 
329
- let authMethod: SecurityAuthentication | undefined;
330
- // Apply auth methods
331
- authMethod = _config.authMethods["bearer"]
332
- if (authMethod?.applySecurityAuthentication) {
333
- await authMethod?.applySecurityAuthentication(requestContext);
334
- }
631
+ const response = await this.request({
632
+ path: urlPath,
633
+ method: 'GET',
634
+ headers: headerParameters,
635
+ query: queryParameters,
636
+ }, initOverrides);
335
637
 
336
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
337
- if (defaultAuth?.applySecurityAuthentication) {
338
- await defaultAuth?.applySecurityAuthentication(requestContext);
339
- }
638
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenMarketDataFromJSON(jsonValue));
639
+ }
340
640
 
341
- return requestContext;
641
+ /**
642
+ * CONTROLLER.TOKEN.GET_MARKET_CAP.DESCRIPTION
643
+ * CONTROLLER.TOKEN.GET_MARKET_CAP.SUMMARY
644
+ */
645
+ async getMarketData(requestParameters: GetMarketDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenMarketData> {
646
+ const response = await this.getMarketDataRaw(requestParameters, initOverrides);
647
+ return await response.value();
342
648
  }
343
649
 
344
650
  /**
345
651
  * CONTROLLER.TOKEN.GET_MARKET_DATA_MULTI.DESCRIPTION
346
652
  * CONTROLLER.TOKEN.GET_MARKET_DATA_MULTI.SUMMARY
347
- * @param chain GLOBAL.CHAIN.DESCRIPTION
348
- * @param tokenAddresses GLOBAL.TOKENADDRESSES.DESCRIPTION
349
653
  */
350
- public async getMarketDataMulti(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddresses: string, _options?: Configuration): Promise<RequestContext> {
351
- let _config = _options || this.configuration;
352
-
353
- // verify required parameter 'chain' is not null or undefined
354
- if (chain === null || chain === undefined) {
355
- throw new RequiredError("TokenApi", "getMarketDataMulti", "chain");
654
+ async getMarketDataMultiRaw(requestParameters: GetMarketDataMultiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: TokenMarketData; }>> {
655
+ if (requestParameters['chain'] == null) {
656
+ throw new runtime.RequiredError(
657
+ 'chain',
658
+ 'Required parameter "chain" was null or undefined when calling getMarketDataMulti().'
659
+ );
356
660
  }
357
661
 
358
-
359
- // verify required parameter 'tokenAddresses' is not null or undefined
360
- if (tokenAddresses === null || tokenAddresses === undefined) {
361
- throw new RequiredError("TokenApi", "getMarketDataMulti", "tokenAddresses");
662
+ if (requestParameters['tokenAddresses'] == null) {
663
+ throw new runtime.RequiredError(
664
+ 'tokenAddresses',
665
+ 'Required parameter "tokenAddresses" was null or undefined when calling getMarketDataMulti().'
666
+ );
362
667
  }
363
668
 
669
+ const queryParameters: any = {};
364
670
 
365
- // Path Params
366
- const localVarPath = '/v1/token/{chain}/marketData/multi'
367
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
671
+ if (requestParameters['tokenAddresses'] != null) {
672
+ queryParameters['tokenAddresses'] = requestParameters['tokenAddresses'];
673
+ }
368
674
 
369
- // Make Request Context
370
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
371
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
372
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
373
- requestContext.setHeaderParam("x-req-id", randomId.toString())
675
+ const headerParameters: runtime.HTTPHeaders = {};
374
676
 
677
+ if (this.configuration && this.configuration.accessToken) {
678
+ const token = this.configuration.accessToken;
679
+ const tokenString = await token("bearer", []);
375
680
 
376
- // Query Params
377
- if (tokenAddresses !== undefined) {
378
- requestContext.setQueryParam("tokenAddresses", ObjectSerializer.serialize(tokenAddresses, "string", ""));
681
+ if (tokenString) {
682
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
683
+ }
379
684
  }
380
685
 
686
+ let urlPath = `/v1/token/{chain}/marketData/multi`;
687
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
381
688
 
382
- let authMethod: SecurityAuthentication | undefined;
383
- // Apply auth methods
384
- authMethod = _config.authMethods["bearer"]
385
- if (authMethod?.applySecurityAuthentication) {
386
- await authMethod?.applySecurityAuthentication(requestContext);
387
- }
689
+ const response = await this.request({
690
+ path: urlPath,
691
+ method: 'GET',
692
+ headers: headerParameters,
693
+ query: queryParameters,
694
+ }, initOverrides);
388
695
 
389
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
390
- if (defaultAuth?.applySecurityAuthentication) {
391
- await defaultAuth?.applySecurityAuthentication(requestContext);
392
- }
696
+ return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, TokenMarketDataFromJSON));
697
+ }
393
698
 
394
- return requestContext;
699
+ /**
700
+ * CONTROLLER.TOKEN.GET_MARKET_DATA_MULTI.DESCRIPTION
701
+ * CONTROLLER.TOKEN.GET_MARKET_DATA_MULTI.SUMMARY
702
+ */
703
+ async getMarketDataMulti(requestParameters: GetMarketDataMultiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: TokenMarketData; }> {
704
+ const response = await this.getMarketDataMultiRaw(requestParameters, initOverrides);
705
+ return await response.value();
395
706
  }
396
707
 
397
708
  /**
398
709
  * CONTROLLER.TOKEN.GET_METADATA.DESCRIPTION
399
710
  * CONTROLLER.TOKEN.GET_METADATA.SUMMARY
400
- * @param chain GLOBAL.CHAIN.DESCRIPTION
401
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
402
711
  */
403
- public async getMetadata(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, _options?: Configuration): Promise<RequestContext> {
404
- let _config = _options || this.configuration;
405
-
406
- // verify required parameter 'chain' is not null or undefined
407
- if (chain === null || chain === undefined) {
408
- throw new RequiredError("TokenApi", "getMetadata", "chain");
712
+ async getMetadataRaw(requestParameters: GetMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenMetadata>> {
713
+ if (requestParameters['chain'] == null) {
714
+ throw new runtime.RequiredError(
715
+ 'chain',
716
+ 'Required parameter "chain" was null or undefined when calling getMetadata().'
717
+ );
409
718
  }
410
719
 
411
-
412
- // verify required parameter 'tokenAddress' is not null or undefined
413
- if (tokenAddress === null || tokenAddress === undefined) {
414
- throw new RequiredError("TokenApi", "getMetadata", "tokenAddress");
720
+ if (requestParameters['tokenAddress'] == null) {
721
+ throw new runtime.RequiredError(
722
+ 'tokenAddress',
723
+ 'Required parameter "tokenAddress" was null or undefined when calling getMetadata().'
724
+ );
415
725
  }
416
726
 
727
+ const queryParameters: any = {};
417
728
 
418
- // Path Params
419
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/metadata'
420
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
421
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
729
+ const headerParameters: runtime.HTTPHeaders = {};
422
730
 
423
- // Make Request Context
424
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
425
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
426
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
427
- requestContext.setHeaderParam("x-req-id", randomId.toString())
731
+ if (this.configuration && this.configuration.accessToken) {
732
+ const token = this.configuration.accessToken;
733
+ const tokenString = await token("bearer", []);
428
734
 
735
+ if (tokenString) {
736
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
737
+ }
738
+ }
429
739
 
740
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/metadata`;
741
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
742
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
430
743
 
431
- let authMethod: SecurityAuthentication | undefined;
432
- // Apply auth methods
433
- authMethod = _config.authMethods["bearer"]
434
- if (authMethod?.applySecurityAuthentication) {
435
- await authMethod?.applySecurityAuthentication(requestContext);
436
- }
744
+ const response = await this.request({
745
+ path: urlPath,
746
+ method: 'GET',
747
+ headers: headerParameters,
748
+ query: queryParameters,
749
+ }, initOverrides);
437
750
 
438
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
439
- if (defaultAuth?.applySecurityAuthentication) {
440
- await defaultAuth?.applySecurityAuthentication(requestContext);
441
- }
751
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenMetadataFromJSON(jsonValue));
752
+ }
442
753
 
443
- return requestContext;
754
+ /**
755
+ * CONTROLLER.TOKEN.GET_METADATA.DESCRIPTION
756
+ * CONTROLLER.TOKEN.GET_METADATA.SUMMARY
757
+ */
758
+ async getMetadata(requestParameters: GetMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenMetadata> {
759
+ const response = await this.getMetadataRaw(requestParameters, initOverrides);
760
+ return await response.value();
444
761
  }
445
762
 
446
763
  /**
447
764
  * CONTROLLER.TOKEN.GET_METADATA_MULTI.DESCRIPTION
448
765
  * CONTROLLER.TOKEN.GET_METADATA_MULTI.SUMMARY
449
- * @param chain GLOBAL.CHAIN.DESCRIPTION
450
- * @param tokenAddresses GLOBAL.TOKENADDRESSES.DESCRIPTION
451
766
  */
452
- public async getMetadataMulti(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddresses: string, _options?: Configuration): Promise<RequestContext> {
453
- let _config = _options || this.configuration;
454
-
455
- // verify required parameter 'chain' is not null or undefined
456
- if (chain === null || chain === undefined) {
457
- throw new RequiredError("TokenApi", "getMetadataMulti", "chain");
767
+ async getMetadataMultiRaw(requestParameters: GetMetadataMultiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: TokenMetadata; }>> {
768
+ if (requestParameters['chain'] == null) {
769
+ throw new runtime.RequiredError(
770
+ 'chain',
771
+ 'Required parameter "chain" was null or undefined when calling getMetadataMulti().'
772
+ );
458
773
  }
459
774
 
460
-
461
- // verify required parameter 'tokenAddresses' is not null or undefined
462
- if (tokenAddresses === null || tokenAddresses === undefined) {
463
- throw new RequiredError("TokenApi", "getMetadataMulti", "tokenAddresses");
775
+ if (requestParameters['tokenAddresses'] == null) {
776
+ throw new runtime.RequiredError(
777
+ 'tokenAddresses',
778
+ 'Required parameter "tokenAddresses" was null or undefined when calling getMetadataMulti().'
779
+ );
464
780
  }
465
781
 
782
+ const queryParameters: any = {};
466
783
 
467
- // Path Params
468
- const localVarPath = '/v1/token/{chain}/metadata/multi'
469
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
784
+ if (requestParameters['tokenAddresses'] != null) {
785
+ queryParameters['tokenAddresses'] = requestParameters['tokenAddresses'];
786
+ }
470
787
 
471
- // Make Request Context
472
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
473
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
474
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
475
- requestContext.setHeaderParam("x-req-id", randomId.toString())
788
+ const headerParameters: runtime.HTTPHeaders = {};
476
789
 
790
+ if (this.configuration && this.configuration.accessToken) {
791
+ const token = this.configuration.accessToken;
792
+ const tokenString = await token("bearer", []);
477
793
 
478
- // Query Params
479
- if (tokenAddresses !== undefined) {
480
- requestContext.setQueryParam("tokenAddresses", ObjectSerializer.serialize(tokenAddresses, "string", ""));
794
+ if (tokenString) {
795
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
796
+ }
481
797
  }
482
798
 
799
+ let urlPath = `/v1/token/{chain}/metadata/multi`;
800
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
483
801
 
484
- let authMethod: SecurityAuthentication | undefined;
485
- // Apply auth methods
486
- authMethod = _config.authMethods["bearer"]
487
- if (authMethod?.applySecurityAuthentication) {
488
- await authMethod?.applySecurityAuthentication(requestContext);
489
- }
802
+ const response = await this.request({
803
+ path: urlPath,
804
+ method: 'GET',
805
+ headers: headerParameters,
806
+ query: queryParameters,
807
+ }, initOverrides);
490
808
 
491
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
492
- if (defaultAuth?.applySecurityAuthentication) {
493
- await defaultAuth?.applySecurityAuthentication(requestContext);
494
- }
809
+ return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, TokenMetadataFromJSON));
810
+ }
495
811
 
496
- return requestContext;
812
+ /**
813
+ * CONTROLLER.TOKEN.GET_METADATA_MULTI.DESCRIPTION
814
+ * CONTROLLER.TOKEN.GET_METADATA_MULTI.SUMMARY
815
+ */
816
+ async getMetadataMulti(requestParameters: GetMetadataMultiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: TokenMetadata; }> {
817
+ const response = await this.getMetadataMultiRaw(requestParameters, initOverrides);
818
+ return await response.value();
497
819
  }
498
820
 
499
821
  /**
500
822
  * CONTROLLER.TOKEN.GET_MINT_AND_BURN.DESCRIPTION
501
823
  * CONTROLLER.TOKEN.GET_MINT_AND_BURN.SUMMARY
502
- * @param chain GLOBAL.CHAIN.DESCRIPTION
503
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
504
- * @param type DTO.TOKEN.MINT_AND_BURN.TYPE
505
- * @param cursor DTO.PAGE.CURSOR.DESCRIPTION
506
- * @param limit DTO.PAGE.LIMIT
507
- * @param direction DTO.PAGE.DIRECTION
508
824
  */
509
- public async getMintAndBurn(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, type: 'all' | 'mint' | 'burn', cursor?: string, limit?: number, direction?: 'next' | 'prev', _options?: Configuration): Promise<RequestContext> {
510
- let _config = _options || this.configuration;
511
-
512
- // verify required parameter 'chain' is not null or undefined
513
- if (chain === null || chain === undefined) {
514
- throw new RequiredError("TokenApi", "getMintAndBurn", "chain");
825
+ async getMintAndBurnRaw(requestParameters: GetMintAndBurnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenCreationPage>> {
826
+ if (requestParameters['chain'] == null) {
827
+ throw new runtime.RequiredError(
828
+ 'chain',
829
+ 'Required parameter "chain" was null or undefined when calling getMintAndBurn().'
830
+ );
515
831
  }
516
832
 
517
-
518
- // verify required parameter 'tokenAddress' is not null or undefined
519
- if (tokenAddress === null || tokenAddress === undefined) {
520
- throw new RequiredError("TokenApi", "getMintAndBurn", "tokenAddress");
833
+ if (requestParameters['tokenAddress'] == null) {
834
+ throw new runtime.RequiredError(
835
+ 'tokenAddress',
836
+ 'Required parameter "tokenAddress" was null or undefined when calling getMintAndBurn().'
837
+ );
521
838
  }
522
839
 
840
+ const queryParameters: any = {};
523
841
 
524
- // verify required parameter 'type' is not null or undefined
525
- if (type === null || type === undefined) {
526
- throw new RequiredError("TokenApi", "getMintAndBurn", "type");
842
+ if (requestParameters['cursor'] != null) {
843
+ queryParameters['cursor'] = requestParameters['cursor'];
527
844
  }
528
845
 
529
-
530
-
531
-
532
-
533
- // Path Params
534
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/mintAndBurn'
535
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
536
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
537
-
538
- // Make Request Context
539
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
540
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
541
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
542
- requestContext.setHeaderParam("x-req-id", randomId.toString())
543
-
544
-
545
- // Query Params
546
- if (cursor !== undefined) {
547
- requestContext.setQueryParam("cursor", ObjectSerializer.serialize(cursor, "string", ""));
846
+ if (requestParameters['limit'] != null) {
847
+ queryParameters['limit'] = requestParameters['limit'];
548
848
  }
549
849
 
550
- // Query Params
551
- if (limit !== undefined) {
552
- requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
850
+ if (requestParameters['direction'] != null) {
851
+ queryParameters['direction'] = requestParameters['direction'];
553
852
  }
554
853
 
555
- // Query Params
556
- if (direction !== undefined) {
557
- requestContext.setQueryParam("direction", ObjectSerializer.serialize(direction, "'next' | 'prev'", ""));
854
+ if (requestParameters['type'] != null) {
855
+ queryParameters['type'] = requestParameters['type'];
558
856
  }
559
857
 
560
- // Query Params
561
- if (type !== undefined) {
562
- requestContext.setQueryParam("type", ObjectSerializer.serialize(type, "'all' | 'mint' | 'burn'", ""));
563
- }
858
+ const headerParameters: runtime.HTTPHeaders = {};
564
859
 
860
+ if (this.configuration && this.configuration.accessToken) {
861
+ const token = this.configuration.accessToken;
862
+ const tokenString = await token("bearer", []);
565
863
 
566
- let authMethod: SecurityAuthentication | undefined;
567
- // Apply auth methods
568
- authMethod = _config.authMethods["bearer"]
569
- if (authMethod?.applySecurityAuthentication) {
570
- await authMethod?.applySecurityAuthentication(requestContext);
864
+ if (tokenString) {
865
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
866
+ }
571
867
  }
572
868
 
573
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
574
- if (defaultAuth?.applySecurityAuthentication) {
575
- await defaultAuth?.applySecurityAuthentication(requestContext);
576
- }
869
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/mintAndBurn`;
870
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
871
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
872
+
873
+ const response = await this.request({
874
+ path: urlPath,
875
+ method: 'GET',
876
+ headers: headerParameters,
877
+ query: queryParameters,
878
+ }, initOverrides);
577
879
 
578
- return requestContext;
880
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenCreationPageFromJSON(jsonValue));
881
+ }
882
+
883
+ /**
884
+ * CONTROLLER.TOKEN.GET_MINT_AND_BURN.DESCRIPTION
885
+ * CONTROLLER.TOKEN.GET_MINT_AND_BURN.SUMMARY
886
+ */
887
+ async getMintAndBurn(requestParameters: GetMintAndBurnRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenCreationPage> {
888
+ const response = await this.getMintAndBurnRaw(requestParameters, initOverrides);
889
+ return await response.value();
579
890
  }
580
891
 
581
892
  /**
582
893
  * CONTROLLER.TOKEN.GET_POOLS.DESCRIPTION
583
894
  * CONTROLLER.TOKEN.GET_POOLS.SUMMARY
584
- * @param chain GLOBAL.CHAIN.DESCRIPTION
585
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
586
895
  */
587
- public async getPools(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, _options?: Configuration): Promise<RequestContext> {
588
- let _config = _options || this.configuration;
589
-
590
- // verify required parameter 'chain' is not null or undefined
591
- if (chain === null || chain === undefined) {
592
- throw new RequiredError("TokenApi", "getPools", "chain");
896
+ async getPoolsRaw(requestParameters: GetPoolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<DexPoolDTO>>> {
897
+ if (requestParameters['chain'] == null) {
898
+ throw new runtime.RequiredError(
899
+ 'chain',
900
+ 'Required parameter "chain" was null or undefined when calling getPools().'
901
+ );
593
902
  }
594
903
 
595
-
596
- // verify required parameter 'tokenAddress' is not null or undefined
597
- if (tokenAddress === null || tokenAddress === undefined) {
598
- throw new RequiredError("TokenApi", "getPools", "tokenAddress");
904
+ if (requestParameters['tokenAddress'] == null) {
905
+ throw new runtime.RequiredError(
906
+ 'tokenAddress',
907
+ 'Required parameter "tokenAddress" was null or undefined when calling getPools().'
908
+ );
599
909
  }
600
910
 
911
+ const queryParameters: any = {};
601
912
 
602
- // Path Params
603
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/pools'
604
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
605
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
913
+ const headerParameters: runtime.HTTPHeaders = {};
606
914
 
607
- // Make Request Context
608
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
609
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
610
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
611
- requestContext.setHeaderParam("x-req-id", randomId.toString())
915
+ if (this.configuration && this.configuration.accessToken) {
916
+ const token = this.configuration.accessToken;
917
+ const tokenString = await token("bearer", []);
612
918
 
919
+ if (tokenString) {
920
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
921
+ }
922
+ }
613
923
 
924
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/pools`;
925
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
926
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
614
927
 
615
- let authMethod: SecurityAuthentication | undefined;
616
- // Apply auth methods
617
- authMethod = _config.authMethods["bearer"]
618
- if (authMethod?.applySecurityAuthentication) {
619
- await authMethod?.applySecurityAuthentication(requestContext);
620
- }
928
+ const response = await this.request({
929
+ path: urlPath,
930
+ method: 'GET',
931
+ headers: headerParameters,
932
+ query: queryParameters,
933
+ }, initOverrides);
621
934
 
622
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
623
- if (defaultAuth?.applySecurityAuthentication) {
624
- await defaultAuth?.applySecurityAuthentication(requestContext);
625
- }
935
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(DexPoolDTOFromJSON));
936
+ }
626
937
 
627
- return requestContext;
938
+ /**
939
+ * CONTROLLER.TOKEN.GET_POOLS.DESCRIPTION
940
+ * CONTROLLER.TOKEN.GET_POOLS.SUMMARY
941
+ */
942
+ async getPools(requestParameters: GetPoolsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<DexPoolDTO>> {
943
+ const response = await this.getPoolsRaw(requestParameters, initOverrides);
944
+ return await response.value();
628
945
  }
629
946
 
630
947
  /**
631
948
  * CONTROLLER.TOKEN.GET_PRICE_BY_TIME.DESCRIPTION
632
949
  * CONTROLLER.TOKEN.GET_PRICE_BY_TIME.SUMMARY
633
- * @param chain GLOBAL.CHAIN.DESCRIPTION
634
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
635
- * @param timestamp DTO.TOKEN.PRICE.QUERY.TIMESTAMP
636
950
  */
637
- public async getPriceByTime(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, timestamp: number, _options?: Configuration): Promise<RequestContext> {
638
- let _config = _options || this.configuration;
639
-
640
- // verify required parameter 'chain' is not null or undefined
641
- if (chain === null || chain === undefined) {
642
- throw new RequiredError("TokenApi", "getPriceByTime", "chain");
951
+ async getPriceByTimeRaw(requestParameters: GetPriceByTimeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenPriceDTO>> {
952
+ if (requestParameters['chain'] == null) {
953
+ throw new runtime.RequiredError(
954
+ 'chain',
955
+ 'Required parameter "chain" was null or undefined when calling getPriceByTime().'
956
+ );
643
957
  }
644
958
 
645
-
646
- // verify required parameter 'tokenAddress' is not null or undefined
647
- if (tokenAddress === null || tokenAddress === undefined) {
648
- throw new RequiredError("TokenApi", "getPriceByTime", "tokenAddress");
959
+ if (requestParameters['tokenAddress'] == null) {
960
+ throw new runtime.RequiredError(
961
+ 'tokenAddress',
962
+ 'Required parameter "tokenAddress" was null or undefined when calling getPriceByTime().'
963
+ );
649
964
  }
650
965
 
651
-
652
- // verify required parameter 'timestamp' is not null or undefined
653
- if (timestamp === null || timestamp === undefined) {
654
- throw new RequiredError("TokenApi", "getPriceByTime", "timestamp");
966
+ if (requestParameters['timestamp'] == null) {
967
+ throw new runtime.RequiredError(
968
+ 'timestamp',
969
+ 'Required parameter "timestamp" was null or undefined when calling getPriceByTime().'
970
+ );
655
971
  }
656
972
 
973
+ const queryParameters: any = {};
657
974
 
658
- // Path Params
659
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/price'
660
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
661
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
975
+ if (requestParameters['timestamp'] != null) {
976
+ queryParameters['timestamp'] = requestParameters['timestamp'];
977
+ }
662
978
 
663
- // Make Request Context
664
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
665
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
666
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
667
- requestContext.setHeaderParam("x-req-id", randomId.toString())
979
+ const headerParameters: runtime.HTTPHeaders = {};
668
980
 
981
+ if (this.configuration && this.configuration.accessToken) {
982
+ const token = this.configuration.accessToken;
983
+ const tokenString = await token("bearer", []);
669
984
 
670
- // Query Params
671
- if (timestamp !== undefined) {
672
- requestContext.setQueryParam("timestamp", ObjectSerializer.serialize(timestamp, "number", ""));
985
+ if (tokenString) {
986
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
987
+ }
673
988
  }
674
989
 
990
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/price`;
991
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
992
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
675
993
 
676
- let authMethod: SecurityAuthentication | undefined;
677
- // Apply auth methods
678
- authMethod = _config.authMethods["bearer"]
679
- if (authMethod?.applySecurityAuthentication) {
680
- await authMethod?.applySecurityAuthentication(requestContext);
681
- }
994
+ const response = await this.request({
995
+ path: urlPath,
996
+ method: 'GET',
997
+ headers: headerParameters,
998
+ query: queryParameters,
999
+ }, initOverrides);
682
1000
 
683
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
684
- if (defaultAuth?.applySecurityAuthentication) {
685
- await defaultAuth?.applySecurityAuthentication(requestContext);
686
- }
1001
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenPriceDTOFromJSON(jsonValue));
1002
+ }
687
1003
 
688
- return requestContext;
1004
+ /**
1005
+ * CONTROLLER.TOKEN.GET_PRICE_BY_TIME.DESCRIPTION
1006
+ * CONTROLLER.TOKEN.GET_PRICE_BY_TIME.SUMMARY
1007
+ */
1008
+ async getPriceByTime(requestParameters: GetPriceByTimeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenPriceDTO> {
1009
+ const response = await this.getPriceByTimeRaw(requestParameters, initOverrides);
1010
+ return await response.value();
689
1011
  }
690
1012
 
691
1013
  /**
692
1014
  * CONTROLLER.TOKEN.GET_PRICES.DESCRIPTION
693
1015
  * CONTROLLER.TOKEN.GET_PRICES.SUMMARY
694
- * @param chain GLOBAL.CHAIN.DESCRIPTION
695
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
696
- * @param cursor DTO.PAGE.CURSOR.DESCRIPTION
697
- * @param limit DTO.PAGE.LIMIT
698
- * @param direction DTO.PAGE.DIRECTION
699
1016
  */
700
- public async getPrices(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, cursor?: string, limit?: number, direction?: 'next' | 'prev', _options?: Configuration): Promise<RequestContext> {
701
- let _config = _options || this.configuration;
702
-
703
- // verify required parameter 'chain' is not null or undefined
704
- if (chain === null || chain === undefined) {
705
- throw new RequiredError("TokenApi", "getPrices", "chain");
1017
+ async getPricesRaw(requestParameters: GetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenPricePage>> {
1018
+ if (requestParameters['chain'] == null) {
1019
+ throw new runtime.RequiredError(
1020
+ 'chain',
1021
+ 'Required parameter "chain" was null or undefined when calling getPrices().'
1022
+ );
706
1023
  }
707
1024
 
708
-
709
- // verify required parameter 'tokenAddress' is not null or undefined
710
- if (tokenAddress === null || tokenAddress === undefined) {
711
- throw new RequiredError("TokenApi", "getPrices", "tokenAddress");
1025
+ if (requestParameters['tokenAddress'] == null) {
1026
+ throw new runtime.RequiredError(
1027
+ 'tokenAddress',
1028
+ 'Required parameter "tokenAddress" was null or undefined when calling getPrices().'
1029
+ );
712
1030
  }
713
1031
 
1032
+ const queryParameters: any = {};
714
1033
 
715
-
716
-
717
-
718
- // Path Params
719
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/prices'
720
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
721
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
722
-
723
- // Make Request Context
724
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
725
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
726
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
727
- requestContext.setHeaderParam("x-req-id", randomId.toString())
728
-
729
-
730
- // Query Params
731
- if (cursor !== undefined) {
732
- requestContext.setQueryParam("cursor", ObjectSerializer.serialize(cursor, "string", ""));
1034
+ if (requestParameters['cursor'] != null) {
1035
+ queryParameters['cursor'] = requestParameters['cursor'];
733
1036
  }
734
1037
 
735
- // Query Params
736
- if (limit !== undefined) {
737
- requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
1038
+ if (requestParameters['limit'] != null) {
1039
+ queryParameters['limit'] = requestParameters['limit'];
738
1040
  }
739
1041
 
740
- // Query Params
741
- if (direction !== undefined) {
742
- requestContext.setQueryParam("direction", ObjectSerializer.serialize(direction, "'next' | 'prev'", ""));
1042
+ if (requestParameters['direction'] != null) {
1043
+ queryParameters['direction'] = requestParameters['direction'];
743
1044
  }
744
1045
 
1046
+ const headerParameters: runtime.HTTPHeaders = {};
745
1047
 
746
- let authMethod: SecurityAuthentication | undefined;
747
- // Apply auth methods
748
- authMethod = _config.authMethods["bearer"]
749
- if (authMethod?.applySecurityAuthentication) {
750
- await authMethod?.applySecurityAuthentication(requestContext);
751
- }
1048
+ if (this.configuration && this.configuration.accessToken) {
1049
+ const token = this.configuration.accessToken;
1050
+ const tokenString = await token("bearer", []);
752
1051
 
753
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
754
- if (defaultAuth?.applySecurityAuthentication) {
755
- await defaultAuth?.applySecurityAuthentication(requestContext);
1052
+ if (tokenString) {
1053
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1054
+ }
756
1055
  }
757
1056
 
758
- return requestContext;
1057
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/prices`;
1058
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
1059
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
1060
+
1061
+ const response = await this.request({
1062
+ path: urlPath,
1063
+ method: 'GET',
1064
+ headers: headerParameters,
1065
+ query: queryParameters,
1066
+ }, initOverrides);
1067
+
1068
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenPricePageFromJSON(jsonValue));
1069
+ }
1070
+
1071
+ /**
1072
+ * CONTROLLER.TOKEN.GET_PRICES.DESCRIPTION
1073
+ * CONTROLLER.TOKEN.GET_PRICES.SUMMARY
1074
+ */
1075
+ async getPrices(requestParameters: GetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenPricePage> {
1076
+ const response = await this.getPricesRaw(requestParameters, initOverrides);
1077
+ return await response.value();
759
1078
  }
760
1079
 
761
1080
  /**
762
1081
  * CONTROLLER.TOKEN.GET_SECURITY.DESCRIPTION
763
1082
  * CONTROLLER.TOKEN.GET_SECURITY.SUMMARY
764
- * @param chain GLOBAL.CHAIN.DESCRIPTION
765
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
766
1083
  */
767
- public async getSecurity(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, _options?: Configuration): Promise<RequestContext> {
768
- let _config = _options || this.configuration;
769
-
770
- // verify required parameter 'chain' is not null or undefined
771
- if (chain === null || chain === undefined) {
772
- throw new RequiredError("TokenApi", "getSecurity", "chain");
1084
+ async getSecurityRaw(requestParameters: GetSecurityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
1085
+ if (requestParameters['chain'] == null) {
1086
+ throw new runtime.RequiredError(
1087
+ 'chain',
1088
+ 'Required parameter "chain" was null or undefined when calling getSecurity().'
1089
+ );
773
1090
  }
774
1091
 
775
-
776
- // verify required parameter 'tokenAddress' is not null or undefined
777
- if (tokenAddress === null || tokenAddress === undefined) {
778
- throw new RequiredError("TokenApi", "getSecurity", "tokenAddress");
1092
+ if (requestParameters['tokenAddress'] == null) {
1093
+ throw new runtime.RequiredError(
1094
+ 'tokenAddress',
1095
+ 'Required parameter "tokenAddress" was null or undefined when calling getSecurity().'
1096
+ );
779
1097
  }
780
1098
 
1099
+ const queryParameters: any = {};
781
1100
 
782
- // Path Params
783
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/security'
784
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
785
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
786
-
787
- // Make Request Context
788
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
789
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
790
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
791
- requestContext.setHeaderParam("x-req-id", randomId.toString())
1101
+ const headerParameters: runtime.HTTPHeaders = {};
792
1102
 
1103
+ if (this.configuration && this.configuration.accessToken) {
1104
+ const token = this.configuration.accessToken;
1105
+ const tokenString = await token("bearer", []);
793
1106
 
794
-
795
- let authMethod: SecurityAuthentication | undefined;
796
- // Apply auth methods
797
- authMethod = _config.authMethods["bearer"]
798
- if (authMethod?.applySecurityAuthentication) {
799
- await authMethod?.applySecurityAuthentication(requestContext);
1107
+ if (tokenString) {
1108
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1109
+ }
800
1110
  }
801
1111
 
802
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
803
- if (defaultAuth?.applySecurityAuthentication) {
804
- await defaultAuth?.applySecurityAuthentication(requestContext);
805
- }
1112
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/security`;
1113
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
1114
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
806
1115
 
807
- return requestContext;
1116
+ const response = await this.request({
1117
+ path: urlPath,
1118
+ method: 'GET',
1119
+ headers: headerParameters,
1120
+ query: queryParameters,
1121
+ }, initOverrides);
1122
+
1123
+ return new runtime.JSONApiResponse<any>(response);
808
1124
  }
809
1125
 
810
1126
  /**
811
- * CONTROLLER.TOKEN.GET_STATS.DESCRIPTION
812
- * CONTROLLER.TOKEN.GET_STATS.SUMMARY
813
- * @param chain GLOBAL.CHAIN.DESCRIPTION
814
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
1127
+ * CONTROLLER.TOKEN.GET_SECURITY.DESCRIPTION
1128
+ * CONTROLLER.TOKEN.GET_SECURITY.SUMMARY
815
1129
  */
816
- public async getStats(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, _options?: Configuration): Promise<RequestContext> {
817
- let _config = _options || this.configuration;
818
-
819
- // verify required parameter 'chain' is not null or undefined
820
- if (chain === null || chain === undefined) {
821
- throw new RequiredError("TokenApi", "getStats", "chain");
822
- }
823
-
824
-
825
- // verify required parameter 'tokenAddress' is not null or undefined
826
- if (tokenAddress === null || tokenAddress === undefined) {
827
- throw new RequiredError("TokenApi", "getStats", "tokenAddress");
828
- }
829
-
830
-
831
- // Path Params
832
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/stats'
833
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
834
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
835
-
836
- // Make Request Context
837
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
838
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
839
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
840
- requestContext.setHeaderParam("x-req-id", randomId.toString())
841
-
842
-
843
-
844
- let authMethod: SecurityAuthentication | undefined;
845
- // Apply auth methods
846
- authMethod = _config.authMethods["bearer"]
847
- if (authMethod?.applySecurityAuthentication) {
848
- await authMethod?.applySecurityAuthentication(requestContext);
849
- }
850
-
851
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
852
- if (defaultAuth?.applySecurityAuthentication) {
853
- await defaultAuth?.applySecurityAuthentication(requestContext);
854
- }
855
-
856
- return requestContext;
1130
+ async getSecurity(requestParameters: GetSecurityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
1131
+ const response = await this.getSecurityRaw(requestParameters, initOverrides);
1132
+ return await response.value();
857
1133
  }
858
1134
 
859
1135
  /**
860
- * CONTROLLER.TOKEN.GET_STATS_MULTI.DESCRIPTION
861
- * CONTROLLER.TOKEN.GET_STATS_MULTI.SUMMARY
862
- * @param chain GLOBAL.CHAIN.DESCRIPTION
863
- * @param tokenAddresses GLOBAL.TOKENADDRESSES.DESCRIPTION
1136
+ * CONTROLLER.TOKEN.GET_STATS.DESCRIPTION
1137
+ * CONTROLLER.TOKEN.GET_STATS.SUMMARY
864
1138
  */
865
- public async getStatsMulti(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddresses: string, _options?: Configuration): Promise<RequestContext> {
866
- let _config = _options || this.configuration;
867
-
868
- // verify required parameter 'chain' is not null or undefined
869
- if (chain === null || chain === undefined) {
870
- throw new RequiredError("TokenApi", "getStatsMulti", "chain");
1139
+ async getStatsRaw(requestParameters: GetStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenStat>> {
1140
+ if (requestParameters['chain'] == null) {
1141
+ throw new runtime.RequiredError(
1142
+ 'chain',
1143
+ 'Required parameter "chain" was null or undefined when calling getStats().'
1144
+ );
871
1145
  }
872
1146
 
873
-
874
- // verify required parameter 'tokenAddresses' is not null or undefined
875
- if (tokenAddresses === null || tokenAddresses === undefined) {
876
- throw new RequiredError("TokenApi", "getStatsMulti", "tokenAddresses");
1147
+ if (requestParameters['tokenAddress'] == null) {
1148
+ throw new runtime.RequiredError(
1149
+ 'tokenAddress',
1150
+ 'Required parameter "tokenAddress" was null or undefined when calling getStats().'
1151
+ );
877
1152
  }
878
1153
 
1154
+ const queryParameters: any = {};
879
1155
 
880
- // Path Params
881
- const localVarPath = '/v1/token/{chain}/stats/multi'
882
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
1156
+ const headerParameters: runtime.HTTPHeaders = {};
883
1157
 
884
- // Make Request Context
885
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
886
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
887
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
888
- requestContext.setHeaderParam("x-req-id", randomId.toString())
1158
+ if (this.configuration && this.configuration.accessToken) {
1159
+ const token = this.configuration.accessToken;
1160
+ const tokenString = await token("bearer", []);
889
1161
 
890
-
891
- // Query Params
892
- if (tokenAddresses !== undefined) {
893
- requestContext.setQueryParam("tokenAddresses", ObjectSerializer.serialize(tokenAddresses, "string", ""));
1162
+ if (tokenString) {
1163
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1164
+ }
894
1165
  }
895
1166
 
1167
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/stats`;
1168
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
1169
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
896
1170
 
897
- let authMethod: SecurityAuthentication | undefined;
898
- // Apply auth methods
899
- authMethod = _config.authMethods["bearer"]
900
- if (authMethod?.applySecurityAuthentication) {
901
- await authMethod?.applySecurityAuthentication(requestContext);
902
- }
903
-
904
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
905
- if (defaultAuth?.applySecurityAuthentication) {
906
- await defaultAuth?.applySecurityAuthentication(requestContext);
907
- }
1171
+ const response = await this.request({
1172
+ path: urlPath,
1173
+ method: 'GET',
1174
+ headers: headerParameters,
1175
+ query: queryParameters,
1176
+ }, initOverrides);
908
1177
 
909
- return requestContext;
1178
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenStatFromJSON(jsonValue));
910
1179
  }
911
1180
 
912
1181
  /**
913
- * CONTROLLER.TOKEN.GET.DESCRIPTION
914
- * CONTROLLER.TOKEN.GET.SUMMARY
915
- * @param chain GLOBAL.CHAIN.DESCRIPTION
916
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
1182
+ * CONTROLLER.TOKEN.GET_STATS.DESCRIPTION
1183
+ * CONTROLLER.TOKEN.GET_STATS.SUMMARY
917
1184
  */
918
- public async getToken(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, _options?: Configuration): Promise<RequestContext> {
919
- let _config = _options || this.configuration;
920
-
921
- // verify required parameter 'chain' is not null or undefined
922
- if (chain === null || chain === undefined) {
923
- throw new RequiredError("TokenApi", "getToken", "chain");
924
- }
925
-
926
-
927
- // verify required parameter 'tokenAddress' is not null or undefined
928
- if (tokenAddress === null || tokenAddress === undefined) {
929
- throw new RequiredError("TokenApi", "getToken", "tokenAddress");
930
- }
931
-
932
-
933
- // Path Params
934
- const localVarPath = '/v1/token/{chain}/{tokenAddress}'
935
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
936
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
937
-
938
- // Make Request Context
939
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
940
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
941
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
942
- requestContext.setHeaderParam("x-req-id", randomId.toString())
943
-
944
-
945
-
946
- let authMethod: SecurityAuthentication | undefined;
947
- // Apply auth methods
948
- authMethod = _config.authMethods["bearer"]
949
- if (authMethod?.applySecurityAuthentication) {
950
- await authMethod?.applySecurityAuthentication(requestContext);
951
- }
952
-
953
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
954
- if (defaultAuth?.applySecurityAuthentication) {
955
- await defaultAuth?.applySecurityAuthentication(requestContext);
956
- }
957
-
958
- return requestContext;
1185
+ async getStats(requestParameters: GetStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenStat> {
1186
+ const response = await this.getStatsRaw(requestParameters, initOverrides);
1187
+ return await response.value();
959
1188
  }
960
1189
 
961
1190
  /**
962
- * CONTROLLER.TOKEN.GET_TOKEN_LIST.DESCRIPTION
963
- * CONTROLLER.TOKEN.GET_TOKEN_LIST.SUMMARY
964
- * @param chain GLOBAL.CHAIN.DESCRIPTION
965
- * @param cursor DTO.PAGE.CURSOR.DESCRIPTION
966
- * @param limit DTO.PAGE.LIMIT
967
- * @param direction DTO.PAGE.DIRECTION
968
- * @param sort DTO.TOKEN.SEARCH.SORT_DIRECTION
969
- * @param sortBy DTO.TOKEN.LIST.QUERY.SORT_BY
970
- * @param minH24VolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_H24_VOLUME_IN_USD
971
- * @param maxH24VolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_H24_VOLUME_IN_USD
972
- * @param minH24PriceChangeRatio DTO.TOKEN.LIST.QUERY.MIN_H24_PRICE_CHANGE_RATIO
973
- * @param maxH24PriceChangeRatio DTO.TOKEN.LIST.QUERY.MAX_H24_PRICE_CHANGE_RATIO
974
- * @param minH24Buys DTO.TOKEN.LIST.QUERY.MIN_H24_BUYS
975
- * @param maxH24Buys DTO.TOKEN.LIST.QUERY.MAX_H24_BUYS
976
- * @param minH24Sells DTO.TOKEN.LIST.QUERY.MIN_H24_SELLS
977
- * @param maxH24Sells DTO.TOKEN.LIST.QUERY.MAX_H24_SELLS
978
- * @param minH24Trades DTO.TOKEN.LIST.QUERY.MIN_H24_TRADES
979
- * @param maxH24Trades DTO.TOKEN.LIST.QUERY.MAX_H24_TRADES
980
- * @param minH24Buyers DTO.TOKEN.LIST.QUERY.MIN_H24_BUYERS
981
- * @param maxH24Buyers DTO.TOKEN.LIST.QUERY.MAX_H24_BUYERS
982
- * @param minH24Sellers DTO.TOKEN.LIST.QUERY.MIN_H24_SELLERS
983
- * @param maxH24Sellers DTO.TOKEN.LIST.QUERY.MAX_H24_SELLERS
984
- * @param minH24BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_H24_BUY_VOLUME_IN_USD
985
- * @param maxH24BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_H24_BUY_VOLUME_IN_USD
986
- * @param minH24SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_H24_SELL_VOLUME_IN_USD
987
- * @param maxH24SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_H24_SELL_VOLUME_IN_USD
988
- * @param minH4VolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_H4_VOLUME_IN_USD
989
- * @param maxH4VolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_H4_VOLUME_IN_USD
990
- * @param minH4PriceChangeRatio DTO.TOKEN.LIST.QUERY.MIN_H4_PRICE_CHANGE_RATIO
991
- * @param maxH4PriceChangeRatio DTO.TOKEN.LIST.QUERY.MAX_H4_PRICE_CHANGE_RATIO
992
- * @param minH4Buys DTO.TOKEN.LIST.QUERY.MIN_H4_BUYS
993
- * @param maxH4Buys DTO.TOKEN.LIST.QUERY.MAX_H4_BUYS
994
- * @param minH4Sells DTO.TOKEN.LIST.QUERY.MIN_H4_SELLS
995
- * @param maxH4Sells DTO.TOKEN.LIST.QUERY.MAX_H4_SELLS
996
- * @param minH4Trades DTO.TOKEN.LIST.QUERY.MIN_H4_TRADES
997
- * @param maxH4Trades DTO.TOKEN.LIST.QUERY.MAX_H4_TRADES
998
- * @param minH4Buyers DTO.TOKEN.LIST.QUERY.MIN_H4_BUYERS
999
- * @param maxH4Buyers DTO.TOKEN.LIST.QUERY.MAX_H4_BUYERS
1000
- * @param minH4Sellers DTO.TOKEN.LIST.QUERY.MIN_H4_SELLERS
1001
- * @param maxH4Sellers DTO.TOKEN.LIST.QUERY.MAX_H4_SELLERS
1002
- * @param minH4BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_H4_BUY_VOLUME_IN_USD
1003
- * @param maxH4BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_H4_BUY_VOLUME_IN_USD
1004
- * @param minH4SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_H4_SELL_VOLUME_IN_USD
1005
- * @param maxH4SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_H4_SELL_VOLUME_IN_USD
1006
- * @param minH1VolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_H1_VOLUME_IN_USD
1007
- * @param maxH1VolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_H1_VOLUME_IN_USD
1008
- * @param minH1PriceChangeRatio DTO.TOKEN.LIST.QUERY.MIN_H1_PRICE_CHANGE_RATIO
1009
- * @param maxH1PriceChangeRatio DTO.TOKEN.LIST.QUERY.MAX_H1_PRICE_CHANGE_RATIO
1010
- * @param minH1Buys DTO.TOKEN.LIST.QUERY.MIN_H1_BUYS
1011
- * @param maxH1Buys DTO.TOKEN.LIST.QUERY.MAX_H1_BUYS
1012
- * @param minH1Sells DTO.TOKEN.LIST.QUERY.MIN_H1_SELLS
1013
- * @param maxH1Sells DTO.TOKEN.LIST.QUERY.MAX_H1_SELLS
1014
- * @param minH1Trades DTO.TOKEN.LIST.QUERY.MIN_H1_TRADES
1015
- * @param maxH1Trades DTO.TOKEN.LIST.QUERY.MAX_H1_TRADES
1016
- * @param minH1Buyers DTO.TOKEN.LIST.QUERY.MIN_H1_BUYERS
1017
- * @param maxH1Buyers DTO.TOKEN.LIST.QUERY.MAX_H1_BUYERS
1018
- * @param minH1Sellers DTO.TOKEN.LIST.QUERY.MIN_H1_SELLERS
1019
- * @param maxH1Sellers DTO.TOKEN.LIST.QUERY.MAX_H1_SELLERS
1020
- * @param minH1BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_H1_BUY_VOLUME_IN_USD
1021
- * @param maxH1BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_H1_BUY_VOLUME_IN_USD
1022
- * @param minH1SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_H1_SELL_VOLUME_IN_USD
1023
- * @param maxH1SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_H1_SELL_VOLUME_IN_USD
1024
- * @param minM30VolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M30_VOLUME_IN_USD
1025
- * @param maxM30VolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M30_VOLUME_IN_USD
1026
- * @param minM30PriceChangeRatio DTO.TOKEN.LIST.QUERY.MIN_M30_PRICE_CHANGE_RATIO
1027
- * @param maxM30PriceChangeRatio DTO.TOKEN.LIST.QUERY.MAX_M30_PRICE_CHANGE_RATIO
1028
- * @param minM30Buys DTO.TOKEN.LIST.QUERY.MIN_M30_BUYS
1029
- * @param maxM30Buys DTO.TOKEN.LIST.QUERY.MAX_M30_BUYS
1030
- * @param minM30Sells DTO.TOKEN.LIST.QUERY.MIN_M30_SELLS
1031
- * @param maxM30Sells DTO.TOKEN.LIST.QUERY.MAX_M30_SELLS
1032
- * @param minM30Trades DTO.TOKEN.LIST.QUERY.MIN_M30_TRADES
1033
- * @param maxM30Trades DTO.TOKEN.LIST.QUERY.MAX_M30_TRADES
1034
- * @param minM30Buyers DTO.TOKEN.LIST.QUERY.MIN_M30_BUYERS
1035
- * @param maxM30Buyers DTO.TOKEN.LIST.QUERY.MAX_M30_BUYERS
1036
- * @param minM30Sellers DTO.TOKEN.LIST.QUERY.MIN_M30_SELLERS
1037
- * @param maxM30Sellers DTO.TOKEN.LIST.QUERY.MAX_M30_SELLERS
1038
- * @param minM30BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M30_BUY_VOLUME_IN_USD
1039
- * @param maxM30BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M30_BUY_VOLUME_IN_USD
1040
- * @param minM30SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M30_SELL_VOLUME_IN_USD
1041
- * @param maxM30SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M30_SELL_VOLUME_IN_USD
1042
- * @param minM15VolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M15_VOLUME_IN_USD
1043
- * @param maxM15VolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M15_VOLUME_IN_USD
1044
- * @param minM15PriceChangeRatio DTO.TOKEN.LIST.QUERY.MIN_M15_PRICE_CHANGE_RATIO
1045
- * @param maxM15PriceChangeRatio DTO.TOKEN.LIST.QUERY.MAX_M15_PRICE_CHANGE_RATIO
1046
- * @param minM15Buys DTO.TOKEN.LIST.QUERY.MIN_M15_BUYS
1047
- * @param maxM15Buys DTO.TOKEN.LIST.QUERY.MAX_M15_BUYS
1048
- * @param minM15Sells DTO.TOKEN.LIST.QUERY.MIN_M15_SELLS
1049
- * @param maxM15Sells DTO.TOKEN.LIST.QUERY.MAX_M15_SELLS
1050
- * @param minM15Trades DTO.TOKEN.LIST.QUERY.MIN_M15_TRADES
1051
- * @param maxM15Trades DTO.TOKEN.LIST.QUERY.MAX_M15_TRADES
1052
- * @param minM15Buyers DTO.TOKEN.LIST.QUERY.MIN_M15_BUYERS
1053
- * @param maxM15Buyers DTO.TOKEN.LIST.QUERY.MAX_M15_BUYERS
1054
- * @param minM15Sellers DTO.TOKEN.LIST.QUERY.MIN_M15_SELLERS
1055
- * @param maxM15Sellers DTO.TOKEN.LIST.QUERY.MAX_M15_SELLERS
1056
- * @param minM15BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M15_BUY_VOLUME_IN_USD
1057
- * @param maxM15BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M15_BUY_VOLUME_IN_USD
1058
- * @param minM15SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M15_SELL_VOLUME_IN_USD
1059
- * @param maxM15SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M15_SELL_VOLUME_IN_USD
1060
- * @param minM5VolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M5_VOLUME_IN_USD
1061
- * @param maxM5VolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M5_VOLUME_IN_USD
1062
- * @param minM5PriceChangeRatio DTO.TOKEN.LIST.QUERY.MIN_M5_PRICE_CHANGE_RATIO
1063
- * @param maxM5PriceChangeRatio DTO.TOKEN.LIST.QUERY.MAX_M5_PRICE_CHANGE_RATIO
1064
- * @param minM5Buys DTO.TOKEN.LIST.QUERY.MIN_M5_BUYS
1065
- * @param maxM5Buys DTO.TOKEN.LIST.QUERY.MAX_M5_BUYS
1066
- * @param minM5Sells DTO.TOKEN.LIST.QUERY.MIN_M5_SELLS
1067
- * @param maxM5Sells DTO.TOKEN.LIST.QUERY.MAX_M5_SELLS
1068
- * @param minM5Trades DTO.TOKEN.LIST.QUERY.MIN_M5_TRADES
1069
- * @param maxM5Trades DTO.TOKEN.LIST.QUERY.MAX_M5_TRADES
1070
- * @param minM5Buyers DTO.TOKEN.LIST.QUERY.MIN_M5_BUYERS
1071
- * @param maxM5Buyers DTO.TOKEN.LIST.QUERY.MAX_M5_BUYERS
1072
- * @param minM5Sellers DTO.TOKEN.LIST.QUERY.MIN_M5_SELLERS
1073
- * @param maxM5Sellers DTO.TOKEN.LIST.QUERY.MAX_M5_SELLERS
1074
- * @param minM5BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M5_BUY_VOLUME_IN_USD
1075
- * @param maxM5BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M5_BUY_VOLUME_IN_USD
1076
- * @param minM5SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M5_SELL_VOLUME_IN_USD
1077
- * @param maxM5SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M5_SELL_VOLUME_IN_USD
1078
- * @param minM1VolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M1_VOLUME_IN_USD
1079
- * @param maxM1VolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M1_VOLUME_IN_USD
1080
- * @param minM1PriceChangeRatio DTO.TOKEN.LIST.QUERY.MIN_M1_PRICE_CHANGE_RATIO
1081
- * @param maxM1PriceChangeRatio DTO.TOKEN.LIST.QUERY.MAX_M1_PRICE_CHANGE_RATIO
1082
- * @param minM1Buys DTO.TOKEN.LIST.QUERY.MIN_M1_BUYS
1083
- * @param maxM1Buys DTO.TOKEN.LIST.QUERY.MAX_M1_BUYS
1084
- * @param minM1Sells DTO.TOKEN.LIST.QUERY.MIN_M1_SELLS
1085
- * @param maxM1Sells DTO.TOKEN.LIST.QUERY.MAX_M1_SELLS
1086
- * @param minM1Trades DTO.TOKEN.LIST.QUERY.MIN_M1_TRADES
1087
- * @param maxM1Trades DTO.TOKEN.LIST.QUERY.MAX_M1_TRADES
1088
- * @param minM1Buyers DTO.TOKEN.LIST.QUERY.MIN_M1_BUYERS
1089
- * @param maxM1Buyers DTO.TOKEN.LIST.QUERY.MAX_M1_BUYERS
1090
- * @param minM1Sellers DTO.TOKEN.LIST.QUERY.MIN_M1_SELLERS
1091
- * @param maxM1Sellers DTO.TOKEN.LIST.QUERY.MAX_M1_SELLERS
1092
- * @param minM1BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M1_BUY_VOLUME_IN_USD
1093
- * @param maxM1BuyVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M1_BUY_VOLUME_IN_USD
1094
- * @param minM1SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MIN_M1_SELL_VOLUME_IN_USD
1095
- * @param maxM1SellVolumeInUsd DTO.TOKEN.LIST.QUERY.MAX_M1_SELL_VOLUME_IN_USD
1191
+ * CONTROLLER.TOKEN.GET_STATS_MULTI.DESCRIPTION
1192
+ * CONTROLLER.TOKEN.GET_STATS_MULTI.SUMMARY
1096
1193
  */
1097
- public async getTokenList(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', cursor?: string, limit?: number, direction?: 'next' | 'prev', sort?: 'asc' | 'desc', 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', minH24VolumeInUsd?: string, maxH24VolumeInUsd?: string, minH24PriceChangeRatio?: string, maxH24PriceChangeRatio?: string, minH24Buys?: string, maxH24Buys?: string, minH24Sells?: string, maxH24Sells?: string, minH24Trades?: string, maxH24Trades?: string, minH24Buyers?: string, maxH24Buyers?: string, minH24Sellers?: string, maxH24Sellers?: string, minH24BuyVolumeInUsd?: string, maxH24BuyVolumeInUsd?: string, minH24SellVolumeInUsd?: string, maxH24SellVolumeInUsd?: string, minH4VolumeInUsd?: string, maxH4VolumeInUsd?: string, minH4PriceChangeRatio?: string, maxH4PriceChangeRatio?: string, minH4Buys?: string, maxH4Buys?: string, minH4Sells?: string, maxH4Sells?: string, minH4Trades?: string, maxH4Trades?: string, minH4Buyers?: string, maxH4Buyers?: string, minH4Sellers?: string, maxH4Sellers?: string, minH4BuyVolumeInUsd?: string, maxH4BuyVolumeInUsd?: string, minH4SellVolumeInUsd?: string, maxH4SellVolumeInUsd?: string, minH1VolumeInUsd?: string, maxH1VolumeInUsd?: string, minH1PriceChangeRatio?: string, maxH1PriceChangeRatio?: string, minH1Buys?: string, maxH1Buys?: string, minH1Sells?: string, maxH1Sells?: string, minH1Trades?: string, maxH1Trades?: string, minH1Buyers?: string, maxH1Buyers?: string, minH1Sellers?: string, maxH1Sellers?: string, minH1BuyVolumeInUsd?: string, maxH1BuyVolumeInUsd?: string, minH1SellVolumeInUsd?: string, maxH1SellVolumeInUsd?: string, minM30VolumeInUsd?: string, maxM30VolumeInUsd?: string, minM30PriceChangeRatio?: string, maxM30PriceChangeRatio?: string, minM30Buys?: string, maxM30Buys?: string, minM30Sells?: string, maxM30Sells?: string, minM30Trades?: string, maxM30Trades?: string, minM30Buyers?: string, maxM30Buyers?: string, minM30Sellers?: string, maxM30Sellers?: string, minM30BuyVolumeInUsd?: string, maxM30BuyVolumeInUsd?: string, minM30SellVolumeInUsd?: string, maxM30SellVolumeInUsd?: string, minM15VolumeInUsd?: string, maxM15VolumeInUsd?: string, minM15PriceChangeRatio?: string, maxM15PriceChangeRatio?: string, minM15Buys?: string, maxM15Buys?: string, minM15Sells?: string, maxM15Sells?: string, minM15Trades?: string, maxM15Trades?: string, minM15Buyers?: string, maxM15Buyers?: string, minM15Sellers?: string, maxM15Sellers?: string, minM15BuyVolumeInUsd?: string, maxM15BuyVolumeInUsd?: string, minM15SellVolumeInUsd?: string, maxM15SellVolumeInUsd?: string, minM5VolumeInUsd?: string, maxM5VolumeInUsd?: string, minM5PriceChangeRatio?: string, maxM5PriceChangeRatio?: string, minM5Buys?: string, maxM5Buys?: string, minM5Sells?: string, maxM5Sells?: string, minM5Trades?: string, maxM5Trades?: string, minM5Buyers?: string, maxM5Buyers?: string, minM5Sellers?: string, maxM5Sellers?: string, minM5BuyVolumeInUsd?: string, maxM5BuyVolumeInUsd?: string, minM5SellVolumeInUsd?: string, maxM5SellVolumeInUsd?: string, minM1VolumeInUsd?: string, maxM1VolumeInUsd?: string, minM1PriceChangeRatio?: string, maxM1PriceChangeRatio?: string, minM1Buys?: string, maxM1Buys?: string, minM1Sells?: string, maxM1Sells?: string, minM1Trades?: string, maxM1Trades?: string, minM1Buyers?: string, maxM1Buyers?: string, minM1Sellers?: string, maxM1Sellers?: string, minM1BuyVolumeInUsd?: string, maxM1BuyVolumeInUsd?: string, minM1SellVolumeInUsd?: string, maxM1SellVolumeInUsd?: string, _options?: Configuration): Promise<RequestContext> {
1098
- let _config = _options || this.configuration;
1099
-
1100
- // verify required parameter 'chain' is not null or undefined
1101
- if (chain === null || chain === undefined) {
1102
- throw new RequiredError("TokenApi", "getTokenList", "chain");
1103
- }
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
-
1111
-
1112
-
1113
-
1114
-
1115
-
1116
-
1117
-
1118
-
1119
-
1120
-
1121
-
1122
-
1123
-
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
-
1135
-
1136
-
1137
-
1138
-
1139
-
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
-
1147
-
1148
-
1149
-
1150
-
1151
-
1152
-
1153
-
1154
-
1155
-
1156
-
1157
-
1158
-
1159
-
1160
-
1161
-
1162
-
1163
-
1164
-
1165
-
1166
-
1167
-
1168
-
1169
-
1170
-
1171
-
1172
-
1173
-
1174
-
1175
-
1176
-
1177
-
1178
-
1179
-
1180
-
1181
-
1182
-
1183
-
1184
-
1185
-
1186
-
1187
-
1188
-
1189
-
1190
-
1191
-
1192
-
1193
-
1194
-
1195
-
1196
-
1197
-
1198
-
1199
-
1200
-
1201
-
1202
-
1203
-
1204
-
1194
+ async getStatsMultiRaw(requestParameters: GetStatsMultiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{ [key: string]: TokenStat; }>> {
1195
+ if (requestParameters['chain'] == null) {
1196
+ throw new runtime.RequiredError(
1197
+ 'chain',
1198
+ 'Required parameter "chain" was null or undefined when calling getStatsMulti().'
1199
+ );
1200
+ }
1205
1201
 
1202
+ if (requestParameters['tokenAddresses'] == null) {
1203
+ throw new runtime.RequiredError(
1204
+ 'tokenAddresses',
1205
+ 'Required parameter "tokenAddresses" was null or undefined when calling getStatsMulti().'
1206
+ );
1207
+ }
1206
1208
 
1209
+ const queryParameters: any = {};
1207
1210
 
1211
+ if (requestParameters['tokenAddresses'] != null) {
1212
+ queryParameters['tokenAddresses'] = requestParameters['tokenAddresses'];
1213
+ }
1208
1214
 
1215
+ const headerParameters: runtime.HTTPHeaders = {};
1209
1216
 
1217
+ if (this.configuration && this.configuration.accessToken) {
1218
+ const token = this.configuration.accessToken;
1219
+ const tokenString = await token("bearer", []);
1210
1220
 
1221
+ if (tokenString) {
1222
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1223
+ }
1224
+ }
1211
1225
 
1226
+ let urlPath = `/v1/token/{chain}/stats/multi`;
1227
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
1212
1228
 
1229
+ const response = await this.request({
1230
+ path: urlPath,
1231
+ method: 'GET',
1232
+ headers: headerParameters,
1233
+ query: queryParameters,
1234
+ }, initOverrides);
1213
1235
 
1236
+ return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, TokenStatFromJSON));
1237
+ }
1214
1238
 
1239
+ /**
1240
+ * CONTROLLER.TOKEN.GET_STATS_MULTI.DESCRIPTION
1241
+ * CONTROLLER.TOKEN.GET_STATS_MULTI.SUMMARY
1242
+ */
1243
+ async getStatsMulti(requestParameters: GetStatsMultiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: TokenStat; }> {
1244
+ const response = await this.getStatsMultiRaw(requestParameters, initOverrides);
1245
+ return await response.value();
1246
+ }
1215
1247
 
1248
+ /**
1249
+ * CONTROLLER.TOKEN.GET.DESCRIPTION
1250
+ * CONTROLLER.TOKEN.GET.SUMMARY
1251
+ */
1252
+ async getTokenRaw(requestParameters: GetTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Token>> {
1253
+ if (requestParameters['chain'] == null) {
1254
+ throw new runtime.RequiredError(
1255
+ 'chain',
1256
+ 'Required parameter "chain" was null or undefined when calling getToken().'
1257
+ );
1258
+ }
1216
1259
 
1260
+ if (requestParameters['tokenAddress'] == null) {
1261
+ throw new runtime.RequiredError(
1262
+ 'tokenAddress',
1263
+ 'Required parameter "tokenAddress" was null or undefined when calling getToken().'
1264
+ );
1265
+ }
1217
1266
 
1267
+ const queryParameters: any = {};
1218
1268
 
1269
+ const headerParameters: runtime.HTTPHeaders = {};
1219
1270
 
1271
+ if (this.configuration && this.configuration.accessToken) {
1272
+ const token = this.configuration.accessToken;
1273
+ const tokenString = await token("bearer", []);
1220
1274
 
1275
+ if (tokenString) {
1276
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1277
+ }
1278
+ }
1221
1279
 
1280
+ let urlPath = `/v1/token/{chain}/{tokenAddress}`;
1281
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
1282
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
1222
1283
 
1284
+ const response = await this.request({
1285
+ path: urlPath,
1286
+ method: 'GET',
1287
+ headers: headerParameters,
1288
+ query: queryParameters,
1289
+ }, initOverrides);
1223
1290
 
1291
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenFromJSON(jsonValue));
1292
+ }
1224
1293
 
1294
+ /**
1295
+ * CONTROLLER.TOKEN.GET.DESCRIPTION
1296
+ * CONTROLLER.TOKEN.GET.SUMMARY
1297
+ */
1298
+ async getToken(requestParameters: GetTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Token> {
1299
+ const response = await this.getTokenRaw(requestParameters, initOverrides);
1300
+ return await response.value();
1301
+ }
1225
1302
 
1303
+ /**
1304
+ * CONTROLLER.TOKEN.GET_TOKENS.DESCRIPTION
1305
+ * CONTROLLER.TOKEN.GET_TOKENS.SUMMARY
1306
+ */
1307
+ async getTokensRaw(requestParameters: GetTokensRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Token>>> {
1308
+ if (requestParameters['chain'] == null) {
1309
+ throw new runtime.RequiredError(
1310
+ 'chain',
1311
+ 'Required parameter "chain" was null or undefined when calling getTokens().'
1312
+ );
1313
+ }
1226
1314
 
1315
+ if (requestParameters['tokenAddresses'] == null) {
1316
+ throw new runtime.RequiredError(
1317
+ 'tokenAddresses',
1318
+ 'Required parameter "tokenAddresses" was null or undefined when calling getTokens().'
1319
+ );
1320
+ }
1227
1321
 
1322
+ const queryParameters: any = {};
1228
1323
 
1324
+ if (requestParameters['tokenAddresses'] != null) {
1325
+ queryParameters['tokenAddresses'] = requestParameters['tokenAddresses'];
1326
+ }
1229
1327
 
1328
+ if (requestParameters['sortBy'] != null) {
1329
+ queryParameters['sortBy'] = requestParameters['sortBy'];
1330
+ }
1230
1331
 
1332
+ if (requestParameters['sortDirection'] != null) {
1333
+ queryParameters['sortDirection'] = requestParameters['sortDirection'];
1334
+ }
1231
1335
 
1336
+ if (requestParameters['filterBy'] != null) {
1337
+ queryParameters['filterBy'] = requestParameters['filterBy'];
1338
+ }
1232
1339
 
1340
+ const headerParameters: runtime.HTTPHeaders = {};
1233
1341
 
1342
+ if (this.configuration && this.configuration.accessToken) {
1343
+ const token = this.configuration.accessToken;
1344
+ const tokenString = await token("bearer", []);
1234
1345
 
1346
+ if (tokenString) {
1347
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1348
+ }
1349
+ }
1235
1350
 
1351
+ let urlPath = `/v1/token/{chain}/multi`;
1352
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
1236
1353
 
1237
- // Path Params
1238
- const localVarPath = '/v1/token/{chain}/list'
1239
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
1354
+ const response = await this.request({
1355
+ path: urlPath,
1356
+ method: 'GET',
1357
+ headers: headerParameters,
1358
+ query: queryParameters,
1359
+ }, initOverrides);
1240
1360
 
1241
- // Make Request Context
1242
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
1243
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
1244
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
1245
- requestContext.setHeaderParam("x-req-id", randomId.toString())
1361
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TokenFromJSON));
1362
+ }
1246
1363
 
1364
+ /**
1365
+ * CONTROLLER.TOKEN.GET_TOKENS.DESCRIPTION
1366
+ * CONTROLLER.TOKEN.GET_TOKENS.SUMMARY
1367
+ */
1368
+ async getTokens(requestParameters: GetTokensRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Token>> {
1369
+ const response = await this.getTokensRaw(requestParameters, initOverrides);
1370
+ return await response.value();
1371
+ }
1247
1372
 
1248
- // Query Params
1249
- if (cursor !== undefined) {
1250
- requestContext.setQueryParam("cursor", ObjectSerializer.serialize(cursor, "string", ""));
1373
+ /**
1374
+ * CONTROLLER.TOKEN.GET_TOP_HOLDERS.DESCRIPTION
1375
+ * CONTROLLER.TOKEN.GET_TOP_HOLDERS.SUMMARY
1376
+ */
1377
+ async getTopHoldersRaw(requestParameters: GetTopHoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenHolderPage>> {
1378
+ if (requestParameters['chain'] == null) {
1379
+ throw new runtime.RequiredError(
1380
+ 'chain',
1381
+ 'Required parameter "chain" was null or undefined when calling getTopHolders().'
1382
+ );
1251
1383
  }
1252
1384
 
1253
- // Query Params
1254
- if (limit !== undefined) {
1255
- requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
1385
+ if (requestParameters['tokenAddress'] == null) {
1386
+ throw new runtime.RequiredError(
1387
+ 'tokenAddress',
1388
+ 'Required parameter "tokenAddress" was null or undefined when calling getTopHolders().'
1389
+ );
1256
1390
  }
1257
1391
 
1258
- // Query Params
1259
- if (direction !== undefined) {
1260
- requestContext.setQueryParam("direction", ObjectSerializer.serialize(direction, "'next' | 'prev'", ""));
1261
- }
1392
+ const queryParameters: any = {};
1262
1393
 
1263
- // Query Params
1264
- if (sort !== undefined) {
1265
- requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "'asc' | 'desc'", ""));
1266
- }
1394
+ const headerParameters: runtime.HTTPHeaders = {};
1267
1395
 
1268
- // Query Params
1269
- if (sortBy !== undefined) {
1270
- requestContext.setQueryParam("sortBy", 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'", ""));
1271
- }
1396
+ if (this.configuration && this.configuration.accessToken) {
1397
+ const token = this.configuration.accessToken;
1398
+ const tokenString = await token("bearer", []);
1272
1399
 
1273
- // Query Params
1274
- if (minH24VolumeInUsd !== undefined) {
1275
- requestContext.setQueryParam("min_h24_volume_in_usd", ObjectSerializer.serialize(minH24VolumeInUsd, "string", ""));
1400
+ if (tokenString) {
1401
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1402
+ }
1276
1403
  }
1277
1404
 
1278
- // Query Params
1279
- if (maxH24VolumeInUsd !== undefined) {
1280
- requestContext.setQueryParam("max_h24_volume_in_usd", ObjectSerializer.serialize(maxH24VolumeInUsd, "string", ""));
1281
- }
1405
+ let urlPath = `/v1/token/{chain}/{tokenAddress}/topHolders`;
1406
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
1407
+ urlPath = urlPath.replace(`{${"tokenAddress"}}`, encodeURIComponent(String(requestParameters['tokenAddress'])));
1282
1408
 
1283
- // Query Params
1284
- if (minH24PriceChangeRatio !== undefined) {
1285
- requestContext.setQueryParam("min_h24_price_change_ratio", ObjectSerializer.serialize(minH24PriceChangeRatio, "string", ""));
1286
- }
1409
+ const response = await this.request({
1410
+ path: urlPath,
1411
+ method: 'GET',
1412
+ headers: headerParameters,
1413
+ query: queryParameters,
1414
+ }, initOverrides);
1287
1415
 
1288
- // Query Params
1289
- if (maxH24PriceChangeRatio !== undefined) {
1290
- requestContext.setQueryParam("max_h24_price_change_ratio", ObjectSerializer.serialize(maxH24PriceChangeRatio, "string", ""));
1291
- }
1416
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenHolderPageFromJSON(jsonValue));
1417
+ }
1292
1418
 
1293
- // Query Params
1294
- if (minH24Buys !== undefined) {
1295
- requestContext.setQueryParam("min_h24_buys", ObjectSerializer.serialize(minH24Buys, "string", ""));
1296
- }
1419
+ /**
1420
+ * CONTROLLER.TOKEN.GET_TOP_HOLDERS.DESCRIPTION
1421
+ * CONTROLLER.TOKEN.GET_TOP_HOLDERS.SUMMARY
1422
+ */
1423
+ async getTopHolders(requestParameters: GetTopHoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenHolderPage> {
1424
+ const response = await this.getTopHoldersRaw(requestParameters, initOverrides);
1425
+ return await response.value();
1426
+ }
1297
1427
 
1298
- // Query Params
1299
- if (maxH24Buys !== undefined) {
1300
- requestContext.setQueryParam("max_h24_buys", ObjectSerializer.serialize(maxH24Buys, "string", ""));
1428
+ /**
1429
+ * CONTROLLER.TOKEN.GET_TOKEN_LIST.DESCRIPTION
1430
+ * CONTROLLER.TOKEN.GET_TOKEN_LIST.SUMMARY
1431
+ */
1432
+ async listTokenRaw(requestParameters: ListTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenListPage>> {
1433
+ if (requestParameters['chain'] == null) {
1434
+ throw new runtime.RequiredError(
1435
+ 'chain',
1436
+ 'Required parameter "chain" was null or undefined when calling listToken().'
1437
+ );
1301
1438
  }
1302
1439
 
1303
- // Query Params
1304
- if (minH24Sells !== undefined) {
1305
- requestContext.setQueryParam("min_h24_sells", ObjectSerializer.serialize(minH24Sells, "string", ""));
1306
- }
1440
+ const queryParameters: any = {};
1307
1441
 
1308
- // Query Params
1309
- if (maxH24Sells !== undefined) {
1310
- requestContext.setQueryParam("max_h24_sells", ObjectSerializer.serialize(maxH24Sells, "string", ""));
1442
+ if (requestParameters['cursor'] != null) {
1443
+ queryParameters['cursor'] = requestParameters['cursor'];
1311
1444
  }
1312
1445
 
1313
- // Query Params
1314
- if (minH24Trades !== undefined) {
1315
- requestContext.setQueryParam("min_h24_trades", ObjectSerializer.serialize(minH24Trades, "string", ""));
1446
+ if (requestParameters['limit'] != null) {
1447
+ queryParameters['limit'] = requestParameters['limit'];
1316
1448
  }
1317
1449
 
1318
- // Query Params
1319
- if (maxH24Trades !== undefined) {
1320
- requestContext.setQueryParam("max_h24_trades", ObjectSerializer.serialize(maxH24Trades, "string", ""));
1450
+ if (requestParameters['direction'] != null) {
1451
+ queryParameters['direction'] = requestParameters['direction'];
1321
1452
  }
1322
1453
 
1323
- // Query Params
1324
- if (minH24Buyers !== undefined) {
1325
- requestContext.setQueryParam("min_h24_buyers", ObjectSerializer.serialize(minH24Buyers, "string", ""));
1454
+ if (requestParameters['sort'] != null) {
1455
+ queryParameters['sort'] = requestParameters['sort'];
1326
1456
  }
1327
1457
 
1328
- // Query Params
1329
- if (maxH24Buyers !== undefined) {
1330
- requestContext.setQueryParam("max_h24_buyers", ObjectSerializer.serialize(maxH24Buyers, "string", ""));
1458
+ if (requestParameters['sortBy'] != null) {
1459
+ queryParameters['sortBy'] = requestParameters['sortBy'];
1331
1460
  }
1332
1461
 
1333
- // Query Params
1334
- if (minH24Sellers !== undefined) {
1335
- requestContext.setQueryParam("min_h24_sellers", ObjectSerializer.serialize(minH24Sellers, "string", ""));
1462
+ if (requestParameters['minH24VolumeInUsd'] != null) {
1463
+ queryParameters['min_h24_volume_in_usd'] = requestParameters['minH24VolumeInUsd'];
1336
1464
  }
1337
1465
 
1338
- // Query Params
1339
- if (maxH24Sellers !== undefined) {
1340
- requestContext.setQueryParam("max_h24_sellers", ObjectSerializer.serialize(maxH24Sellers, "string", ""));
1466
+ if (requestParameters['maxH24VolumeInUsd'] != null) {
1467
+ queryParameters['max_h24_volume_in_usd'] = requestParameters['maxH24VolumeInUsd'];
1341
1468
  }
1342
1469
 
1343
- // Query Params
1344
- if (minH24BuyVolumeInUsd !== undefined) {
1345
- requestContext.setQueryParam("min_h24_buy_volume_in_usd", ObjectSerializer.serialize(minH24BuyVolumeInUsd, "string", ""));
1470
+ if (requestParameters['minH24PriceChangeRatio'] != null) {
1471
+ queryParameters['min_h24_price_change_ratio'] = requestParameters['minH24PriceChangeRatio'];
1346
1472
  }
1347
1473
 
1348
- // Query Params
1349
- if (maxH24BuyVolumeInUsd !== undefined) {
1350
- requestContext.setQueryParam("max_h24_buy_volume_in_usd", ObjectSerializer.serialize(maxH24BuyVolumeInUsd, "string", ""));
1474
+ if (requestParameters['maxH24PriceChangeRatio'] != null) {
1475
+ queryParameters['max_h24_price_change_ratio'] = requestParameters['maxH24PriceChangeRatio'];
1351
1476
  }
1352
1477
 
1353
- // Query Params
1354
- if (minH24SellVolumeInUsd !== undefined) {
1355
- requestContext.setQueryParam("min_h24_sell_volume_in_usd", ObjectSerializer.serialize(minH24SellVolumeInUsd, "string", ""));
1478
+ if (requestParameters['minH24Buys'] != null) {
1479
+ queryParameters['min_h24_buys'] = requestParameters['minH24Buys'];
1356
1480
  }
1357
1481
 
1358
- // Query Params
1359
- if (maxH24SellVolumeInUsd !== undefined) {
1360
- requestContext.setQueryParam("max_h24_sell_volume_in_usd", ObjectSerializer.serialize(maxH24SellVolumeInUsd, "string", ""));
1482
+ if (requestParameters['maxH24Buys'] != null) {
1483
+ queryParameters['max_h24_buys'] = requestParameters['maxH24Buys'];
1361
1484
  }
1362
1485
 
1363
- // Query Params
1364
- if (minH4VolumeInUsd !== undefined) {
1365
- requestContext.setQueryParam("min_h4_volume_in_usd", ObjectSerializer.serialize(minH4VolumeInUsd, "string", ""));
1486
+ if (requestParameters['minH24Sells'] != null) {
1487
+ queryParameters['min_h24_sells'] = requestParameters['minH24Sells'];
1366
1488
  }
1367
1489
 
1368
- // Query Params
1369
- if (maxH4VolumeInUsd !== undefined) {
1370
- requestContext.setQueryParam("max_h4_volume_in_usd", ObjectSerializer.serialize(maxH4VolumeInUsd, "string", ""));
1490
+ if (requestParameters['maxH24Sells'] != null) {
1491
+ queryParameters['max_h24_sells'] = requestParameters['maxH24Sells'];
1371
1492
  }
1372
1493
 
1373
- // Query Params
1374
- if (minH4PriceChangeRatio !== undefined) {
1375
- requestContext.setQueryParam("min_h4_price_change_ratio", ObjectSerializer.serialize(minH4PriceChangeRatio, "string", ""));
1494
+ if (requestParameters['minH24Trades'] != null) {
1495
+ queryParameters['min_h24_trades'] = requestParameters['minH24Trades'];
1376
1496
  }
1377
1497
 
1378
- // Query Params
1379
- if (maxH4PriceChangeRatio !== undefined) {
1380
- requestContext.setQueryParam("max_h4_price_change_ratio", ObjectSerializer.serialize(maxH4PriceChangeRatio, "string", ""));
1498
+ if (requestParameters['maxH24Trades'] != null) {
1499
+ queryParameters['max_h24_trades'] = requestParameters['maxH24Trades'];
1381
1500
  }
1382
1501
 
1383
- // Query Params
1384
- if (minH4Buys !== undefined) {
1385
- requestContext.setQueryParam("min_h4_buys", ObjectSerializer.serialize(minH4Buys, "string", ""));
1502
+ if (requestParameters['minH24Buyers'] != null) {
1503
+ queryParameters['min_h24_buyers'] = requestParameters['minH24Buyers'];
1386
1504
  }
1387
1505
 
1388
- // Query Params
1389
- if (maxH4Buys !== undefined) {
1390
- requestContext.setQueryParam("max_h4_buys", ObjectSerializer.serialize(maxH4Buys, "string", ""));
1506
+ if (requestParameters['maxH24Buyers'] != null) {
1507
+ queryParameters['max_h24_buyers'] = requestParameters['maxH24Buyers'];
1391
1508
  }
1392
1509
 
1393
- // Query Params
1394
- if (minH4Sells !== undefined) {
1395
- requestContext.setQueryParam("min_h4_sells", ObjectSerializer.serialize(minH4Sells, "string", ""));
1510
+ if (requestParameters['minH24Sellers'] != null) {
1511
+ queryParameters['min_h24_sellers'] = requestParameters['minH24Sellers'];
1396
1512
  }
1397
1513
 
1398
- // Query Params
1399
- if (maxH4Sells !== undefined) {
1400
- requestContext.setQueryParam("max_h4_sells", ObjectSerializer.serialize(maxH4Sells, "string", ""));
1514
+ if (requestParameters['maxH24Sellers'] != null) {
1515
+ queryParameters['max_h24_sellers'] = requestParameters['maxH24Sellers'];
1401
1516
  }
1402
1517
 
1403
- // Query Params
1404
- if (minH4Trades !== undefined) {
1405
- requestContext.setQueryParam("min_h4_trades", ObjectSerializer.serialize(minH4Trades, "string", ""));
1518
+ if (requestParameters['minH24BuyVolumeInUsd'] != null) {
1519
+ queryParameters['min_h24_buy_volume_in_usd'] = requestParameters['minH24BuyVolumeInUsd'];
1406
1520
  }
1407
1521
 
1408
- // Query Params
1409
- if (maxH4Trades !== undefined) {
1410
- requestContext.setQueryParam("max_h4_trades", ObjectSerializer.serialize(maxH4Trades, "string", ""));
1522
+ if (requestParameters['maxH24BuyVolumeInUsd'] != null) {
1523
+ queryParameters['max_h24_buy_volume_in_usd'] = requestParameters['maxH24BuyVolumeInUsd'];
1411
1524
  }
1412
1525
 
1413
- // Query Params
1414
- if (minH4Buyers !== undefined) {
1415
- requestContext.setQueryParam("min_h4_buyers", ObjectSerializer.serialize(minH4Buyers, "string", ""));
1526
+ if (requestParameters['minH24SellVolumeInUsd'] != null) {
1527
+ queryParameters['min_h24_sell_volume_in_usd'] = requestParameters['minH24SellVolumeInUsd'];
1416
1528
  }
1417
1529
 
1418
- // Query Params
1419
- if (maxH4Buyers !== undefined) {
1420
- requestContext.setQueryParam("max_h4_buyers", ObjectSerializer.serialize(maxH4Buyers, "string", ""));
1530
+ if (requestParameters['maxH24SellVolumeInUsd'] != null) {
1531
+ queryParameters['max_h24_sell_volume_in_usd'] = requestParameters['maxH24SellVolumeInUsd'];
1421
1532
  }
1422
1533
 
1423
- // Query Params
1424
- if (minH4Sellers !== undefined) {
1425
- requestContext.setQueryParam("min_h4_sellers", ObjectSerializer.serialize(minH4Sellers, "string", ""));
1534
+ if (requestParameters['minH4VolumeInUsd'] != null) {
1535
+ queryParameters['min_h4_volume_in_usd'] = requestParameters['minH4VolumeInUsd'];
1426
1536
  }
1427
1537
 
1428
- // Query Params
1429
- if (maxH4Sellers !== undefined) {
1430
- requestContext.setQueryParam("max_h4_sellers", ObjectSerializer.serialize(maxH4Sellers, "string", ""));
1538
+ if (requestParameters['maxH4VolumeInUsd'] != null) {
1539
+ queryParameters['max_h4_volume_in_usd'] = requestParameters['maxH4VolumeInUsd'];
1431
1540
  }
1432
1541
 
1433
- // Query Params
1434
- if (minH4BuyVolumeInUsd !== undefined) {
1435
- requestContext.setQueryParam("min_h4_buy_volume_in_usd", ObjectSerializer.serialize(minH4BuyVolumeInUsd, "string", ""));
1542
+ if (requestParameters['minH4PriceChangeRatio'] != null) {
1543
+ queryParameters['min_h4_price_change_ratio'] = requestParameters['minH4PriceChangeRatio'];
1436
1544
  }
1437
1545
 
1438
- // Query Params
1439
- if (maxH4BuyVolumeInUsd !== undefined) {
1440
- requestContext.setQueryParam("max_h4_buy_volume_in_usd", ObjectSerializer.serialize(maxH4BuyVolumeInUsd, "string", ""));
1546
+ if (requestParameters['maxH4PriceChangeRatio'] != null) {
1547
+ queryParameters['max_h4_price_change_ratio'] = requestParameters['maxH4PriceChangeRatio'];
1441
1548
  }
1442
1549
 
1443
- // Query Params
1444
- if (minH4SellVolumeInUsd !== undefined) {
1445
- requestContext.setQueryParam("min_h4_sell_volume_in_usd", ObjectSerializer.serialize(minH4SellVolumeInUsd, "string", ""));
1550
+ if (requestParameters['minH4Buys'] != null) {
1551
+ queryParameters['min_h4_buys'] = requestParameters['minH4Buys'];
1446
1552
  }
1447
1553
 
1448
- // Query Params
1449
- if (maxH4SellVolumeInUsd !== undefined) {
1450
- requestContext.setQueryParam("max_h4_sell_volume_in_usd", ObjectSerializer.serialize(maxH4SellVolumeInUsd, "string", ""));
1554
+ if (requestParameters['maxH4Buys'] != null) {
1555
+ queryParameters['max_h4_buys'] = requestParameters['maxH4Buys'];
1451
1556
  }
1452
1557
 
1453
- // Query Params
1454
- if (minH1VolumeInUsd !== undefined) {
1455
- requestContext.setQueryParam("min_h1_volume_in_usd", ObjectSerializer.serialize(minH1VolumeInUsd, "string", ""));
1558
+ if (requestParameters['minH4Sells'] != null) {
1559
+ queryParameters['min_h4_sells'] = requestParameters['minH4Sells'];
1456
1560
  }
1457
1561
 
1458
- // Query Params
1459
- if (maxH1VolumeInUsd !== undefined) {
1460
- requestContext.setQueryParam("max_h1_volume_in_usd", ObjectSerializer.serialize(maxH1VolumeInUsd, "string", ""));
1562
+ if (requestParameters['maxH4Sells'] != null) {
1563
+ queryParameters['max_h4_sells'] = requestParameters['maxH4Sells'];
1461
1564
  }
1462
1565
 
1463
- // Query Params
1464
- if (minH1PriceChangeRatio !== undefined) {
1465
- requestContext.setQueryParam("min_h1_price_change_ratio", ObjectSerializer.serialize(minH1PriceChangeRatio, "string", ""));
1566
+ if (requestParameters['minH4Trades'] != null) {
1567
+ queryParameters['min_h4_trades'] = requestParameters['minH4Trades'];
1466
1568
  }
1467
1569
 
1468
- // Query Params
1469
- if (maxH1PriceChangeRatio !== undefined) {
1470
- requestContext.setQueryParam("max_h1_price_change_ratio", ObjectSerializer.serialize(maxH1PriceChangeRatio, "string", ""));
1570
+ if (requestParameters['maxH4Trades'] != null) {
1571
+ queryParameters['max_h4_trades'] = requestParameters['maxH4Trades'];
1471
1572
  }
1472
1573
 
1473
- // Query Params
1474
- if (minH1Buys !== undefined) {
1475
- requestContext.setQueryParam("min_h1_buys", ObjectSerializer.serialize(minH1Buys, "string", ""));
1574
+ if (requestParameters['minH4Buyers'] != null) {
1575
+ queryParameters['min_h4_buyers'] = requestParameters['minH4Buyers'];
1476
1576
  }
1477
1577
 
1478
- // Query Params
1479
- if (maxH1Buys !== undefined) {
1480
- requestContext.setQueryParam("max_h1_buys", ObjectSerializer.serialize(maxH1Buys, "string", ""));
1578
+ if (requestParameters['maxH4Buyers'] != null) {
1579
+ queryParameters['max_h4_buyers'] = requestParameters['maxH4Buyers'];
1481
1580
  }
1482
1581
 
1483
- // Query Params
1484
- if (minH1Sells !== undefined) {
1485
- requestContext.setQueryParam("min_h1_sells", ObjectSerializer.serialize(minH1Sells, "string", ""));
1582
+ if (requestParameters['minH4Sellers'] != null) {
1583
+ queryParameters['min_h4_sellers'] = requestParameters['minH4Sellers'];
1486
1584
  }
1487
1585
 
1488
- // Query Params
1489
- if (maxH1Sells !== undefined) {
1490
- requestContext.setQueryParam("max_h1_sells", ObjectSerializer.serialize(maxH1Sells, "string", ""));
1586
+ if (requestParameters['maxH4Sellers'] != null) {
1587
+ queryParameters['max_h4_sellers'] = requestParameters['maxH4Sellers'];
1491
1588
  }
1492
1589
 
1493
- // Query Params
1494
- if (minH1Trades !== undefined) {
1495
- requestContext.setQueryParam("min_h1_trades", ObjectSerializer.serialize(minH1Trades, "string", ""));
1590
+ if (requestParameters['minH4BuyVolumeInUsd'] != null) {
1591
+ queryParameters['min_h4_buy_volume_in_usd'] = requestParameters['minH4BuyVolumeInUsd'];
1496
1592
  }
1497
1593
 
1498
- // Query Params
1499
- if (maxH1Trades !== undefined) {
1500
- requestContext.setQueryParam("max_h1_trades", ObjectSerializer.serialize(maxH1Trades, "string", ""));
1594
+ if (requestParameters['maxH4BuyVolumeInUsd'] != null) {
1595
+ queryParameters['max_h4_buy_volume_in_usd'] = requestParameters['maxH4BuyVolumeInUsd'];
1501
1596
  }
1502
1597
 
1503
- // Query Params
1504
- if (minH1Buyers !== undefined) {
1505
- requestContext.setQueryParam("min_h1_buyers", ObjectSerializer.serialize(minH1Buyers, "string", ""));
1598
+ if (requestParameters['minH4SellVolumeInUsd'] != null) {
1599
+ queryParameters['min_h4_sell_volume_in_usd'] = requestParameters['minH4SellVolumeInUsd'];
1506
1600
  }
1507
1601
 
1508
- // Query Params
1509
- if (maxH1Buyers !== undefined) {
1510
- requestContext.setQueryParam("max_h1_buyers", ObjectSerializer.serialize(maxH1Buyers, "string", ""));
1602
+ if (requestParameters['maxH4SellVolumeInUsd'] != null) {
1603
+ queryParameters['max_h4_sell_volume_in_usd'] = requestParameters['maxH4SellVolumeInUsd'];
1511
1604
  }
1512
1605
 
1513
- // Query Params
1514
- if (minH1Sellers !== undefined) {
1515
- requestContext.setQueryParam("min_h1_sellers", ObjectSerializer.serialize(minH1Sellers, "string", ""));
1606
+ if (requestParameters['minH1VolumeInUsd'] != null) {
1607
+ queryParameters['min_h1_volume_in_usd'] = requestParameters['minH1VolumeInUsd'];
1516
1608
  }
1517
1609
 
1518
- // Query Params
1519
- if (maxH1Sellers !== undefined) {
1520
- requestContext.setQueryParam("max_h1_sellers", ObjectSerializer.serialize(maxH1Sellers, "string", ""));
1610
+ if (requestParameters['maxH1VolumeInUsd'] != null) {
1611
+ queryParameters['max_h1_volume_in_usd'] = requestParameters['maxH1VolumeInUsd'];
1521
1612
  }
1522
1613
 
1523
- // Query Params
1524
- if (minH1BuyVolumeInUsd !== undefined) {
1525
- requestContext.setQueryParam("min_h1_buy_volume_in_usd", ObjectSerializer.serialize(minH1BuyVolumeInUsd, "string", ""));
1614
+ if (requestParameters['minH1PriceChangeRatio'] != null) {
1615
+ queryParameters['min_h1_price_change_ratio'] = requestParameters['minH1PriceChangeRatio'];
1526
1616
  }
1527
1617
 
1528
- // Query Params
1529
- if (maxH1BuyVolumeInUsd !== undefined) {
1530
- requestContext.setQueryParam("max_h1_buy_volume_in_usd", ObjectSerializer.serialize(maxH1BuyVolumeInUsd, "string", ""));
1618
+ if (requestParameters['maxH1PriceChangeRatio'] != null) {
1619
+ queryParameters['max_h1_price_change_ratio'] = requestParameters['maxH1PriceChangeRatio'];
1531
1620
  }
1532
1621
 
1533
- // Query Params
1534
- if (minH1SellVolumeInUsd !== undefined) {
1535
- requestContext.setQueryParam("min_h1_sell_volume_in_usd", ObjectSerializer.serialize(minH1SellVolumeInUsd, "string", ""));
1622
+ if (requestParameters['minH1Buys'] != null) {
1623
+ queryParameters['min_h1_buys'] = requestParameters['minH1Buys'];
1536
1624
  }
1537
1625
 
1538
- // Query Params
1539
- if (maxH1SellVolumeInUsd !== undefined) {
1540
- requestContext.setQueryParam("max_h1_sell_volume_in_usd", ObjectSerializer.serialize(maxH1SellVolumeInUsd, "string", ""));
1626
+ if (requestParameters['maxH1Buys'] != null) {
1627
+ queryParameters['max_h1_buys'] = requestParameters['maxH1Buys'];
1541
1628
  }
1542
1629
 
1543
- // Query Params
1544
- if (minM30VolumeInUsd !== undefined) {
1545
- requestContext.setQueryParam("min_m30_volume_in_usd", ObjectSerializer.serialize(minM30VolumeInUsd, "string", ""));
1630
+ if (requestParameters['minH1Sells'] != null) {
1631
+ queryParameters['min_h1_sells'] = requestParameters['minH1Sells'];
1546
1632
  }
1547
1633
 
1548
- // Query Params
1549
- if (maxM30VolumeInUsd !== undefined) {
1550
- requestContext.setQueryParam("max_m30_volume_in_usd", ObjectSerializer.serialize(maxM30VolumeInUsd, "string", ""));
1634
+ if (requestParameters['maxH1Sells'] != null) {
1635
+ queryParameters['max_h1_sells'] = requestParameters['maxH1Sells'];
1551
1636
  }
1552
1637
 
1553
- // Query Params
1554
- if (minM30PriceChangeRatio !== undefined) {
1555
- requestContext.setQueryParam("min_m30_price_change_ratio", ObjectSerializer.serialize(minM30PriceChangeRatio, "string", ""));
1638
+ if (requestParameters['minH1Trades'] != null) {
1639
+ queryParameters['min_h1_trades'] = requestParameters['minH1Trades'];
1556
1640
  }
1557
1641
 
1558
- // Query Params
1559
- if (maxM30PriceChangeRatio !== undefined) {
1560
- requestContext.setQueryParam("max_m30_price_change_ratio", ObjectSerializer.serialize(maxM30PriceChangeRatio, "string", ""));
1642
+ if (requestParameters['maxH1Trades'] != null) {
1643
+ queryParameters['max_h1_trades'] = requestParameters['maxH1Trades'];
1561
1644
  }
1562
1645
 
1563
- // Query Params
1564
- if (minM30Buys !== undefined) {
1565
- requestContext.setQueryParam("min_m30_buys", ObjectSerializer.serialize(minM30Buys, "string", ""));
1646
+ if (requestParameters['minH1Buyers'] != null) {
1647
+ queryParameters['min_h1_buyers'] = requestParameters['minH1Buyers'];
1566
1648
  }
1567
1649
 
1568
- // Query Params
1569
- if (maxM30Buys !== undefined) {
1570
- requestContext.setQueryParam("max_m30_buys", ObjectSerializer.serialize(maxM30Buys, "string", ""));
1650
+ if (requestParameters['maxH1Buyers'] != null) {
1651
+ queryParameters['max_h1_buyers'] = requestParameters['maxH1Buyers'];
1571
1652
  }
1572
1653
 
1573
- // Query Params
1574
- if (minM30Sells !== undefined) {
1575
- requestContext.setQueryParam("min_m30_sells", ObjectSerializer.serialize(minM30Sells, "string", ""));
1654
+ if (requestParameters['minH1Sellers'] != null) {
1655
+ queryParameters['min_h1_sellers'] = requestParameters['minH1Sellers'];
1576
1656
  }
1577
1657
 
1578
- // Query Params
1579
- if (maxM30Sells !== undefined) {
1580
- requestContext.setQueryParam("max_m30_sells", ObjectSerializer.serialize(maxM30Sells, "string", ""));
1658
+ if (requestParameters['maxH1Sellers'] != null) {
1659
+ queryParameters['max_h1_sellers'] = requestParameters['maxH1Sellers'];
1581
1660
  }
1582
1661
 
1583
- // Query Params
1584
- if (minM30Trades !== undefined) {
1585
- requestContext.setQueryParam("min_m30_trades", ObjectSerializer.serialize(minM30Trades, "string", ""));
1662
+ if (requestParameters['minH1BuyVolumeInUsd'] != null) {
1663
+ queryParameters['min_h1_buy_volume_in_usd'] = requestParameters['minH1BuyVolumeInUsd'];
1586
1664
  }
1587
1665
 
1588
- // Query Params
1589
- if (maxM30Trades !== undefined) {
1590
- requestContext.setQueryParam("max_m30_trades", ObjectSerializer.serialize(maxM30Trades, "string", ""));
1666
+ if (requestParameters['maxH1BuyVolumeInUsd'] != null) {
1667
+ queryParameters['max_h1_buy_volume_in_usd'] = requestParameters['maxH1BuyVolumeInUsd'];
1591
1668
  }
1592
1669
 
1593
- // Query Params
1594
- if (minM30Buyers !== undefined) {
1595
- requestContext.setQueryParam("min_m30_buyers", ObjectSerializer.serialize(minM30Buyers, "string", ""));
1670
+ if (requestParameters['minH1SellVolumeInUsd'] != null) {
1671
+ queryParameters['min_h1_sell_volume_in_usd'] = requestParameters['minH1SellVolumeInUsd'];
1596
1672
  }
1597
1673
 
1598
- // Query Params
1599
- if (maxM30Buyers !== undefined) {
1600
- requestContext.setQueryParam("max_m30_buyers", ObjectSerializer.serialize(maxM30Buyers, "string", ""));
1674
+ if (requestParameters['maxH1SellVolumeInUsd'] != null) {
1675
+ queryParameters['max_h1_sell_volume_in_usd'] = requestParameters['maxH1SellVolumeInUsd'];
1601
1676
  }
1602
1677
 
1603
- // Query Params
1604
- if (minM30Sellers !== undefined) {
1605
- requestContext.setQueryParam("min_m30_sellers", ObjectSerializer.serialize(minM30Sellers, "string", ""));
1678
+ if (requestParameters['minM30VolumeInUsd'] != null) {
1679
+ queryParameters['min_m30_volume_in_usd'] = requestParameters['minM30VolumeInUsd'];
1606
1680
  }
1607
1681
 
1608
- // Query Params
1609
- if (maxM30Sellers !== undefined) {
1610
- requestContext.setQueryParam("max_m30_sellers", ObjectSerializer.serialize(maxM30Sellers, "string", ""));
1682
+ if (requestParameters['maxM30VolumeInUsd'] != null) {
1683
+ queryParameters['max_m30_volume_in_usd'] = requestParameters['maxM30VolumeInUsd'];
1611
1684
  }
1612
1685
 
1613
- // Query Params
1614
- if (minM30BuyVolumeInUsd !== undefined) {
1615
- requestContext.setQueryParam("min_m30_buy_volume_in_usd", ObjectSerializer.serialize(minM30BuyVolumeInUsd, "string", ""));
1686
+ if (requestParameters['minM30PriceChangeRatio'] != null) {
1687
+ queryParameters['min_m30_price_change_ratio'] = requestParameters['minM30PriceChangeRatio'];
1616
1688
  }
1617
1689
 
1618
- // Query Params
1619
- if (maxM30BuyVolumeInUsd !== undefined) {
1620
- requestContext.setQueryParam("max_m30_buy_volume_in_usd", ObjectSerializer.serialize(maxM30BuyVolumeInUsd, "string", ""));
1690
+ if (requestParameters['maxM30PriceChangeRatio'] != null) {
1691
+ queryParameters['max_m30_price_change_ratio'] = requestParameters['maxM30PriceChangeRatio'];
1621
1692
  }
1622
1693
 
1623
- // Query Params
1624
- if (minM30SellVolumeInUsd !== undefined) {
1625
- requestContext.setQueryParam("min_m30_sell_volume_in_usd", ObjectSerializer.serialize(minM30SellVolumeInUsd, "string", ""));
1694
+ if (requestParameters['minM30Buys'] != null) {
1695
+ queryParameters['min_m30_buys'] = requestParameters['minM30Buys'];
1626
1696
  }
1627
1697
 
1628
- // Query Params
1629
- if (maxM30SellVolumeInUsd !== undefined) {
1630
- requestContext.setQueryParam("max_m30_sell_volume_in_usd", ObjectSerializer.serialize(maxM30SellVolumeInUsd, "string", ""));
1698
+ if (requestParameters['maxM30Buys'] != null) {
1699
+ queryParameters['max_m30_buys'] = requestParameters['maxM30Buys'];
1631
1700
  }
1632
1701
 
1633
- // Query Params
1634
- if (minM15VolumeInUsd !== undefined) {
1635
- requestContext.setQueryParam("min_m15_volume_in_usd", ObjectSerializer.serialize(minM15VolumeInUsd, "string", ""));
1702
+ if (requestParameters['minM30Sells'] != null) {
1703
+ queryParameters['min_m30_sells'] = requestParameters['minM30Sells'];
1636
1704
  }
1637
1705
 
1638
- // Query Params
1639
- if (maxM15VolumeInUsd !== undefined) {
1640
- requestContext.setQueryParam("max_m15_volume_in_usd", ObjectSerializer.serialize(maxM15VolumeInUsd, "string", ""));
1706
+ if (requestParameters['maxM30Sells'] != null) {
1707
+ queryParameters['max_m30_sells'] = requestParameters['maxM30Sells'];
1641
1708
  }
1642
1709
 
1643
- // Query Params
1644
- if (minM15PriceChangeRatio !== undefined) {
1645
- requestContext.setQueryParam("min_m15_price_change_ratio", ObjectSerializer.serialize(minM15PriceChangeRatio, "string", ""));
1710
+ if (requestParameters['minM30Trades'] != null) {
1711
+ queryParameters['min_m30_trades'] = requestParameters['minM30Trades'];
1646
1712
  }
1647
1713
 
1648
- // Query Params
1649
- if (maxM15PriceChangeRatio !== undefined) {
1650
- requestContext.setQueryParam("max_m15_price_change_ratio", ObjectSerializer.serialize(maxM15PriceChangeRatio, "string", ""));
1714
+ if (requestParameters['maxM30Trades'] != null) {
1715
+ queryParameters['max_m30_trades'] = requestParameters['maxM30Trades'];
1651
1716
  }
1652
1717
 
1653
- // Query Params
1654
- if (minM15Buys !== undefined) {
1655
- requestContext.setQueryParam("min_m15_buys", ObjectSerializer.serialize(minM15Buys, "string", ""));
1718
+ if (requestParameters['minM30Buyers'] != null) {
1719
+ queryParameters['min_m30_buyers'] = requestParameters['minM30Buyers'];
1656
1720
  }
1657
1721
 
1658
- // Query Params
1659
- if (maxM15Buys !== undefined) {
1660
- requestContext.setQueryParam("max_m15_buys", ObjectSerializer.serialize(maxM15Buys, "string", ""));
1722
+ if (requestParameters['maxM30Buyers'] != null) {
1723
+ queryParameters['max_m30_buyers'] = requestParameters['maxM30Buyers'];
1661
1724
  }
1662
1725
 
1663
- // Query Params
1664
- if (minM15Sells !== undefined) {
1665
- requestContext.setQueryParam("min_m15_sells", ObjectSerializer.serialize(minM15Sells, "string", ""));
1726
+ if (requestParameters['minM30Sellers'] != null) {
1727
+ queryParameters['min_m30_sellers'] = requestParameters['minM30Sellers'];
1666
1728
  }
1667
1729
 
1668
- // Query Params
1669
- if (maxM15Sells !== undefined) {
1670
- requestContext.setQueryParam("max_m15_sells", ObjectSerializer.serialize(maxM15Sells, "string", ""));
1730
+ if (requestParameters['maxM30Sellers'] != null) {
1731
+ queryParameters['max_m30_sellers'] = requestParameters['maxM30Sellers'];
1671
1732
  }
1672
1733
 
1673
- // Query Params
1674
- if (minM15Trades !== undefined) {
1675
- requestContext.setQueryParam("min_m15_trades", ObjectSerializer.serialize(minM15Trades, "string", ""));
1734
+ if (requestParameters['minM30BuyVolumeInUsd'] != null) {
1735
+ queryParameters['min_m30_buy_volume_in_usd'] = requestParameters['minM30BuyVolumeInUsd'];
1676
1736
  }
1677
1737
 
1678
- // Query Params
1679
- if (maxM15Trades !== undefined) {
1680
- requestContext.setQueryParam("max_m15_trades", ObjectSerializer.serialize(maxM15Trades, "string", ""));
1738
+ if (requestParameters['maxM30BuyVolumeInUsd'] != null) {
1739
+ queryParameters['max_m30_buy_volume_in_usd'] = requestParameters['maxM30BuyVolumeInUsd'];
1681
1740
  }
1682
1741
 
1683
- // Query Params
1684
- if (minM15Buyers !== undefined) {
1685
- requestContext.setQueryParam("min_m15_buyers", ObjectSerializer.serialize(minM15Buyers, "string", ""));
1742
+ if (requestParameters['minM30SellVolumeInUsd'] != null) {
1743
+ queryParameters['min_m30_sell_volume_in_usd'] = requestParameters['minM30SellVolumeInUsd'];
1686
1744
  }
1687
1745
 
1688
- // Query Params
1689
- if (maxM15Buyers !== undefined) {
1690
- requestContext.setQueryParam("max_m15_buyers", ObjectSerializer.serialize(maxM15Buyers, "string", ""));
1746
+ if (requestParameters['maxM30SellVolumeInUsd'] != null) {
1747
+ queryParameters['max_m30_sell_volume_in_usd'] = requestParameters['maxM30SellVolumeInUsd'];
1691
1748
  }
1692
1749
 
1693
- // Query Params
1694
- if (minM15Sellers !== undefined) {
1695
- requestContext.setQueryParam("min_m15_sellers", ObjectSerializer.serialize(minM15Sellers, "string", ""));
1750
+ if (requestParameters['minM15VolumeInUsd'] != null) {
1751
+ queryParameters['min_m15_volume_in_usd'] = requestParameters['minM15VolumeInUsd'];
1696
1752
  }
1697
1753
 
1698
- // Query Params
1699
- if (maxM15Sellers !== undefined) {
1700
- requestContext.setQueryParam("max_m15_sellers", ObjectSerializer.serialize(maxM15Sellers, "string", ""));
1754
+ if (requestParameters['maxM15VolumeInUsd'] != null) {
1755
+ queryParameters['max_m15_volume_in_usd'] = requestParameters['maxM15VolumeInUsd'];
1701
1756
  }
1702
1757
 
1703
- // Query Params
1704
- if (minM15BuyVolumeInUsd !== undefined) {
1705
- requestContext.setQueryParam("min_m15_buy_volume_in_usd", ObjectSerializer.serialize(minM15BuyVolumeInUsd, "string", ""));
1758
+ if (requestParameters['minM15PriceChangeRatio'] != null) {
1759
+ queryParameters['min_m15_price_change_ratio'] = requestParameters['minM15PriceChangeRatio'];
1706
1760
  }
1707
1761
 
1708
- // Query Params
1709
- if (maxM15BuyVolumeInUsd !== undefined) {
1710
- requestContext.setQueryParam("max_m15_buy_volume_in_usd", ObjectSerializer.serialize(maxM15BuyVolumeInUsd, "string", ""));
1762
+ if (requestParameters['maxM15PriceChangeRatio'] != null) {
1763
+ queryParameters['max_m15_price_change_ratio'] = requestParameters['maxM15PriceChangeRatio'];
1711
1764
  }
1712
1765
 
1713
- // Query Params
1714
- if (minM15SellVolumeInUsd !== undefined) {
1715
- requestContext.setQueryParam("min_m15_sell_volume_in_usd", ObjectSerializer.serialize(minM15SellVolumeInUsd, "string", ""));
1766
+ if (requestParameters['minM15Buys'] != null) {
1767
+ queryParameters['min_m15_buys'] = requestParameters['minM15Buys'];
1716
1768
  }
1717
1769
 
1718
- // Query Params
1719
- if (maxM15SellVolumeInUsd !== undefined) {
1720
- requestContext.setQueryParam("max_m15_sell_volume_in_usd", ObjectSerializer.serialize(maxM15SellVolumeInUsd, "string", ""));
1770
+ if (requestParameters['maxM15Buys'] != null) {
1771
+ queryParameters['max_m15_buys'] = requestParameters['maxM15Buys'];
1721
1772
  }
1722
1773
 
1723
- // Query Params
1724
- if (minM5VolumeInUsd !== undefined) {
1725
- requestContext.setQueryParam("min_m5_volume_in_usd", ObjectSerializer.serialize(minM5VolumeInUsd, "string", ""));
1774
+ if (requestParameters['minM15Sells'] != null) {
1775
+ queryParameters['min_m15_sells'] = requestParameters['minM15Sells'];
1726
1776
  }
1727
1777
 
1728
- // Query Params
1729
- if (maxM5VolumeInUsd !== undefined) {
1730
- requestContext.setQueryParam("max_m5_volume_in_usd", ObjectSerializer.serialize(maxM5VolumeInUsd, "string", ""));
1778
+ if (requestParameters['maxM15Sells'] != null) {
1779
+ queryParameters['max_m15_sells'] = requestParameters['maxM15Sells'];
1731
1780
  }
1732
1781
 
1733
- // Query Params
1734
- if (minM5PriceChangeRatio !== undefined) {
1735
- requestContext.setQueryParam("min_m5_price_change_ratio", ObjectSerializer.serialize(minM5PriceChangeRatio, "string", ""));
1782
+ if (requestParameters['minM15Trades'] != null) {
1783
+ queryParameters['min_m15_trades'] = requestParameters['minM15Trades'];
1736
1784
  }
1737
1785
 
1738
- // Query Params
1739
- if (maxM5PriceChangeRatio !== undefined) {
1740
- requestContext.setQueryParam("max_m5_price_change_ratio", ObjectSerializer.serialize(maxM5PriceChangeRatio, "string", ""));
1786
+ if (requestParameters['maxM15Trades'] != null) {
1787
+ queryParameters['max_m15_trades'] = requestParameters['maxM15Trades'];
1741
1788
  }
1742
1789
 
1743
- // Query Params
1744
- if (minM5Buys !== undefined) {
1745
- requestContext.setQueryParam("min_m5_buys", ObjectSerializer.serialize(minM5Buys, "string", ""));
1790
+ if (requestParameters['minM15Buyers'] != null) {
1791
+ queryParameters['min_m15_buyers'] = requestParameters['minM15Buyers'];
1746
1792
  }
1747
1793
 
1748
- // Query Params
1749
- if (maxM5Buys !== undefined) {
1750
- requestContext.setQueryParam("max_m5_buys", ObjectSerializer.serialize(maxM5Buys, "string", ""));
1794
+ if (requestParameters['maxM15Buyers'] != null) {
1795
+ queryParameters['max_m15_buyers'] = requestParameters['maxM15Buyers'];
1751
1796
  }
1752
1797
 
1753
- // Query Params
1754
- if (minM5Sells !== undefined) {
1755
- requestContext.setQueryParam("min_m5_sells", ObjectSerializer.serialize(minM5Sells, "string", ""));
1798
+ if (requestParameters['minM15Sellers'] != null) {
1799
+ queryParameters['min_m15_sellers'] = requestParameters['minM15Sellers'];
1756
1800
  }
1757
1801
 
1758
- // Query Params
1759
- if (maxM5Sells !== undefined) {
1760
- requestContext.setQueryParam("max_m5_sells", ObjectSerializer.serialize(maxM5Sells, "string", ""));
1802
+ if (requestParameters['maxM15Sellers'] != null) {
1803
+ queryParameters['max_m15_sellers'] = requestParameters['maxM15Sellers'];
1761
1804
  }
1762
1805
 
1763
- // Query Params
1764
- if (minM5Trades !== undefined) {
1765
- requestContext.setQueryParam("min_m5_trades", ObjectSerializer.serialize(minM5Trades, "string", ""));
1806
+ if (requestParameters['minM15BuyVolumeInUsd'] != null) {
1807
+ queryParameters['min_m15_buy_volume_in_usd'] = requestParameters['minM15BuyVolumeInUsd'];
1766
1808
  }
1767
1809
 
1768
- // Query Params
1769
- if (maxM5Trades !== undefined) {
1770
- requestContext.setQueryParam("max_m5_trades", ObjectSerializer.serialize(maxM5Trades, "string", ""));
1810
+ if (requestParameters['maxM15BuyVolumeInUsd'] != null) {
1811
+ queryParameters['max_m15_buy_volume_in_usd'] = requestParameters['maxM15BuyVolumeInUsd'];
1771
1812
  }
1772
1813
 
1773
- // Query Params
1774
- if (minM5Buyers !== undefined) {
1775
- requestContext.setQueryParam("min_m5_buyers", ObjectSerializer.serialize(minM5Buyers, "string", ""));
1814
+ if (requestParameters['minM15SellVolumeInUsd'] != null) {
1815
+ queryParameters['min_m15_sell_volume_in_usd'] = requestParameters['minM15SellVolumeInUsd'];
1776
1816
  }
1777
1817
 
1778
- // Query Params
1779
- if (maxM5Buyers !== undefined) {
1780
- requestContext.setQueryParam("max_m5_buyers", ObjectSerializer.serialize(maxM5Buyers, "string", ""));
1818
+ if (requestParameters['maxM15SellVolumeInUsd'] != null) {
1819
+ queryParameters['max_m15_sell_volume_in_usd'] = requestParameters['maxM15SellVolumeInUsd'];
1781
1820
  }
1782
1821
 
1783
- // Query Params
1784
- if (minM5Sellers !== undefined) {
1785
- requestContext.setQueryParam("min_m5_sellers", ObjectSerializer.serialize(minM5Sellers, "string", ""));
1822
+ if (requestParameters['minM5VolumeInUsd'] != null) {
1823
+ queryParameters['min_m5_volume_in_usd'] = requestParameters['minM5VolumeInUsd'];
1786
1824
  }
1787
1825
 
1788
- // Query Params
1789
- if (maxM5Sellers !== undefined) {
1790
- requestContext.setQueryParam("max_m5_sellers", ObjectSerializer.serialize(maxM5Sellers, "string", ""));
1826
+ if (requestParameters['maxM5VolumeInUsd'] != null) {
1827
+ queryParameters['max_m5_volume_in_usd'] = requestParameters['maxM5VolumeInUsd'];
1791
1828
  }
1792
1829
 
1793
- // Query Params
1794
- if (minM5BuyVolumeInUsd !== undefined) {
1795
- requestContext.setQueryParam("min_m5_buy_volume_in_usd", ObjectSerializer.serialize(minM5BuyVolumeInUsd, "string", ""));
1830
+ if (requestParameters['minM5PriceChangeRatio'] != null) {
1831
+ queryParameters['min_m5_price_change_ratio'] = requestParameters['minM5PriceChangeRatio'];
1796
1832
  }
1797
1833
 
1798
- // Query Params
1799
- if (maxM5BuyVolumeInUsd !== undefined) {
1800
- requestContext.setQueryParam("max_m5_buy_volume_in_usd", ObjectSerializer.serialize(maxM5BuyVolumeInUsd, "string", ""));
1834
+ if (requestParameters['maxM5PriceChangeRatio'] != null) {
1835
+ queryParameters['max_m5_price_change_ratio'] = requestParameters['maxM5PriceChangeRatio'];
1801
1836
  }
1802
1837
 
1803
- // Query Params
1804
- if (minM5SellVolumeInUsd !== undefined) {
1805
- requestContext.setQueryParam("min_m5_sell_volume_in_usd", ObjectSerializer.serialize(minM5SellVolumeInUsd, "string", ""));
1838
+ if (requestParameters['minM5Buys'] != null) {
1839
+ queryParameters['min_m5_buys'] = requestParameters['minM5Buys'];
1806
1840
  }
1807
1841
 
1808
- // Query Params
1809
- if (maxM5SellVolumeInUsd !== undefined) {
1810
- requestContext.setQueryParam("max_m5_sell_volume_in_usd", ObjectSerializer.serialize(maxM5SellVolumeInUsd, "string", ""));
1842
+ if (requestParameters['maxM5Buys'] != null) {
1843
+ queryParameters['max_m5_buys'] = requestParameters['maxM5Buys'];
1811
1844
  }
1812
1845
 
1813
- // Query Params
1814
- if (minM1VolumeInUsd !== undefined) {
1815
- requestContext.setQueryParam("min_m1_volume_in_usd", ObjectSerializer.serialize(minM1VolumeInUsd, "string", ""));
1846
+ if (requestParameters['minM5Sells'] != null) {
1847
+ queryParameters['min_m5_sells'] = requestParameters['minM5Sells'];
1816
1848
  }
1817
1849
 
1818
- // Query Params
1819
- if (maxM1VolumeInUsd !== undefined) {
1820
- requestContext.setQueryParam("max_m1_volume_in_usd", ObjectSerializer.serialize(maxM1VolumeInUsd, "string", ""));
1850
+ if (requestParameters['maxM5Sells'] != null) {
1851
+ queryParameters['max_m5_sells'] = requestParameters['maxM5Sells'];
1821
1852
  }
1822
1853
 
1823
- // Query Params
1824
- if (minM1PriceChangeRatio !== undefined) {
1825
- requestContext.setQueryParam("min_m1_price_change_ratio", ObjectSerializer.serialize(minM1PriceChangeRatio, "string", ""));
1854
+ if (requestParameters['minM5Trades'] != null) {
1855
+ queryParameters['min_m5_trades'] = requestParameters['minM5Trades'];
1826
1856
  }
1827
1857
 
1828
- // Query Params
1829
- if (maxM1PriceChangeRatio !== undefined) {
1830
- requestContext.setQueryParam("max_m1_price_change_ratio", ObjectSerializer.serialize(maxM1PriceChangeRatio, "string", ""));
1858
+ if (requestParameters['maxM5Trades'] != null) {
1859
+ queryParameters['max_m5_trades'] = requestParameters['maxM5Trades'];
1831
1860
  }
1832
1861
 
1833
- // Query Params
1834
- if (minM1Buys !== undefined) {
1835
- requestContext.setQueryParam("min_m1_buys", ObjectSerializer.serialize(minM1Buys, "string", ""));
1862
+ if (requestParameters['minM5Buyers'] != null) {
1863
+ queryParameters['min_m5_buyers'] = requestParameters['minM5Buyers'];
1836
1864
  }
1837
1865
 
1838
- // Query Params
1839
- if (maxM1Buys !== undefined) {
1840
- requestContext.setQueryParam("max_m1_buys", ObjectSerializer.serialize(maxM1Buys, "string", ""));
1866
+ if (requestParameters['maxM5Buyers'] != null) {
1867
+ queryParameters['max_m5_buyers'] = requestParameters['maxM5Buyers'];
1841
1868
  }
1842
1869
 
1843
- // Query Params
1844
- if (minM1Sells !== undefined) {
1845
- requestContext.setQueryParam("min_m1_sells", ObjectSerializer.serialize(minM1Sells, "string", ""));
1870
+ if (requestParameters['minM5Sellers'] != null) {
1871
+ queryParameters['min_m5_sellers'] = requestParameters['minM5Sellers'];
1846
1872
  }
1847
1873
 
1848
- // Query Params
1849
- if (maxM1Sells !== undefined) {
1850
- requestContext.setQueryParam("max_m1_sells", ObjectSerializer.serialize(maxM1Sells, "string", ""));
1874
+ if (requestParameters['maxM5Sellers'] != null) {
1875
+ queryParameters['max_m5_sellers'] = requestParameters['maxM5Sellers'];
1851
1876
  }
1852
1877
 
1853
- // Query Params
1854
- if (minM1Trades !== undefined) {
1855
- requestContext.setQueryParam("min_m1_trades", ObjectSerializer.serialize(minM1Trades, "string", ""));
1878
+ if (requestParameters['minM5BuyVolumeInUsd'] != null) {
1879
+ queryParameters['min_m5_buy_volume_in_usd'] = requestParameters['minM5BuyVolumeInUsd'];
1856
1880
  }
1857
1881
 
1858
- // Query Params
1859
- if (maxM1Trades !== undefined) {
1860
- requestContext.setQueryParam("max_m1_trades", ObjectSerializer.serialize(maxM1Trades, "string", ""));
1882
+ if (requestParameters['maxM5BuyVolumeInUsd'] != null) {
1883
+ queryParameters['max_m5_buy_volume_in_usd'] = requestParameters['maxM5BuyVolumeInUsd'];
1861
1884
  }
1862
1885
 
1863
- // Query Params
1864
- if (minM1Buyers !== undefined) {
1865
- requestContext.setQueryParam("min_m1_buyers", ObjectSerializer.serialize(minM1Buyers, "string", ""));
1886
+ if (requestParameters['minM5SellVolumeInUsd'] != null) {
1887
+ queryParameters['min_m5_sell_volume_in_usd'] = requestParameters['minM5SellVolumeInUsd'];
1866
1888
  }
1867
1889
 
1868
- // Query Params
1869
- if (maxM1Buyers !== undefined) {
1870
- requestContext.setQueryParam("max_m1_buyers", ObjectSerializer.serialize(maxM1Buyers, "string", ""));
1890
+ if (requestParameters['maxM5SellVolumeInUsd'] != null) {
1891
+ queryParameters['max_m5_sell_volume_in_usd'] = requestParameters['maxM5SellVolumeInUsd'];
1871
1892
  }
1872
1893
 
1873
- // Query Params
1874
- if (minM1Sellers !== undefined) {
1875
- requestContext.setQueryParam("min_m1_sellers", ObjectSerializer.serialize(minM1Sellers, "string", ""));
1894
+ if (requestParameters['minM1VolumeInUsd'] != null) {
1895
+ queryParameters['min_m1_volume_in_usd'] = requestParameters['minM1VolumeInUsd'];
1876
1896
  }
1877
1897
 
1878
- // Query Params
1879
- if (maxM1Sellers !== undefined) {
1880
- requestContext.setQueryParam("max_m1_sellers", ObjectSerializer.serialize(maxM1Sellers, "string", ""));
1898
+ if (requestParameters['maxM1VolumeInUsd'] != null) {
1899
+ queryParameters['max_m1_volume_in_usd'] = requestParameters['maxM1VolumeInUsd'];
1881
1900
  }
1882
1901
 
1883
- // Query Params
1884
- if (minM1BuyVolumeInUsd !== undefined) {
1885
- requestContext.setQueryParam("min_m1_buy_volume_in_usd", ObjectSerializer.serialize(minM1BuyVolumeInUsd, "string", ""));
1902
+ if (requestParameters['minM1PriceChangeRatio'] != null) {
1903
+ queryParameters['min_m1_price_change_ratio'] = requestParameters['minM1PriceChangeRatio'];
1886
1904
  }
1887
1905
 
1888
- // Query Params
1889
- if (maxM1BuyVolumeInUsd !== undefined) {
1890
- requestContext.setQueryParam("max_m1_buy_volume_in_usd", ObjectSerializer.serialize(maxM1BuyVolumeInUsd, "string", ""));
1906
+ if (requestParameters['maxM1PriceChangeRatio'] != null) {
1907
+ queryParameters['max_m1_price_change_ratio'] = requestParameters['maxM1PriceChangeRatio'];
1891
1908
  }
1892
1909
 
1893
- // Query Params
1894
- if (minM1SellVolumeInUsd !== undefined) {
1895
- requestContext.setQueryParam("min_m1_sell_volume_in_usd", ObjectSerializer.serialize(minM1SellVolumeInUsd, "string", ""));
1910
+ if (requestParameters['minM1Buys'] != null) {
1911
+ queryParameters['min_m1_buys'] = requestParameters['minM1Buys'];
1896
1912
  }
1897
1913
 
1898
- // Query Params
1899
- if (maxM1SellVolumeInUsd !== undefined) {
1900
- requestContext.setQueryParam("max_m1_sell_volume_in_usd", ObjectSerializer.serialize(maxM1SellVolumeInUsd, "string", ""));
1914
+ if (requestParameters['maxM1Buys'] != null) {
1915
+ queryParameters['max_m1_buys'] = requestParameters['maxM1Buys'];
1901
1916
  }
1902
1917
 
1903
-
1904
- let authMethod: SecurityAuthentication | undefined;
1905
- // Apply auth methods
1906
- authMethod = _config.authMethods["bearer"]
1907
- if (authMethod?.applySecurityAuthentication) {
1908
- await authMethod?.applySecurityAuthentication(requestContext);
1918
+ if (requestParameters['minM1Sells'] != null) {
1919
+ queryParameters['min_m1_sells'] = requestParameters['minM1Sells'];
1909
1920
  }
1910
1921
 
1911
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
1912
- if (defaultAuth?.applySecurityAuthentication) {
1913
- await defaultAuth?.applySecurityAuthentication(requestContext);
1922
+ if (requestParameters['maxM1Sells'] != null) {
1923
+ queryParameters['max_m1_sells'] = requestParameters['maxM1Sells'];
1914
1924
  }
1915
1925
 
1916
- return requestContext;
1917
- }
1918
-
1919
- /**
1920
- * CONTROLLER.TOKEN.GET_TOKENS.DESCRIPTION
1921
- * CONTROLLER.TOKEN.GET_TOKENS.SUMMARY
1922
- * @param chain GLOBAL.CHAIN.DESCRIPTION
1923
- * @param tokenAddresses GLOBAL.TOKENADDRESSES.DESCRIPTION
1924
- * @param sortBy DTO.TOKEN.REQUEST.SORT_BY
1925
- * @param sortDirection DTO.TOKEN.REQUEST.SORT_DIRECTION
1926
- * @param filterBy DTO.TOKEN.REQUEST.FILTER_BY
1927
- */
1928
- public async getTokens(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddresses: string, sortBy?: 'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | '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', sortDirection?: 'ASC' | 'DESC', filterBy?: Array<FilterCondition>, _options?: Configuration): Promise<RequestContext> {
1929
- let _config = _options || this.configuration;
1930
-
1931
- // verify required parameter 'chain' is not null or undefined
1932
- if (chain === null || chain === undefined) {
1933
- throw new RequiredError("TokenApi", "getTokens", "chain");
1926
+ if (requestParameters['minM1Trades'] != null) {
1927
+ queryParameters['min_m1_trades'] = requestParameters['minM1Trades'];
1934
1928
  }
1935
1929
 
1936
-
1937
- // verify required parameter 'tokenAddresses' is not null or undefined
1938
- if (tokenAddresses === null || tokenAddresses === undefined) {
1939
- throw new RequiredError("TokenApi", "getTokens", "tokenAddresses");
1930
+ if (requestParameters['maxM1Trades'] != null) {
1931
+ queryParameters['max_m1_trades'] = requestParameters['maxM1Trades'];
1940
1932
  }
1941
1933
 
1942
-
1943
-
1944
-
1945
-
1946
- // Path Params
1947
- const localVarPath = '/v1/token/{chain}/multi'
1948
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)));
1949
-
1950
- // Make Request Context
1951
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
1952
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
1953
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
1954
- requestContext.setHeaderParam("x-req-id", randomId.toString())
1955
-
1956
-
1957
- // Query Params
1958
- if (tokenAddresses !== undefined) {
1959
- requestContext.setQueryParam("tokenAddresses", ObjectSerializer.serialize(tokenAddresses, "string", ""));
1934
+ if (requestParameters['minM1Buyers'] != null) {
1935
+ queryParameters['min_m1_buyers'] = requestParameters['minM1Buyers'];
1960
1936
  }
1961
1937
 
1962
- // Query Params
1963
- if (sortBy !== undefined) {
1964
- requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketData.priceInUsd' | 'stats.priceChangeRatioInUsd1m' | 'stats.priceChangeRatioInUsd5m' | 'stats.priceChangeRatioInUsd1h' | 'stats.priceChangeRatioInUsd4h' | 'stats.priceChangeRatioInUsd24h' | 'marketData.marketCapInUsd' | 'marketData.tvlInUsd' | 'marketData.top10TotalHoldings' | 'marketData.top10HoldingsRatio' | 'marketData.top100TotalHoldings' | 'marketData.top100HoldingsRatio' | 'marketData.holders' | 'marketData.creatorHoldings' | 'marketData.creatorHoldingsRatio' | 'stats.buys1m' | 'stats.buys5m' | 'stats.buys15m' | 'stats.buys30m' | 'stats.buys1h' | 'stats.buys4h' | 'stats.buys24h' | 'stats.sells1m' | 'stats.sells5m' | 'stats.sells15m' | 'stats.sells30m' | 'stats.sells1h' | 'stats.sells4h' | 'stats.sells24h' | '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'", ""));
1938
+ if (requestParameters['maxM1Buyers'] != null) {
1939
+ queryParameters['max_m1_buyers'] = requestParameters['maxM1Buyers'];
1965
1940
  }
1966
1941
 
1967
- // Query Params
1968
- if (sortDirection !== undefined) {
1969
- requestContext.setQueryParam("sortDirection", ObjectSerializer.serialize(sortDirection, "'ASC' | 'DESC'", ""));
1942
+ if (requestParameters['minM1Sellers'] != null) {
1943
+ queryParameters['min_m1_sellers'] = requestParameters['minM1Sellers'];
1970
1944
  }
1971
1945
 
1972
- // Query Params
1973
- if (filterBy !== undefined) {
1974
- const serializedParams = ObjectSerializer.serialize(filterBy, "Array<FilterCondition>", "");
1975
- for (const serializedParam of serializedParams) {
1976
- requestContext.appendQueryParam("filterBy", serializedParam);
1977
- }
1946
+ if (requestParameters['maxM1Sellers'] != null) {
1947
+ queryParameters['max_m1_sellers'] = requestParameters['maxM1Sellers'];
1978
1948
  }
1979
1949
 
1980
-
1981
- let authMethod: SecurityAuthentication | undefined;
1982
- // Apply auth methods
1983
- authMethod = _config.authMethods["bearer"]
1984
- if (authMethod?.applySecurityAuthentication) {
1985
- await authMethod?.applySecurityAuthentication(requestContext);
1950
+ if (requestParameters['minM1BuyVolumeInUsd'] != null) {
1951
+ queryParameters['min_m1_buy_volume_in_usd'] = requestParameters['minM1BuyVolumeInUsd'];
1986
1952
  }
1987
1953
 
1988
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
1989
- if (defaultAuth?.applySecurityAuthentication) {
1990
- await defaultAuth?.applySecurityAuthentication(requestContext);
1954
+ if (requestParameters['maxM1BuyVolumeInUsd'] != null) {
1955
+ queryParameters['max_m1_buy_volume_in_usd'] = requestParameters['maxM1BuyVolumeInUsd'];
1991
1956
  }
1992
1957
 
1993
- return requestContext;
1994
- }
1995
-
1996
- /**
1997
- * CONTROLLER.TOKEN.GET_TOP_HOLDERS.DESCRIPTION
1998
- * CONTROLLER.TOKEN.GET_TOP_HOLDERS.SUMMARY
1999
- * @param chain GLOBAL.CHAIN.DESCRIPTION
2000
- * @param tokenAddress GLOBAL.TOKENADDRESS.DESCRIPTION
2001
- */
2002
- public async getTopHolders(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', tokenAddress: string, _options?: Configuration): Promise<RequestContext> {
2003
- let _config = _options || this.configuration;
2004
-
2005
- // verify required parameter 'chain' is not null or undefined
2006
- if (chain === null || chain === undefined) {
2007
- throw new RequiredError("TokenApi", "getTopHolders", "chain");
1958
+ if (requestParameters['minM1SellVolumeInUsd'] != null) {
1959
+ queryParameters['min_m1_sell_volume_in_usd'] = requestParameters['minM1SellVolumeInUsd'];
2008
1960
  }
2009
1961
 
2010
-
2011
- // verify required parameter 'tokenAddress' is not null or undefined
2012
- if (tokenAddress === null || tokenAddress === undefined) {
2013
- throw new RequiredError("TokenApi", "getTopHolders", "tokenAddress");
1962
+ if (requestParameters['maxM1SellVolumeInUsd'] != null) {
1963
+ queryParameters['max_m1_sell_volume_in_usd'] = requestParameters['maxM1SellVolumeInUsd'];
2014
1964
  }
2015
1965
 
1966
+ const headerParameters: runtime.HTTPHeaders = {};
2016
1967
 
2017
- // Path Params
2018
- const localVarPath = '/v1/token/{chain}/{tokenAddress}/topHolders'
2019
- .replace('{' + 'chain' + '}', encodeURIComponent(String(chain)))
2020
- .replace('{' + 'tokenAddress' + '}', encodeURIComponent(String(tokenAddress)));
2021
-
2022
- // Make Request Context
2023
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
2024
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
2025
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
2026
- requestContext.setHeaderParam("x-req-id", randomId.toString())
1968
+ if (this.configuration && this.configuration.accessToken) {
1969
+ const token = this.configuration.accessToken;
1970
+ const tokenString = await token("bearer", []);
2027
1971
 
1972
+ if (tokenString) {
1973
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1974
+ }
1975
+ }
2028
1976
 
1977
+ let urlPath = `/v1/token/{chain}/list`;
1978
+ urlPath = urlPath.replace(`{${"chain"}}`, encodeURIComponent(String(requestParameters['chain'])));
2029
1979
 
2030
- let authMethod: SecurityAuthentication | undefined;
2031
- // Apply auth methods
2032
- authMethod = _config.authMethods["bearer"]
2033
- if (authMethod?.applySecurityAuthentication) {
2034
- await authMethod?.applySecurityAuthentication(requestContext);
2035
- }
1980
+ const response = await this.request({
1981
+ path: urlPath,
1982
+ method: 'GET',
1983
+ headers: headerParameters,
1984
+ query: queryParameters,
1985
+ }, initOverrides);
2036
1986
 
2037
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
2038
- if (defaultAuth?.applySecurityAuthentication) {
2039
- await defaultAuth?.applySecurityAuthentication(requestContext);
2040
- }
1987
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenListPageFromJSON(jsonValue));
1988
+ }
2041
1989
 
2042
- return requestContext;
1990
+ /**
1991
+ * CONTROLLER.TOKEN.GET_TOKEN_LIST.DESCRIPTION
1992
+ * CONTROLLER.TOKEN.GET_TOKEN_LIST.SUMMARY
1993
+ */
1994
+ async listToken(requestParameters: ListTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenListPage> {
1995
+ const response = await this.listTokenRaw(requestParameters, initOverrides);
1996
+ return await response.value();
2043
1997
  }
2044
1998
 
2045
1999
  /**
2046
2000
  * CONTROLLER.TOKEN.SEARCH.DESCRIPTION
2047
2001
  * CONTROLLER.TOKEN.SEARCH.SUMMARY
2048
- * @param chains DTO.TOKEN.SEARCH.CHAINS
2049
- * @param q DTO.TOKEN.SEARCH.QUERY
2050
- * @param limit DTO.TOKEN.SEARCH.LIMIT
2051
- * @param sort DTO.TOKEN.SEARCH.SORT_DIRECTION
2052
- * @param protocols DTO.TOKEN.SEARCH.PROTOCOLS
2053
- * @param cursor DTO.PAGE.CURSOR
2054
- * @param sortBy DTO.TOKEN.SEARCH.SORT_BY
2055
2002
  */
2056
- public async search(chains?: Array<string>, q?: string, limit?: number, sort?: 'asc' | 'desc', protocols?: Array<string>, cursor?: string, sortBy?: 'marketCapInUsd' | 'liquidityInUsd' | 'priceInUsd' | 'holderCount' | 'h24VolumeInUsd' | 'h24Transactions' | 'tokenCreatedAt', _options?: Configuration): Promise<RequestContext> {
2057
- let _config = _options || this.configuration;
2058
-
2059
-
2060
-
2061
-
2062
-
2063
-
2064
-
2065
-
2066
- // Path Params
2067
- const localVarPath = '/v1/token/search';
2068
-
2069
- // Make Request Context
2070
- const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
2071
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
2072
- const randomId = Math.floor(Math.random() * Math.pow(2, 32))
2073
- requestContext.setHeaderParam("x-req-id", randomId.toString())
2074
-
2003
+ async searchRaw(requestParameters: SearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TokenPage>> {
2004
+ const queryParameters: any = {};
2075
2005
 
2076
- // Query Params
2077
- if (chains !== undefined) {
2078
- const serializedParams = ObjectSerializer.serialize(chains, "Array<string>", "");
2079
- for (const serializedParam of serializedParams) {
2080
- requestContext.appendQueryParam("chains", serializedParam);
2081
- }
2006
+ if (requestParameters['chains'] != null) {
2007
+ queryParameters['chains'] = requestParameters['chains'];
2082
2008
  }
2083
2009
 
2084
- // Query Params
2085
- if (q !== undefined) {
2086
- requestContext.setQueryParam("q", ObjectSerializer.serialize(q, "string", ""));
2010
+ if (requestParameters['q'] != null) {
2011
+ queryParameters['q'] = requestParameters['q'];
2087
2012
  }
2088
2013
 
2089
- // Query Params
2090
- if (limit !== undefined) {
2091
- requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
2014
+ if (requestParameters['limit'] != null) {
2015
+ queryParameters['limit'] = requestParameters['limit'];
2092
2016
  }
2093
2017
 
2094
- // Query Params
2095
- if (sort !== undefined) {
2096
- requestContext.setQueryParam("sort", ObjectSerializer.serialize(sort, "'asc' | 'desc'", ""));
2018
+ if (requestParameters['sort'] != null) {
2019
+ queryParameters['sort'] = requestParameters['sort'];
2097
2020
  }
2098
2021
 
2099
- // Query Params
2100
- if (protocols !== undefined) {
2101
- const serializedParams = ObjectSerializer.serialize(protocols, "Array<string>", "");
2102
- for (const serializedParam of serializedParams) {
2103
- requestContext.appendQueryParam("protocols", serializedParam);
2104
- }
2022
+ if (requestParameters['protocols'] != null) {
2023
+ queryParameters['protocols'] = requestParameters['protocols'];
2105
2024
  }
2106
2025
 
2107
- // Query Params
2108
- if (cursor !== undefined) {
2109
- requestContext.setQueryParam("cursor", ObjectSerializer.serialize(cursor, "string", ""));
2026
+ if (requestParameters['cursor'] != null) {
2027
+ queryParameters['cursor'] = requestParameters['cursor'];
2110
2028
  }
2111
2029
 
2112
- // Query Params
2113
- if (sortBy !== undefined) {
2114
- requestContext.setQueryParam("sortBy", ObjectSerializer.serialize(sortBy, "'marketCapInUsd' | 'liquidityInUsd' | 'priceInUsd' | 'holderCount' | 'h24VolumeInUsd' | 'h24Transactions' | 'tokenCreatedAt'", ""));
2030
+ if (requestParameters['sortBy'] != null) {
2031
+ queryParameters['sortBy'] = requestParameters['sortBy'];
2115
2032
  }
2116
2033
 
2034
+ const headerParameters: runtime.HTTPHeaders = {};
2117
2035
 
2118
- let authMethod: SecurityAuthentication | undefined;
2119
- // Apply auth methods
2120
- authMethod = _config.authMethods["bearer"]
2121
- if (authMethod?.applySecurityAuthentication) {
2122
- await authMethod?.applySecurityAuthentication(requestContext);
2123
- }
2036
+ if (this.configuration && this.configuration.accessToken) {
2037
+ const token = this.configuration.accessToken;
2038
+ const tokenString = await token("bearer", []);
2124
2039
 
2125
- const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
2126
- if (defaultAuth?.applySecurityAuthentication) {
2127
- await defaultAuth?.applySecurityAuthentication(requestContext);
2040
+ if (tokenString) {
2041
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2042
+ }
2128
2043
  }
2129
2044
 
2130
- return requestContext;
2131
- }
2132
-
2133
- }
2134
-
2135
- export class TokenApiResponseProcessor {
2136
-
2137
- /**
2138
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2139
- * to the expected objects
2140
- *
2141
- * @params response Response returned by the server for a request to getCandles
2142
- * @throws ApiException if the response code was not in [200, 299]
2143
- */
2144
- public async getCandlesWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Candle> >> {
2145
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2146
- if (isCodeInRange("200", response.httpStatusCode)) {
2147
- const body: Array<Candle> = ObjectSerializer.deserialize(
2148
- ObjectSerializer.parse(await response.body.text(), contentType),
2149
- "Array<Candle>", ""
2150
- ) as Array<Candle>;
2151
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2152
- }
2153
-
2154
- // Work around for missing responses in specification, e.g. for petstore.yaml
2155
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2156
- const body: Array<Candle> = ObjectSerializer.deserialize(
2157
- ObjectSerializer.parse(await response.body.text(), contentType),
2158
- "Array<Candle>", ""
2159
- ) as Array<Candle>;
2160
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2161
- }
2162
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2163
- }
2164
-
2165
- /**
2166
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2167
- * to the expected objects
2168
- *
2169
- * @params response Response returned by the server for a request to getCreation
2170
- * @throws ApiException if the response code was not in [200, 299]
2171
- */
2172
- public async getCreationWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenCreationDTO >> {
2173
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2174
- if (isCodeInRange("200", response.httpStatusCode)) {
2175
- const body: TokenCreationDTO = ObjectSerializer.deserialize(
2176
- ObjectSerializer.parse(await response.body.text(), contentType),
2177
- "TokenCreationDTO", ""
2178
- ) as TokenCreationDTO;
2179
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2180
- }
2181
-
2182
- // Work around for missing responses in specification, e.g. for petstore.yaml
2183
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2184
- const body: TokenCreationDTO = ObjectSerializer.deserialize(
2185
- ObjectSerializer.parse(await response.body.text(), contentType),
2186
- "TokenCreationDTO", ""
2187
- ) as TokenCreationDTO;
2188
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2189
- }
2190
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2191
- }
2192
-
2193
- /**
2194
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2195
- * to the expected objects
2196
- *
2197
- * @params response Response returned by the server for a request to getHolders
2198
- * @throws ApiException if the response code was not in [200, 299]
2199
- */
2200
- public async getHoldersWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenHolderPage >> {
2201
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2202
- if (isCodeInRange("200", response.httpStatusCode)) {
2203
- const body: TokenHolderPage = ObjectSerializer.deserialize(
2204
- ObjectSerializer.parse(await response.body.text(), contentType),
2205
- "TokenHolderPage", ""
2206
- ) as TokenHolderPage;
2207
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2208
- }
2209
-
2210
- // Work around for missing responses in specification, e.g. for petstore.yaml
2211
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2212
- const body: TokenHolderPage = ObjectSerializer.deserialize(
2213
- ObjectSerializer.parse(await response.body.text(), contentType),
2214
- "TokenHolderPage", ""
2215
- ) as TokenHolderPage;
2216
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2217
- }
2218
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2219
- }
2220
-
2221
- /**
2222
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2223
- * to the expected objects
2224
- *
2225
- * @params response Response returned by the server for a request to getHoldersMulti
2226
- * @throws ApiException if the response code was not in [200, 299]
2227
- */
2228
- public async getHoldersMultiWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<TokenHolder> >> {
2229
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2230
- if (isCodeInRange("200", response.httpStatusCode)) {
2231
- const body: Array<TokenHolder> = ObjectSerializer.deserialize(
2232
- ObjectSerializer.parse(await response.body.text(), contentType),
2233
- "Array<TokenHolder>", ""
2234
- ) as Array<TokenHolder>;
2235
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2236
- }
2237
-
2238
- // Work around for missing responses in specification, e.g. for petstore.yaml
2239
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2240
- const body: Array<TokenHolder> = ObjectSerializer.deserialize(
2241
- ObjectSerializer.parse(await response.body.text(), contentType),
2242
- "Array<TokenHolder>", ""
2243
- ) as Array<TokenHolder>;
2244
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2245
- }
2246
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2247
- }
2248
-
2249
- /**
2250
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2251
- * to the expected objects
2252
- *
2253
- * @params response Response returned by the server for a request to getMarketData
2254
- * @throws ApiException if the response code was not in [200, 299]
2255
- */
2256
- public async getMarketDataWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenMarketData >> {
2257
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2258
- if (isCodeInRange("200", response.httpStatusCode)) {
2259
- const body: TokenMarketData = ObjectSerializer.deserialize(
2260
- ObjectSerializer.parse(await response.body.text(), contentType),
2261
- "TokenMarketData", ""
2262
- ) as TokenMarketData;
2263
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2264
- }
2265
-
2266
- // Work around for missing responses in specification, e.g. for petstore.yaml
2267
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2268
- const body: TokenMarketData = ObjectSerializer.deserialize(
2269
- ObjectSerializer.parse(await response.body.text(), contentType),
2270
- "TokenMarketData", ""
2271
- ) as TokenMarketData;
2272
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2273
- }
2274
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2275
- }
2276
-
2277
- /**
2278
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2279
- * to the expected objects
2280
- *
2281
- * @params response Response returned by the server for a request to getMarketDataMulti
2282
- * @throws ApiException if the response code was not in [200, 299]
2283
- */
2284
- public async getMarketDataMultiWithHttpInfo(response: ResponseContext): Promise<HttpInfo<{ [key: string]: TokenMarketData; } >> {
2285
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2286
- if (isCodeInRange("200", response.httpStatusCode)) {
2287
- const body: { [key: string]: TokenMarketData; } = ObjectSerializer.deserialize(
2288
- ObjectSerializer.parse(await response.body.text(), contentType),
2289
- "{ [key: string]: TokenMarketData; }", ""
2290
- ) as { [key: string]: TokenMarketData; };
2291
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2292
- }
2293
-
2294
- // Work around for missing responses in specification, e.g. for petstore.yaml
2295
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2296
- const body: { [key: string]: TokenMarketData; } = ObjectSerializer.deserialize(
2297
- ObjectSerializer.parse(await response.body.text(), contentType),
2298
- "{ [key: string]: TokenMarketData; }", ""
2299
- ) as { [key: string]: TokenMarketData; };
2300
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2301
- }
2302
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2303
- }
2304
-
2305
- /**
2306
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2307
- * to the expected objects
2308
- *
2309
- * @params response Response returned by the server for a request to getMetadata
2310
- * @throws ApiException if the response code was not in [200, 299]
2311
- */
2312
- public async getMetadataWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenMetadata >> {
2313
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2314
- if (isCodeInRange("200", response.httpStatusCode)) {
2315
- const body: TokenMetadata = ObjectSerializer.deserialize(
2316
- ObjectSerializer.parse(await response.body.text(), contentType),
2317
- "TokenMetadata", ""
2318
- ) as TokenMetadata;
2319
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2320
- }
2321
-
2322
- // Work around for missing responses in specification, e.g. for petstore.yaml
2323
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2324
- const body: TokenMetadata = ObjectSerializer.deserialize(
2325
- ObjectSerializer.parse(await response.body.text(), contentType),
2326
- "TokenMetadata", ""
2327
- ) as TokenMetadata;
2328
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2329
- }
2330
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2331
- }
2332
-
2333
- /**
2334
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2335
- * to the expected objects
2336
- *
2337
- * @params response Response returned by the server for a request to getMetadataMulti
2338
- * @throws ApiException if the response code was not in [200, 299]
2339
- */
2340
- public async getMetadataMultiWithHttpInfo(response: ResponseContext): Promise<HttpInfo<{ [key: string]: TokenMetadata; } >> {
2341
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2342
- if (isCodeInRange("200", response.httpStatusCode)) {
2343
- const body: { [key: string]: TokenMetadata; } = ObjectSerializer.deserialize(
2344
- ObjectSerializer.parse(await response.body.text(), contentType),
2345
- "{ [key: string]: TokenMetadata; }", ""
2346
- ) as { [key: string]: TokenMetadata; };
2347
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2348
- }
2349
-
2350
- // Work around for missing responses in specification, e.g. for petstore.yaml
2351
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2352
- const body: { [key: string]: TokenMetadata; } = ObjectSerializer.deserialize(
2353
- ObjectSerializer.parse(await response.body.text(), contentType),
2354
- "{ [key: string]: TokenMetadata; }", ""
2355
- ) as { [key: string]: TokenMetadata; };
2356
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2357
- }
2358
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2359
- }
2360
-
2361
- /**
2362
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2363
- * to the expected objects
2364
- *
2365
- * @params response Response returned by the server for a request to getMintAndBurn
2366
- * @throws ApiException if the response code was not in [200, 299]
2367
- */
2368
- public async getMintAndBurnWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenCreationPage >> {
2369
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2370
- if (isCodeInRange("200", response.httpStatusCode)) {
2371
- const body: TokenCreationPage = ObjectSerializer.deserialize(
2372
- ObjectSerializer.parse(await response.body.text(), contentType),
2373
- "TokenCreationPage", ""
2374
- ) as TokenCreationPage;
2375
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2376
- }
2377
-
2378
- // Work around for missing responses in specification, e.g. for petstore.yaml
2379
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2380
- const body: TokenCreationPage = ObjectSerializer.deserialize(
2381
- ObjectSerializer.parse(await response.body.text(), contentType),
2382
- "TokenCreationPage", ""
2383
- ) as TokenCreationPage;
2384
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2385
- }
2386
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2387
- }
2388
-
2389
- /**
2390
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2391
- * to the expected objects
2392
- *
2393
- * @params response Response returned by the server for a request to getPools
2394
- * @throws ApiException if the response code was not in [200, 299]
2395
- */
2396
- public async getPoolsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<DexPoolDTO> >> {
2397
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2398
- if (isCodeInRange("200", response.httpStatusCode)) {
2399
- const body: Array<DexPoolDTO> = ObjectSerializer.deserialize(
2400
- ObjectSerializer.parse(await response.body.text(), contentType),
2401
- "Array<DexPoolDTO>", ""
2402
- ) as Array<DexPoolDTO>;
2403
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2404
- }
2405
-
2406
- // Work around for missing responses in specification, e.g. for petstore.yaml
2407
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2408
- const body: Array<DexPoolDTO> = ObjectSerializer.deserialize(
2409
- ObjectSerializer.parse(await response.body.text(), contentType),
2410
- "Array<DexPoolDTO>", ""
2411
- ) as Array<DexPoolDTO>;
2412
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2413
- }
2414
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2415
- }
2416
-
2417
- /**
2418
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2419
- * to the expected objects
2420
- *
2421
- * @params response Response returned by the server for a request to getPriceByTime
2422
- * @throws ApiException if the response code was not in [200, 299]
2423
- */
2424
- public async getPriceByTimeWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenPriceDTO >> {
2425
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2426
- if (isCodeInRange("200", response.httpStatusCode)) {
2427
- const body: TokenPriceDTO = ObjectSerializer.deserialize(
2428
- ObjectSerializer.parse(await response.body.text(), contentType),
2429
- "TokenPriceDTO", ""
2430
- ) as TokenPriceDTO;
2431
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2432
- }
2433
-
2434
- // Work around for missing responses in specification, e.g. for petstore.yaml
2435
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2436
- const body: TokenPriceDTO = ObjectSerializer.deserialize(
2437
- ObjectSerializer.parse(await response.body.text(), contentType),
2438
- "TokenPriceDTO", ""
2439
- ) as TokenPriceDTO;
2440
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2441
- }
2442
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2443
- }
2444
-
2445
- /**
2446
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2447
- * to the expected objects
2448
- *
2449
- * @params response Response returned by the server for a request to getPrices
2450
- * @throws ApiException if the response code was not in [200, 299]
2451
- */
2452
- public async getPricesWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenPricePage >> {
2453
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2454
- if (isCodeInRange("200", response.httpStatusCode)) {
2455
- const body: TokenPricePage = ObjectSerializer.deserialize(
2456
- ObjectSerializer.parse(await response.body.text(), contentType),
2457
- "TokenPricePage", ""
2458
- ) as TokenPricePage;
2459
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2460
- }
2461
-
2462
- // Work around for missing responses in specification, e.g. for petstore.yaml
2463
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2464
- const body: TokenPricePage = ObjectSerializer.deserialize(
2465
- ObjectSerializer.parse(await response.body.text(), contentType),
2466
- "TokenPricePage", ""
2467
- ) as TokenPricePage;
2468
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2469
- }
2470
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2471
- }
2472
-
2473
- /**
2474
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2475
- * to the expected objects
2476
- *
2477
- * @params response Response returned by the server for a request to getSecurity
2478
- * @throws ApiException if the response code was not in [200, 299]
2479
- */
2480
- public async getSecurityWithHttpInfo(response: ResponseContext): Promise<HttpInfo<any >> {
2481
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2482
- if (isCodeInRange("200", response.httpStatusCode)) {
2483
- const body: any = ObjectSerializer.deserialize(
2484
- ObjectSerializer.parse(await response.body.text(), contentType),
2485
- "any", ""
2486
- ) as any;
2487
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2488
- }
2489
-
2490
- // Work around for missing responses in specification, e.g. for petstore.yaml
2491
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2492
- const body: any = ObjectSerializer.deserialize(
2493
- ObjectSerializer.parse(await response.body.text(), contentType),
2494
- "any", ""
2495
- ) as any;
2496
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2497
- }
2498
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2499
- }
2500
-
2501
- /**
2502
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2503
- * to the expected objects
2504
- *
2505
- * @params response Response returned by the server for a request to getStats
2506
- * @throws ApiException if the response code was not in [200, 299]
2507
- */
2508
- public async getStatsWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenStat >> {
2509
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2510
- if (isCodeInRange("200", response.httpStatusCode)) {
2511
- const body: TokenStat = ObjectSerializer.deserialize(
2512
- ObjectSerializer.parse(await response.body.text(), contentType),
2513
- "TokenStat", ""
2514
- ) as TokenStat;
2515
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2516
- }
2517
-
2518
- // Work around for missing responses in specification, e.g. for petstore.yaml
2519
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2520
- const body: TokenStat = ObjectSerializer.deserialize(
2521
- ObjectSerializer.parse(await response.body.text(), contentType),
2522
- "TokenStat", ""
2523
- ) as TokenStat;
2524
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2525
- }
2526
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2527
- }
2528
-
2529
- /**
2530
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2531
- * to the expected objects
2532
- *
2533
- * @params response Response returned by the server for a request to getStatsMulti
2534
- * @throws ApiException if the response code was not in [200, 299]
2535
- */
2536
- public async getStatsMultiWithHttpInfo(response: ResponseContext): Promise<HttpInfo<{ [key: string]: TokenStat; } >> {
2537
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2538
- if (isCodeInRange("200", response.httpStatusCode)) {
2539
- const body: { [key: string]: TokenStat; } = ObjectSerializer.deserialize(
2540
- ObjectSerializer.parse(await response.body.text(), contentType),
2541
- "{ [key: string]: TokenStat; }", ""
2542
- ) as { [key: string]: TokenStat; };
2543
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2544
- }
2545
-
2546
- // Work around for missing responses in specification, e.g. for petstore.yaml
2547
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2548
- const body: { [key: string]: TokenStat; } = ObjectSerializer.deserialize(
2549
- ObjectSerializer.parse(await response.body.text(), contentType),
2550
- "{ [key: string]: TokenStat; }", ""
2551
- ) as { [key: string]: TokenStat; };
2552
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2553
- }
2554
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2555
- }
2556
-
2557
- /**
2558
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2559
- * to the expected objects
2560
- *
2561
- * @params response Response returned by the server for a request to getToken
2562
- * @throws ApiException if the response code was not in [200, 299]
2563
- */
2564
- public async getTokenWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Token >> {
2565
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2566
- if (isCodeInRange("200", response.httpStatusCode)) {
2567
- const body: Token = ObjectSerializer.deserialize(
2568
- ObjectSerializer.parse(await response.body.text(), contentType),
2569
- "Token", ""
2570
- ) as Token;
2571
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2572
- }
2573
-
2574
- // Work around for missing responses in specification, e.g. for petstore.yaml
2575
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2576
- const body: Token = ObjectSerializer.deserialize(
2577
- ObjectSerializer.parse(await response.body.text(), contentType),
2578
- "Token", ""
2579
- ) as Token;
2580
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2581
- }
2582
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2583
- }
2584
-
2585
- /**
2586
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2587
- * to the expected objects
2588
- *
2589
- * @params response Response returned by the server for a request to getTokenList
2590
- * @throws ApiException if the response code was not in [200, 299]
2591
- */
2592
- public async getTokenListWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenListPage >> {
2593
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2594
- if (isCodeInRange("200", response.httpStatusCode)) {
2595
- const body: TokenListPage = ObjectSerializer.deserialize(
2596
- ObjectSerializer.parse(await response.body.text(), contentType),
2597
- "TokenListPage", ""
2598
- ) as TokenListPage;
2599
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2600
- }
2601
-
2602
- // Work around for missing responses in specification, e.g. for petstore.yaml
2603
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2604
- const body: TokenListPage = ObjectSerializer.deserialize(
2605
- ObjectSerializer.parse(await response.body.text(), contentType),
2606
- "TokenListPage", ""
2607
- ) as TokenListPage;
2608
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2609
- }
2610
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2611
- }
2045
+ let urlPath = `/v1/token/search`;
2612
2046
 
2613
- /**
2614
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2615
- * to the expected objects
2616
- *
2617
- * @params response Response returned by the server for a request to getTokens
2618
- * @throws ApiException if the response code was not in [200, 299]
2619
- */
2620
- public async getTokensWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Token> >> {
2621
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2622
- if (isCodeInRange("200", response.httpStatusCode)) {
2623
- const body: Array<Token> = ObjectSerializer.deserialize(
2624
- ObjectSerializer.parse(await response.body.text(), contentType),
2625
- "Array<Token>", ""
2626
- ) as Array<Token>;
2627
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2628
- }
2629
-
2630
- // Work around for missing responses in specification, e.g. for petstore.yaml
2631
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2632
- const body: Array<Token> = ObjectSerializer.deserialize(
2633
- ObjectSerializer.parse(await response.body.text(), contentType),
2634
- "Array<Token>", ""
2635
- ) as Array<Token>;
2636
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2637
- }
2638
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2639
- }
2047
+ const response = await this.request({
2048
+ path: urlPath,
2049
+ method: 'GET',
2050
+ headers: headerParameters,
2051
+ query: queryParameters,
2052
+ }, initOverrides);
2640
2053
 
2641
- /**
2642
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2643
- * to the expected objects
2644
- *
2645
- * @params response Response returned by the server for a request to getTopHolders
2646
- * @throws ApiException if the response code was not in [200, 299]
2647
- */
2648
- public async getTopHoldersWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenHolderPage >> {
2649
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2650
- if (isCodeInRange("200", response.httpStatusCode)) {
2651
- const body: TokenHolderPage = ObjectSerializer.deserialize(
2652
- ObjectSerializer.parse(await response.body.text(), contentType),
2653
- "TokenHolderPage", ""
2654
- ) as TokenHolderPage;
2655
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2656
- }
2657
-
2658
- // Work around for missing responses in specification, e.g. for petstore.yaml
2659
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2660
- const body: TokenHolderPage = ObjectSerializer.deserialize(
2661
- ObjectSerializer.parse(await response.body.text(), contentType),
2662
- "TokenHolderPage", ""
2663
- ) as TokenHolderPage;
2664
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2665
- }
2666
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2054
+ return new runtime.JSONApiResponse(response, (jsonValue) => TokenPageFromJSON(jsonValue));
2667
2055
  }
2668
2056
 
2669
2057
  /**
2670
- * Unwraps the actual response sent by the server from the response context and deserializes the response content
2671
- * to the expected objects
2672
- *
2673
- * @params response Response returned by the server for a request to search
2674
- * @throws ApiException if the response code was not in [200, 299]
2058
+ * CONTROLLER.TOKEN.SEARCH.DESCRIPTION
2059
+ * CONTROLLER.TOKEN.SEARCH.SUMMARY
2675
2060
  */
2676
- public async searchWithHttpInfo(response: ResponseContext): Promise<HttpInfo<TokenPage >> {
2677
- const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2678
- if (isCodeInRange("200", response.httpStatusCode)) {
2679
- const body: TokenPage = ObjectSerializer.deserialize(
2680
- ObjectSerializer.parse(await response.body.text(), contentType),
2681
- "TokenPage", ""
2682
- ) as TokenPage;
2683
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2684
- }
2685
-
2686
- // Work around for missing responses in specification, e.g. for petstore.yaml
2687
- if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2688
- const body: TokenPage = ObjectSerializer.deserialize(
2689
- ObjectSerializer.parse(await response.body.text(), contentType),
2690
- "TokenPage", ""
2691
- ) as TokenPage;
2692
- return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
2693
- }
2694
- throw new ApiException<string | Blob | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
2061
+ async search(requestParameters: SearchRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TokenPage> {
2062
+ const response = await this.searchRaw(requestParameters, initOverrides);
2063
+ return await response.value();
2695
2064
  }
2696
2065
 
2697
2066
  }
2067
+
2068
+ /**
2069
+ * @export
2070
+ */
2071
+ export const GetCandlesChainEnum = {
2072
+ Sol: 'sol',
2073
+ Base: 'base',
2074
+ Bsc: 'bsc',
2075
+ Polygon: 'polygon',
2076
+ Arbitrum: 'arbitrum',
2077
+ Optimism: 'optimism',
2078
+ Avalanche: 'avalanche',
2079
+ Ethereum: 'ethereum',
2080
+ Zksync: 'zksync',
2081
+ Sui: 'sui'
2082
+ } as const;
2083
+ export type GetCandlesChainEnum = typeof GetCandlesChainEnum[keyof typeof GetCandlesChainEnum];
2084
+ /**
2085
+ * @export
2086
+ */
2087
+ export const GetCreationChainEnum = {
2088
+ Sol: 'sol',
2089
+ Base: 'base',
2090
+ Bsc: 'bsc',
2091
+ Polygon: 'polygon',
2092
+ Arbitrum: 'arbitrum',
2093
+ Optimism: 'optimism',
2094
+ Avalanche: 'avalanche',
2095
+ Ethereum: 'ethereum',
2096
+ Zksync: 'zksync',
2097
+ Sui: 'sui'
2098
+ } as const;
2099
+ export type GetCreationChainEnum = typeof GetCreationChainEnum[keyof typeof GetCreationChainEnum];
2100
+ /**
2101
+ * @export
2102
+ */
2103
+ export const GetHoldersChainEnum = {
2104
+ Sol: 'sol',
2105
+ Base: 'base',
2106
+ Bsc: 'bsc',
2107
+ Polygon: 'polygon',
2108
+ Arbitrum: 'arbitrum',
2109
+ Optimism: 'optimism',
2110
+ Avalanche: 'avalanche',
2111
+ Ethereum: 'ethereum',
2112
+ Zksync: 'zksync',
2113
+ Sui: 'sui'
2114
+ } as const;
2115
+ export type GetHoldersChainEnum = typeof GetHoldersChainEnum[keyof typeof GetHoldersChainEnum];
2116
+ /**
2117
+ * @export
2118
+ */
2119
+ export const GetHoldersDirectionEnum = {
2120
+ Next: 'next',
2121
+ Prev: 'prev'
2122
+ } as const;
2123
+ export type GetHoldersDirectionEnum = typeof GetHoldersDirectionEnum[keyof typeof GetHoldersDirectionEnum];
2124
+ /**
2125
+ * @export
2126
+ */
2127
+ export const GetHoldersMultiChainEnum = {
2128
+ Sol: 'sol',
2129
+ Base: 'base',
2130
+ Bsc: 'bsc',
2131
+ Polygon: 'polygon',
2132
+ Arbitrum: 'arbitrum',
2133
+ Optimism: 'optimism',
2134
+ Avalanche: 'avalanche',
2135
+ Ethereum: 'ethereum',
2136
+ Zksync: 'zksync',
2137
+ Sui: 'sui'
2138
+ } as const;
2139
+ export type GetHoldersMultiChainEnum = typeof GetHoldersMultiChainEnum[keyof typeof GetHoldersMultiChainEnum];
2140
+ /**
2141
+ * @export
2142
+ */
2143
+ export const GetMarketDataChainEnum = {
2144
+ Sol: 'sol',
2145
+ Base: 'base',
2146
+ Bsc: 'bsc',
2147
+ Polygon: 'polygon',
2148
+ Arbitrum: 'arbitrum',
2149
+ Optimism: 'optimism',
2150
+ Avalanche: 'avalanche',
2151
+ Ethereum: 'ethereum',
2152
+ Zksync: 'zksync',
2153
+ Sui: 'sui'
2154
+ } as const;
2155
+ export type GetMarketDataChainEnum = typeof GetMarketDataChainEnum[keyof typeof GetMarketDataChainEnum];
2156
+ /**
2157
+ * @export
2158
+ */
2159
+ export const GetMarketDataMultiChainEnum = {
2160
+ Sol: 'sol',
2161
+ Base: 'base',
2162
+ Bsc: 'bsc',
2163
+ Polygon: 'polygon',
2164
+ Arbitrum: 'arbitrum',
2165
+ Optimism: 'optimism',
2166
+ Avalanche: 'avalanche',
2167
+ Ethereum: 'ethereum',
2168
+ Zksync: 'zksync',
2169
+ Sui: 'sui'
2170
+ } as const;
2171
+ export type GetMarketDataMultiChainEnum = typeof GetMarketDataMultiChainEnum[keyof typeof GetMarketDataMultiChainEnum];
2172
+ /**
2173
+ * @export
2174
+ */
2175
+ export const GetMetadataChainEnum = {
2176
+ Sol: 'sol',
2177
+ Base: 'base',
2178
+ Bsc: 'bsc',
2179
+ Polygon: 'polygon',
2180
+ Arbitrum: 'arbitrum',
2181
+ Optimism: 'optimism',
2182
+ Avalanche: 'avalanche',
2183
+ Ethereum: 'ethereum',
2184
+ Zksync: 'zksync',
2185
+ Sui: 'sui'
2186
+ } as const;
2187
+ export type GetMetadataChainEnum = typeof GetMetadataChainEnum[keyof typeof GetMetadataChainEnum];
2188
+ /**
2189
+ * @export
2190
+ */
2191
+ export const GetMetadataMultiChainEnum = {
2192
+ Sol: 'sol',
2193
+ Base: 'base',
2194
+ Bsc: 'bsc',
2195
+ Polygon: 'polygon',
2196
+ Arbitrum: 'arbitrum',
2197
+ Optimism: 'optimism',
2198
+ Avalanche: 'avalanche',
2199
+ Ethereum: 'ethereum',
2200
+ Zksync: 'zksync',
2201
+ Sui: 'sui'
2202
+ } as const;
2203
+ export type GetMetadataMultiChainEnum = typeof GetMetadataMultiChainEnum[keyof typeof GetMetadataMultiChainEnum];
2204
+ /**
2205
+ * @export
2206
+ */
2207
+ export const GetMintAndBurnChainEnum = {
2208
+ Sol: 'sol',
2209
+ Base: 'base',
2210
+ Bsc: 'bsc',
2211
+ Polygon: 'polygon',
2212
+ Arbitrum: 'arbitrum',
2213
+ Optimism: 'optimism',
2214
+ Avalanche: 'avalanche',
2215
+ Ethereum: 'ethereum',
2216
+ Zksync: 'zksync',
2217
+ Sui: 'sui'
2218
+ } as const;
2219
+ export type GetMintAndBurnChainEnum = typeof GetMintAndBurnChainEnum[keyof typeof GetMintAndBurnChainEnum];
2220
+ /**
2221
+ * @export
2222
+ */
2223
+ export const GetMintAndBurnDirectionEnum = {
2224
+ Next: 'next',
2225
+ Prev: 'prev'
2226
+ } as const;
2227
+ export type GetMintAndBurnDirectionEnum = typeof GetMintAndBurnDirectionEnum[keyof typeof GetMintAndBurnDirectionEnum];
2228
+ /**
2229
+ * @export
2230
+ */
2231
+ export const GetMintAndBurnTypeEnum = {
2232
+ All: 'all',
2233
+ Mint: 'mint',
2234
+ Burn: 'burn'
2235
+ } as const;
2236
+ export type GetMintAndBurnTypeEnum = typeof GetMintAndBurnTypeEnum[keyof typeof GetMintAndBurnTypeEnum];
2237
+ /**
2238
+ * @export
2239
+ */
2240
+ export const GetPoolsChainEnum = {
2241
+ Sol: 'sol',
2242
+ Base: 'base',
2243
+ Bsc: 'bsc',
2244
+ Polygon: 'polygon',
2245
+ Arbitrum: 'arbitrum',
2246
+ Optimism: 'optimism',
2247
+ Avalanche: 'avalanche',
2248
+ Ethereum: 'ethereum',
2249
+ Zksync: 'zksync',
2250
+ Sui: 'sui'
2251
+ } as const;
2252
+ export type GetPoolsChainEnum = typeof GetPoolsChainEnum[keyof typeof GetPoolsChainEnum];
2253
+ /**
2254
+ * @export
2255
+ */
2256
+ export const GetPriceByTimeChainEnum = {
2257
+ Sol: 'sol',
2258
+ Base: 'base',
2259
+ Bsc: 'bsc',
2260
+ Polygon: 'polygon',
2261
+ Arbitrum: 'arbitrum',
2262
+ Optimism: 'optimism',
2263
+ Avalanche: 'avalanche',
2264
+ Ethereum: 'ethereum',
2265
+ Zksync: 'zksync',
2266
+ Sui: 'sui'
2267
+ } as const;
2268
+ export type GetPriceByTimeChainEnum = typeof GetPriceByTimeChainEnum[keyof typeof GetPriceByTimeChainEnum];
2269
+ /**
2270
+ * @export
2271
+ */
2272
+ export const GetPricesChainEnum = {
2273
+ Sol: 'sol',
2274
+ Base: 'base',
2275
+ Bsc: 'bsc',
2276
+ Polygon: 'polygon',
2277
+ Arbitrum: 'arbitrum',
2278
+ Optimism: 'optimism',
2279
+ Avalanche: 'avalanche',
2280
+ Ethereum: 'ethereum',
2281
+ Zksync: 'zksync',
2282
+ Sui: 'sui'
2283
+ } as const;
2284
+ export type GetPricesChainEnum = typeof GetPricesChainEnum[keyof typeof GetPricesChainEnum];
2285
+ /**
2286
+ * @export
2287
+ */
2288
+ export const GetPricesDirectionEnum = {
2289
+ Next: 'next',
2290
+ Prev: 'prev'
2291
+ } as const;
2292
+ export type GetPricesDirectionEnum = typeof GetPricesDirectionEnum[keyof typeof GetPricesDirectionEnum];
2293
+ /**
2294
+ * @export
2295
+ */
2296
+ export const GetSecurityChainEnum = {
2297
+ Sol: 'sol',
2298
+ Base: 'base',
2299
+ Bsc: 'bsc',
2300
+ Polygon: 'polygon',
2301
+ Arbitrum: 'arbitrum',
2302
+ Optimism: 'optimism',
2303
+ Avalanche: 'avalanche',
2304
+ Ethereum: 'ethereum',
2305
+ Zksync: 'zksync',
2306
+ Sui: 'sui'
2307
+ } as const;
2308
+ export type GetSecurityChainEnum = typeof GetSecurityChainEnum[keyof typeof GetSecurityChainEnum];
2309
+ /**
2310
+ * @export
2311
+ */
2312
+ export const GetStatsChainEnum = {
2313
+ Sol: 'sol',
2314
+ Base: 'base',
2315
+ Bsc: 'bsc',
2316
+ Polygon: 'polygon',
2317
+ Arbitrum: 'arbitrum',
2318
+ Optimism: 'optimism',
2319
+ Avalanche: 'avalanche',
2320
+ Ethereum: 'ethereum',
2321
+ Zksync: 'zksync',
2322
+ Sui: 'sui'
2323
+ } as const;
2324
+ export type GetStatsChainEnum = typeof GetStatsChainEnum[keyof typeof GetStatsChainEnum];
2325
+ /**
2326
+ * @export
2327
+ */
2328
+ export const GetStatsMultiChainEnum = {
2329
+ Sol: 'sol',
2330
+ Base: 'base',
2331
+ Bsc: 'bsc',
2332
+ Polygon: 'polygon',
2333
+ Arbitrum: 'arbitrum',
2334
+ Optimism: 'optimism',
2335
+ Avalanche: 'avalanche',
2336
+ Ethereum: 'ethereum',
2337
+ Zksync: 'zksync',
2338
+ Sui: 'sui'
2339
+ } as const;
2340
+ export type GetStatsMultiChainEnum = typeof GetStatsMultiChainEnum[keyof typeof GetStatsMultiChainEnum];
2341
+ /**
2342
+ * @export
2343
+ */
2344
+ export const GetTokenChainEnum = {
2345
+ Sol: 'sol',
2346
+ Base: 'base',
2347
+ Bsc: 'bsc',
2348
+ Polygon: 'polygon',
2349
+ Arbitrum: 'arbitrum',
2350
+ Optimism: 'optimism',
2351
+ Avalanche: 'avalanche',
2352
+ Ethereum: 'ethereum',
2353
+ Zksync: 'zksync',
2354
+ Sui: 'sui'
2355
+ } as const;
2356
+ export type GetTokenChainEnum = typeof GetTokenChainEnum[keyof typeof GetTokenChainEnum];
2357
+ /**
2358
+ * @export
2359
+ */
2360
+ export const GetTokensChainEnum = {
2361
+ Sol: 'sol',
2362
+ Base: 'base',
2363
+ Bsc: 'bsc',
2364
+ Polygon: 'polygon',
2365
+ Arbitrum: 'arbitrum',
2366
+ Optimism: 'optimism',
2367
+ Avalanche: 'avalanche',
2368
+ Ethereum: 'ethereum',
2369
+ Zksync: 'zksync',
2370
+ Sui: 'sui'
2371
+ } as const;
2372
+ export type GetTokensChainEnum = typeof GetTokensChainEnum[keyof typeof GetTokensChainEnum];
2373
+ /**
2374
+ * @export
2375
+ */
2376
+ export const GetTokensSortByEnum = {
2377
+ MarketDataPriceInUsd: 'marketData.priceInUsd',
2378
+ StatsPriceChangeRatioInUsd1m: 'stats.priceChangeRatioInUsd1m',
2379
+ StatsPriceChangeRatioInUsd5m: 'stats.priceChangeRatioInUsd5m',
2380
+ StatsPriceChangeRatioInUsd1h: 'stats.priceChangeRatioInUsd1h',
2381
+ StatsPriceChangeRatioInUsd4h: 'stats.priceChangeRatioInUsd4h',
2382
+ StatsPriceChangeRatioInUsd24h: 'stats.priceChangeRatioInUsd24h',
2383
+ MarketDataMarketCapInUsd: 'marketData.marketCapInUsd',
2384
+ MarketDataTvlInUsd: 'marketData.tvlInUsd',
2385
+ MarketDataTop10TotalHoldings: 'marketData.top10TotalHoldings',
2386
+ MarketDataTop10HoldingsRatio: 'marketData.top10HoldingsRatio',
2387
+ MarketDataTop100TotalHoldings: 'marketData.top100TotalHoldings',
2388
+ MarketDataTop100HoldingsRatio: 'marketData.top100HoldingsRatio',
2389
+ MarketDataHolders: 'marketData.holders',
2390
+ MarketDataCreatorHoldings: 'marketData.creatorHoldings',
2391
+ MarketDataCreatorHoldingsRatio: 'marketData.creatorHoldingsRatio',
2392
+ StatsBuys1m: 'stats.buys1m',
2393
+ StatsBuys5m: 'stats.buys5m',
2394
+ StatsBuys15m: 'stats.buys15m',
2395
+ StatsBuys30m: 'stats.buys30m',
2396
+ StatsBuys1h: 'stats.buys1h',
2397
+ StatsBuys4h: 'stats.buys4h',
2398
+ StatsBuys24h: 'stats.buys24h',
2399
+ StatsSells1m: 'stats.sells1m',
2400
+ StatsSells5m: 'stats.sells5m',
2401
+ StatsSells15m: 'stats.sells15m',
2402
+ StatsSells30m: 'stats.sells30m',
2403
+ StatsSells1h: 'stats.sells1h',
2404
+ StatsSells4h: 'stats.sells4h',
2405
+ StatsSells24h: 'stats.sells24h',
2406
+ StatsTrades1m: 'stats.trades1m',
2407
+ StatsTrades5m: 'stats.trades5m',
2408
+ StatsTrades1h: 'stats.trades1h',
2409
+ StatsTrades4h: 'stats.trades4h',
2410
+ StatsTrades24h: 'stats.trades24h',
2411
+ StatsTraders1m: 'stats.traders1m',
2412
+ StatsTraders5m: 'stats.traders5m',
2413
+ StatsTraders1h: 'stats.traders1h',
2414
+ StatsTraders4h: 'stats.traders4h',
2415
+ StatsTraders24h: 'stats.traders24h',
2416
+ StatsVolumesInUsd1m: 'stats.volumesInUsd1m',
2417
+ StatsVolumesInUsd5m: 'stats.volumesInUsd5m',
2418
+ StatsVolumesInUsd1h: 'stats.volumesInUsd1h',
2419
+ StatsVolumesInUsd4h: 'stats.volumesInUsd4h',
2420
+ StatsVolumesInUsd24h: 'stats.volumesInUsd24h',
2421
+ TokenCreatedAt: 'tokenCreatedAt'
2422
+ } as const;
2423
+ export type GetTokensSortByEnum = typeof GetTokensSortByEnum[keyof typeof GetTokensSortByEnum];
2424
+ /**
2425
+ * @export
2426
+ */
2427
+ export const GetTokensSortDirectionEnum = {
2428
+ Asc: 'ASC',
2429
+ Desc: 'DESC'
2430
+ } as const;
2431
+ export type GetTokensSortDirectionEnum = typeof GetTokensSortDirectionEnum[keyof typeof GetTokensSortDirectionEnum];
2432
+ /**
2433
+ * @export
2434
+ */
2435
+ export const GetTopHoldersChainEnum = {
2436
+ Sol: 'sol',
2437
+ Base: 'base',
2438
+ Bsc: 'bsc',
2439
+ Polygon: 'polygon',
2440
+ Arbitrum: 'arbitrum',
2441
+ Optimism: 'optimism',
2442
+ Avalanche: 'avalanche',
2443
+ Ethereum: 'ethereum',
2444
+ Zksync: 'zksync',
2445
+ Sui: 'sui'
2446
+ } as const;
2447
+ export type GetTopHoldersChainEnum = typeof GetTopHoldersChainEnum[keyof typeof GetTopHoldersChainEnum];
2448
+ /**
2449
+ * @export
2450
+ */
2451
+ export const ListTokenChainEnum = {
2452
+ Sol: 'sol',
2453
+ Base: 'base',
2454
+ Bsc: 'bsc',
2455
+ Polygon: 'polygon',
2456
+ Arbitrum: 'arbitrum',
2457
+ Optimism: 'optimism',
2458
+ Avalanche: 'avalanche',
2459
+ Ethereum: 'ethereum',
2460
+ Zksync: 'zksync',
2461
+ Sui: 'sui'
2462
+ } as const;
2463
+ export type ListTokenChainEnum = typeof ListTokenChainEnum[keyof typeof ListTokenChainEnum];
2464
+ /**
2465
+ * @export
2466
+ */
2467
+ export const ListTokenDirectionEnum = {
2468
+ Next: 'next',
2469
+ Prev: 'prev'
2470
+ } as const;
2471
+ export type ListTokenDirectionEnum = typeof ListTokenDirectionEnum[keyof typeof ListTokenDirectionEnum];
2472
+ /**
2473
+ * @export
2474
+ */
2475
+ export const ListTokenSortEnum = {
2476
+ Asc: 'asc',
2477
+ Desc: 'desc'
2478
+ } as const;
2479
+ export type ListTokenSortEnum = typeof ListTokenSortEnum[keyof typeof ListTokenSortEnum];
2480
+ /**
2481
+ * @export
2482
+ */
2483
+ export const ListTokenSortByEnum = {
2484
+ H24VolumeInUsd: 'h24VolumeInUsd',
2485
+ H24PriceChangeRatio: 'h24PriceChangeRatio',
2486
+ H24Buys: 'h24Buys',
2487
+ H24Sells: 'h24Sells',
2488
+ H24Trades: 'h24Trades',
2489
+ H24Buyers: 'h24Buyers',
2490
+ H24Sellers: 'h24Sellers',
2491
+ H24BuyVolumeInUsd: 'h24BuyVolumeInUsd',
2492
+ H24SellVolumeInUsd: 'h24SellVolumeInUsd',
2493
+ H4VolumeInUsd: 'h4VolumeInUsd',
2494
+ H4PriceChangeRatio: 'h4PriceChangeRatio',
2495
+ H4Buys: 'h4Buys',
2496
+ H4Sells: 'h4Sells',
2497
+ H4Trades: 'h4Trades',
2498
+ H4Buyers: 'h4Buyers',
2499
+ H4Sellers: 'h4Sellers',
2500
+ H4BuyVolumeInUsd: 'h4BuyVolumeInUsd',
2501
+ H4SellVolumeInUsd: 'h4SellVolumeInUsd',
2502
+ H1VolumeInUsd: 'h1VolumeInUsd',
2503
+ H1PriceChangeRatio: 'h1PriceChangeRatio',
2504
+ H1Buys: 'h1Buys',
2505
+ H1Sells: 'h1Sells',
2506
+ H1Trades: 'h1Trades',
2507
+ H1Buyers: 'h1Buyers',
2508
+ H1Sellers: 'h1Sellers',
2509
+ H1BuyVolumeInUsd: 'h1BuyVolumeInUsd',
2510
+ H1SellVolumeInUsd: 'h1SellVolumeInUsd',
2511
+ M30VolumeInUsd: 'm30VolumeInUsd',
2512
+ M30PriceChangeRatio: 'm30PriceChangeRatio',
2513
+ M30Buys: 'm30Buys',
2514
+ M30Sells: 'm30Sells',
2515
+ M30Trades: 'm30Trades',
2516
+ M30Buyers: 'm30Buyers',
2517
+ M30Sellers: 'm30Sellers',
2518
+ M30BuyVolumeInUsd: 'm30BuyVolumeInUsd',
2519
+ M30SellVolumeInUsd: 'm30SellVolumeInUsd',
2520
+ M15VolumeInUsd: 'm15VolumeInUsd',
2521
+ M15PriceChangeRatio: 'm15PriceChangeRatio',
2522
+ M15Buys: 'm15Buys',
2523
+ M15Sells: 'm15Sells',
2524
+ M15Trades: 'm15Trades',
2525
+ M15Buyers: 'm15Buyers',
2526
+ M15Sellers: 'm15Sellers',
2527
+ M15BuyVolumeInUsd: 'm15BuyVolumeInUsd',
2528
+ M15SellVolumeInUsd: 'm15SellVolumeInUsd',
2529
+ M5VolumeInUsd: 'm5VolumeInUsd',
2530
+ M5PriceChangeRatio: 'm5PriceChangeRatio',
2531
+ M5Buys: 'm5Buys',
2532
+ M5Sells: 'm5Sells',
2533
+ M5Trades: 'm5Trades',
2534
+ M5Buyers: 'm5Buyers',
2535
+ M5Sellers: 'm5Sellers',
2536
+ M5BuyVolumeInUsd: 'm5BuyVolumeInUsd',
2537
+ M5SellVolumeInUsd: 'm5SellVolumeInUsd',
2538
+ M1VolumeInUsd: 'm1VolumeInUsd',
2539
+ M1PriceChangeRatio: 'm1PriceChangeRatio',
2540
+ M1Buys: 'm1Buys',
2541
+ M1Sells: 'm1Sells',
2542
+ M1Trades: 'm1Trades',
2543
+ M1Buyers: 'm1Buyers',
2544
+ M1Sellers: 'm1Sellers',
2545
+ M1BuyVolumeInUsd: 'm1BuyVolumeInUsd',
2546
+ M1SellVolumeInUsd: 'm1SellVolumeInUsd'
2547
+ } as const;
2548
+ export type ListTokenSortByEnum = typeof ListTokenSortByEnum[keyof typeof ListTokenSortByEnum];
2549
+ /**
2550
+ * @export
2551
+ */
2552
+ export const SearchSortEnum = {
2553
+ Asc: 'asc',
2554
+ Desc: 'desc'
2555
+ } as const;
2556
+ export type SearchSortEnum = typeof SearchSortEnum[keyof typeof SearchSortEnum];
2557
+ /**
2558
+ * @export
2559
+ */
2560
+ export const SearchSortByEnum = {
2561
+ MarketCapInUsd: 'marketCapInUsd',
2562
+ LiquidityInUsd: 'liquidityInUsd',
2563
+ PriceInUsd: 'priceInUsd',
2564
+ HolderCount: 'holderCount',
2565
+ H24VolumeInUsd: 'h24VolumeInUsd',
2566
+ H24Transactions: 'h24Transactions',
2567
+ TokenCreatedAt: 'tokenCreatedAt'
2568
+ } as const;
2569
+ export type SearchSortByEnum = typeof SearchSortByEnum[keyof typeof SearchSortByEnum];