realtime tokens prices last 24 hours
Returns the latest DEX trade by token on NETWORK, where currency smart contract is TOKEN_ADDRESS_PLACEHOLDER: block time and trade price.
What it returns
- block time
- trade price
Filters
- currency smart contract is TOKEN_ADDRESS_PLACEHOLDER
The query
{
EVM(dataset: combined, network: NETWORK) {
DEXTradeByTokens(
orderBy: {descendingByField: "Block_Timefield"}
where: {
Block:{
Time:{since_relative:{hours_ago:24}}
}
Trade: {Currency: {SmartContract: {is: "TOKEN_ADDRESS_PLACEHOLDER"}}}}
limit: {count: 1}
) {
Block {
Timefield: Time(interval: {in: minutes, count: 1})
}
Trade {
close: Price(maximum: Block_Number)
}
}
}
}
Similar queries
- realtime tokens prices · Network · DEXTradeByTokens