How incid1/stock-viewer-fetch-from-yahoofinance-api works
Stock & ETF Analyzer serves a browser UI and an API for symbol-based market analysis. The main API workflow is: a user requests a symbol, Express checks its in-memory cache, and on a miss launches the Python analyzer; that script fetches Yahoo Finance history and metadata, computes indicators and recommendations, and returns JSON for caching and the response. The README also documents the Python helper as a direct-use capability. The frontend file contents were not sampled, so its internal behavior and API calls are not asserted.
Main entry points: fetch_stock.py Yahoo Finance fetch · server.js Express API and routes · index.html Web interface
Components 10
HTTP service
- Express API and routes
backend/server.js - Quote cache
backend/server.js - Python process runner
backend/server.js
Market analysis
- Yahoo Finance fetch
backend/fetch_stock.py - Technical indicators
backend/fetch_stock.py - Recommendations
backend/fetch_stock.py
Browser interface
- Web interface
frontend/index.html
Other components
- Market explorer
- Yahoo Finance
- Direct script user
Connections 10
- Market explorer → Express API and routes: requests symbol
README.md - Express API and routes → Quote cache: checks and stores
backend/server.js - Express API and routes → Python process runner: runs on cache miss
backend/server.js - Python process runner → Yahoo Finance fetch: executes script
backend/server.js - Yahoo Finance fetch → Yahoo Finance: fetches history and info
backend/fetch_stock.py - Yahoo Finance fetch → Technical indicators: computes indicators
backend/fetch_stock.py - Yahoo Finance fetch → Recommendations: derives recommendation
backend/fetch_stock.py - Express API and routes → Market explorer: returns JSON
backend/server.js - Market explorer → Web interface: uses interface
README.md - Direct script user → Yahoo Finance fetch: runs symbol analysis
README.md