DEXTradesByToken historical query
When using Time(interval: {in: minutes, count: 1}) with dataset: combined, the response groups trades into per-minute buckets per DEX/side-currency combination Result: Returns ~50 rows, each representing a minute bucket with aggregated counts (e.g., "buys": 22, "sells": 0, "trades": 22). No Transaction.Signature or Trade.Account.Owner per row.
What it returns
- block time
- currency name
- currency symbol
- currency mint address
- side type
- side currency name
- side currency symbol
- side currency mint address
- protocol name
- protocol family
- program address
- market address
- sum of trade side amount in USD
- count
Filters
- currency mint address is 27G8Mt…idD4
- side currency mint address is So1111…1112, EPjFWd…Dt1v or 1 more
- block time since 2026-03-09
- block time till 2026-03-09
The query
query MondayTrades($token: String!, $since: DateTime!, $till: DateTime!) {
Solana(dataset: combined) {
DEXTradeByTokens(
orderBy: {descendingByField: "Block_Time"}
limit: {count: 50}
where: {Trade: {Currency: {MintAddress: {is: $token}}, Side: {Currency: {MintAddress: {in: ["So11111111111111111111111111111111111111112", "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"]}}}}, Block: {Time: {since: $since, till: $till}}, Transaction: {Result: {Success: true}}}
) {
Block {
Time(interval: {in: minutes, count: 1})
}
Trade {
Currency {
Name
Symbol
MintAddress
}
Side {
Type
Currency {
Name
Symbol
MintAddress
}
}
Dex {
ProtocolName
ProtocolFamily
ProgramAddress
}
Market {
MarketAddress
}
}
volume: sum(of: Trade_Side_AmountInUSD)
buy_volume: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: buy}}}}
)
sell_volume: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: sell}}}}
)
trades: count
buys: count(if: {Trade: {Side: {Type: {is: buy}}}})
sells: count(if: {Trade: {Side: {Type: {is: sell}}}})
}
}
}
Variables
{
"token": "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4",
"since": "2026-03-09T00:00:00Z",
"till": "2026-03-09T23:59:59Z"
}
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