Skip to main content

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 isolcpus and native .so C-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 libxgboost C-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()

Release files for gorazd 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gorazd 1.0.0
File Size Uploaded
gorazd-1.0.0.tar.gz 103.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for gorazd 1.0.0
File Interpreter ABI Platform
gorazd-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 103.7 MB

Release files / gorazd-1.0.0.tar.gz

Download URL gorazd-1.0.0.tar.gz
Size 103.4 MB
Tags Source
SHA-256 checksum
How to use checksums
987d4b993b4efb65136a6c311b9a7e43f6106e4485049d67ecf723a6060fcb9a
BLAKE2b-256 checksum
How to use checksums
37fbf58185ff1b58e7364a819955dd599de4cd71a9d4307936f11358141f8cbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / gorazd-1.0.0-py3-none-any.whl

Download URL gorazd-1.0.0-py3-none-any.whl
Size 307.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f61953bd265286ec50a9956d792ebaaa7c96deae51ac113949239264601b78ff
BLAKE2b-256 checksum
How to use checksums
0c772f33a00b1a593ec827908ac8f1365dd473672ba87778c3a3b362eadc840c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release 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