https://github.com/zoranpandovski/pycoincap
:chart_with_upwards_trend: Python module for getting cryptocurrency data from Coinmarketcap :chart_with_downwards_trend:
https://github.com/zoranpandovski/pycoincap
coinmarketcap cryptocurrency-data python python-module
Last synced: 6 months ago
JSON representation
:chart_with_upwards_trend: Python module for getting cryptocurrency data from Coinmarketcap :chart_with_downwards_trend:
- Host: GitHub
- URL: https://github.com/zoranpandovski/pycoincap
- Owner: ZoranPandovski
- License: mit
- Created: 2017-10-03T18:25:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-23T06:07:19.000Z (12 months ago)
- Last Synced: 2024-12-01T10:53:36.913Z (7 months ago)
- Topics: coinmarketcap, cryptocurrency-data, python, python-module
- Language: Python
- Homepage:
- Size: 151 KB
- Stars: 16
- Watchers: 3
- Forks: 15
- Open Issues: 11
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
![]()
[](https://github.com/ZoranPandovski/pycoincap)
[](https://www.codacy.com/app/ZoranPandovski/pycoincap?utm_source=github.com&utm_medium=referral&utm_content=ZoranPandovski/pycoincap&utm_campaign=Badge_Grade)
[](https://coveralls.io/github/ZoranPandovski/pycoincap?branch=master)
[](https://bettercodehub.com/)
[](https://snyk.io/test/github/ZoranPandovski/pycoincap?targetFile=requirements.txt)
[](https://github.com/ZoranPandovski/pycoincap/issues)
[](https://lgtm.com/projects/g/ZoranPandovski/pycoincap/alerts/)
[](https://lgtm.com/projects/g/ZoranPandovski/pycoincap/context: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
```python
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.74print BTC.price_usd
>>> 4775.44
```Get stats
```python
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
```