orderby_data
Returns 25000 DEX trades by token, where side currency smart contract is 0xc02a…6cc2, currency smart contract is 0xA0b8…eB48 and block number is at least 10008566, sorted by block time: block time and trade price.
What it returns
- block time
- trade price
Filters
- side currency smart contract is 0xc02a…6cc2
- currency smart contract is 0xA0b8…eB48
- block number is at least 10008566
The query
{
EVM(dataset: combined) {
DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Time"}
where: {Trade: {Side: {Currency: {SmartContract: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}}}, Currency: {SmartContract: {is: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"}}}, Block: {Number: {ge: "10008566"}}}
limit: {count: 25000}
) {
Block {
Time(interval: {in: minutes, count: 5})
}
Trade {
close: Price(maximum: Block_Number)
}
}
}
}
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