GORAZD: Gradient-Optimized Regime-Aware Zero-allocation Dispatcher
Project description
GORAZD: Gradient-Optimized Regime-Aware Zero-allocation Dispatcher
GORAZD is an elite, cross-platform quantitative execution matrix. Designed for institutional developers, it bridges the gap between local workstation simulation and bare-metal high-frequency deployment. It physically bypasses the Python Global Interpreter Lock (GIL) to achieve deterministic, microsecond-latency execution.
The Universal Matrix
GORAZD is architected for total environmental superiority:
- Tactical Simulation (Windows / macOS): Build, train, and backtest your non-linear risk matrices locally utilizing full multicore concurrency and ZeroMQ tactical dashboards.
- Live Deployment (Linux / Equinix NY4): Deploy the exact same codebase to a bare-metal server. GORAZD automatically maps to Linux
isolcpusand native.soC-libraries for zero-latency physical execution.
Architectural Supremacy
- The 4-Core Hydra: Mechanically hijacks 4 CPU cores for Asynchronous Ingestion, Routing, Risk (Kill-Switch), and Concept Drift monitoring.
- Page-Aligned Memory: Eradicates OS page faults by mapping monolithic tensors directly to physical RAM via
mmap. - Lock-Free IPC: Inter-Process Communication utilizing C11 atomic pointers and 64-byte L1 cache-line padding.
- Native C-API Inference: Bypasses Python wrappers entirely, mapping RAM directly to the underlying
libxgboostC-library. - Microstructure Physics: Custom objective gradients mathematically constrained by Maker/Taker exchange rebates.
- Avellaneda-Stoikov Routing: Dynamic Kelly capital exposure scaled by inverse volatility and skewed by real-time inventory risk.
- Immutable Parquet Ledger: Zero-blocking asynchronous trade journaling ensures absolute PnL persistence.
Environmental Configuration (.env)
Create a .env file in your root execution directory to securely lock your credentials and risk parameters:
# Execution Mode: RETAIL (Free APIs) or BLOOMBERG (B-Pipe)
data_source="RETAIL"
# API Infrastructure (Used if data_source="RETAIL")
tiingo_api_key="YOUR_TIINGO_KEY"
alpaca_api_key="YOUR_ALPACA_KEY"
alpaca_api_secret="YOUR_ALPACA_SECRET"
# Structural Risk Constraints
max_leverage=1.5
base_capital=250000.0
The Global CLI Matrix
GORAZD installs directly into your operating system's PATH. Drive your entire quantitative stack from the terminal:
gorazd-fetch # Polls physical APIs, calculates multipliers, locks Parquet tensors.
gorazd-train # Executes Purged Cross-Validation and Non-Linear Optimization.
gorazd-ui # Ignites the ZeroMQ tactical terminal dashboard.
gorazd-ignite # Launches the 4-Core UHFT memory-mapped daemon.
Top-Level Python API
For deep integration, the gz namespace provides brutal, operational brevity.
import gorazd as gz
# 1. Synthesize Physical Tensors
compiler = gz.TensorCompiler(target="SPY")
compiler.compile(start_date="2016-01-01")
# 2. Optimize Physics-Aware Matrix
optimizer = gz.Optimizer()
optimizer.fit(parquet_file="SPY_institutional_matrix.parquet")
# 3. Ignite the Multicore Daemon
engine = gz.Engine(target="SPY", model_file="core.ubj")
engine.ignite()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gorazd-1.0.0.tar.gz.
File metadata
- Download URL: gorazd-1.0.0.tar.gz
- Upload date:
- Size: 103.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
987d4b993b4efb65136a6c311b9a7e43f6106e4485049d67ecf723a6060fcb9a
|
|
| MD5 |
8f9a5412cc45d9008fc10acc9fd280c0
|
|
| BLAKE2b-256 |
37fbf58185ff1b58e7364a819955dd599de4cd71a9d4307936f11358141f8cbf
|
File details
Details for the file gorazd-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gorazd-1.0.0-py3-none-any.whl
- Upload date:
- Size: 307.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f61953bd265286ec50a9956d792ebaaa7c96deae51ac113949239264601b78ff
|
|
| MD5 |
615f1a3dfe5cd9fece2b8e67d4207a73
|
|
| BLAKE2b-256 |
0c772f33a00b1a593ec827908ac8f1365dd473672ba87778c3a3b362eadc840c
|