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-1.11.8.tar.gz (927.5 kB view details)

Uploaded Source

Built Distributions

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

qubx-1.11.8-cp313-cp313-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.13Windows x86-64

qubx-1.11.8-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.2 MB view details)

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

qubx-1.11.8-cp313-cp313-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

qubx-1.11.8-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

qubx-1.11.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (2.2 MB view details)

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

qubx-1.11.8-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-1.11.8.tar.gz.

File metadata

  • Download URL: qubx-1.11.8.tar.gz
  • Upload date:
  • Size: 927.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qubx-1.11.8.tar.gz
Algorithm Hash digest
SHA256 439a9cefbc67368582cfc991c606ad6bae54b9c062617c8bd77df5c5b983b396
MD5 087a4528536507d43665244e0c49c0d1
BLAKE2b-256 f242fbbc246aa79d2e714067e1b84b8d10de669cdeb9649f9c4584dcbe733067

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-1.11.8.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-1.11.8-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: qubx-1.11.8-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qubx-1.11.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 78403483b834813cecb57c37ed155ee99b6ab9c0da3cb3a24e50d095a1f97e8d
MD5 47ef316f91b869b6fa192f6b5d16f63f
BLAKE2b-256 1f0e052bb89097c20ec91d326feba95c89648e05f7e6bf26a37ca48dc75ce2b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-1.11.8-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-1.11.8-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qubx-1.11.8-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ca086cdcae08233f8bdca62494885c6711a0ed364ff3b0bd34815e0e522110ee
MD5 88479a4cedcb9b72aa3e69222ef9c3aa
BLAKE2b-256 779187eb6142b380f092f5e7d1c621b44fc5ff34ec564aa0292129c0f445545a

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-1.11.8-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-1.11.8-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qubx-1.11.8-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bac6aeadec6d149fbd2b022e592ddc15668f8f0d7176036a37b7c7cae3bf36f1
MD5 3e51f587a7edeb9f4f85a350dee50427
BLAKE2b-256 8f23430c0dc106cda14546cb88f7f5f2482b35356186630f7cd9013877181923

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-1.11.8-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-1.11.8-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: qubx-1.11.8-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qubx-1.11.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3c85f53026ab6d96b571f52e49efee2926b694d4ea2a4d0f193ee7a1bcbb83f8
MD5 7e490370b4cec97182b8f5429a7d84cf
BLAKE2b-256 8a01721d8163981faef5c71c443f1773085413d5a4861da85c0e04b5e0c76e55

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-1.11.8-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-1.11.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qubx-1.11.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9dbf0f43948ef1daa2ada252d540f775b84d8f25d0178a049a6902d62e2e1cbe
MD5 7f8da59dd982aab87940f3042c24aeaf
BLAKE2b-256 e5a00b2bfd2ebd5fbe75487046ae2c2bb19a5022d3fa8832812b58d85c62babc

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-1.11.8-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-1.11.8-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qubx-1.11.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dcb49fc37e4104fa027ba33104b822797dcca8e6a89b374a05913be60bd7669b
MD5 1225ce2ba6c23b5119a9b6883523de9a
BLAKE2b-256 1f27932dd1904726ede16868fcb393ff4bf3c8b30899ab0cac65093ae8609d42

See more details on using hashes here.

Provenance

The following attestation bundles were made for qubx-1.11.8-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

3.5.1

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

This release

1.11.8 This release

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