mirror-link-query

Returns the latest DEX pool on Solana, where base currency mint address is 2XYgoc…4dYT, currency mint address is 2XYgoc…4dYT and DEX protocol family is Raydium or Pumpswap: base post amount, base price in USD, quote post amount, protocol family, base currency name, base currency symbol, base currency mint address and 5 more fields.

By Kshitij Mahajan · saved 2 July 2025 · run 9 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String!) {
  Solana {
    DEXPools(
      where: {Pool: {Market: {BaseCurrency: {MintAddress: {is: $token}}}, Dex: {ProtocolFamily: {in: ["Raydium", "Pumpswap"]}}}}
      limitBy: {by: Pool_Market_MarketAddress, count: 1}
      orderBy: {descending: Block_Time}
    ) {
      Pool {
        Base {
          BaseLiquidity: PostAmount
          PriceInUSD
        }
        Quote {
          QuoteLiquidity: PostAmount
        }
        Dex {
          ProtocolFamily
        }
        Market {
          BaseCurrency {
            Name
            Symbol
            MintAddress
          }
          QuoteCurrency {
            Name
            Symbol
            MintAddress
          }
        }
      }
    }
    TokenSupplyUpdates(
      where: {TokenSupplyUpdate: {Currency: {MintAddress: {is: $token}}}}
      orderBy: {descending: Block_Time}
      limit: {count: 1}
    ) {
      TokenSupplyUpdate {
        Marketcap: PostBalanceInUSD
        TotalSupply: PostBalance
      }
    }
  }
}

Variables

{
  "token": "2XYgocKz9MvkNVVyj85kdM2VxsUwrJeQUZVD4qmD4dYT"
}

Similar queries