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.2.tar.gz (7.1 MB 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.2-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qtrade_lib-0.1.2.tar.gz
  • Upload date:
  • Size: 7.1 MB
  • 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.2.tar.gz
Algorithm Hash digest
SHA256 a73757dbeacd87aae0059ef61a20c0dd158566fd65a5ac0ef957ee430cd0f1ed
MD5 5a7c5271e00f0e4f2cd02b382cfdd563
BLAKE2b-256 38498a0322930825015af6be0f2ff61d3b286683e60deb3065e24b3a32111855

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qtrade_lib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 35.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ebb8686c6ff6cf716ef5a173bf9f23b2cd99fbbb474d7f89e148f6734a6b978
MD5 ef6a2b0f690715af77bc1c2675a02a59
BLAKE2b-256 d49cc1600c19e9d1eea58dfff09e645b0f1b9079fb0a6466d76ee82cf6509ffb

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