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