How kausar32/signalforge works
SignalForge is an educational market-signal pipeline for Indian indices, gold, and Bitcoin. Its main workflow fetches market history, evaluates indicators and strategies, stores deduplicated signals, then routes notifications to subscribers’ inboxes. Users can also manage subscriptions and query signals through the API; a scheduled worker runs the same pipeline. The README describes AI explanations, research-agent tools, and Telegram as planned rather than implemented. Relationships below follow shown calls, the source index, or README statements; unsampled details are not inferred.
Main entry points: pipeline.py Pipeline runner · api.py FastAPI · notify.py Notification router · repository.py Repository interface
Components 20
Market analysis
- Tracked assets
app/assets.py - Market providers
app/market_data.py - Indicators
app/indicators.py - Strategy engine
app/strategies.py - Pipeline runner
app/pipeline.py - Signal domain
app/domain.py - AI explainer
- Research agent
Signal delivery
- Notification router
app/notify.py - In-app inbox
app/notify.py - Telegram delivery
Persistence
- Repository interface
app/repository.py - SQL repository
app/db/sql_repository.py - Database models
app/db/models.py - SQL database
Runtime interfaces
- FastAPI
app/api.py - Scheduled worker
app/worker.py
Other components
- API user
- Worker schedule
- Market data source
Connections 23
- API user → FastAPI: requests
README.md - FastAPI → Pipeline runner: runs pipeline
app/api.py - Worker schedule → Scheduled worker: triggers
README.md - Scheduled worker → Pipeline runner: runs pipeline
app/worker.py - Pipeline runner → Market providers: fetches history
app/pipeline.py - Market providers → Market data source: fetches prices
README.md - Pipeline runner → Strategy engine: evaluates prices
app/pipeline.py - Strategy engine → Indicators: calculates metrics
app/strategies.py - Strategy engine → Signal domain: creates signals
app/strategies.py - Market providers → Tracked assets: uses asset tickers
app/market_data.py - Pipeline runner → Repository interface: stores signals
app/pipeline.py - Pipeline runner → Notification router: dispatches signals
app/pipeline.py - Notification router → Repository interface: reads subscriptions
app/notify.py - Notification router → In-app inbox: sends notifications
app/notify.py - Notification router → Telegram delivery: optional delivery
README.md - FastAPI → SQL repository: uses storage
app/api.py - FastAPI → Repository interface: serves signal data
README.md - SQL repository → Database models: queries rows
app/db/sql_repository.py - SQL repository → SQL database: reads and writes
app/db/sql_repository.py - FastAPI → Tracked assets: serves asset list
app/api.py - Pipeline runner → AI explainer: planned explanation
README.md - Research agent → Repository interface: planned history queries
README.md - Research agent → AI explainer: planned signal investigation
README.md