📖 STRAT AI CORE SPECIFICATIONS & BLUEPRINTS

Documentation

Complete architecture blueprints, multi-agent specifications, local time-series schemas, and cryptographic vault policies.

1. Ingestion Pipeline & Time-Series DB

Strat Ai binds directly to the active Zerodha Kite Connect WebSocket gateway and direct Crypto exchange feeds. The local /ingestion client is compiled in native Rust utilizing Tokio async loops to parse and handle active binary frames under 5µs.

PIPELINE LAYERIMPLEMENTATION SPECIFICATION
Equity Binary Framing Ingestwss://ws.kite.trade (184-byte frames)
Crypto Ingest GatewayDirect WebSockets (Binance, Coinbase, OKX)
Queue Streaming BusRedpanda Local Ports 19092 & 29092
High-Speed DB PersistencyQuestDB Influx Line Protocol (ILP) Port 9009

2. The 5 Quantitative Agents

We isolate market analysis and model calculations into five discrete, local micro-agents. These publish individual telemetry signals directly to Redpanda topics.

Technical Agent (Rust)

Calculates RSI14, VWAP, SMA50/200, and evaluates 5 candlestick patterns (Doji, Hammer, Engulfing). Outputs indicators to technical_signals topic.

Sentiment Agent (Node.js)

Polls Google News RSS feeds, analyzes content sentiment using DeepSeek/Claude, and publishes scores to sentiment_signals topic.

Predictive Agent (Rust)

Executes Ordinary Least Squares (OLS) linear regression on a rolling 14-period window of 10-minute closes. Publishes the Ghost Line coordinate.

Quant-RAG Agent (Rust)

Detects price swings ≥2.0% on completed 10-minute candles and queries DeepSeek v4 Pro for immediate contextual market anomaly insights.

Consensus Aggregator (Rust)

Fuses signals from the active agents at Port 8080. Evaluates institutional strategies (Golden/Death Cross, VWAP Bounce, ORB Breakouts).

3. Terminal Operations & Sandboxing

To assure safety, low latency, and operational isolation, the local client processes data in accordance with three fundamental systems bounds:

Direct Canvas Painting (Bypassing React)

Ticks and raw candle queues are rendered directly to the charting canvas (via chart.update()). React state updates are bypassed entirely to drop interface frame latency from 15ms down to less than 1ms.

Ghost Line Timeframe Restrictions

The rolling Ordinary Least Squares (OLS) trend model evaluates exactly 14 completed 10-minute candles. The calculations are invalid on alternate intervals. The Ghost Line is restricted strictly to the 10m chart.

Tauri Stronghold Vault Compliance

All brokerage session files, API secrets, and Crypto keys are derivative configurations stored locally inside encrypted Tauri Stronghold keys. Secrets never traverse a cloud interface.