man-c / pycoingecko

Python wrapper for the CoinGecko API
MIT License
1.04k stars 268 forks source link

how to get price by symbol? #48

Closed freeversioncode closed 3 years ago

freeversioncode commented 3 years ago

how to get price by symbol?

man-c commented 3 years ago

Check Issue https://github.com/man-c/pycoingecko/issues/13#issuecomment-650286400. Using coins/list endpoint (cg.get_price()) you can get the id, symbol and name for each supported coin. Then you can use symbol to find the id and finally get the price (in the case you need to get price by symbol). Best