iEthereum price in HEX
This API provides the latest iEthereum token price in Hex for Ethereum blockchain using DEXs like Uniswap, Balancer. You can also get the price of iEthereum Token at any previous date or time. You can also specify a specific exchange to get the price from using the filter.
What it returns
- block height
- timestamp time
- base currency symbol
- quote currency symbol
- quote price
- quote amount
- base amount
- expression
- full name with ID
- address address
- annotation
Filters
- base currency is 0x859a…4b4B
- quote currency is 0x2b59…eb39
The query
query get_token_price_in_usd($token: String) {
ethereum(network: ethereum) {
dexTrades(
baseCurrency: {is: $token}
quoteCurrency: {is: "0x2b591e99afE9f32eAA6214f7B7629768c40Eeb39"}
options: {desc: ["block.height"], limit: 1}
) {
block {
height
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
baseCurrency {
symbol
}
quoteCurrency {
symbol
}
quotePrice
quoteAmountInUSD: quoteAmount(in: USD)
baseAmount
quotePriceInUSD: expression(get: "quoteAmountInUSD / baseAmount")
exchange {
fullNameWithId
address {
address
annotation
}
}
}
}
}
Variables
{
"token": "0x859a9C0b44cb7066D956a958B0b82e54C9e44b4B"
}
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