usd price at 24h before timestamp
Returns the latest DEX trade on Ethereum and celo_mainnet, where buy currency is 0x471E…a438, sell currency is 0x765d…282a and time till 2024-10-07: timestamp time, block height, protocol, full name, buy amount, buy currency symbol, sell amount and 2 more fields.
What it returns
- timestamp time
- block height
- protocol
- full name
- buy amount
- buy currency symbol
- sell amount
- sell currency symbol
- expression
Filters
- buy currency is 0x471E…a438
- sell currency is 0x765d…282a
- time till 2024-10-07
The query
{
ethereum(network: celo_mainnet) {
dexTrades(
options: {desc: "block.height", limit: 1, offset: 0}
buyCurrency: {is: "0x471EcE3750Da237f93B8E339c536989b8978a438"}
sellCurrency: {is: "0x765de816845861e75a25fca122bb6898b8b1282a"}
time: {till: "2024-10-07T00:00:00"}
) {
block {
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
height
}
protocol
exchange {
fullName
}
buyAmount
buyCurrency {
symbol
}
buy_amount_usd: buyAmount(in: USD)
sellAmount
sellCurrency {
symbol
}
sell_amount_usd: sellAmount(in: USD)
priceInUSD: expression(get: "sell_amount_usd / buyAmount")
}
}
}
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
- celo token price · Celo mainnet · DEXTrades
- celo_dex · Celo mainnet · DEXTrades