PyAlgoEngine: Python Algo-Trading Engine
This module is a high-performance market data buffer implementation written in Python, Cython and C, designed for HFT (High Frequency Trading) system.
📦 Features
- C-level data structures for fast market data access
- Efficient shared memory support for interprocess communication
- Compile-time configurable parameters for memory and layout tuning
⚙️ Compile-Time Configuration
This module allows overriding several constants at compile time via environment variables.
Available Parameters
| Variable | Default | Description |
|---|---|---|
TICKER_SIZE |
32 |
Max length of a ticker symbol |
BOOK_SIZE |
10 |
Max depth of the order book |
ID_SIZE |
16 |
Max length of ID field |
MAX_WORKERS |
128 |
Max number of concurrent workers |
These values are defined in c_market_data_config.h, but can be overridden at build time.
🚀 Building with Custom Parameters
To override default values, set environment variables before building:
Using pip install
TICKER_SIZE=64 BOOK_SIZE=20 pip install .
Using setup.py directly
TICKER_SIZE=64 BOOK_SIZE=20 python setup.py build_ext --inplace
These environment variables are passed to the C compiler as -D flags and will override the fallback values in c_market_data_config.h.
🧪 Verify Compilation
You can verify the values were compiled correctly by running:
from algo_engine.base import C_CONFIG
print(C_CONFIG)
Metadata
Release files for PyAlgoEngine 0.10.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 36.5 MB
Release files / pyalgoengine-0.10.6-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pyalgoengine-0.10.6-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 9.2 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
479eb0f420fd811e44de20c7b6fd0e8715c52acce5c7b9ec9a8bcb4170a350ed
|
|
BLAKE2b-256 checksum How to use checksums |
b39af413daf98f2f6504a103e7326f5cd060b1634ce58314f5d660fb367af2cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / pyalgoengine-0.10.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pyalgoengine-0.10.6-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 9.1 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
911ffdd0a3f298b52af95d2a54a6271976c016babbae6ec5ef42ce47acd4e5cb
|
|
BLAKE2b-256 checksum How to use checksums |
c817aad0e8e19d7b2a5ba877a892397a55505aff7464f750260d2f4a141a5198
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / pyalgoengine-0.10.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pyalgoengine-0.10.6-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 9.1 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
48f2889b6d4a4813241eff09db62b55141569aa6554ec9d19b2d3d87baa6db4d
|
|
BLAKE2b-256 checksum How to use checksums |
d44406597801ecc9518449959b30485208d2f47048d62cee4585aa747297c552
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / pyalgoengine-0.10.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pyalgoengine-0.10.6-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 9.2 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
2f1653075225f73bd396b7c7371a288796a2f82010d9fc5e3916cd292dac9ff2
|
|
BLAKE2b-256 checksum How to use checksums |
5811f8ceb95ad02406f56f3deb85a7565ca6681df4303a7d1025983bed3e6f74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for PyAlgoEngine 0.10.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.