Max, Min and Median of QuoteAmount with OHLC data of Ethereum
Returns 30000 DEX trades on Ethereum, where smart contract address is 0xba38…c898 and quote currency is 0xc02a…6cc2, sorted by time interval hour: hour, quote price, minimum of block, maximum of block, quote amount, base currency name, quote currency name and full name.
What it returns
- hour
- quote price
- minimum of block
- maximum of block
- quote amount
- base currency name
- quote currency name
- full name
Filters
- smart contract address is 0xba38…c898
- quote currency is 0xc02a…6cc2
The query
{
ethereum(network: ethereum) {
dexTrades(
options: {limit: 30000, asc: "timeInterval.hour"}
smartContractAddress: {is: "0xba38eca6dfdb92ec605c4281c3944fccd9dec898"}
quoteCurrency: {in: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
) {
timeInterval {
hour(count: 1)
}
high: quotePrice(calculate: maximum)
low: quotePrice(calculate: minimum)
open: minimum(of: block, get: quote_price)
close: maximum(of: block, get: quote_price)
min_quoteAmount: quoteAmount(in: USD, calculate: minimum)
max_quoteAmount: quoteAmount(in: USD, calculate: maximum)
median_quoteAmount: quoteAmount(in: USD, calculate: median)
baseCurrency {
name
}
quoteCurrency {
name
}
exchange {
fullName
}
}
}
}
Similar queries
- Latest Curve DEX swaps on Ethereum · Ethereum · DEXTrades
- Top Curve liquidity pools by 24h volume on Ethereum · Ethereum · DEXTrades
- STRN_TOKEN_MULTIPLE_DECIMALS_DEX_TRADES · Ethereum · DEXTrades
- USDT DECIMAL SHOWING 0 · Ethereum · DEXTrades
- Trades - 0xEE61159E8A72A08371c52D62c19Efd0C7914f917 · Ethereum · DEXTrades