ATH with price delta Solana
ath with price delta
Returns one DEX trade by token on Solana, where side currency mint address is 111111…1111, EPjFWd…Dt1v or 2 more and currency mint address is 2tnA2Z…6m26, sorted by a ath, highest first: price in USD, calculate and quantile of trade price in USD.
What it returns
- price in USD
- calculate
- quantile of trade price in USD
Filters
- side currency mint address is 111111…1111, EPjFWd…Dt1v or 2 more
- currency mint address is 2tnA2Z…6m26
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/
#
query($token:String){
Solana(dataset: combined) {
DEXTradeByTokens(
where: {Trade: {Side: {Currency: {MintAddress: {in: ["11111111111111111111111111111111", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB", "So11111111111111111111111111111111111111112"]}}}, Currency: {MintAddress: {is: $token}}}, Transaction: {Result: {Success: true}}}
limit: {count: 1}
orderBy: {descendingByField: "aATH"}
) {
Trade {
Price_24h_ago: PriceInUSD(
minimum: Block_Slot
if: {Block: {Time: {since_relative: {hours_ago: 24}}}}
)
Price_7d_ago: PriceInUSD(
minimum: Block_Slot
if: {Block: {Time: {since_relative: {days_ago: 7}}}}
)
Price_30d_ago: PriceInUSD(
minimum: Block_Slot
if: {Block: {Time: {since_relative: {days_ago: 30}}}}
)
CurrentPrice: PriceInUSD(maximum: Block_Slot)
}
change24hr:calculate(
expression: "(($Trade_CurrentPrice - $Trade_Price_24h_ago) / $Trade_Price_24h_ago) * 100"
)
change7d: calculate(
expression: "(($Trade_CurrentPrice - $Trade_Price_7d_ago) / $Trade_Price_7d_ago) * 100"
)
change30d:calculate(
expression: "(($Trade_CurrentPrice - $Trade_Price_30d_ago) / $Trade_Price_30d_ago) * 100"
)
aATH: quantile(of: Trade_PriceInUSD, level: 0.95 )
}
}
}
Variables
{
"token":"2tnA2ZmwmgUZLyYLi97zbwsFBXAqpMEcHu9Cv9JW6m26"
}
Similar queries
- ANSEM daily traders, June 16 to 26, 2026 · Solana · DEXTradeByTokens
- Solana SOL/USDC 1-Minute OHLC with DEXTradeByTokens · Solana · DEXTradeByTokens
- FOMO App: Top Tokens Bought, Last Hour (Solana) · Solana · DEXTradeByTokens
- FOMO App: Most Active Wallets, Last Hour (Solana) · Solana · DEXTradeByTokens
- Buys, Sells, BuyVolume, SellVolume, Makers, TotalTradedVolume, PriceinUSD for solana token pair · Solana · DEXTradeByTokens