Case studyBuilt with Claude CodePythonPostgreSQL / TimescaleDBFastAPI + Reactsystemd
Sigmora: an AI-native market research and decision-support platform
A self-hosted platform that collects Indian (NSE/BSE) and US (NYSE/NASDAQ) market data every day, turns it into live signals, tests them in paper-trading simulation, and runs unattended 24/7 on one compact, low-power Linux host. Real money is gated behind strict statistical evidence.
Video walkthrough
About 3.5 minutes (12 MB). Real screens from the running system, with a synthetic voice-over.
The problem
Retail traders see signals everywhere and rarely know which ones hold up after costs. Brokerage, taxes and small position sizes can turn a good-looking signal into a loss, and testing many ideas on past data rewards luck unless the tests are corrected for it. I wanted one system that records everything it sees, tests every idea fairly, and acts only on evidence.
Architecture
Data sourcesExchange end-of-day files (NSE, BSE) · broker market-data API · public price feeds for the US · corporate actions and filings · news (sentiment only)
IngestionPython loaders on systemd timers · APScheduler orchestrator · data-quality checks on every load
StoragePostgreSQL 17 + TimescaleDB · daily and 1-minute time-series · signals, paper ledgers, research results · one schema family per market
Decision and controlPaper-trading simulators · evidence scorecard · order-management layer with safety gates · read-only journal
Serving and UIFastAPI read-only service · React, Vite and Tailwind dashboard · India and US in one UI
OperationsHealth checks with self-healing · nightly 50-check audit · messaging alerts · memory-capped job slices · single Linux host
Technology
Layer
Technology
Role
Database
PostgreSQL 17, TimescaleDB
Time-series storage, ledgers, research results
Ingestion
Python 3.12, systemd timers, APScheduler
Daily and live collection, corporate actions
API
FastAPI, pooled read-only database role
Serves the dashboard with no write access to data
Frontend
React, Vite, Tailwind
One dashboard for India and USA
Hosting
Linux, nginx, systemd user units and slices
Self-hosted, memory-capped jobs
Quality
Unit tests, nightly audit, health checks
Data accuracy and service recovery
AI use
Language model for news sentiment only
Core analysis is deterministic program code
Tooling
Built with Claude Code as a pair-programmer
Design decisions and rules are mine
Walkthrough, screen by screen
1 · OVERVIEWOverview. Market context at a glance: global cues, regime, NIFTY 50, India VIX and market breadth, with one card per holding horizon from intraday to long term.2 · PRE-MARKET AND OPENPre-market and open. Global cues at 08:50, a risk-on or risk-off verdict with its track record, watch lists for a buy or short at the open, and live gaps after 09:15.3 · LIVE RADARLive radar. Recomputed from the newest 1-minute bars. Time-stamped BUY and SELL signals, newest first, with a protective exit level and a confidence score. Signals expire when their window ends. Watch-only: it places no orders.4 · INTRADAY OPPORTUNITIESConsensus. Every engine's opinion merged into one row per stock, with agreement dots showing which engines are bullish, bearish or silent, and entry, stop and target for each.5 · INTRADAY MOVERSMovers. All 1,478 traded stocks ranked by day move, latest-bar move and volume, with adjustable filters and auto-refresh.6 · LIVE TRADE SIMULATORLive trade simulator. A paper account that follows the signals through the day, with cash, invested amount and equity shown separately, real costs charged on every trade, a daily loss limit and a rules gate checked against a 20-session replay.7 · TOP 10 DAILYTop 10 daily. The ten strongest candidates per category from models trained on every NSE stock since 2024, each with a plan. Calibration check: the model claimed 20% on average and 19% actually hit across 140 picks.8 · SWING PORTFOLIOSwing portfolio. A walk-forward backtest (10 Jul 2025 to 13 Nov 2026, costs included): +43.85% against +6.11% for the average liquid stock, max drawdown −10.76%, profit factor 1.52, 113 trades at a 50% win rate. Backtest result. Live validation comes before any real money.9 · TECHNICAL WORKBENCHTechnical workbench. 56 parameterised technical screens with walk-forward backtests, and a Full Analysis that runs all dimensions in one pass. The page states that agreement is not a guarantee of a win.10 · SCREENER CHECKSFundamentals. Quality filters from manual screens, uploaded by hand. They are used as a filter and cross-check, not as evidence of an edge.11 · SYSTEM HEALTHOperations. Data freshness for every feed and every service with its state, last result and memory use. The same checks drive the alerts.
Measured results
+43.9%
Swing portfolio, walk-forward backtest with costs (10 Jul 2025 to 13 Nov 2026), against +6.1% for the average liquid stock. Max drawdown −10.8%, profit factor 1.52, 113 trades.
20% claimed, 19% hit
Top-10 model calibration across 140 picks: stated chances match what actually happened.
2,234 stocks, 259 sessions
Research dataset behind 44 trading ideas tested, with the last 40 sessions kept untouched as a holdout.
1,478 stocks, minute by minute
Traded stocks watched live through the day across NSE and BSE.
56 technical screens
Parameterised, each with a walk-forward backtest.
50 nightly checks
Automated audit including data accuracy against the exchange's official files.
Backtest and paper results. Real money is considered only after live validation.
What stands out
Evidence on every list
Each recommendation shows its source's measured record beside it.
Consensus view
Many engines merged into one row per stock, with agreement and conflicts shown.
Live, expiring signals
Scored, time-stamped and gone when the window ends.
Calibrated probabilities
Model claims checked against outcomes: 20% claimed, 19% hit.
Evidence-gated actions
Nothing is acted on until its record is proven, and a source that weakens loses its status the same night.
Two markets, one engine
India and the USA share the same engines through market adapters.
Safety and operations
Real orders are disabled by default. Turning them on is a human decision, and only sources proven on the scorecard may be acted on.
An order layer applies several independent checks, and an account-level drawdown limit trips a kill switch.
Credentials live outside the code and version control. Data comes through permitted interfaces only.
Scheduled jobs are plain, deterministic code. Health checks restart what is safe, and a nightly audit checks data accuracy against the exchange's official files.
Heavy jobs run under memory limits so the live feed is never starved, and services are restarted automatically within safe limits, with every action logged.
Built end to end
2 markets
India and the USA on one shared engine.
24/7
Unattended operation with self-healing on one Linux host.
One engineer
Data, models, simulation, dashboard and operations, designed, built and run by one person with AI coding agents.
Next
Let the live record build up, then test whether the confidence score separates winners from losers after costs.
Reduce round trips and tune position sizes so fixed fees stop dominating small trades.
Add alerts for strong signals, and re-run the evidence gate on a schedule.