Deterministic by design.

Kelvo separates its static edge frontend, Go net/http API, singleton EOD ingestion worker, pure Go math engines, PostgreSQL storage, and private Python AI/FinBERT service into strict, auditable boundaries.

System topology

How the services connect.

flowchart LR
  CDN["Edge CDN\n(Static React + Vite SPA)"] -->|HTTPS| API["Go API (cmd/api)\nOnly Public Entry Point"]
  API -->|JWT / SSE| AI["AI Assistant\n(Python LangGraph)"]
  AI -->|HTTPS| EXT["External LLM / Search"]
  API -->|SQL pgx| DB[("PostgreSQL 16\nnumeric & raw/derived tables")]

  PROV["EOD Providers\n(ECB, FRED, GDELT, SEC, Tiingo)"] -->|HTTPS Polling| WRK["Ingestion Worker\n(cmd/worker)"]
  WRK -->|SQL pgx| DB
  WRK -->|In-process| TECH["Technical Engine\n(Pure Go Math)"]
  WRK -->|In-process| FUND["Fundamental Engine\n(Pure Go Math)"]
  WRK -->|Internal HTTP| FIN["Sentiment Engine\n(Pinned FinBERT ONNX)"]
          

Public Edge & API

Static SPA & Go cmd/api

A static React + Vite + TypeScript bundle is served from a global edge CDN. All client requests hit a single public Go net/http API (REST + SSE), which handles auth, portfolio accounting, and stored analytics.

Ingestion & Pure Math

Worker & Go Engines

The singleton cmd/worker polls EOD prices, filings, and GDELT headlines. Pure Go leaf packages (analysis/technical & fundamental) compute RSI, MACD, SMA, P/E, and ROE with zero DB or network access—stamped with algo_version and input_hash.

Private AI & NLP

FastAPI & FinBERT

The unified Python FastAPI container (services/ai/) runs on a private network with zero database credentials. It hosts the pinned INT8 ONNX FinBERT sentiment scorer and the read-only LangGraph assistant.

PostgreSQL 16

Raw inputs stay separate from derived results.

Raw Input Tables

  • raw_prices — EOD OHLCV candles
  • raw_fundamentals — filings, ratios & macro yields
  • raw_news — GDELT headline, source & official URL
  • portfolios & holdings — manual user lots

Derived & Versioned Tables

  • technical_analysis_results — RSI, MACD, SMA, drawdown
  • fundamental_analysis_results — P/E, ROE, D/E, spreads
  • sentiment_analysis_results — pinned FinBERT scores
  • Exact numeric arithmetic (never float64)

Questions about how Kelvo works?

Feedback, technical questions, or partnership enquiries — write to us directly.

contact@kelvoanalytics.com
Send an email