Query price chart for token page
Returns DEX trades by token on Polygon, where currency smart contract is 0x53e0…ad39, block date since 2024-04-01 and trade price in USD is above 0, sorted by block time: block time, average of trade price in USD and sum of trade amount in USD.
What it returns
- block time
- average of trade price in USD
- sum of trade amount in USD
Filters
- currency smart contract is 0x53e0…ad39
- block date since 2024-04-01
- trade price in USD is above 0
The query
query(
$network: evm_network
$currency: String
) {
EVM(network: $network dataset: combined) {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Time"}
where: {
Block: {
Date: {
since: "2024-04-01"
}
}
Trade: {
PriceInUSD: {
gt: 0
}
Currency: {
SmartContract: {
is: $currency
}
}
}
}
) {
Block {
Time(interval: {count: 10 in: minutes})
}
price: average(of: Trade_PriceInUSD)
volume: sum(of: Trade_AmountInUSD)
}
}
}
Variables
{
"network": "matic",
"currency": "0x53e0bca35ec356bd5dddfebbd1fc0fd03fabad39"
}
Similar queries
- polymarket trades api for specific asset id · Polygon · DEXTradeByTokens
- polymarket trades · Polygon · DEXTradeByTokens
- AfricaCryptoChainx · Ethereum · DEXTradeByTokens
- UniversalSearch EVM · Ethereum · DEXTradeByTokens
- top assets on polymarket · Polygon · DEXTradeByTokens