Skip to main content

A Python library for backtesting trading strategies and applying reinforcement learning to trading.

Project description

CI Status Python PyPI version Coverage codestyle

QTrade

QTrade is a simple, modular, and highly customizable trading interface capable of handling backtesting, reinforcement learning tasks.

Features

  • Backtesting engine
  • Gym Trading environment simulation

Installation

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 .

Run Example

To run the example code from repository:

$ pip install -r examples/requirements.txt
$ python examples/simple_strategy.py

Requirements

  • Python >= 3.8
  • Dependencies listed in requirements.txt

Usage

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.

References

This project is inspired by following projects.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qtrade_lib-0.1.1.tar.gz (259.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qtrade_lib-0.1.1-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file qtrade_lib-0.1.1.tar.gz.

File metadata

  • Download URL: qtrade_lib-0.1.1.tar.gz
  • Upload date:
  • Size: 259.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for qtrade_lib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5c57380ef8bc77594d80512c4fc03f5c88299da6409c1211211598accdfda2fa
MD5 e68038ff7faf44a2dc25d99889367368
BLAKE2b-256 f828ebd372998d46177a33e3d59abf6b40e7ff33d8e5f245b851076daaa783cb

See more details on using hashes here.

File details

Details for the file qtrade_lib-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: qtrade_lib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for qtrade_lib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d7f24a5a4bb3ad249028d9c05d10661d7d18531f61038353a9841b0157ec44a
MD5 3da6efeced4cf0965eb1ed6098e4f88d
BLAKE2b-256 1e04084cef41b5071a55e9303cbbd7049b7dd00c37548ae9e72e425084b6548f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page