Ben_ST_1_Weth_bougth_sell
Returns DEX trades by token and DEX trades on Ethereum, where pair smart contract is 0xc32C…1bE8, sell currency smart contract is 0xC02a…6Cc2 and buy currency smart contract is 0xC02a…6Cc2: count, sum of trade sell amount and sum of trade buy amount.
What it returns
- count
- sum of trade sell amount
- sum of trade buy amount
Filters
- pair smart contract is 0xc32C…1bE8
- sell currency smart contract is 0xC02a…6Cc2
- buy currency smart contract is 0xC02a…6Cc2
- block time since 2023-09-27
The query
query MyQuery {
EVM(dataset: combined, network: eth) {
DEXTradeByTokens(
where: {Trade: {Dex: {Pair: {SmartContract: {is: "0xc32C2d9768919DEaEE60F7eB163A293c6eb81bE8"}}}}, Block: {Time: {since: "2023-09-27T12:52:59Z"}}}
) {
uniqbuyers: count(
distinct: Trade_Buyer
if: {Trade: {Currency: {SmartContract: {is: "0x356e17967206eFb413b60AB0Ba44E269063A26c9"}}}}
)
uniqsellers: count(
distinct: Trade_Seller
if: {Trade: {Currency: {SmartContract: {is: "0x356e17967206eFb413b60AB0Ba44E269063A26c9"}}}}
)
txncount: count(distinct: Transaction_Hash)
NoofSell: count(
if: {Trade: {Currency: {SmartContract: {is: "0x356e17967206eFb413b60AB0Ba44E269063A26c9"}}, Side: {Type: {is: buy}}}}
)
NoofBuy: count(
if: {Trade: {Currency: {SmartContract: {is: "0x356e17967206eFb413b60AB0Ba44E269063A26c9"}}, Side: {Type: {is: sell}}}}
)
}
WethSold: DEXTrades(
where: {Trade: {Sell: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}, Dex: {Pair: {SmartContract: {is: "0xc32C2d9768919DEaEE60F7eB163A293c6eb81bE8"}}}}, Block: {Time: {since: "2023-09-27T12:52:59Z"}}}
) {
sum(of: Trade_Sell_Amount)
}
WethBought: DEXTrades(
where: {Trade: {Buy: {Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}, Dex: {Pair: {SmartContract: {is: "0xc32C2d9768919DEaEE60F7eB163A293c6eb81bE8"}}}}, Block: {Time: {since: "2023-09-27T12:52:59Z"}}}
) {
sum(of: Trade_Buy_Amount)
}
}
}
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