An open-source alternative to Perplexity Finance.
screen_recording.mov
StockChat offers a real-time chat interface integrated with AI-powered stock analysis capabilities. Built for developers looking to implement financial NLP solutions.
# Set up environment variables
cp .env.example .env
# Edit .env with your API keys (OPENAI_API_KEY or DEEPSEEK_API_KEY or GEMINI_API_KEY or GITHUB_TOKEN required)
docker-compose up --build
And the app will be running on http://localhost:5173.
- π§ DSPy Integration - Built-in financial analysis pipelines
- π Trading Signals - Real-time visualization of technical indicators
- π Market Data Processing - Extensible data ingestion framework
- π Research Cache - SQLite-based analysis result storage
- π Data Saving - Users can save their analysis through a specific URL endpoint
- π§ TA-Lib Integration - Professional technical analysis calculations
First, install TA-Lib to your computer according to TA-Lib Python Install Guide.
cd stockchat-backend
python -m venv venv
source venv/bin/activate # Unix/MacOS
# .\venv\Scripts\activate # Windows
# Set up environment variables
cp .env.example .env
# Edit .env with your API keys (either one required):
# OPENAI_API_KEY=your_openai_api_key
# DEEPSEEK_API_KEY=your_deepseek_api_key
# GEMINI_API_KEY=your_gemini_api_key
# GITHUB_TOKEN=your_github_token
pip install -r requirements.txt
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
cd stockchat-frontend
npm install
npm run dev
And the app will be running on http://localhost:5173.
Category | Technologies |
---|---|
Frontend | React, TypeScript, TailwindCSS, Vite |
Backend | FastAPI, Python, DSPy, TA-Lib |
Database | SQLite |
Deployment | Docker, Docker Compose |
AI Integration | Custom DSPy pipelines for financial analysis |
src/
βββ components/
β βββ ui/ # Shadcn UI components
β βββ Header.tsx # App header with theme toggle
β βββ LandingPage.tsx # Welcome screen with examples
β βββ LoadingPage.tsx # Loading state display
β βββ MessageInput.tsx # Chat input component
β βββ MetricCard.tsx # Financial metrics display
β βββ ResultPage.tsx # Analysis results view
β βββ ShareButton.tsx # Share functionality
β βββ StockChart.tsx # Interactive stock chart
β βββ StockHeader.tsx # Stock price header
β βββ TradingSignal.tsx # Trading indicators
βββ util/
β βββ api.ts # API client
β βββ theme.ts # Theme management
β βββ utils.ts # Utility functions
βββ App.tsx # Main application
MIT Licensed - See LICENSE for details.