details of pools on daily basis
Returns balance updates and DEX trades by token, where balance update address is 0x88e6…5640, currency smart contract is 0xc02a…6cc2 or 0xa0b8…eb48 and DEX smart contract is 0x88e6…5640, sorted by block interval, highest first: sum of balance update amount, currency name, smart contract, block time, block date, count, sum of trade amount and 3 more fields.
What it returns
- sum of balance update amount
- currency name
- smart contract
- block time
- block date
- count
- sum of trade amount
- sum of trade side amount
- currency symbol
- side currency symbol
Filters
- balance update address is 0x88e6…5640
- currency smart contract is 0xc02a…6cc2 or 0xa0b8…eb48
- DEX smart contract is 0x88e6…5640
- currency symbol is WETH
- side currency symbol is USDC
- block date is 2024-08-01
- block date after 2022-08-01
The query
{
EVM(dataset: combined) {
BalanceUpdates(
where: {Block: {Date: {is: "2024-08-01"}}, BalanceUpdate: {Address: {is: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"}}, Currency: {SmartContract: {in: ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"]}}}
) {
sum(of: BalanceUpdate_Amount)
Currency {
Name
SmartContract
}
}
DEXTradeByTokens(
orderBy: {descendingByField: "Block_Interval"}
where: {Block: {Date: {after: "2022-08-01"}}, Trade: {Dex: {SmartContract: {is: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"}}, Currency: {Symbol: {is: "WETH"}}, Side: {Currency: {Symbol: {is: "USDC"}}}}}
) {
Block {
Interval: Time(interval: {in: days, count: 1})
Date
}
count
buy_amount: sum(of: Trade_Amount)
sell_amount: sum(of: Trade_Side_Amount)
Trade {
Currency {
Symbol
}
Side {
Currency {
Symbol
}
}
}
}
}
}
Similar queries
- eth balance · Ethereum · BalanceUpdates
- Ethereum balance view · Ethereum · BalanceUpdates
- Balance update API explanation · Ethereum · BalanceUpdates
- MyQuery EVM · BNB Chain · BalanceUpdates
- usdt_holder_balance_update_ · Ethereum · BalanceUpdates