An open API service indexing awesome lists of open source software.

https://github.com/pythonlessons/finrock

Reinforcement Learning package for Finance
https://github.com/pythonlessons/finrock

Last synced: 8 months ago
JSON representation

Reinforcement Learning package for Finance

Awesome Lists containing this project

README

          

# FinRock
Reinforcement Learning package for Finance

# Environment Structure:



### Install requirements:
```
pip install -r requirements.txt
pip install pygame
pip install .
```

### Create sinusoid data:
```
python bin/create_sinusoid_data.py
```

### Train RL (PPO) agent on discrete actions:
```
experiments/training_ppo_sinusoid.py
```

### Test trained agent (Change path to the saved model):
```
experiments/testing_ppo_sinusoid.py
```

### Environment Render:



## Links to YouTube videos:
- [Introduction to FinRock package](https://youtu.be/xU_YJB7vilA)
- [Complete Trading Simulation Backbone](https://youtu.be/1z5geob8Yho)
- [Training RL agent on Sinusoid data](https://youtu.be/JkA4BuYvWyE)
- [Included metrics and indicators into environment](https://youtu.be/bGpBEnKzIdo)

# TODO:
- [ ] Train model on `continuous` actions (control allocation percentage)
- [ ] Add more indicators
- [ ] Add more metrics
- [ ] Add more reward functions
- [ ] Add more scalers
- [ ] Train RL agent on real data
- [ ] Add more RL algorithms
- [ ] Refactor rendering, maybe move to browser?