/py-coinmarketcap

CoinMarketCap REST API wrapper

Primary LanguagePythonMIT LicenseMIT

py-coinmarketcap-client-pypi

CoinMarketCap API Doc: https://coinmarketcap.com/api/documentation/v1/

Install

pip install py-coinmarketcap-client

Usage

from coinmarketcap import CoinMarketCap

cmc = CoinMarketCap(key="<your-key-here>", key_type="Basic")
cmc.get_info(id=1)

Testing

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