Top Traders of a Token
Returns 100 DEX trades by token on Ethereum, where currency smart contract is 0xa0b8…eb48 and DEX protocol name is uniswap_v4, uniswap_v3 or 2 more, sorted by volume USD, highest first: buyer, sum of trade amount and sum of trade side amount in USD.
What it returns
- buyer
- sum of trade amount
- sum of trade side amount in USD
Filters
- currency smart contract is 0xa0b8…eb48
- DEX protocol name is uniswap_v4, uniswap_v3 or 2 more
The query
query topTraders {
EVM(network: eth) {
DEXTradeByTokens(
orderBy: { descendingByField: "volumeUsd" }
limit: { count: 100 }
where: {
Trade: {
Currency: {
SmartContract: { is: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" }
}
Dex: {
ProtocolName: { in: ["uniswap_v4","uniswap_v3", "uniswap_v2", "uniswap_v1"] }
}
}
}
) {
Trade {
Buyer
}
bought: sum(
of: Trade_Amount
if: { Trade: { Side: { Type: { is: buy } } } }
)
sold: sum(
of: Trade_Amount
if: { Trade: { Side: { Type: { is: sell } } } }
)
volume: sum(of: Trade_Amount)
volumeUsd: sum(of: Trade_Side_AmountInUSD)
}
}
}
Similar queries
- CRV hourly OHLC on Curve - Ethereum · Ethereum · DEXTradeByTokens
- Top Metric liquidity pools by 24h volume on Ethereum · Ethereum · DEXTradeByTokens
- ATH of eth token · Ethereum · DEXTradeByTokens
- historical price and historical volume · Ethereum · DEXTradeByTokens
- topTraders EVM · Ethereum · DEXTradeByTokens