What This App Does
#Pull stock data, perform technical analysis, and generate AI reports:
- Pull stock profiles from Yahoo Finance
- Retrieve historical prices and financials
- Compute technical indicators (EMA, RSI, MACD, Bollinger)
- AI-powered analysis via Gemini
- Generate styled PDF reports
- Financial statements (P&L, Balance Sheet, Cash Flow)
Important Note
YLENS is a working prototype demonstrating xlwings Lite capabilities. Not investment advice. AI/automation in live use requires iteration, validation, and human judgment.
How to Use
#- Download & Install: get the app above and install xlwings Lite
- Get Gemini API key: free at aistudio.google.com
- Built-in Functions:
get_profile- company infoget_prices- historical pricescreate_technicals- calculate indicatorsget_technical_analysis_from_gemini
- Enter tickers: Yahoo symbols (AAPL, ^NSEI, etc.)
How It Works
#Data Retrieval
- xlwings Lite calls a custom FastAPI server
- FastAPI uses yfinance to fetch Yahoo Finance data
- Server handles CORS issues from the browser environment
Technical Analysis
- finta package calculates EMA, RSI, MACD
- Indicators added as new columns to price data
- Data prepared for AI analysis
AI Reporting
- Price data + indicators sent to Gemini
- Markdown output styled via FastAPI server
- Converted to PDF via the md2pdf service