QueryForTradeVolume
Returns 300 DEX trades by token on Solana, where side currency mint address is So1111…1112 or 111111…1111, currency mint address is not So1111…1112 or 111111…1111 and block time since 2025-08-31, sorted by total traded volume, highest first: currency name, currency mint address, currency symbol, price in USD, side currency symbol, side currency name, side currency mint address and 2 more fields.
What it returns
- currency name
- currency mint address
- currency symbol
- price in USD
- side currency symbol
- side currency name
- side currency mint address
- count
- sum of trade side amount in USD
Filters
- side currency mint address is So1111…1112 or 111111…1111
- currency mint address is not So1111…1112 or 111111…1111
- block time since 2025-08-31
- side amount in USD is above 10
The query
query LastPeriodTradeVolume($currencies: [String!], $sides: [String!], $block_time: DateTime) {
Solana(dataset: realtime) {
DEXTradeByTokens(
where: {Transaction: {Result: {Success: true}}, Trade: {Side: {Currency: {MintAddress: {in: $sides}}, AmountInUSD: {gt: "10"}}, Currency: {MintAddress: {notIn: $currencies}}}, Block: {Time: {since: $block_time}}}
orderBy: {descendingByField: "total_traded_volume"}
limit: {count: 300}
) {
Trade {
Currency {
Name
MintAddress
Symbol
}
start: PriceInUSD(minimum: Block_Time)
min5: PriceInUSD(minimum: Block_Time, if: {Block: {Time: {after: $block_time}}})
end: PriceInUSD(maximum: Block_Time)
Side {
Currency {
Symbol
Name
MintAddress
}
}
}
makers: count(distinct: Transaction_Signer)
total_trades: count
total_traded_volume: sum(of: Trade_Side_AmountInUSD)
total_buy_volume: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: buy}}}}
)
total_sell_volume: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: sell}}}}
)
total_buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
total_sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
}
}
}
Variables
{"currencies": ["So11111111111111111111111111111111111111112","11111111111111111111111111111111"], "sides": ["So11111111111111111111111111111111111111112","11111111111111111111111111111111"],"block_time":"2025-08-31T16:54:00Z"}
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