How marketcalls/tradingview-yahoo-finance works
Project type and purpose
• This is a full-stack web application whose purpose is to display real-time stock charts (using TradingView’s lightweight-charts.js) with data fetched from Yahoo Finance, alongside watchlist management stored in a local database.
• The README confirms features (chart analysis, watchlist CRUD, theme toggles) and tech stack (Flask, SQLAlchemy/SQLite, Tailwind CSS, DaisyUI, JavaScript).
File structure
• Top level:
• app.py – main Flask web server (routes, business logic).
• models.py – SQLAlchemy ORM models for persisting watchlist symbols.
• requirements.txt – dependency list (Flask, SQLAlchemy, yfinance, etc.).
• Directories:
• templates/index.html – Jinja2 template rendering the initial page.
• static/main.js – frontend logic (fetch from backend, initialize charts, update UI).
• There’s no separate “frontend” folder; Flask serves both HTML and JS/CSS, but logically they form the client-side component.
README for additional insights
• Backend dependencies: Flask (web framework), SQLAlchemy (ORM), yfinance (data).
• Frontend uses Tailwind CSS + DaisyUI (styling) and lightweight-charts.js (charting).
• Persistence via SQLite.
• No external authentication or message queues; single-process design.