S.K.
S.K.

Reputation: 1

Current prices of tokens to be exchanged with Pancakeswap

I get the list of pools with Pancakeswap Exchange V3 Subgraph API, but the price information in the pool information does not match the price on the site. Also, as the amount increases, the price on the site changes. How can I pull or calculate the current price on the site? A sample c# code would be great.

In the Pancakeswap Exchange V3 Subgraph API, I thought that the token0price and token1price values in the pools list are the price of a token0 in token1 and vice versa, but the price on the site does not match the price in the API. I couldn't find any documentation for the Subgraph API, so I couldn't figure out how to use it.

Upvotes: 0

Views: 200

Answers (0)

Related Questions