Crypto2csv is a python package accessible via command line for accessing crytocurrencies data in a readable csv format.
open the terminal in the folder in which you wish to download the package.
Windows:
path\to\venv\Scripts\activate.bat
Unix or MacOS:
source /path/to/venv/bin/activate
MacOS (with M1 Chipset):
conda activate environment-name
If you haven't setup python environment, you could refer to the official docs.
Link: Official Docs
Simplified Resource: Simplified Resource
To use crypto2csv, you need requests library for API calling, pandas for constructing the dataframe, and json for data parsing. You don't need to install anything before hand.
Open the terminal, activate the environment and enter the following command:
pip install crypto2csv
You have successfully installed the latest version of crypto2csv!
There are 2 commands as of the moment.
crypto2csv "coin-name"
The command returns a csv file in the folder location with an extensive details for the cryptocurrency coin. The obtained csv files contains more than 75+ fields of information. The information is extracted to the latest date by coingecko.
crypto2csv "coin-name" "start-date" "end-date"
The command returns a csv file with an details for the cryptocurrency coin over a specified date range.
The obtained csv files contains more than 14+ fields of information.
Note: The specified date should be in the format DD-MM-YYYY
After running any of the above commands, a csv file would be generated and saved in the folder terminal is pointing to. It would be the name of output.csv
.
Distributed under the MIT License. See LICENSE
for more information.