Sterling

Sterling — Options Data Session

Stripe → HMAC → session → bridge → MQTT/LVC → WS frames.

Sterling — Options Data Session (v2026-08-02T101544Z-ab2bbdebf5) 2026-08-01 | Stripe → HMAC → session → bridge → MQTT/LVC → WS frames. 1 - API REQUEST HANDLING POST /api/sterling/analyze analysis.py:458 sterling.analysis.analyze_endpoint Resolve OpenRouter Key resolve_openrouter_key() daemon/src/plugins/sterling/analysis.py:102 Ensemble Pack YAML KEVIN_ENSEMBLES_ROOT ensemble_packs.py:362 API request OpenRouter API… 2 - ANALYSIS ENGINE Build Prompt _build_prompt() daemon/src/plugins/sterling/analysis.py:304 OpenRouter (LLM) OPENROUTER_API_KEY httpx.post() Parse Signals _parse_signals() daemon/src/plugins/sterling/analysis.py:354 Prompt with gr… LLM response t… 3 - RESPONSE GENERATION Aggregate Decision _aggregate_decision() daemon/src/plugins/sterling/analysis.py:402 Return API Response POST /api/sterling/analyze sterling.analysis.analyze_endpoint Aggregated dec… 1. Receive POST /api/s… 2. Resolve OpenRouter… 3. Load ensemble pack… 4. Build prompt with g… 5. Send prompt to Open… 6. Parse LLM response… 7. Aggregate parsed si… 8. Return aggregated d… API Request Payload { "item": "AAPL", "start_date": "2023-01-01", "end_date": "2023-12-31" } LLM Response JSON { "analyst_key_1": { "signal": "positive", "confidence": 85, "reasoning": "Positive trend identified." } } The system uses OpenRouter for language model processing. Grounding data is fetched based on the pack's configuration. Legend actor = initiates work · process = code path · store = state on disk · bus = durable queue · dashed = separate process cyan = request flow · pink = state read/write · dashed green = pull / return path · red = refusal

Provenance

This drawing is generated, not drawn. It is rebuilt from the source files below, so when they change the picture changes — a diagram here cannot quietly describe a system that no longer works this way.

Owner
Sterling
Slug
sterling-options
Rendered
2026-08-02T101544Z
From commit
ab2bbdebf5
Watches
1 path
  • daemon/src/plugins/sterling