Trade Volume in First X Minutes (no MEV) 3
Returns DEX trades on Ethereum, where buy currency smart contract is 0xc02a…6cc2, sell currency smart contract is 0x1FAc…216B and transaction from is not 0xf9cA…BE68, 0xae2F…aE13 or 5 more: count, sum of trade buy amount and sum of trade sell amount.
What it returns
- count
- sum of trade buy amount
- sum of trade sell amount
Filters
- buy currency smart contract is 0xc02a…6cc2
- sell currency smart contract is 0x1FAc…216B
- transaction from is not 0xf9cA…BE68, 0xae2F…aE13 or 5 more
- block time since 2024-01-30
- block time till 2024-01-31
The query
query ($network: evm_network, $token: String!, $token2: String!, $tilltime: DateTime, $mev: [String!]) {
EVM(network: $network, dataset: combined) {
Unique_Buyers: DEXTrades(
where: {Block: {Time: {since: "2024-01-30T01:00:00Z", till: $tilltime}}, Trade: {Buy: {Currency: {SmartContract: {is: $token}}}, Sell: {Currency: {SmartContract: {is: $token2}}}}, Transaction: {From: {notIn: $mev}}}
) {
count(distinct: Trade_Buy_Buyer)
}
Unique_Sellers: DEXTrades(
where: {Block: {Time: {since: "2024-01-30T01:00:00Z", till: $tilltime}}, Trade: {Buy: {Currency: {SmartContract: {is: $token}}}, Sell: {Currency: {SmartContract: {is: $token2}}}}, Transaction: {From: {notIn: $mev}}}
) {
count(distinct: Trade_Sell_Seller)
}
Total_Transactions: DEXTrades(
where: {Block: {Time: {since: "2024-01-30T01:00:00Z", till: $tilltime}}, Trade: {Buy: {Currency: {SmartContract: {is: $token}}}, Sell: {Currency: {SmartContract: {is: $token2}}}}, Transaction: {From: {notIn: $mev}}}
) {
count(distinct: Transaction_Hash)
}
Total_Buy_Amount: DEXTrades(
where: {Block: {Time: {since: "2024-01-30T01:00:00Z", till: $tilltime}}, Trade: {Buy: {Currency: {SmartContract: {is: $token}}}, Sell: {Currency: {SmartContract: {is: $token2}}}}, Transaction: {From: {notIn: $mev}}}
) {
sum(of: Trade_Buy_Amount)
}
Total_Sell_Amount: DEXTrades(
where: {Block: {Time: {since: "2024-01-30T01:00:00Z", till: $tilltime}}, Trade: {Buy: {Currency: {SmartContract: {is: $token}}}, Sell: {Currency: {SmartContract: {is: $token2}}}}, Transaction: {From: {notIn: $mev}}}
) {
sum(of: Trade_Sell_Amount)
}
}
}
Variables
{
"tilltime": "2024-01-31T20:20:47Z",
"token2": "0x1FAc67C597790d399D670CcbcfE0BafeB328216B",
"network": "eth",
"token": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"mev": [
"0xf9cAFEb32467994e3AFfd61E30865E5Ab32ABE68",
"0xae2Fc483527B8EF99EB5D9B44875F005ba1FaE13",
"0xa6Ae57b1dA8238Cd149bC718c40578E4620b752c",
"0x76b5a83c8c8097e7723eda897537b6345789b229",
"0xc4c162e5E2475675cf07f4c851659d0f4266c224",
"0x2D3b34F53958bCC0C188d8d4a4791BB8B7512F22",
"0x77ad3a15b78101883AF36aD4A875e17c86AC65d1"
]
}
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