problem with query
Returns DEX trades by token on Ethereum, where pair smart contract is 0x5926…e9cd, block time since 2024-02-19 and block time till 2024-02-20: smart contract, sum of trade amount and trade count.
What it returns
- smart contract
- sum of trade amount
- trade count
Filters
- pair smart contract is 0x5926…e9cd
- block time since 2024-02-19
- block time till 2024-02-20
The query
query ActiveUsers($addresses: [String!], $since: DateTime, $till: DateTime) {
EVM(dataset: archive, network: eth) {
DEXTradeByTokens(
where: {
Block: {Time: {since: $since, till: $till}},
Trade: {
Dex: {
Pair: {
SmartContract: {
in: $addresses
}
}
}
}
}
) {
Trade {
Dex {
Pair {
SmartContract
}
}
volume: sum(of: Trade_Amount)
distinctSenders: count(distinct: Trade_Sender)
}
}
}
}
Variables
{"addresses":["0x59262237ae60910990a1cbb1dc8feb865d46e9cd"],"since":"2024-02-19T23:38:56.090Z","till":"2024-02-20T23:38:56.089Z"}
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