An open source Python library for scraping Historical Cryptocurrency data.
Project description
Historic Crypto
An open source Python library for scraping Historical Cryptocurrency data.
This library scrapes coinmarketcap.com to collect historical Cryptocurrency data, returning a Pandas DataFrame.
Installation
From Python:
pip install Historic-Crypto
from Historic_Crypto import HistoricalData
Usage
If you are unsure of the correct 'ticker' to scrape:
pip install Historic-Crypto
from Historic_Crypto import HistoricalData
HistoricalData(start_date = '', ticker = '').find_all_tickers()
Returns a Pandas DataFrame containing the columns "Name" and "Symbol", which indicate the Name - Symbol pairs of available cryptocurrencies. The "Symbol" is required as the corresponding 'ticker' input argument of other class methods:
pip install Historic-Crypto
from Historic_Crypto import HistoricalData
dataset = HistoricalData(start_date = '2013-06-06',
end_date = '2015-01-01',
ticker = 'BTC').retrieve_data()
Returns a Pandas DataFrame 'dataset', which contains the Open, Close, High, Low, Volume and Market Capitalisation of Bitcoin between 2013-06-06 and 2015-01-01, indexed by Date.
pip install Historic-Crypto
from Historic_Crypto import HistoricalData
dataset = HistoricalData(start_date = '2013-06-06',
ticker = 'BTC').retrieve_data()
Returns a Pandas DataFrame 'dataset', which contains the Open, Close, High, Low, Volume and Market Capitalisation of Bitcoin between 2013-06-06 and today, indexed by Date.
Input Arguments
| Argument | Description |
|---|---|
| ticker | information for which the user would like to return (str). |
| start_date | a string in the format YYYY-MM-DD (str). [optional] |
| end_date | a string in the format YYYY-MM-DD (str). [optional] |
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Historic_Crypto-0.0.1.tar.gz.
File metadata
- Download URL: Historic_Crypto-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37123fd7d8bd36bff11969673fabc8a713f338829a5820e0abbed11c64c2c3c0
|
|
| MD5 |
3669bfc1e3633bcc1810b08974d2bd04
|
|
| BLAKE2b-256 |
101d4b4a6dfcd19a70a333725683feac259ad9bff675dfabb021a941c466ff07
|
File details
Details for the file Historic_Crypto-0.0.1-py3-none-any.whl.
File metadata
- Download URL: Historic_Crypto-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8db79616176fe89261e28ef6dd5d560747e38f684f878628ff78472feac0b0
|
|
| MD5 |
65d737a419f076c5a095e161fbf97f76
|
|
| BLAKE2b-256 |
0b4236bfff1d19b0148dcc53d4fb9837046348c00dc15d3afaab8800e917775c
|