Skip to content
view market price of crypto coins
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
py
.gitignore
LICENSE
README.md
cronjob.sh

README.md

changepurse

https://mpaulweeks.github.io/changepurse

MIT License

about

This site is made up of static files, hosted by GitHub, that fetch market info from CoinMarketCap.com

However, to use the CoinMarketCap API efficiently, and perform direct GET requests, we need to their internal ids for all possible currencies.

Looking this up is slow and returns a payload of 1.3MB (as of January 2018), so instead we cache a lookup of Symbol -> CoinMarketCap's ID in the space of ~30KB.

This cached lookup coinmarketcap.json is updated daily via cronjob. To run said cronjob:

# install dependencies
virtualenv venv
source venv/bin/activate
pip install -r py/requirements.txt

# see cronjob.sh for more info
You can’t perform that action at this time.