Can I use this pai to get the price of all tokens in pancakeswap?

hi, everyone; I want to know if using the api is free? Can I use this pai to get the price of all tokens in pancakeswap?

I want to make a dashboard to observe the price fluctuations of all tokens in pancakeswap;

1 Like

Hey @tooozi, yes the API is free.
In future when the network gets decentralized, the pricing will be decided by network and payment will be using USDC.
Yes ,you can get the pancake swap prices on get spot prices and get historical prices api. For spot prices, it updates every 10 minutes if token is also available on CoinGecko and 4 hours if it is not.
For historical prices, the current granularity is 24hours. But we are launching a new endpoint soon which will be using AMM pricing of xy=k Dexes. That will provide you historical prices of any of the tokens being traded on these Dexes at swap level.

1 Like