Get price of token from pancakeswap (python) no longer working
Question:
This URL used to work nicely to get a coins price from pancakeswap:
https://api.pancakeswap.info/api/v2/tokens/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3
…but it appears to no longer work.
I assume that pancakeswap has changed their code, and stack overflow questions like this one are outdated. So how do I get the price of a coin from pancakeswap using python?
Answers:
The PancakeSwap API is dead and the repo is archived.
Read: https://github.com/pancakeswap/pancake-info-api/issues
Find another source of WebSockets until they fix this (I don’t know if it’s temporally either)
This URL used to work nicely to get a coins price from pancakeswap:
https://api.pancakeswap.info/api/v2/tokens/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3
…but it appears to no longer work.
I assume that pancakeswap has changed their code, and stack overflow questions like this one are outdated. So how do I get the price of a coin from pancakeswap using python?
The PancakeSwap API is dead and the repo is archived.
Read: https://github.com/pancakeswap/pancake-info-api/issues
Find another source of WebSockets until they fix this (I don’t know if it’s temporally either)