scottburlovich / pythonpancakes

Basic Python3 request wrapper for the PancakeSwap API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Price difference

cpfxcl opened this issue · comments

Hello
First of all, thank you very much for your API to consume data in Python.

Today I was testing it but there is a difference between the return price and the real price in PancakeSwap

I attach screenshots

{'updated_at': 1622034328103, 'data': {'name': 'PancakeSwap Token', 'symbol': 'Cake', 'price': '16.71025903658802895071381884442674', 'price_BNB': '0.05104375696015457193635101802057258'}}

cake

So you can review it

Hi, thanks for reporting!

I believe this issue lies with PancakeSwap's API, as my Python wrapper simply passes on the output - the updated_at timestamp indicates when the data was last updated on their side.

There have been other reports of pricing issues recently with the PancakeSwap API, see pancakeswap/pancake-info-api#53 (comment)

I will keep an eye out for a resolution from their side and update.

Following up - It appears that the issues have finally been resolved on the PancakeSwap side... There is no longer a price discrepancy between the API and their front end.

image
image