volume
Returns the latest DEX trades by token on Ethereum, where currency smart contract is 0xb28a…1306 and block date since 2024-04-04: block date, average of trade price in USD and sum of trade side amount in USD.
What it returns
- block date
- average of trade price in USD
- sum of trade side amount in USD
Filters
- currency smart contract is 0xb28a…1306
- block date since 2024-04-04
The query
query ($network: evm_network, $token: String, $since: String) {
EVM(network: $network, dataset: combined) {
DEXTradeByTokens(
orderBy: {descendingByField: "Block_Date"}
where: {Block: {Date: {since: $since}}, Trade: {Currency: {SmartContract: {is: $token}}}}
) {
Block {
Date(interval: {in: days, count: 1})
}
price: average(of: Trade_PriceInUSD)
volume: sum(of: Trade_Side_AmountInUSD)
}
}
}
Variables
{
"network": "eth",
"token": "0xb28a3778e1A78a8c327693516ed4F5B11db41306",
"since": "2024-04-04"
}
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