Celo token price
This API provides the latest USDT token price in USD for Ethereum blockchain using DEXs like Uniswap, Balancer. You can also get the price of USDT 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 0x62b8…9c7a
- quote currency is cGLD
The query
query get_token_price_in_usd($token: String) {
ethereum(network: celo_mainnet) {
dexTrades(
baseCurrency: {is: $token}
quoteCurrency: {is: "cGLD"}
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":"0x62b8b11039fcfe5ab0c56e502b1c372a3d2a9c7a"
}
Similar queries
- celo trade · Celo mainnet · DEXTrades
- celo price on a particular date · Celo mainnet · DEXTrades
- Trades for a given wallet_celo · Celo mainnet · DEXTrades
- usd price at 24h before timestamp · Celo mainnet · DEXTrades
- celo_dex · Celo mainnet · DEXTrades