volume in a specific price band
Returns DEX trades by token on Ethereum, where currency smart contract is 0xc02a…6cc2, side currency smart contract is 0xdac1…1ec7 and DEX protocol family is Uniswap: sum of trade amount in USD.
What it returns
- sum of trade amount in USD
Filters
- currency smart contract is 0xc02a…6cc2
- side currency smart contract is 0xdac1…1ec7
- DEX protocol family is Uniswap
- block time since 2025-01-01
- block time till 2025-01-07
- trade price in USD is at least 3000
- trade price in USD is at most 4000
The query
query MyQuery ($priceLow: Float, $priceHigh: Float){
EVM(network: eth, dataset: archive) {
DEXTradeByTokens(
where: {Trade: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}, Side: {Currency: {SmartContract: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}}}, Dex: {ProtocolFamily: {is: "Uniswap"}}, PriceInUSD: {ge: $priceLow, le: $priceHigh}}, Block: {Time: {since: "2025-01-01T01:00:00Z", till: "2025-01-07T01:00:00Z"}}, TransactionStatus: {Success: true}}
) {
volume: sum(of: Trade_AmountInUSD)
}
}
}
Variables
{
"priceLow": "3000",
"priceHigh": "4000"
}
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