realtime tokens prices
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: realtime, network: NETWORK) {
DEXTradeByTokens(
orderBy: {descendingByField: "Block_Timefield"}
where: {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 last 24 hours · Network · DEXTradeByTokens