Skip to content

nlnsaoadc/py-coingecko

Repository files navigation

py-coingecko-client-pypi

CoinGecko Doc: https://www.coingecko.com/en/api/documentation

Install

pip install py-coingecko-client

Usage

from coingecko import CoinGecko

cg = CoinGecko()
cg.get_simple_price(ids=["bitcoin"], vs_currencies=["usd"])

Testing

virtualenv venv
source ./venv/bin/activate
pip install -r dev_requirements.txt
deactivate
source ./venv/bin/activate
pytest