QTrade is a simple, modular, and highly customizable trading interface capable of handling backtesting, reinforcement learning tasks.
- Backtesting engine
- Gym Trading environment simulation
QTrade can be installed with pip:
$ pip install qtrade-lib
Alternatively, you can obtain the latest source code from GitHub:
$ git clone https://github.com/gguan/qtrade.git
$ cd qtrade
$ pip install .
To run the example code from repository:
$ pip install -r examples/requirements.txt
$ python examples/simple_strategy.py
- Python >= 3.8
- Dependencies listed in requirements.txt
The User Guide is the place to learn how to use the library and accomplish common tasks. For more advanced customization, refer to the Customization Guide.
The Reference Documentation provides API-level documentation.
This project is inspired by following projects.
This project is licensed under the MIT License - see the LICENSE file for details.