Trade Volume Trend by protocol
Returns DEX trades on Ethereum, where DEX protocol name is uniswap_v2, block date since 2024-01-03 and block date till 2024-01-10, sorted by block date: block date, sum of trade buy amount in USD and sum of trade sell amount in USD.
What it returns
- block date
- sum of trade buy amount in USD
- sum of trade sell amount in USD
Filters
- DEX protocol name is uniswap_v2
- block date since 2024-01-03
- block date till 2024-01-10
The query
query ($network: evm_network, $protocol: String, $from: String, $till: String) {
EVM(dataset: combined, network: $network) {
DEXTrades(
where: {
Block: {Date: {since: $from, till: $till}},
Trade: {Dex: {ProtocolName: {is: $protocol}}, Success: true}
}
orderBy: {ascending: Block_Date}
) {
Block {
Date
}
buy_amount_usd: sum(of: Trade_Buy_AmountInUSD)
sell_amount_usd: sum(of: Trade_Sell_AmountInUSD)
}
}
}
Variables
{
"network": "eth",
"limit": 10,
"offset": 0,
"from": "2024-01-03",
"till": "2024-01-10",
"protocol": "uniswap_v2"
}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades