How faizanmasroor/stock-grapher works
This is a single-script command-line tool for generating and saving historical stock high-price graphs. The user supplies a ticker; the script fetches daily and intraday history, cleans and filters it to the latest trading month and day, derives decimal-hour values, then displays and saves two plots. All runtime stages are implemented in one file. The edges reflect calls visible in the excerpt; market-data access and plotting are external dependencies.
Main entry points: stock_grapher.py CLI entry
Components 10
Stock graph workflow
- CLI entry
stock_grapher.py - Market history
stock_grapher.py - Data cleanup
stock_grapher.py - Trading-day filter
stock_grapher.py - Decimal-hour derivation
stock_grapher.py - Monthly graph
stock_grapher.py - Daily graph
stock_grapher.py
Other components
- User
- Yahoo Finance
- Matplotlib / Seaborn
Connections 10
- User → CLI entry: enters ticker
stock_grapher.py - CLI entry → Market history: requests history
stock_grapher.py - Market history → Yahoo Finance: fetches history
stock_grapher.py - CLI entry → Data cleanup: cleans frames
stock_grapher.py - CLI entry → Trading-day filter: filters frames
stock_grapher.py - CLI entry → Decimal-hour derivation: derives decimal hour
stock_grapher.py - CLI entry → Monthly graph: plots monthly data
stock_grapher.py - CLI entry → Daily graph: plots daily data
stock_grapher.py - Monthly graph → Matplotlib / Seaborn: renders and saves
stock_grapher.py - Daily graph → Matplotlib / Seaborn: renders and saves
stock_grapher.py