ATH of multiple tokens quantile Solana

Historical data This query already reads history - it uses the combined dataset, which needs the historical data add-on for this chain. Without the add-on it fails with 'access restricted: your plan only allows realtime'. Drop the dataset argument to fall back to the recent window. Datasets: https:

By gaurav · saved 18 August 2026 · run 2 times · Bitquery API v2

What it returns

Filters

The query

# Historical data
#   This query already reads history - it uses the combined dataset, which
#   needs the historical data add-on for this chain.
#
#   Without the add-on it fails with 'access restricted: your plan only allows
#   realtime'. Drop the dataset argument to fall back to the recent window.
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#

{
  Solana(dataset: combined) {
    DEXTradeByTokens(
      where: {Trade: {Currency: {MintAddress: {in: ["8SVVCGzYwnAkDwwvc5fSHZdCenUyhPccnGirWecVpump", "FeR8VBqNRSUD5NtXAj2n3j1dAHkZHfyDktKuLXD4pump"]}}}}
      limit: {count: 2}
      orderBy: {descendingByField: "aATH"}
      limitBy: {by: Trade_Currency_MintAddress, count: 1}
    ) {
      Trade {
        Currency {
          Name
        }
      }
      aATH: quantile(of: Trade_PriceInUSD, level: 0.99)
    }
  }
}

Similar queries