volume at a time
24 Hour Volume for a Token on uniswap v3
Returns DEX trades by token on Ethereum, where side currency smart contract is 0xC02a…6Cc2, currency smart contract is 0x5149…86CA and DEX protocol name is uniswap_v3: sum of trade side amount in USD, count and protocol name.
What it returns
- sum of trade side amount in USD
- count
- protocol name
Filters
- side currency smart contract is 0xC02a…6Cc2
- currency smart contract is 0x5149…86CA
- DEX protocol name is uniswap_v3
- block time till 2024-12-12
The query
{
EVM(network: eth, dataset: combined) {
DEXTradeByTokens(
where: {Trade: {Side: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}, Currency: {SmartContract: {is: "0x514910771AF9Ca656af840dff83E8264EcF986CA"}}, Dex: {ProtocolName: {is: "uniswap_v3"}}}, Block: {Time: {till: "2024-12-12T18:58:00Z"}}, TransactionStatus: {Success: true}}
) {
total_traded_volume: sum(of: Trade_Side_AmountInUSD)
total_buy_volume: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: buy}}}}
)
total_sell_volume: sum(
of: Trade_Side_AmountInUSD
if: {Trade: {Side: {Type: {is: sell}}}}
)
total_sell_volume24ago: sum(
of: Trade_Side_AmountInUSD
if: {Block:{Time:{till: "2024-12-11T18:58:00Z"}}}
)
total_sell_volume1mago: sum(
of: Trade_Side_AmountInUSD
if: {Block:{Time:{till: "2024-11-12T18:58:00Z"}}}
)
total_sell_volume2mago: sum(
of: Trade_Side_AmountInUSD
if: {Block:{Time:{till: "2024-10-12T18:58:00Z"}}}
)
total_sell_volume3mago: sum(
of: Trade_Side_AmountInUSD
if: {Block:{Time:{till: "2024-09-12T18:58:00Z"}}}
)
makers: count(distinct: Transaction_From)
Trade {
Dex {
ProtocolName
}
}
}
}
}
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