--- title: StockAI — Ticker Analysis emoji: 📈 colorFrom: blue colorTo: indigo sdk: streamlit sdk_version: "1.36.0" app_file: app.py pinned: false license: mit --- # StockAI — AI-Powered Stock Ticker Analysis A premium dark financial dashboard for live stock data and AI-powered analysis. Built with Streamlit, yfinance, and OpenRouter. ## Features - **Live stock data** for 5 tickers (OHLCV, 1W/1M/3M) - **Interactive candlestick charts** with MAs and Bollinger Bands - **AI analysis** via Claude, GPT-4o, or Gemini (OpenRouter) - **Structured insights**: trend, key levels, risk factors, outlook ## Setup 1. **Create a Space** on [Hugging Face Spaces](https://huggingface.co/spaces) and choose **Streamlit** as the SDK. 2. **Push this repo** to your Space (or upload the files). 3. **Optional:** Add `OPENROUTER_API_KEY` in **Settings** → **Repository secrets** to enable AI analysis. Without it, charts and metrics still work. ## Local run ```bash pip install -r requirements.txt streamlit run app.py ``` Set `OPENROUTER_API_KEY` in `.env` or your environment.