How can I get MATIC price?
I wrote a code like this.
const fetchTokenPrice = async () => {
const options = {
address: "0x0000000000000000000000000000000000001010",
chain: "polygon",
exchange: "quickswap",
};
const price = await Web3Api.token.getTokenPrice(options);
console.log(price);
}
But the result is this one. Why usdPrice is zero?
Currently 1 MATIC is around $0.544
exchangeAddress: "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32"
exchangeName: "Quickswap"
nativePrice:
decimals: 18
name: "Matic Token"
symbol: "MATIC"
value: "0"
usdPrice: 0