How deadsmash07/advance-analytic-tool works
Project type and purpose
• This is a full-stack web application for real-time stock market analysis (built with Flask, pandas, Plotly, yfinance) combined with a library of standalone trading-algorithm tools (implemented in C++/Python under Trading_Algorithms/).
• The README describes:
• A Flask-based backend that fetches data from Yahoo Finance via yfinance
• Data processing with pandas, interactive visualization with Plotly
• A responsive frontend (HTML templates, CSS, JavaScript) for exploring, comparing, and viewing market summaries
• A scheduler component for periodic tasks
• A set of command-line trading strategies (DMA, MACD, RSI, etc.) under Trading_Algorithms/
File structure
• Top-level:
• test_flask.py, scheduler.py, data.py, requirements.txt, Makefile – core backend scripts & setup
• static/ (CSS) and templates/ – frontend assets (views)
• Trading_Algorithms/ – C++ and Python implementations of multiple trading strategies, with their own Makefile
• CSV/XLSX data files (top_gainers.csv, stock_list.xlsx, etc.) for persisting fetched data
• Patterns:
• MVC-style separation:
– “Models”: data.py + pandas DataFrames + CSV/XLSX files
– “Views”: HTML templates + Plotly charts + CSS/JS
– “Controllers”: Flask routes in test_flask.py
• Scheduler: scheduler.py runs periodic fetch & writes CSVs
• CLI Tools: Trading_Algorithms/ invoked via make strategy=…
README for additional insights
• Architecture described verbally: Flask endpoints, dynamic template rendering, yfinance→pandas→Plotly pipeline
• No external database—data persisted in CSV/XLSX files
• Trading algorithms are standalone command-line utilities, not integrated into the web UI
Detail
• Scheduler’s cron-like trigger and output files
• Which modules depend on data.py vs. which use raw CSV