Historical data manager for cryptos.
Project description
Coindata
Daily historical data of all time to date of hundreds of cryptocurrencies.
Use it for machine learning, vector prediction or for whatever you like. Be my guest.
Install
Install with pip or clone, both works.
$ pip install coindata
---- or ----
$ git clone git@github.com:anaxilaus/coindata
$ python coindata/setup.py install
Setup installs requirements itself. Requirements are beautifulsoup4 and requests.
Usage with Modules
There are only 2 modules you will use:
snapshot parser
Update cache with snapshot
>>> coindata.snapshot.take()
Get data with parser
>>> coindata.parser.vector_of('btc')
[
[Beginning of the time]
.
.
.
['Date': string,
'Open*': float,
'High': float,
'Low': float,
'Close**': float,
'Volume': float,
'Market Cap': float,
# additional info below #
'date': datetime.object,
'circulation': decimal,
'change': float]
.
.
.
[Today]
]
How this works?
Basically, this program parses daily historical data of all time from coinmarketcap’s website, stores at CSV files through running a “snapshot.” After you request a data vector, calculates what coinmarketcap doesn’t give you, like circulation supply, daily percentage change, datetime object etc. and returns the vector.
If you want, you can use .csv files seperately.
File structure:
source-code: coindata: snapshots: latest-snapshot: CSV files tickers: JSON files
Get documentation for more with built-in help() or read the code.
Important Notes
+ Symbol, name and case doesn't matter.
btc = BTC = bitcoin = BITCOIN
+ Based on USD.
+ Date notation is ISO8601 in CSV files. .. code:: python
>>> coindata.ISO8601 "%Y-%m-%d"
Give this a star this if you feel this helped you.
Also, if you want to buy a beer:
BTC: 16XwDdxUaphSX4yWDTTiSfNy2dTyEZ5MLy ETH: 0x35F4B63f7eBBB2E6080F7f9f797A068004faf323 LTC: LdukNLZqzeEvvFYMw98L9Rj8AYvP86BhEe
History
1.2 (2019-01-28)
- Update snapshot.py
Align with documentation by refactoring take_snapshot to take
Add docstrings to take
Handle first snapshot by giving warnings
1.1 (2019-01-27)
- Major update to data manager
Refactor main.py to request.py
Add snapshot.py and parser.py
Update documentation
1.0 (????-??-??)
First release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for coindata-1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 903d3948e9c0c94c63da4ae2b815bc88d80792825af06075d01d60fb14894edd |
|
MD5 | 25761b925f53aa4f1f3dab43a868ce26 |
|
BLAKE2b-256 | 7adff9cb2394e6957f209679a16aed21734e51bca4c23fdff3df3d7c507cbe45 |