V2 EVM dex trades on an token
Returns the latest 10 DEX trades on Ethereum, where buy currency smart contract is 0x1f98…f984 and sell currency smart contract is 0x1f98…f984: block number, block time, sender, sell amount, sell amount in USD, sell smart contract, sell currency name and 5 more fields.
What it returns
- block number
- block time
- sender
- sell amount
- sell amount in USD
- sell smart contract
- sell currency name
- buy amount
- buy amount in USD
- buy smart contract
- buy currency name
- transaction hash
Filters
- buy currency smart contract is 0x1f98…f984
- sell currency smart contract is 0x1f98…f984
The query
query MyQuery {
EVM(dataset: realtime, network: eth) {
Buy_trades: DEXTrades(
where: {Trade: {Buy: {Currency: {SmartContract: {is: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}}}}}
orderBy: {descending: Block_Time}
limit: {count: 10}
) {
Block {
Number
Time
}
Trade {
Sender
Sell {
Amount
AmountInUSD
Currency {
SmartContract
Name
}
}
Buy {
Amount
AmountInUSD
Currency {
SmartContract
Name
}
}
}
Transaction {
Hash
}
}
}
Sell_trades: EVM(dataset: realtime, network: eth) {
DEXTrades(
where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}}}}}
orderBy: {descending: Block_Time}
limit: {count: 10}
) {
Block {
Number
Time
}
Trade {
Sender
Sell {
Amount
AmountInUSD
Currency {
SmartContract
Name
}
}
Buy {
Amount
AmountInUSD
Currency {
SmartContract
Name
}
}
}
Transaction {
Hash
}
}
}
}
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