How neuromancer-1984/nifty-options-analytics works
This repository provides NIFTY and BANKNIFTY options-chain analytics: a collector obtains daily NSE bhavcopy data, enriches and summarizes option contracts, persists snapshots, and trains a direction model; a Streamlit dashboard reads stored snapshots, metrics, and predictions to present charts and signals. The sampled source shows the daily bhavcopy collection path; although fetch.py implements a separate live NSE chain client, no caller is shown. The README is empty, so capability coverage is based on the dashboard and sampled modules.
Main entry points: collector.py Snapshot collector · db.py Database access · ml.py Direction model · app.py Analytics dashboard
Components 14
Collection
- Snapshot collector
collector.py - Bhavcopy loader
fetch_bhav.py - Live chain client
fetch.py
Analytics
- Greeks enrichment
greeks.py - Chain metrics
analysis.py - Market settings
config.py - Direction model
ml.py
Persistence
- PostgreSQL
- Database access
db.py - Data schema
schema.sql
Presentation
- Analytics dashboard
app.py
Other components
- Operator
- NSE archive
- Dashboard user
Connections 16
- Operator → Snapshot collector: runs collection
- Snapshot collector → Bhavcopy loader: loads daily data
- Bhavcopy loader → NSE archive: downloads archive
- Snapshot collector → Greeks enrichment: enriches contracts
- Snapshot collector → Chain metrics: computes summaries
- Snapshot collector → Database access: stores snapshots
- Snapshot collector → Direction model: trains after collection
- Greeks enrichment → Market settings: reads rate
- Snapshot collector → Market settings: reads collection settings
- Database access → PostgreSQL: reads and writes
- Database access → Data schema: initializes from
- Direction model → Database access: reads metrics; saves predictions
- Direction model → Market settings: reads thresholds
- Dashboard user → Analytics dashboard: selects views
- Analytics dashboard → Database access: queries analytics data
- Analytics dashboard → PostgreSQL: reads snapshots, metrics, predictions