getATHByToken (new - lean) with metadata

Returns one DEX trade by token on Solana, where side currency mint address is 111111…1111, EPjFWd…Dt1v or 2 more, currency mint address is Ekqrcm…pump and side amount in USD is above 10, sorted by a ath, highest first: currency name, currency symbol and quantile of trade price in USD.

By gaurav · saved 9 October 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($tokenAddress: String!) {
  Solana(dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Side: {Currency: {MintAddress: 
        {in: ["11111111111111111111111111111111",
          "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "So11111111111111111111111111111111111111112"]}}, AmountInUSD: {gt: "10"}}, Currency: {MintAddress: {is: $tokenAddress}}, PriceAsymmetry: {lt: 0.01}}}
      limit: {count: 1}
      orderBy: {descendingByField: "aATH"}
    ) {
      Trade{
        Currency{
          Name
          Symbol
        }
      }
      aATH: quantile(of: Trade_PriceInUSD, level: 0.95)
    }
  }
}

Variables

{
  "tokenAddress" :"EkqrcmLhvh7VcRQ11d8dqcAWh3T43gPvb92iFU2pump"
}

Similar queries