Multi-Strategy Options Engine
An internal quantitative research and execution platform for credit strategies and directional purchases of individual CALLs and PUTs across multiple tickers and timeframes. Its decoupled Oracle-Executor architecture combines Databento market data, strategy-specific caching, ZeroMQ Pub/Sub signals, thread-safe state management, and executor-side position management.
Trading System Topology & Flow
Market-data services provide underlying OHLCV data and options quotes to strategy-specific local or Redis-backed caches. The centralized Oracle evaluates configured strategies across their relevant timeframes and publishes entry signals over ZeroMQ Pub/Sub. Executors validate signals, select eligible contracts, route orders through broker integrations, and manage position exits locally.
1. Data Ingestion
Ingests Databento underlying market data, ThetaData NBBO options quotes, and trading calendars.
2. Market Data Cache
Serves underlying OHLCV and options data from service-specific caches.
3. Decision Oracle
Evaluates configured strategies and publishes entry signals via ZeroMQ Pub/Sub.
4. Execution Agents
Validate signals, select contracts, route orders, and manage local position exits.
5. Broker Integrations
Independent Alpaca and Interactive Brokers executors connect to their broker endpoints and manage orders and positions.
Credit & Directional Strategy Engine
Credit Strategies
Uses multi-leg option spreads with spread-specific position and exit handling.
Directional Strategies
Buys individual CALLs or PUTs to express bullish or bearish setups, rather than constructing two-leg debit spreads.
Representative Setups
Includes lateral mean reversion, opening and premarket breakouts, and multi-timeframe trend-change or confluence strategies.
Research Pipeline
Covers a broad range of strategy research, from mean-reversion setups to multi-timeframe momentum and other approaches.
Shared Research & Execution Logic
Strategy Configuration
Entry windows, timeframes, symbols, and strategy-specific filters are managed per strategy.
Shared Decision Policies
Backtests and production share entry and exit decision rules; contract selection, pricing, sizing, liquidity, and fills are modeled separately.
ZeroMQ Oracle-Executor Topology
Decoupled Services
The analytical Oracle and broker executors run as separate services, allowing strategy logic updates independently of active execution processes.
ZeroMQ Pub/Sub Signals
Publishes structured entry signals to subscribed execution services.
Bar-Aligned Processing
Modulo-based loop timing aligns strategy evaluation and heartbeat cycles with configured time boundaries.
Thread-Safe State
Shared state is managed across concurrent service activity to reduce inconsistent position and signal handling.
Market Data Ingestion & Caching
Service-Specific Caching
The Databento client uses an in-process cache; Redis-backed services retrieve cached OHLC ranges with batched or range-based reads.
Underlying & Options Data
Databento provides underlying market data, while ThetaData supplies National Best Bid and Offer (NBBO) options quotes for entry pricing, exit pricing, and P&L calculations.
Stream and Calculation Separation
Feed ingestion and strategy calculations use separate processing paths so incoming data can be buffered and evaluated independently.
Session-Aware Data
Regular trading-hours data is normalized for strategy evaluation and historical research.
Strategy-Specific Risk & Exit Management
Option-Premium Targets
Applies configurable take-profit and stop-loss policies to option positions, with settings varying by strategy, symbol, and direction.
Partial or Full Exits
Policies may take partial profits and protect remaining contracts, or close the full position at an earlier target.
Underlying and Time-Based Exits
Supports technical targets based on the underlying and scheduled exit policies.
Credit-Position Guards
Credit strategies trail profit thresholds as spread premiums decay, with exit checks for wide bid-ask spreads and anomalous zero-bid quotes on thin option legs.
Executor-Side Controls
Executors validate daily limits and duplicate entries, then manage open positions locally.
Broker Abstraction & Order Routing
Independent Broker Executors
Alpaca and Interactive Brokers executors connect concurrently, each with its own order routing and risk-management loop.
Limit Order Walk-Downs
Executors adjust limit prices in scheduled steps according to the configured execution policy.
Calendar-Aware Scheduling
Trading calendars can guide service cadence around market sessions, holidays, and closures.
Normalized Broker Actions
The adapter layer maps common order actions to each broker API.
Spread Exit Sequencing
Credit-spread exits close short legs first to manage broker margin requirements.
Building Event-Driven Systems & Quantitative Pipelines?
We architect and build low-latency messaging backends, real-time data ingestion pipelines, and resilient algorithmic execution engines. Reach out to discuss your technical stack.