Hi there! I’m trying to get the max price of, for instance, the Uniswap token.
The query I’m using is the following, trying to get the UNI/WETH pair.
{
ethereum(network: ethereum) {
dexTrades(
baseCurrency: {is: "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984"}
quoteCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
) {
quotePrice(calculate: any)
}
}
}
Computing then the value with the current price of WETH would seems to give me the right price when I’m using “any”, but I get really high values when I select “maximum”.
Is there something I’m doing wrong?