ATH of eth token

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 Kshitij Mahajan · saved 24 June 2026 · run 3 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/
#
# For more info on the endpoint visit -
# https://docs.bitquery.io/docs/blockchain/Ethereum/dextrades/token-trades-
# apis/
# For faster results try using indexed feilds in where and orderBy clause -
# https://docs.bitquery.io/docs/graphql/indexed-fields-reference/

{
  EVM(network: eth, dataset: combined) {
    DEXTradeByTokens(
      where: {Block: {Date: {since: "2025-01-01"}}, 
        Trade: {Currency: {SmartContract: 
          {is: "0x8db036f007841C21B97eFF7dfc2c187241d59BaF"}},
          Side: {Currency: {SmartContract: {in: [
            "0x",
            "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"]}}}, 
          AmountInUSD: {gt: "5"}}, TransactionStatus: {Success: true}}
      limitBy:{count:1 by:Trade_Side_Currency_SmartContract}
      orderBy: {descendingByField: "ath_price"}
    ) {
      Trade {
        PriceInUSD(maximum: Trade_PriceInUSD)
        Currency {
          Name
          Symbol
          SmartContract
        }
        Side {
          Currency {
            Name
            Symbol
            SmartContract
          }
        }
      }
      ath_price: quantile(of: Trade_PriceInUSD, level: 0.95)
      ath_99: quantile(of: Trade_PriceInUSD, level: 0.99)
    }
  }
}

Similar queries