Python module for getting data from Coinmarketcap, cryptocurrencies market cap, rankings, price, supply, circulating supply and other useful informations.
python -m unittests pycoincap.tests.test_core
From source use
git clone https://github.com/ZoranPandovski/pycoincap
cd pycoincap
python setup.py
pip install -r requirements.txt
Retrieve informations from https://coinmarketcap.com/
Get coin informations
from pycoincap import CryptoMarket as market
# Load data data from coinmarketcap
m = market()
# Returns coin object
BTC = m.coin('bitcoin')
print BTC
>>> Coin: Bitcoin
Ranked: 1
Price : 8334.59 $
Price BTC: 1.0
Circulating supply: 16856825.0
Total supply: 16856825.0
Percent changes:1h = -1.68
24h = -3.19
7d = -9.29
print BTC.price_usd
>>> 8334.59
Get stats
from pycoincap import CryptoMarket as market
# Load data data from coinmarketcap
m = market()
#Returns stats
stats = m.stats()
print stats
>>> Market value: 4.06888588391e+11$
Bitcoin percentage: 34.53
Active markets: 8716
Active assets: 598
Active currencies: 893
Last day changes: 25323934215.0