How abinbyanjankar-hellrider/nepse-dashboard works
This repository is a NEPSE market-analysis dashboard with a daily data-ingestion and verification workflow plus optional local intraday updates. The main user path is opening the dashboard to view official closes, market summaries, prices, heatmaps, RRG analysis and verification; during market hours, a local live process can supply provisional views. The graph preserves README-described capabilities, but the sampled excerpts do not expose the dashboard’s internal JavaScript wiring or the macro-data implementation, so those connections are limited to documented behavior.
Main entry points: market_views.py Heatmap and RRG · fetch_nepse.py Close and prices · verify_daily.py Daily verification · index.html Dashboard UI
Components 22
Dashboard
- Dashboard UI
index.html
Daily data
- Daily orchestrator
scripts/run_daily.py - Close and prices
scripts/fetch_nepse.py - Daily verification
scripts/verify_daily.py - Data validation
scripts/validate_data.py - Intraday updater
scripts/live_intraday.py
Market analysis
- Heatmap and RRG
scripts/market_views.py
Stored data
- Latest snapshot
data/latest.json - Market views
data/market_views.json - Live snapshots
- Live views
- Index history
data/history/index.csv - Price history
data/history/prices - Stock histories
data/history/stocks - Sector histories
data/history/sectors - RRG snapshots
data/history/rrg - Check reports
data/history/checks
Other components
- Dashboard user
- ShareSansar
- MeroLagani
- Claude API
- NRB macro data
Connections 38
- Dashboard user → Dashboard UI: opens
- Dashboard UI → Latest snapshot: reads snapshot
- Dashboard UI → Market views: reads views
- Dashboard UI → NRB macro data: shows macro data
- Daily orchestrator → Close and prices: runs
- Daily orchestrator → Heatmap and RRG: runs
- Daily orchestrator → Daily verification: runs
- Daily orchestrator → Data validation: runs
- Close and prices → ShareSansar: fetches prices
- Close and prices → MeroLagani: reads index
- Close and prices → Claude API: fallback lookup
- Close and prices → Latest snapshot: writes snapshot
- Close and prices → Price history: writes daily prices
- Close and prices → Index history: updates index
- Heatmap and RRG → MeroLagani: fetches histories
- Heatmap and RRG → Index history: reads index
- Heatmap and RRG → Stock histories: updates histories
- Heatmap and RRG → Sector histories: updates histories
- Heatmap and RRG → Latest snapshot: reads turnover
- Heatmap and RRG → Market views: writes views
- Heatmap and RRG → RRG snapshots: archives snapshot
- Daily verification → Latest snapshot: reads and updates
- Daily verification → Index history: reads history
- Daily verification → Price history: reads prior prices
- Daily verification → Sector histories: checks updates
- Daily verification → RRG snapshots: compares snapshots
- Daily verification → Check reports: writes report
- Data validation → Latest snapshot: checks payload
- Data validation → Market views: checks views
- Data validation → Index history: checks history
- Data validation → Dashboard UI: checks embedded data
- Intraday updater → ShareSansar: polls market
- Intraday updater → Heatmap and RRG: builds provisional views
- Intraday updater → Latest snapshot: reads prior close
- Intraday updater → Live snapshots: writes provisional data
- Intraday updater → Live views: writes provisional views
- Dashboard UI → Live snapshots: polls live data
- Dashboard UI → Live views: uses live views