Iām trying to fetch price of one particular token, but this API always returns BNB price. Even tried passing: exchange: "pancakeswap-v2"
const data = Moralis.Web3API.token.getTokenPrice({ address: "0xAF3889bA617aC973b358513d9031778D2Bc783Df", chain: "bsc" });
console.log(data);
Response in console:
exchangeAddress: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"
exchangeName: "PancakeSwap v2"
nativePrice:
decimals: 18
name: "Binance Coin"
symbol: "BNB"
value: "2017132057"
This API was working fine few hours back, but seems its not working anymore?