Skip to main content

A package to analyze historical cryptocurrency prices and performance

Project description

cryptocurrencyeda

This is a Python package to analyze historical cryptocurrency prices and performance through simple exploratory data analysis including calculations and plotting. Data is sourced from the KuCoin API. There are four functions that are included in this python package which are described in more detail below. Cryptocurrency investors and enthusiasts can use this package to analyze cryptocurrencies of interest.

There are existing Python libraries to access information of cryptocurrency such as cryptocompare and cryptofeed. There are also existing Python libraries to visualize financial data such as mplfinance. However, there is no integrated Python library for accessing, analyzing, and visualizing cryptocurrency data altogether. Therefore, we want to build a simple tool that can facilitate simple cryptocurrency data analysis all at once.

Function List

The package contains the following four functions:

  • retrieve_data: downloads historical data from a cryptocurrency exchange using an an http request from a cryptocurrency exchange.

  • plot_price: generates and visualizes a plot of the price of the cryptocurrenty inputted over a period of time.

  • daily_growth_rate: performs calculation of daily growth rate of the cryptocurrenty inputted over a period of time.

  • avg_daily_return: performs calculation of the average daily return of the inputted cryptocurrency price.

Installation

$ pip install cryptocurrencyeda

Usage

from cryptocurrency.retrieve_data import retrieve_data
from cryptocurrency.plot_price import plot_price
from cryptocurrency.avg_daily_return import avg_daily_return
from cryptocurrency.daily_growth_rate import daily_growth_rate

retrieve_data(symbol:str="BTC-USDT",
                  time_period:str="1day",
                  start_date:str="2018-01-01",
                  end_date:str="2022-01-10",
                 )

plot_price(price_df)

daily_growth_rate(price_df, closing_price)

avg_daily_return(price_df)

Contributors

We welcome and recognize all contributions. You can see a list of current contributors in the contributors tab. If you are interested in contributing to this project, please check out our CONDUCT.md

  • Berkay Bulut
  • Cici Du
  • Alex Yinan Guo
  • Nobby Nguyen

License

cryptocurrencyeda was created by MDS Students from Group-11 for course 524. It is licensed under the terms of the MIT license.

Credits

cryptocurrencyeda was created with cookiecutter and the py-pkgs-cookiecutter template.

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

cryptocurrencyeda-0.2.7.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

cryptocurrencyeda-0.2.7-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page