Skip to content

📈 Python module for getting cryptocurrency data from Coinmarketcap 📉

License

Notifications You must be signed in to change notification settings

ZoranPandovski/pycoincap

Repository files navigation

Cryptocurrencies

Build Status Codacy Badge Coverage Status BCH compliance Known Vulnerabilities contributions welcome Total alerts Language grade: Python

Pycoincap

Python module for getting data from Coinmarketcap, cryptocurrencies market cap, rankings, price, supply, circulating supply and other useful informations.

Run tests

 python -m unittest pycoincap.tests.test_core

Installation:

From source use

   git clone https://github.com/ZoranPandovski/pycoincap
   cd pycoincap
   python setup.py
   pip install -r requirements.txt

Examples:

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 : 4775.44 $
    Price BTC: 1.0
    Available supply: 16613825.0
    Total supply: 16613825.0
    Percent changes:1h  = -0.89
            24h = 8.35
            1d  = 3.74

print BTC.price_usd
>>> 4775.44

Get stats

from pycoincap import CryptoMarket as market

# Load data data from coinmarketcap
m = market()

#Returns stats
stats = m.stats()

print stats
>>>  Market value: 52.41$
     Bitcoin percentage: 1.51106247425e+11
     Active markets: 5665
     Active assets: 279
     Active currencies: 874
     Last day changes: 4451850464.0

About

📈 Python module for getting cryptocurrency data from Coinmarketcap 📉

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages