pepe-top-holders
Returns 20 trades, where token address is 0x6982…1933, sorted by holdings, highest first: trader address, sum of amounts in USD base, calculate and count.
What it returns
- trader address
- sum of amounts in USD base
- calculate
- count
Filters
- token address is 0x6982…1933
The query
query MyQuery {
Trading {
Trades(
where: {
Block: {Time: {since_relative: {hours_ago: 24}}},
Pair: {Token: {Address: {is: "0x6982508145454ce325ddbe47a25d4ec3d2311933"}}},
}
limit: {count: 20}
orderBy: {descendingByField: "holdings"}
) {
Trader {
Address
}
buy_volume: sum(of: AmountsInUsd_Base if: {Side: {is: "Buy"}})
sell_volume: sum(of: AmountsInUsd_Base if: {Side: {is: "Sell"}})
holdings: calculate(expression: "$buy_volume - $sell_volume")
trades: count
}
}
}
Similar queries
- Trading API: Solana Trades with Transaction Hash · Trading (all chains) · Trades
- Elysium latest trades of one token (WHYPE) · Trading (all chains) · Trades
- FOMO App: Trades per Day (Trading API) · Trading (all chains) · Trades
- save with commit · Trading (all chains) · Tokens