ETH Last 5 DEX
all buy and sell by an address
Returns the latest 5 DEX trades on Ethereum, where buy currency smart contract is not 0xc02a…6cc2, 0x4200…0006 or 7 more, transaction from is 0xcec0…857e and block date since 2024-01-01: count, sum of trade buy amount, sum of trade sell amount, buy currency name, buy currency symbol, sell smart contract, sell currency name and sell amount in USD.
What it returns
- count
- sum of trade buy amount
- sum of trade sell amount
- buy currency name
- buy currency symbol
- sell smart contract
- sell currency name
- sell amount in USD
Filters
- buy currency smart contract is not 0xc02a…6cc2, 0x4200…0006 or 7 more
- transaction from is 0xcec0…857e
- block date since 2024-01-01
The query
query MyQuery {
EVM(network: eth, dataset: archive) {
DEXTrades(
where: {Block: {Date: {since: "2024-01-01"}}, Trade: {Success: true, Buy: {Currency: {SmartContract: {notIn: ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0x4200000000000000000000000000000000000006", "0x265f640225f0331ede4bb61dd3938ac88fcd8f4e", "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca", "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913", "0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2", "0x532f27101965dd16442e59d40670faf5ebb142e4", "0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1b", "0x489047739f35c31ecafe0c6979e4127049986abf"]}}}}, Transaction: {From: {is: "0xcec06e30894e4a4d15cfe9273f918c514a6c857e"}}}
limit: {count: 5, offset: 0}
orderBy: {descending: Block_Number}
) {
count
bought: sum(of: Trade_Buy_Amount)
sold: sum(of: Trade_Sell_Amount)
Trade {
Buy {
Currency {
Name
Symbol
}
}
Sell {
Currency {
SmartContract
Name
}
AmountInUSD
}
}
}
}
}
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