Skip to main content

Qubx - Quantitative Trading Framework

CI

⠀⠀⡰⡖⠒⠒⢒⢦⠀⠀
⠀⢠⠃⠈⢆⣀⣎⣀⣱⡀  QUBX | Quantitative Backtesting Environment
⠀⢳⠒⠒⡞⠚⡄⠀⡰⠁         (c) 2026, by xLydian
⠀⠀⠱⣜⣀⣀⣈⣦⠃⠀⠀⠀

Qubx is a next-generation quantitative trading framework designed for efficient backtesting and live trading. Built with Python, it offers a robust environment for developing, testing, and deploying trading strategies.

Qubx is under active development. We are continuously improving the framework and will update our documentation in the coming days/weeks. This will include comprehensive end-to-end examples for running simulations and live trading.

Supported Data Types

Qubx supports a wide range of market data:

  • OHLC (candlestick data)
  • L2 Orderbook
  • Liquidations
  • Funding rates
  • And more...

Quick Start

1. Install Dependencies

just install

2. Create a Strategy

# Create a simple strategy template (default)
uv run qubx init

# Or specify a name and symbols
uv run qubx init --name my_strategy --symbols BTCUSDT,ETHUSDT

3. Run Your Strategy

cd my_strategy

# Run in paper trading mode
uv run qubx run config.yml --paper

# Or run in Jupyter mode for interactive development
./jpaper.sh

Available Templates

# List available strategy templates
uv run qubx init --list-templates

# Create strategy with full project structure and MACD example
uv run qubx init --template project --name my_project

Strategy Development Workflow

  1. Initialize: uv run qubx init - Create strategy from template
  2. Develop: Edit strategy.py to implement your trading logic
  3. Test: uv run qubx run config.yml --paper - Run in paper mode
  4. Debug: ./jpaper.sh - Use Jupyter for interactive development
  5. Deploy: Configure for live trading when ready

Features

  • High-performance backtesting engine
  • Live trading support
  • Advanced data analysis tools
  • Integration with multiple exchanges
  • Comprehensive strategy development toolkit
  • Detailed performance analytics

Documentation

For detailed documentation, visit Qubx Documentation

Prerequisites

To build and run Qubx, you need:

  • Python 3.11 or higher
  • C/C++ compiler for Cython compilation
  • uv for dependency management

Installation

Using pip

pip install qubx

Development Setup

  1. Clone the repository
  2. Install dependencies using uv:
uv sync --all-extras

Example trading strategies can be found in the examples/ directory.

CLI Usage

Qubx comes with a command-line interface that provides several useful commands:

qubx --help  # Show all available commands

Available commands:

  • qubx init - Create a new strategy from template
  • qubx run - Start a strategy with given configuration
  • qubx simulate - Run strategy simulation
  • qubx ls - List all strategies in a directory
  • qubx release - Package a strategy into a zip file
  • qubx deploy - Deploy a strategy from a zip file
  • qubx browse - Browse backtest results using interactive TUI

Development

Running Tests

Run the test suite:

just test

Additional Commands

  • Check code style: just style-check
  • Build package: just build
  • Run verbose tests: just test-verbose

In Production

Qubx powers the AllegedAlpha public pool on Lighter. Public pools allow users to deposit funds from their blockchain wallet into a smart contract. The pool operator manages the trading strategy, and a performance fee is taken from profits (X: @allegedalpha).

About xLydian

Qubx is developed by xLydian.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Download files

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

Source Distribution

qubx-3.5.1.tar.gz (997.8 kB view details)

Uploaded Source

Built Distributions

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

qubx-3.5.1-cp313-cp313-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.13Windows x86-64

qubx-3.5.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

qubx-3.5.1-cp313-cp313-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

qubx-3.5.1-cp312-cp312-win_amd64.whl (2.1 MB view details)

Uploaded CPython 3.12Windows x86-64

qubx-3.5.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

qubx-3.5.1-cp312-cp312-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file qubx-3.5.1.tar.gz.

File metadata

  • Download URL: qubx-3.5.1.tar.gz
  • Upload date:
  • Size: 997.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for qubx-3.5.1.tar.gz
Algorithm Hash digest
SHA256 df917af8e84e35c15db1b3b1473512c2403c4b16051c7318792beba9d41b7461
MD5 3311d2d12438014e973f74b44991ddd6
BLAKE2b-256 d8e3bfa8cbc6e00d962fba59f20a093bcc5b7095aeb2d5b27035569e400605e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-3.5.1.tar.gz:

Publisher: release.yml on xLydianSoftware/Qubx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qubx-3.5.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: qubx-3.5.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for qubx-3.5.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 834ee6a8644bc9ea402de4eeee8e22868ac6079e79bda6b6d16de801b56b616c
MD5 ffc0c705ffac86c719460e1b1eba305c
BLAKE2b-256 dc80ac90e177fd3f557476b9d5ad46dfd12ea32fe4e5a084a1fe570350ebccdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-3.5.1-cp313-cp313-win_amd64.whl:

Publisher: release.yml on xLydianSoftware/Qubx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qubx-3.5.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qubx-3.5.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bcb9001792cd60e2152dea6c2dbbcd6de008b4a036d5ab5396536b8314b6e0fe
MD5 0cfff3d86342dcb24aea612bb0c4446a
BLAKE2b-256 afddb2ac3a09380fe4b97d889c965cfb4564585cc80628dd6271b7dad3a7e82b

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-3.5.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on xLydianSoftware/Qubx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qubx-3.5.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qubx-3.5.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ffd1cb301dc380b25cc35d2bc691f2fd26c86bec20025ed6beb76dd3a2364f8
MD5 eb122724130a0c388553ddf11d7b8b90
BLAKE2b-256 053c2ce4f16e0d73132c134ba2302e5da7802d6529cb42fc61e6e9f66e9d23dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-3.5.1-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: release.yml on xLydianSoftware/Qubx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qubx-3.5.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: qubx-3.5.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for qubx-3.5.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 727b530edc8d0cc485e82df6d2bf8f5446d428985baadf89c413cbbe7660abcc
MD5 6fec010ab3f6390a8e7c89f5b84a21f7
BLAKE2b-256 f687eaeb770a84d0327f580052ceac889eeee4391bbc32a5d3256c5c3faed155

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-3.5.1-cp312-cp312-win_amd64.whl:

Publisher: release.yml on xLydianSoftware/Qubx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qubx-3.5.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qubx-3.5.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4835c19464945a14d087c8371d0cf95bcb5f899a886b78a415b62a5bfd3ee145
MD5 554b5889a17c06aee5b9fa1786f32e66
BLAKE2b-256 100b00c8b3bcd821c4003d9de550fa6aecde355d817e3b15127da2ee32aa663a

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-3.5.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on xLydianSoftware/Qubx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qubx-3.5.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qubx-3.5.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a2cd2a53045cb3d61e9898ab12946b9ac89beb5095a7e30b1ea8a1611edaa83
MD5 93701f44a10a03ac5c366262ec50e77e
BLAKE2b-256 719933011f783c06c28d60626b0d30bbd6ffdae42d7d1e075784e62bdfe3ceb9

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-3.5.1-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on xLydianSoftware/Qubx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

3.10.1

7 files

3.10.0

7 files

3.9.0

7 files

3.8.0

7 files

3.7.0

7 files

3.6.1

7 files

3.6.0

7 files

3.5.6

7 files

3.5.5

7 files

3.5.4

7 files

3.5.3

7 files

3.5.2

7 files

This release

3.5.1 This release

7 files

3.5.0

7 files

3.4.0

7 files

3.3.1

7 files

3.3.0

7 files

3.2.2

7 files

3.2.1

7 files

3.2.0

7 files

3.1.0

7 files

3.0.0

7 files

2.0.2

7 files

2.0.1

7 files

2.0.0

7 files

1.14.0

7 files

1.13.8

7 files

1.13.7

7 files

1.13.6

7 files

1.13.5

7 files

1.13.4

7 files

1.13.3

7 files

1.13.2

7 files

1.13.1

7 files

1.13.0

7 files

1.12.0

7 files

1.11.9

7 files

1.11.8

7 files

1.11.7

7 files

1.11.6

7 files

1.11.5

7 files

1.11.4

7 files

1.11.3

7 files

1.11.2

7 files

1.11.1

7 files

1.11.0

7 files

1.10.0

7 files

1.9.5

7 files

1.9.4

7 files

1.9.3

7 files

1.9.2

7 files

1.9.1

7 files

1.9.0

7 files

1.8.1

7 files

1.8.0

7 files

1.7.0

7 files

1.6.0

7 files

1.5.1

7 files

1.5.0

7 files

1.4.5

7 files

1.4.4

7 files

1.4.3

7 files

1.4.2

7 files

1.4.1

7 files

1.4.0

7 files

1.3.6

7 files

1.3.5

7 files

1.3.4

7 files

1.3.3

7 files

1.3.2

7 files

1.3.1

7 files

1.3.0

7 files

1.2.2

7 files

1.2.1

7 files

1.2.0

7 files

1.1.2

7 files

1.1.1

7 files

1.1.0

7 files

1.0.5

7 files

1.0.3

7 files

1.0.1

7 files

0.7.39

2 files

0.7.38

2 files

0.7.37

2 files

0.7.36

2 files

0.7.35

2 files

0.7.34

2 files

0.7.33

2 files

0.7.32

2 files

0.7.31

2 files

0.7.30

2 files

0.7.29

2 files

0.7.28

2 files

0.7.27

2 files

0.7.26

2 files

0.7.25

2 files

0.7.24

2 files

0.7.23

2 files

0.7.22

2 files

0.7.20

2 files

0.7.19

2 files

0.7.18

2 files

0.7.17

2 files

0.7.15

2 files

0.7.14

2 files

0.7.13

2 files

0.7.12

2 files

0.7.11

2 files

0.7.10

2 files

0.7.9

2 files

0.7.8

2 files

0.7.7

2 files

0.7.6

2 files

0.7.5

2 files

0.7.4

2 files

0.7.3

2 files

0.6.95

2 files

0.6.94

2 files

0.6.93

2 files

0.6.91

2 files

0.6.90

2 files

0.6.89

2 files

0.6.88

2 files

0.6.87

2 files

0.6.85

2 files

0.6.84

2 files

0.6.78

2 files

0.6.77

2 files

0.6.76

2 files

0.6.75

2 files

0.6.74

2 files

0.6.73

2 files

0.6.72

2 files

0.6.71

2 files

0.6.68

2 files

0.6.67

2 files

0.6.66

2 files

0.6.65

2 files

0.6.64

2 files

0.6.63

2 files

0.6.62

2 files

0.6.61

2 files

0.6.60

2 files

0.6.59

2 files

0.6.58

2 files

0.6.57

2 files

0.6.56

2 files

0.6.54

2 files

0.6.53

2 files

0.6.52

2 files

0.6.50

2 files

0.6.49

2 files

0.6.48

2 files

0.6.47

2 files

0.6.44

2 files

0.6.43

2 files

0.6.42

2 files

0.6.41

2 files

0.6.40

2 files

0.6.38

2 files

0.6.37

2 files

0.6.36

2 files

0.6.35

2 files

0.6.32

2 files

0.6.31

2 files

0.6.30

2 files

0.6.29

2 files

0.6.27

2 files

0.6.26

2 files

0.6.25

2 files

0.6.24

2 files

0.6.23

2 files

0.6.21

2 files

0.6.20

2 files

0.6.19

2 files

0.6.18

2 files

0.6.17

2 files

0.6.16

2 files

0.6.14

2 files

0.6.13

2 files

0.6.12

2 files

0.6.11

2 files

0.6.10

2 files

0.6.9

2 files

0.6.8

2 files

0.6.7

2 files

0.6.6

2 files

0.6.4

2 files

0.6.3

2 files

0.6.1

2 files

0.6.0

2 files

0.5.8

2 files

0.5.7

2 files

0.5.6

2 files

0.5.5

2 files

0.5.3

2 files

0.5.1

2 files

0.5.0

2 files

0.4.3

2 files

0.4.2

2 files

0.4.0

2 files

0.3.0

2 files

0.2.82

2 files

0.2.81

2 files

0.2.80

2 files

0.2.79

2 files

0.2.78

2 files

0.2.77

2 files

0.2.76

2 files

0.2.75

2 files

0.2.74

2 files

0.2.73

2 files

0.2.72

2 files

0.2.71

2 files

0.2.70

2 files

0.2.69

2 files

0.2.65

2 files

0.2.64

2 files

0.2.63

2 files

0.2.62

2 files

0.2.61

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.2

2 files

0.1.90

2 files

0.1.89

2 files

0.1.88

2 files

0.1.87

2 files

0.1.86

2 files

0.1.85

2 files

0.1.84

2 files

0.1.83

2 files

0.1.82

2 files

0.1.81

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.0

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page