Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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.
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.
In order to use the package, please follow these steps:
conda create --name cryptocurrencyeda python=3.9 -y
conda activate cryptocurrencyeda
pip install cryptocurrencyeda
or
pip install git+https://github.com/UBC-MDS/cryptocurrencyeda
Python
>>> from cryptocurrencyeda.retrieve_data import retrieve_data
>>> from cryptocurrencyeda.plot_price import plot_price
>>> from cryptocurrencyeda.avg_daily_return import avg_daily_return
>>> from cryptocurrencyeda.daily_growth_rate import daily_growth_rate
>>> retrieve_data(symbol="BTC-USDT",
time_period="1day",
start_date="2018-01-01",
end_date="2022-01-10",
)
>>> plot_price(price_df)
>>> daily_growth_rate(price_df, "Close")
>>> avg_daily_return(price_df["Close"])
The documentation is hosted on ReadTheDocs here
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
cryptocurrencyeda
was created by MDS Students from Group-11 for course 524. It is licensed under the terms of the MIT license.
cryptocurrencyeda
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
FAQs
A package to analyze historical cryptocurrency prices and performance
We found that cryptocurrencyeda demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.