Historical_price_and_Live_price
Returns DEX trades by token on Ethereum, where side currency smart contract is 0x5149…86CA, 0x9e9f…0413 or 2 more, currency smart contract is 0xC02a…6Cc2 and side currency smart contract is 0xcf0c…6a2e, 0x9e9f…0413 or 1 more, sorted by block time: block time, trade price, side currency name, side smart contract and side currency symbol.
What it returns
- block time
- trade price
- side currency name
- side smart contract
- side currency symbol
Filters
- side currency smart contract is 0x5149…86CA, 0x9e9f…0413 or 2 more
- currency smart contract is 0xC02a…6Cc2
- side currency smart contract is 0xcf0c…6a2e, 0x9e9f…0413 or 1 more
- block date after 2024-03-13
The query
{
EVM(dataset: combined, network: eth) {
Historical_Price:DEXTradeByTokens(
orderBy: {ascendingByField: "Block_Time"}
where: {Trade: {Side: {Currency: {SmartContract: {in: ["0x514910771AF9Ca656af840dff83E8264EcF986CA", "0x9e9fbde7c7a83c43913bddc8779158f1368f0413","0x9511ff502f982643935a39206f98a6c18d4527cf","0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"]}}}, Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}, Block: {Date: {after: "2024-03-13"}}}
) {
Block {
Time(interval: {in: days, count: 1})
}
Trade {
Price(maximum: Block_Number)
Side {
Currency {
Name
}
}
}
}
}
Live_Price:EVM(dataset: combined, network: eth) {
DEXTradeByTokens(
where: {Trade: {Side: {Currency: {SmartContract: {in: ["0xcf0c122c6b73ff809c693db761e7baebe62b6a2e", "0x9e9fbde7c7a83c43913bddc8779158f1368f0413", "0x9511ff502f982643935a39206f98a6c18d4527cf"]}}}, Currency: {SmartContract: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}}}
) {
Trade {
Price(maximum: Block_Number)
Side {
Currency {
Name
SmartContract
Symbol
}
}
}
}
}
}
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