Hi everybody, I am trying to retrieve token prices using
await Moralis.start({
apiKey: "XXX"
});
const response = await Moralis.EvmApi.token.getTokenPrice({
"chain": "0xa4b1",
"exchange": "sushiswap-v2",
"toBlock": 71765144,
"address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"
});
While this works fine for token prices on Ethereum I seem to be unable to retrieve prices on Arbitrum. I was specifically trying to get prices for WETH and MAGIC. Those tokens have been actively trading on Sushi V2 for quite a while. Leaving out ‘exchange’ and ‘toBlock’ doesn’t solve the problem.
Can anyone help me out please?
Best, Thomas