eth_zero_decemals_24h
Returns the latest DEX trades by token on Ethereum: 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(network: eth) {
DEXTradeByTokens(
where: {TransactionStatus: {Success: true}, any: [{Trade: {Side: {Currency: {Decimals: {eq: 0}, Fungible: true, Name: {is: ""}}}}}, {Trade: {Currency: {Decimals: {eq: 0}, Fungible: true, Name: {is: ""}}}}], Block: {Time: {after_relative: {hours_ago: 24}}}}
orderBy: {descending: Block_Time}
) {
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