StockFlow is a modern, microservice-based automated stock analysis platform. It leverages advanced technical indicators and AI-driven sentiment analysis to identify high-probability trading opportunities in the NSE market.
Note
The entire project is built and deployed on ARM-based architecture (Ampere A1).
StockFlow serves as an automated "L1 Analyst" for my personal trading workflow. It handles the heavy lifting of preliminary market screening—filtering hundreds of stocks based on technical indicators and volume anomalies, and passes only the highest-conviction setups to an AI for final validation. The goal is to eliminate noise, save time on manual chart reading, and deliver curated, actionable alerts straight to my inbox.
The system consists of three primary engines working in concert:
graph LR
DC[Discovery CronJob] --> |Top 900 Stocks By Volume| SC[Controller API] --> CM[(top-stocks-cm ConfigMap)]
graph TD
CM[(top-stocks-cm ConfigMap)] --> SCC[Signal-Check CronJob]
SCC --> |1. Request| SE[Signal Engine]
SE --> |2. Results| SCC
SCC --> |3. Request| MIE[Market Intel]
MIE --> |4. Results| SCC
SCC --> |5. Alert| ED[Event Dispatcher] --> Email((Trader))
click ED "https://github.com/tekpeek/event-dispatcher" "Event Dispatcher Repository"
Tip
This is how the automated email report is sent to the user: Sample-Email.pdf.
graph LR
HC[Health-Check] --> |Probes| Engines[All Microservices]
Engines --> |Unhealthy| ED[Event Dispatcher]
click ED "https://github.com/tekpeek/event-dispatcher" "Event Dispatcher Repository"
- Architecture & Signal Logic: Details on the 3-layer BharatQuant v4 strategy, the automated daily discovery pipeline, and the resilience health checks.
- Operations & Deployment: CI/CD deployment guide, K3s infrastructure map, and internal API references.
- Kubernetes Cluster: A running K8s or K3s cluster is required.
- Ingress Controller: Traefik must be installed and configured (see
infra/traefik-config.yamlfor a sample K3s configuration). - External Dependencies: You need an OpenAI API key and an SMTP account for alerts.
-
Clone the Repository:
git clone https://github.com/tekpeek/stockflow.git cd stockflow -
Deploy with Helm: Set your API keys and run the deployment script. The script requires five arguments:
OPENAI_API_KEY,SMTP_PASSWORD,SF_API_KEY,NAMESPACE, andIMAGE_VERSION.# Export required secrets export OPENAI_API_KEY="your_openai_key" export SMTP_PASSWORD="your_smtp_password" export SF_API_KEY="your_internal_api_key" # A secure token string used to authenticate internal API requests # Deploy (Defaults: namespace="dev", version="dev") ./helm/deploy_helm.sh "$OPENAI_API_KEY" "$SMTP_PASSWORD" "$SF_API_KEY" "dev" "dev"