How nnnightglow/replay works
A Vue 3 and Flask A-share market replay and analysis system. Users select a historical trading date, choose an analysis view, and receive market, index, sector, or stock results through the frontend API and Flask backend; chart components render visual output. Separate branches cover risk-oriented funds management and the evolving strategy-watch workflow, including resource conversion and agent support. The graph also includes the data-fetching, metadata, analysis, and visualization layers. Some backend routes and frontend views were not excerpted, so only documented or indexed relationships are shown.
Main entry points: index.js View routing · data_fetcher.py Data access · api.js API client · strategy_watch_api.py Strategy service
Components 25
Web client
- View routing
frontend/src/router/index.js - API client
frontend/src/services/api.js - Index analysis
frontend/src/views/IndexAnalysis.vue - Market sentiment
frontend/src/views/MarketSentiment.vue - Sector analysis
frontend/src/views/SectorAnalysis.vue - Strong stocks
frontend/src/views/BaimaAnalysis.vue - Money effect
frontend/src/views/MoneyEffect.vue - Funds management
frontend/src/views/FundsManagementPage.vue - Strategy watch
frontend/src/views/StrategyWatch.vue - Chart renderer
frontend/src/components/EChartsRenderer.vue
Analysis backend
- HTTP API
flask_app.py - Market analysis
utils/analyzer.py - Chart generation
utils/visualizers/index_visualizer.py
Market data
- Data access
utils/data_fetcher.py - Stock data
utils/metadata/stock_data_manager.py - Index data
utils/metadata/index_data_manager.py - Market sentiment data
utils/metadata/market_data_manager.py - Sector data
utils/metadata/sector_data_manager.py - Trading calendar
utils/trading_calendar.py
Strategy watch
- Strategy service
utils/strategy_watch_api.py - Agent runtime
utils/agents/agentscope_runtime.py - Document conversion
skills/multiformat-to-md/scripts/multiformat_gateway.py - Cache inspection
skills/data-cache-inspector/scripts/data_cache_gateway.py - Visualization skill
skills/visualization/scripts/visualization_gateway.py
Other components
- Investor
Connections 31
- Investor → View routing: selects view
frontend/src/router/index.js - View routing → Index analysis: routes to
frontend/src/router/index.js - View routing → Market sentiment: routes to
frontend/src/router/index.js - View routing → Sector analysis: routes to
frontend/src/router/index.js - View routing → Strong stocks: routes to
frontend/src/router/index.js - View routing → Money effect: routes to
frontend/src/router/index.js - View routing → Funds management: routes to
frontend/src/router/index.js - View routing → Strategy watch: routes to
frontend/src/router/index.js - Index analysis → API client: requests data
- Market sentiment → API client: requests data
- Sector analysis → API client: requests data
frontend/src/views/SectorAnalysis.vue - Strong stocks → API client: requests analysis
frontend/src/views/BaimaAnalysis.vue - Money effect → API client: requests data
- Strategy watch → API client: requests strategy
frontend/src/views/StrategyWatch.vue - API client → HTTP API: HTTP requests
README.md - Sector analysis → Chart renderer: renders charts
frontend/src/views/SectorAnalysis.vue - Strategy watch → Chart renderer: renders charts
frontend/src/views/StrategyWatch.vue - HTTP API → Market analysis: dispatches analysis
flask_app.py - HTTP API → Data access: uses data access
flask_app.py - Market analysis → Data access: fetches data
utils/analyzer.py - Market analysis → Chart generation: builds charts
utils/analyzer.py - Data access → Stock data: uses manager
utils/data_fetcher.py - Data access → Index data: uses manager
utils/data_fetcher.py - Data access → Market sentiment data: uses manager
utils/data_fetcher.py - Data access → Sector data: uses manager
utils/data_fetcher.py - Data access → Trading calendar: checks dates
utils/data_fetcher.py - HTTP API → Strategy service: dispatches strategy
flask_app.py - Strategy service → Agent runtime: uses agents
utils/strategy_watch_api.py - Strategy service → Document conversion: converts resources
- Strategy service → Cache inspection: inspects cache
- Strategy service → Visualization skill: invokes visualization