Get Volume Stats for Solana Chain
Traded volume, trade count and active wallets for Solana over a stated window, from `DEXTradeByTokens`. Two things this query has to work around. `Solana.DEXTrades` keeps about 12 hours and has no archive, so it cannot answer this at all. And a `uniq` in the same selection as `sum` and `count` corrupts those aggregates and freezes the time filter with them - asking for 1, 3 or 6 days then returns the same totals - so active wallets is computed in its own aliased call. The volume sum also excludes single trades above $1M, which are mispriced rows; without that guard the total reads about $32 quadrillion a day instead of about $16 billion.
What it returns
- sum of trade side amount in USD
- count
- unique of transaction signer
The query
{
Solana {
# A uniq() in the same selection as sum() and count() corrupts those
# aggregates and freezes the time filter with them: 1, 3 and 6 days all
# return the same totals. Each metric gets its own aliased call.
volume: DEXTradeByTokens(
where: {
Transaction: { Result: { Success: true } }
Block: { Time: { since_relative: { days_ago: 5 } } }
}
) {
Total_VolumeUSD: sum(
of: Trade_Side_AmountInUSD
if: { Trade: { Side: { AmountInUSD: { lt: "1000000" } } } }
)
Total_Trades: count
}
wallets: DEXTradeByTokens(
where: {
Transaction: { Result: { Success: true } }
Block: { Time: { since_relative: { days_ago: 5 } } }
}
) {
Active_wallets: uniq(of: Transaction_Signer)
}
}
}
Similar queries
- ANSEM daily traders, June 16 to 26, 2026 · Solana · DEXTradeByTokens
- ANSEM swaps per hour, June 27, 2026 · 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