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.3.tar.gz (28.5 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.3-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qtrade_lib-0.1.3.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.14 Darwin/24.6.0

File hashes

Hashes for qtrade_lib-0.1.3.tar.gz
Algorithm Hash digest
SHA256 da7f70c5500cf69db527e5ae044bc513b987f293f7889509f97db63a47874a4b
MD5 21ce052cb6de072c06b0175d44101fc1
BLAKE2b-256 eb635e2d0c0f01f8d2c0a6b95ac7a573d39a35ca849dce8c8d081e377adbf2e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qtrade_lib-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.14 Darwin/24.6.0

File hashes

Hashes for qtrade_lib-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 79a79ee030ca20eda19accec32d242f5d909ac0741fd16afce4a52d08bd64c20
MD5 e7b0de8f02dd86d86b12f5243fb3fc65
BLAKE2b-256 9a4befe8c730f58af2437cd43708bcdbd7a3cb69be5329c241bebe7f8f12e63f

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