This is for new tokens, maybe you guys did an update recently and forgot to reset or something to start picking up tokens that launched after your update. All tokens that launched yesterday or about 12hrs ago are being fetched for such as this one and many older ones
import Moralis from 'moralis';
import snakeToCamelCase from '@site/utils/snakeToCamelCase.mts';
{
"tokenName": "Infinite Money Glitch",
"tokenSymbol": "GLITCH",
"tokenLogo": null,
"tokenDecimals": "9",
"nativePrice": {
"value": "376704844",
"decimals": 18,
"name": "Ether",
"symbol": "ETH",
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
},
"usdPrice": 6.805851457944863e-7,
"exchangeAddress": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
"exchangeName": "Uniswap v2",
"tokenAddress": "0x1b10df8d02a8ab6d363a01202ef31a4390773c1f"
}
But for the new ones such as this one, its not being fetched
import Moralis from 'moralis';
import snakeToCamelCase from '@site/utils/snakeToCamelCase.mts';
try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});
const response = await Moralis.EvmApi.token.getTokenPrice({
"chain": "0x1",
"exchange": "uniswap-v2",
"address": "0x10affebaa3a5f28ab502fa73488070b73f0428e3"
});
console.log(response.raw);
} catch (e) {
console.error(e);
}