How zhysh3/a-share-monitor works
A-RISK/MONITOR is a locally served A-share market-risk dashboard. After market close, scheduled checks can invoke the updater, which fetches and normalizes daily and monthly indicators, preserves prior values as stale on failures, and writes a JSON snapshot. The dashboard presents valuation, macro, trading, flows, sectors, and a two-stage-funnel position recommendation; its browser can also use the local proxy for intraday requests and optional MX queries. Dashboard and feature wiring is based on the README because the HTML source was not sampled.
Main entry points: arisk_monitor_local.html Risk dashboard · update_arisk_data.py Snapshot updater · proxy.py Local proxy · arisk_data.json Risk data snapshot
Components 18
Dashboard
- Risk dashboard
arisk_monitor_local.html - Valuation metrics
arisk_monitor_local.html - Macro signals
arisk_monitor_local.html - Market activity
arisk_monitor_local.html - Fund flows
arisk_monitor_local.html - Sector heatmap
arisk_monitor_local.html - Position model
arisk_monitor_local.html
Data collection
- Snapshot updater
update_arisk_data.py - Risk data snapshot
arisk_data.json - ERP backtest
backtest_erp.py
Local delivery
- Local proxy
proxy.py
Daily automation
- Daily scheduler
- Freshness check
check_and_update.sh
External data
- Market data sources
- PBoC data
- MX API
Other components
- Investor
- Browser
Connections 20
- Investor → Risk dashboard: views
- Risk dashboard → Valuation metrics: presents
- Risk dashboard → Macro signals: presents
- Risk dashboard → Market activity: presents
- Risk dashboard → Fund flows: presents
- Risk dashboard → Sector heatmap: presents
- Risk dashboard → Position model: computes
- Risk dashboard → Risk data snapshot: loads
- Daily scheduler → Freshness check: runs
- Freshness check → Snapshot updater: invokes if stale
- Snapshot updater → Market data sources: fetches indicators
- Snapshot updater → PBoC data: fetches credit data
- Snapshot updater → MX API: fallback query
- Snapshot updater → Risk data snapshot: writes snapshot
- ERP backtest → Market data sources: fetches history
- Browser → Local proxy: requests data
- Risk dashboard → Local proxy: requests live data
- Local proxy → Risk data snapshot: reads snapshot
- Local proxy → Market data sources: forwards requests
- Local proxy → MX API: forwards queries