pancakeswap / pancake-info-api

Serverless API implementation for PancakeSwap on-chain data query.
327 stars 271 forks source link

How can I get the price of a specified transaction pair? #100

Open fastener opened 2 years ago

fastener commented 2 years ago

How can I get the price of a specified transaction pair?

In the dexweb page of pancakeswap, the price of two transaction pairs will be displayed at the bottom of the swap interface. I want to obtain this price through the interface or smart contract method. How can I obtain it? I used the token price in the doc document and found that it was not accurate