High_Low_|_Current_Price
Returns the latest DEX trade on Ethereum, where base currency is 0xb569…8b05, quote currency is 0xc02a…6cc2 and time since 2018-01-13: year, base currency name, quote currency name, quote price, maximum of quote price, minimum of quote price, expression and 6 more fields.
What it returns
- year
- base currency name
- quote currency name
- quote price
- maximum of quote price
- minimum of quote price
- expression
- block height
- trade index
- base amount
- base currency symbol
- quote amount
- quote currency symbol
Filters
- base currency is 0xb569…8b05
- quote currency is 0xc02a…6cc2
- time since 2018-01-13
- time till 2023-12-20
- price asymmetry is below 1
- trade amount USD is above 50
The query
{
ethereum(network: ethereum) {
highlow: dexTrades(
baseCurrency: {is: "0xb569e1739a452585ce799ef3b0c606a4f0e28b05"}
quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
time: {since: "2018-01-13T00:00:00Z", till: "2023-12-20T00:00:00Z"}
priceAsymmetry: {lt: 1}
tradeAmountUsd: {gt: 50}
options: {limit: 10, desc: "timeInterval.year"}
) {
timeInterval {
year(count: 5)
}
baseCurrency {
name
}
quoteCurrency {
name
}
high: quotePrice(calculate: maximum)
high_timestamp:maximum(of:quote_price,get:time)
low: quotePrice(calculate: minimum)
low_timestamp:minimum(of:quote_price,get:time)
}
current_price:dexTrades(
options: {desc: ["block.height", "tradeIndex"], limit: 1}
baseCurrency: {is: "0xb569e1739a452585ce799ef3b0c606a4f0e28b05"}
quoteCurrency: {is: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"}
) {
quotePrice
USDPrice: expression(get: "quoteAmountUSD / baseAmount")
block {
height
}
tradeIndex
baseAmount
baseCurrency {
symbol
}
quoteAmountUSD:quoteAmount(in: USD)
quoteCurrency {
symbol
}
}
}
}
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