Matic price from getTokenPrice

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);

But the result is this one. Why usdPrice is zero?
Currently 1 MATIC is around $0.544

exchangeAddress: "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32"
exchangeName: "Quickswap"
decimals: 18
name: "Matic Token"
symbol: "MATIC"
value: "0"
usdPrice: 0

You can use wMATIC or 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270 on Polygon which gives $0.54. It looks like that address doesn’t work directly on Quickswap.

1 Like

It works!!

Thank you!!