Skip to main content

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]

Release files for Historic-Crypto 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Historic-Crypto 0.0.1
File Size Uploaded
Historic_Crypto-0.0.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Historic-Crypto 0.0.1
File Interpreter ABI Platform
Historic_Crypto-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / Historic_Crypto-0.0.1.tar.gz

Download URL Historic_Crypto-0.0.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
37123fd7d8bd36bff11969673fabc8a713f338829a5820e0abbed11c64c2c3c0
BLAKE2b-256 checksum
How to use checksums
101d4b4a6dfcd19a70a333725683feac259ad9bff675dfabb021a941c466ff07
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / Historic_Crypto-0.0.1-py3-none-any.whl

Download URL Historic_Crypto-0.0.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef8db79616176fe89261e28ef6dd5d560747e38f684f878628ff78472feac0b0
BLAKE2b-256 checksum
How to use checksums
0b4236bfff1d19b0148dcc53d4fb9837046348c00dc15d3afaab8800e917775c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

0.1.6

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.3

2 release files

0.0.2

2 release files

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page