Skip to content

📈 Python module for getting cryptocurrency data from Coinmarketcap 📉

License

Notifications You must be signed in to change notification settings

Menox10/pycoincap

 
 

Repository files navigation

Cryptocurrencies

contributions welcome License Build Status Coverage Status

Pycoincap

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

Run tests

 python -m unittests 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 : 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

About

📈 Python module for getting cryptocurrency data from Coinmarketcap 📉

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%