ETHdextradesn8n
Returns the latest 5 DEX trades on Ethereum, where buy currency smart contract is {{ $json.chatInput }}: block time, buy currency symbol, buy smart contract, buy amount, sell currency symbol, sell amount and count.
What it returns
- block time
- buy currency symbol
- buy smart contract
- buy amount
- sell currency symbol
- sell amount
- count
Filters
- buy currency smart contract is {{ $json.chatInput }}
The query
query GetDEXTrades($tokenAddress: String!) {
EVM(network: eth, dataset: combined) {
DEXTrades(
orderBy: {descending: Block_Number}
limit: {count: 5}
where: {
Trade: {
Buy: {
Currency: {
SmartContract: {is: $tokenAddress}
}
}
}
}
) {
Block {
Time(interval: {in: minutes, count: 5})
}
Trade {
Buy {
Currency {
Symbol
SmartContract
}
Amount
}
Sell {
Currency {
Symbol
}
Amount
}
}
count
}
}
}
Variables
{
"tokenAddress": "{{ $json.chatInput }}"
}
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