Predict crypto prices with ML.
Project description
Crypto Util
Real time cryptocurrency price data prediction command line utility using machine learning regression. Cross platform compatible on Linux, macOS, and Windows. Written in Python 3.
Install
Python
-
pip3 install yacuor -
python3 -m pip install yacu
Docker or Podman (CLI ONLY!)
-
docker pull yetanothercryptoutil/yacuor -
podman pull yetanothercryptoutil/yacu
NOTE: If you use this method, only the CLI features of the program will be available.
Local installation via anaconda (for development)
- Download and install anaconda
git clone https://github.com/1103s/crypto-bot.gitcd crypto-botconda create --name crypto_util python=3.9.7source activate crypto_utilpython3 -m pip install -r requirements.txt
Usage
GUI
-
Default:
yacu -
Anaconda:
python3 src/gui.py -
Once installed via pip you will be able to initialize the GUI using the command
yacuin the command line.- In some cases, such as in Linux Mint installations, this will fail. If the happens it means that
.binis not in your path (which you can check usingecho $PATH). Therefore you need to add.binto your path in order to fix this.
- In some cases, such as in Linux Mint installations, this will fail. If the happens it means that
CLI
-
Default:
yacu-cli -
Podman:
podman run yacu -
Docker:
docker run yacu -
Anaconda:
python3 src/crypto_util.py
Local command line usage
python3 crypto_util.py --crypto BTC: The basic functionality requires the user to input at least the cryptocurrency symbol. Note that by default images of the data and predictions are saved tofigures/python3 crypto_util.py --crypto ETH --days 10 --lags 80: More specific flags can be specified, such as the number of days into the future to predict the price.python3 crypto_util.py --crypto ETH --days 50 --lags 400: The largerlagsis the longer the training time, but also the higher the accuracy will be.python3 crypto_util.py --ls --source kraken: In order for the user to see what cryptocurrency symbols are available for an API source, the utility allows for this listing argument with no additional flags.python3 crypto_util.py --help: Prints the usage instructions.
Docker or podman
docker run yacuorpodman run yacu
Example Docker or podman Usage
-
podman run yacu --crypto ETH: In this case the settings are set to default. However, the cryptocurrency you want to analyze is a required flag. -
podman run yacu --helpdisplays the usage and required arguments for the utility to work.
Documentation
Documentation can be found here.
Requirements
- docker, podman, or Python3 and pip (or pip3)
Installation problems
- On some Linus distributions the PySide6 import will throw an error like this:
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28 not found- A possible fix for this is
sudo apt-get install libc6
- A possible fix for this is
Future TODOs and improvements
- Add method to save and load previously trained ML model files using the python library
pickle. - More color palettes for the MainWindow (variations of dark mode)
- Add moving averages toggling to graph
Project details
Release history Release notifications | RSS feed
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 yacu-1.1.0.tar.gz.
File metadata
- Download URL: yacu-1.1.0.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37f870be8614af38a87f03278ab689329b58492072b5be5a6fd34105b84bd4ba
|
|
| MD5 |
d9c88c12edcd73d36a92c2a5b01ba1cd
|
|
| BLAKE2b-256 |
95c4b8cd627f8dc5166b8e7c23067de0e83ff029f6692ad5f2d90163d3eba571
|
File details
Details for the file yacu-1.1.0-py3-none-any.whl.
File metadata
- Download URL: yacu-1.1.0-py3-none-any.whl
- Upload date:
- Size: 35.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
057d0224cab4744d7a38c82c5a3aed91ed22d414ca52eeb36439d76512e82fdc
|
|
| MD5 |
e1172c20bf5d23b959bc3dd11024354d
|
|
| BLAKE2b-256 |
988845d7a9db289ddae29dd8164ebe05e3432b28892482e3f76f42b061f7e3a6
|