RL environment for financial portfolio management research
Top 57.8% on sourcepulse
This repository provides an OpenAI Gym environment for financial portfolio management, aiming to replicate a deep reinforcement learning framework for the problem. It's intended for researchers and practitioners interested in applying RL to trading strategies, offering a simulated environment with historical cryptocurrency data.
How It Works
The project implements a custom OpenAI Gym environment that simulates trading cryptocurrencies. It processes historical price data, allowing RL agents to learn optimal portfolio allocation strategies. The environment offers different observation shapes (CryptoPortfolioEIIE-v0
, CryptoPortfolioMLP-v0
, CryptoPortfolioAtari-v0
) to accommodate various model architectures, from CNNs to MLPs, and includes features like trading costs and time costs.
Quick Start & Requirements
pip install -r requirements/requirements.txt
jupyter-notebook
(then open tensorforce-VPG.ipynb
or tensorforce-PPO.ipynb
)Highlighted Details
Maintenance & Community
vermouth1992
is recommended for improved environments.Licensing & Compatibility
Limitations & Caveats
The author reports poor generalization to test data and suggests that hyperparameter sensitivity or subtle bugs might be present. The project is a personal replication attempt, and the author recommends a more actively maintained fork.
4 months ago
1 day