FinRL¶
FinRL is an automated quantitative trading framework.
Install¶
tip
If you do not use a virtual environment to install, it is recommended to use the latest version of the official PyTorch image, which can save the time for downloading PyTorch dependencies.
git clone https://github.com.cnpmjs.org/AI4Finance-LLC/FinRL-Library.git
apt-get update
apt-get install cmake libopenmpi-dev python3-dev zlib1g-dev libgl1-mesa-glx -y
cd FinRL-Library
# You can choose to install a virtual environment and install dependencies in the virtual environment
# If you install in a virtual environment, you need to enter the virtual environment every time you open the terminal
pip install virtualenv
virtualenv -p python3 venv
source venv/bin/activate
# install dependencies
pip install -r requirements.txt
pip install stable-baselines3[extra]
pip install pyfolio
# run tests
python main.py --mode=train