- Author:
Daniel J. Umpierrez
- Site: https://github.com/havocesp/cryptocmpy
- License:
UNLICENSE
- Version:
0.1.2
Just another Python 3 "CryptoCompare" API wrapper.
$ pip install git+https://github.com/havocesp/cryptocmpy
import time
from cryptocmpy import CryptoCmpy
# amount of seconds calculation for 1 day
day2seconds = 3600 * 24
# current unix datetime format in seconds
epoch = int(time.time())
# from 3 days ago to now as unix epoch
since = epoch - (day2seconds * 3)
cmp = CryptoCmpy()
historic_price = cmp.get_historical_price('BTC', since, 'EUR', 'USD')
print(historic_price)
- Project name changed to Cryptocmpy (Cryptocmp was already taken at pypi.org)
- Removed utils.py module
- Minor fixes
- Initial version
- Complete all REST end points implementation.