Latest DEX trades of multiple wallets
The most recent DEX trade activity. Can be used for tracking wallets (whales)
Returns the latest DEX trades on Ethereum, where transaction from is 0xcd55…8DA5, sell buyer is 0xcd55…8DA5 and sell buyer is not 0xcd55…8DA5: buy amount in USD, sell currency symbol, from, transaction index, log after call index, block number, buy currency symbol and sell amount in USD.
What it returns
- buy amount in USD
- sell currency symbol
- from
- transaction index
- log after call index
- block number
- buy currency symbol
- sell amount in USD
Filters
- transaction from is 0xcd55…8DA5
- sell buyer is 0xcd55…8DA5
- sell buyer is not 0xcd55…8DA5
- pair smart contract is not 0x
- block number is above 0
The query
query MyQuery($dataset: dataset_arg_enum!, $network: evm_network!, $addresses: [String!], $start_block: String!) {
EVM(dataset: $dataset, network: $network) {
buy: DEXTrades(
where: {Transaction: {From: {in: $addresses}}, TransactionStatus: {Success: true}, Trade: {Sell: {Buyer: {in: $addresses}}, Dex: {Pair: {SmartContract: {not: "0x"}}}}, Block: {Number: {gt: $start_block}}}
orderBy: {descending: Block_Number, descendingByField: "Log_LogAfterCallIndex"}
limitBy: {by: Transaction_From, count: 1}
) {
Trade {
Buy {
AmountInUSD
}
Sell {
Currency {
Symbol
}
}
}
Transaction {
From
Index
}
Log {
LogAfterCallIndex
}
Block {
Number
}
}
sell: DEXTrades(
where: {Transaction: {From: {in: $addresses}}, TransactionStatus: {Success: true}, Trade: {Sell: {Buyer: {notIn: $addresses}}, Dex: {Pair: {SmartContract: {not: "0x"}}}}, Block: {Number: {gt: $start_block}}}
orderBy: {descending: Block_Number, descendingByField: "Log_LogAfterCallIndex"}
limitBy: {by: Transaction_From, count: 1}
) {
Trade {
Buy {
Currency {
Symbol
}
}
Sell {
AmountInUSD
}
}
Transaction {
From
Index
}
Log {
LogAfterCallIndex
}
Block {
Number
}
}
}
}
Variables
{"dataset": "combined", "network": "eth", "addresses": ["0xcd5592869bda859C9e95d0f14A0bF65b2efC8DA5"], "start_block": "0"}
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