This release is a pre-release and may not be stable for production use.
Qubx - Quantitative Trading Framework
⠀⠀⡰⡖⠒⠒⢒⢦⠀⠀
⠀⢠⠃⠈⢆⣀⣎⣀⣱⡀ 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
- Initialize:
uv run qubx init- Create strategy from template - Develop: Edit
strategy.pyto implement your trading logic - Test:
uv run qubx run config.yml --paper- Run in paper mode - Debug:
./jpaper.sh- Use Jupyter for interactive development - 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
- Clone the repository
- 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 templatequbx run- Start a strategy with given configurationqubx simulate- Run strategy simulationqubx ls- List all strategies in a directoryqubx release- Package a strategy into a zip filequbx deploy- Deploy a strategy from a zip filequbx 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.
- Website: xlydian.com
- X: @xLydian_xyz
- Contact: info@xlydian.com
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.
Metadata
Release files for Qubx 3.17.2.dev1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qubx-3.17.2.dev1.tar.gz | 1.0 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| qubx-3.17.2.dev1-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details |
| qubx-3.17.2.dev1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 | Details |
| qubx-3.17.2.dev1-cp313-cp313-macosx_11_0_arm64.whl | CPython 3.13 | CPython 3.13 | macOS 11.0+ ARM64 | Details |
| qubx-3.17.2.dev1-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| qubx-3.17.2.dev1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 | Details |
| qubx-3.17.2.dev1-cp312-cp312-macosx_11_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 11.0+ ARM64 | Details |
Total release size: 14.3 MB
Release files / qubx-3.17.2.dev1.tar.gz
| Download URL | qubx-3.17.2.dev1.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6430e3f773cdf1e4c55db044d8ec4c4abbce49fa54ab396fb22a0143252c5cac
|
|
BLAKE2b-256 checksum How to use checksums |
44ea81f28ed174743ca40b95b7aa28f8a356e0704ad9d5a2a8e88c0d28a4b511
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / qubx-3.17.2.dev1-cp313-cp313-win_amd64.whl
| Download URL | qubx-3.17.2.dev1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
044777a2a63e5c0db29178833f86ae3b7475374f9ab2b7f9beee0a0b955e72f6
|
|
BLAKE2b-256 checksum How to use checksums |
c8e7cf4bf57a8c5aaa18c7aba52d920a0ecfb773b11f73a832c1070aa6371bb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / qubx-3.17.2.dev1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | qubx-3.17.2.dev1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
34dbda42fbc82a684aa32bae6e24f765da620355fb6cc396afc9038d945b8010
|
|
BLAKE2b-256 checksum How to use checksums |
e459a0a353e2f350fd27b8cdca5dd00603fc577332bfac1b436b5e7b0f56f467
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / qubx-3.17.2.dev1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | qubx-3.17.2.dev1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ac696bd6346001c977fa0abd683ea32d1e5c5ede444c7e894f07f282f0a53694
|
|
BLAKE2b-256 checksum How to use checksums |
aa67ceb607cea49de554b5c2bdc84817b3af0b5475c0e2e520c2b8c23fd31407
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / qubx-3.17.2.dev1-cp312-cp312-win_amd64.whl
| Download URL | qubx-3.17.2.dev1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bf4a8c4711e5ffdb9f50635b3efb938f322e4d2f9c0a26c1d401e93ca73ad8bd
|
|
BLAKE2b-256 checksum How to use checksums |
db1fe46399d23c6bdd74dfb6d3dce4b0bb25bc7ba4f74b60325ca824c89ee0fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / qubx-3.17.2.dev1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | qubx-3.17.2.dev1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9e6673026e85fb1f76b91f99d0042a3a1d17565043457b153eb9aacd6a636f40
|
|
BLAKE2b-256 checksum How to use checksums |
3ff6290226e235d19f273c3b14e8baa1f6be848c71197dd0ffadc43c3cf9dd76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency logRelease files / qubx-3.17.2.dev1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | qubx-3.17.2.dev1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
aec5a5001ed5a64e3bc8758db438793e536bf332e503a4e9e488bb1877f85dbc
|
|
BLAKE2b-256 checksum How to use checksums |
45a64944d3f75add443636d0a034b2dde98a9048d9e13712eb914e4a194b0c05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2026.
Transparency log