statistic by dex protocol
Returns DEX trades on Ethereum, where DEX protocol name is uniswap_v2, block date since 2024-01-04 and block date till 2024-01-10, sorted by block date: chain ID, block date, count, sum of fee sender fee, sum of fee burnt and sum of fee miner reward.
What it returns
- chain ID
- block date
- count
- sum of fee sender fee
- sum of fee burnt
- sum of fee miner reward
Filters
- DEX protocol name is uniswap_v2
- block date since 2024-01-04
- block date till 2024-01-10
The query
query ($network: evm_network, $from: String, $till: String, $protocol: String!) {
EVM(dataset: archive, network: $network) {
DEXTrades(
where: {Trade: {Dex: {ProtocolName: {is: $protocol}}}, Block: {Date: {since: $from, till: $till}}}
orderBy: {ascending: Block_Date}
) {
ChainId
Block {
Date
}
count
seller: count(distinct: Trade_Sell_Buyer)
currency_sell: count(distinct: Trade_Sell_Currency_Symbol)
buyer: count(distinct: Trade_Buy_Buyer)
currency_buy: count(distinct: Trade_Buy_Currency_Symbol)
to: count(distinct: Call_To)
sender_fee: sum(of: Fee_SenderFee)
burnt: sum(of: Fee_Burnt)
reward: sum(of: Fee_MinerReward)
}
}
}
Variables
{
"limit": 10,
"offset": 0,
"network": "eth",
"protocol": "uniswap_v2",
"from": "2024-01-04",
"till": "2024-01-10"
}
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