I’m using the Token API get prices ([https://docs.moralis.io/reference/gettokenprice]). Getting prices from Quickswap works well, however when I try to get prices from Uniswap it fails with a 404/Invalid Exchange error.
Is it possible to get prices from Uniswap V3? If so, what is the correct name or address to use for the “exchange” parameter?
So far I have tried:
0x1F98431c8aD98523631AE4a59f267346ea31F984
0xe592427a0aece92de3edee1f18e0157c05861564
Uniswap
UniswapV3Factory
My code looks like:
const priceResponse = await Moralis.EvmApi.token.getTokenPrice({
address: tokens[i].token_address,
chain: chain,
exchange: '0xE592427A0AEce92De3Edee1F18E0157C05861564'
});