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:
What it returns
- price in USD
- currency name
- currency symbol
- smart contract
- side currency name
- side currency symbol
- side smart contract
- quantile of trade price in USD
Filters
- currency smart contract is 0x8db0…9BaF
- side currency smart contract is 0x, 0xa0b8…eb48 or 2 more
- block date since 2025-01-01
- trade amount in USD is above 5
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
- CRV hourly OHLC on Curve - Ethereum · Ethereum · DEXTradeByTokens
- Top Metric liquidity pools by 24h volume on Ethereum · Ethereum · DEXTradeByTokens
- historical price and historical volume · Ethereum · DEXTradeByTokens
- topTraders EVM · Ethereum · DEXTradeByTokens
- evm first trade of token · Ethereum · DEXTradeByTokens