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.10.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distributions

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

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

Uploaded CPython 3.13Windows x86-64

qubx-3.10.0-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.10.0-cp313-cp313-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

qubx-3.10.0-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.10.0-cp312-cp312-macosx_11_0_arm64.whl (2.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for qubx-3.10.0.tar.gz
Algorithm Hash digest
SHA256 c368b809abe9e745970c2f54b1ad350d49f80505690c32997aca514de774acb9
MD5 15283b09af5104265f9171fa54baa0f7
BLAKE2b-256 d30c25b5ad7232e88880b1b6a24fdde80645c62254d16c6b8c9b84307c9c0aec

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qubx-3.10.0-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.10.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 11b9b0658844df5f2446d8089743a5414b111ddde164d0513165826f87d6748a
MD5 1aba902f237236a19b88d5ed66fce6fb
BLAKE2b-256 3b335d36985109e2eec92e8b60680241959fdaf4ffbee53f147ea3c16fbd1430

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qubx-3.10.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2e94be5dee661cc078bbfc681f08dc88b83c8dd82e0f3b805fddc46460e38fc3
MD5 335241235eb248e5ce3082b9879efffe
BLAKE2b-256 c73e2ee5d8660449491c70d6e06ae6f13e5a1c166df8826195bbbb64067edc7c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qubx-3.10.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 85285fad2eb3fe41ac6d91b3d06e1b91127b5342e3ec1f6eb5699b857dbe0142
MD5 5ae4321eed3e302ccb2eec9750fec532
BLAKE2b-256 a8158d3d5595c21491f1f1fbb8d7841afc697f9f920470814e3cfc9db61a27dc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qubx-3.10.0-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.10.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d1280b97c8a8d753d8021fc14e3f6efad58010a49ca9532029b696e18bed0ee4
MD5 ccfd269d5917b8a83a132090b32755dc
BLAKE2b-256 25419bb0efd175da8f248d9517f9847016b2d5bfee2cdc3a2900a2099e6e1158

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qubx-3.10.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 285171a0e9020a5eefcedd9ca183a96372c69a3fddfb1dfc62b4be992214d4fd
MD5 f2a41a61c416d3f5ded758f7555f37c0
BLAKE2b-256 44f3e39029a719a31b511026b6ac83fd02b1ff8a33b82275ca932cf0ed6d78dc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qubx-3.10.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6b2e17ff6a7458b5bc357d1f756a7b43042983598ad679b57516ae6aa6c97452
MD5 8b2e0faa8789cd53c9ed06c565de9d02
BLAKE2b-256 b420cfd5936f536420b3e999296f9ad34814e7a6cab2cbb3b159d9ef473c1e17

See more details on using hashes here.

Provenance

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

This release

3.10.0 This release

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

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