Hello,
I am having difficulty getting the price for a token I have created on Rinkeby testnet. I have about 2 Eth in the tokens liquidity in Uniswap. I am getting the error:
{code: 141, error: ‘No valid exchange found for the provided chain and/or to_block’}
Here is my code.
options = {
address: "0x08B1437D5758C31f2bC3a00E73F0C202c6B34f39",
exchange_name: "Uniswapv2",
chain:"rinkeby",
to_block:9913105
};
Moralis.Web3API.token.getTokenPrice(options)
Is it possible to get a custom token’s price of Rinkeby? How much liquidity does it take to get a price? Any ideas what I am doing wrong?
Thanks.