evm_empty_tokens_24h
Returns the latest 100 DEX trades by token: block time, transaction hash, protocol name, currency symbol, currency name, smart contract, decimals and 9 more fields.
What it returns
- block time
- transaction hash
- protocol name
- currency symbol
- currency name
- smart contract
- decimals
- side currency symbol
- side currency name
- side smart contract
- side protocol name
- side decimals
- price in USD
- sum of trade side amount
- sum of trade side amount in USD
- count
The query
query pairs {
EVM {
DEXTradeByTokens(
where: {TransactionStatus: {Success: true}, any: [{Trade: {Side: {Currency: {Fungible: true, Name: {is: ""}, Symbol: {is: ""}}}}}, {Trade: {Currency: {Fungible: true, Name: {is: ""}, Symbol: {is: ""}}}}], Block: {Time: {after_relative: {hours_ago: 24}}}}
orderBy: {descending: Block_Time}
limit: {count: 100}
) {
Block {
Time(maximum: Block_Time)
}
Transaction {
Hash
}
Trade {
Dex {
ProtocolName
}
Currency {
Symbol
Name
SmartContract
ProtocolName
Decimals
}
Side {
Currency {
Symbol
Name
SmartContract
ProtocolName
Decimals
}
}
price_last: PriceInUSD(maximum: Block_Number)
}
amount: sum(of: Trade_Side_Amount)
usd: sum(of: Trade_Side_AmountInUSD)
buy: count(if: {Trade: {Side: {Type: {is: sell}}}})
sell: count(if: {Trade: {Side: {Type: {is: buy}}}})
}
}
}
Similar queries
- CRV hourly OHLC on Curve - Ethereum · Ethereum · DEXTradeByTokens
- Top Metric liquidity pools by 24h volume on Ethereum · Ethereum · DEXTradeByTokens
- ATH of eth token · Ethereum · DEXTradeByTokens
- historical price and historical volume · Ethereum · DEXTradeByTokens
- topTraders EVM · Ethereum · DEXTradeByTokens