USD Price of a token
Returns DEX trades on Ethereum, where base currency is 0x005d…af3c, quote currency is 0xC02a…6Cc2 and time after 2022-08-04: minute, base currency address, base currency name, quote currency name, quote currency address, quote price, base amount and 2 more fields.
What it returns
- minute
- base currency address
- base currency name
- quote currency name
- quote currency address
- quote price
- base amount
- quote amount
- expression
Filters
- base currency is 0x005d…af3c
- quote currency is 0xC02a…6Cc2
- time after 2022-08-04
- time before 2022-08-06
The query
{
ethereum(network: ethereum) {
dexTrades(
baseCurrency: {is: "0x005d1123878fc55fbd56b54c73963b234a64af3c"}
quoteCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
time: {after: "2022-08-04T17:15:00Z", before: "2022-08-06T17:15:00Z"}
) {
timeInterval {
minute(format: "%FT%TZ", count: 15)
}
baseCurrency {
address
name
}
quoteCurrency {
name
address
}
quotePrice
baseAmount
quoteAmount
baseAmountInUSD: baseAmount(in: USD)
rebaseAmountInUSD: expression(get: "baseAmountInUSD / baseAmount")
quoteAmountInUSD: quoteAmount(in: USD)
}
}
}
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