sd
Returns DEX trades by token on Ethereum, where DEX smart contract is 0xc32C…1bE8 and currency smart contract is not 0xC02a…6Cc2: currency symbol, currency name, count and sum of trade side amount.
What it returns
- currency symbol
- currency name
- count
- sum of trade side amount
Filters
- DEX smart contract is 0xc32C…1bE8
- currency smart contract is not 0xC02a…6Cc2
The query
query MyQuery {
EVM(dataset: combined, network: eth) {
DEXTradeByTokens(
limitBy: {by: Trade_Dex_Pair_SmartContract}
where: {Trade: {Dex: {SmartContract: {is: "0xc32C2d9768919DEaEE60F7eB163A293c6eb81bE8"}}, Currency: {SmartContract: {not: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}
) {
Trade {
Currency {
Symbol
Name
}
}
tb: count(distinct: Trade_Buyer)
ts: count(distinct: Trade_Seller)
txncount: count(distinct: Transaction_Hash)
NoofSell: count(if: {Trade: {Side: {Type: {is: buy}}}})
NoofBuy: count(if: {Trade: {Side: {Type: {is: sell}}}})
Total_Weth: sum(
of: Trade_Side_Amount
if: {Trade: {Currency: {SmartContract: {not: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}
)
}
}
}
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