total bought and total sold of a specific token by a wallet
Returns 10 DEX trades by token on Solana, where currency mint address is 6jTQCF…pump, account owner is GwyG5F…DQDT and block time since 2025-06-25, sorted by buy amount USD, highest first: account owner, currency name, currency mint address, side currency name, side currency symbol, side currency mint address, sum of trade amount and 2 more fields.
What it returns
- account owner
- currency name
- currency mint address
- side currency name
- side currency symbol
- side currency mint address
- sum of trade amount
- sum of trade side amount in USD
- count
Filters
- currency mint address is 6jTQCF…pump
- account owner is GwyG5F…DQDT
- block time since 2025-06-25
The query
query ArchiveFrequentTokens {
Solana(dataset: combined) {
DEXTradeByTokens(
orderBy: {descendingByField: "buy_amount_usd"}
limit: {count: 10}
where: {Block: {Time: {since: "2025-06-25T00:00:00Z"}}, Trade: {Currency: {MintAddress: {is: "6jTQCFZR8JwvvenVGa3RzGM3a5YEagk9kQXDpHHdpump"}}, Account: {Owner: {is: "GwyG5FQRNtY1faXYWdTLbcDNZTyW5d2Z63o1UiMUDQDT"}}}}
) {
Trade {
Account {
Owner
}
Currency {
Name
MintAddress
}
Side{
Currency{
Name
Symbol
MintAddress
}
}
}
buy_amount: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: buy}}}})
buy_amount_usd: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: buy}}}}
)
sell_amount: sum(of: Trade_Amount, if: {Trade: {Side: {Type: {is: sell}}}})
sell_amount_usd: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: sell}}}}
)
trade_count_buy: count(if: {Trade: {Side: {Type: {is: buy}}}})
trade_count_sell: count(if: {Trade: {Side: {Type: {is: sell}}}})
}
}
}
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