๐ค Your personal AI financial analyst - Advanced stock analysis with GPT-4 | Real-time market insights | Professional trading interface
๐ค AlgoStockGPT AI
Your AI-Powered Financial Intelligence Platform
Advanced Stock Analysis โข Real-time Market Insights โข Algorithmic Trading Strategies
๐ Documentation โข โก Quick Start โข ๐ผ๏ธ Screenshots
๐ Table of Contents
- ๐ฏ Overview
- โจ Key Features
- ๐๏ธ Architecture
- ๐ผ๏ธ Screenshots
- โก Quick Start
- ๐ง Installation
- ๐ Usage
- ๐ ๏ธ Configuration
- ๐ API Integration
- ๐ค Contributing
- โ ๏ธ Disclaimer
- ๐ License
๐ฏ Overview
AlgoStockGPT AI is a cutting-edge financial intelligence platform that leverages the power of artificial intelligence to provide comprehensive stock analysis, real-time market insights, and algorithmic trading strategies. Built with modern web technologies and powered by OpenAI's GPT models, it offers an intuitive interface for both novice and experienced investors.
๐ก About This Project
Your personal AI financial analyst, providing institutional-grade stock analysis and market intelligence through a seamless, conversational interface.โจ Key Features
๐ง AI-Powered Analysis
|
๐ Market Intelligence
|
๐ Interactive Experience
|
๐ก๏ธ Security & Privacy
|
๐๏ธ Architecture
graph TB
A[User Interface] --> B[Next.js Frontend]
B --> C[API Routes]
C --> D[OpenAI GPT-4]
C --> E[Financial Data APIs]
C --> F[Database Layer]
D --> G[AI Analysis Engine]
E --> H[Real-time Market Data]
F --> I[User Preferences & History]
G --> J[Investment Insights]
H --> K[Live Stock Prices]
I --> L[Personalized Experience]
style A fill:#e1f5fe
style D fill:#f3e5f5
style E fill:#e8f5e8
style F fill:#fff3e0
๐ง Technology Stack
| Layer | Technology | Purpose | |-------|------------|---------| | Frontend | Next.js 15, React, TypeScript | Modern web application framework | | Styling | Tailwind CSS, Shadcn/UI | Responsive and beautiful UI components | | AI Engine | OpenAI GPT-4, AI SDK | Natural language processing and analysis | | Data Sources | Financial Datasets API | Real-time market data and indicators | | Database | PostgreSQL, Drizzle ORM | User data and chat history storage | | Authentication | NextAuth.js | Secure user authentication | | Deployment | Vercel | Cloud hosting and deployment |
๐ผ๏ธ Screenshots
๐ Landing Page - Welcome Interface
The elegant landing page showcases the platform's core value proposition with:
- Clean, modern design with gradient backgrounds
- Suggested action cards for quick access to common queries
- Intuitive navigation with dark mode support
- Professional branding with the AlgoStockGPT AI logo
๐ฌ Intelligent Chat Interface
The conversational AI interface provides:
- Natural language processing for complex financial queries
- Structured responses with numbered lists and clear explanations
- Economic indicators breakdown including GDP, unemployment, and inflation data
- Sector analysis covering technology, healthcare, and financial services
- Interactive elements with voting and feedback options
๐ Advanced Market Analysis
Professional trading interface featuring:
- Real-time candlestick charts with technical indicators
- Multi-timeframe analysis (1S, 1M, 5M, 15M, 1H, 4H, 1D, 1W)
- Advanced charting tools with support/resistance levels
- Volume analysis and price action patterns
- Algorithmic trading signals with buy/sell indicators
- Professional trading platform integration (TradingView style)
๐ฏ Suggested Actions Dashboard
Smart suggestion system with:
- Pre-configured queries for instant market insights
- Color-coded categories for different types of analysis
- Quick access buttons for popular stocks (Microsoft, Google, Amazon)
- Dividend analysis tools for income-focused investors
- Market update notifications and news integration
๐ Privacy Controls
Comprehensive privacy management:
- Session privacy controls (Private/Public chat options)
- Data access permissions with clear explanations
- User preference settings for personalized experience
- Secure authentication with session management
๐ซ Error Handling & API Management
Intelligent error handling system:
- Graceful API failures with user-friendly messages
- Alternative data sources suggested when primary APIs fail
- Clear explanations of limitations and workarounds
- Helpful suggestions for accessing financial data from other platforms
- Transparent communication about API key requirements
โ๏ธ API Keys Configuration Modal
Secure API key management interface:
- Clean, professional modal design for API key configuration
- Multiple API key support (OpenAI and Financial Datasets)
- Secure password fields with show/hide toggle functionality
- Direct links to API key generation platforms
- Save functionality with local storage security
- User-friendly setup process with clear instructions
๐ Real-Time Stock Price Display
Advanced stock price visualization:
- Real-time price updates with current market values
- Interactive price charts with clean line graphs
- Key metrics display including price changes and percentages
- Market cap information and trading details
- Professional financial data presentation
- Responsive chart design with hover interactions
๐ฏ Investment Analysis Framework
Comprehensive investment analysis tools:
- Technical indicators guidance for chart reading
- Time frame analysis recommendations
- Market sentiment evaluation tools
- Risk management strategies with stop-loss guidance
- Financial analysis framework for company evaluation
- Interactive suggestions for market sentiment analysis
- Professional trading methodology education
๐ Enhanced Stock Visualization
Professional-grade charting capabilities:
- Clean, minimalist chart design for better readability
- Historical price tracking with trend analysis
- Interactive data points for detailed information
- Screenshot integration showing external trading platforms
- Follow-up query suggestions for deeper analysis
- Seamless user experience with intuitive navigation
๐ฐ News Integration & Market Intelligence
Comprehensive market news analysis:
- Real-time news aggregation from multiple sources
- Visual news cards with company logos and headlines
- Structured news summaries with key points extraction
- Industry impact analysis for tech sector developments
- Regulatory news tracking (privacy rights, investigations)
- Market sentiment indicators based on news content
๐ Detailed News Analysis
In-depth market intelligence features:
- Comprehensive news breakdown with numbered insights
- Industry trend analysis covering AI, cloud technologies
- Regulatory impact assessment on tech companies
- Market significance explanations for each news item
- Professional news categorization by relevance and impact
- Actionable intelligence for investment decisions
๐ค AI Model Selection Interface
Advanced AI model management:
- Multiple GPT model options (GPT-4.1 nano, GPT-4.1 mini, GPT-4, GPT-4o)
- Model-specific descriptions and capabilities
- Performance optimization for different query types
- Cost-effective model selection based on complexity
- Seamless model switching without losing context
- Professional model comparison interface
โก Quick Start
Prerequisites
- Node.js 18+
- npm or pnpm
- OpenAI API Key
- Financial Datasets API Key (optional)
๐ One-Click Setup
# Clone the repository
git clone https://github.com/yourusername/algostockgpt-ai.git
cd algostockgpt-ai
Install dependencies
npm install
Set up environment variables
cp .env.example .env.local
Start development server
npm run dev
๐ Open http://localhost:3000 to see your application running!
๐ง Installation
Step 1: Environment Setup
Create a .env.local file in the root directory:
# OpenAI Configuration
OPENAIAPIKEY=youropenaiapikeyhere
Financial Data API (Optional)
FINANCIALDATASETSAPIKEY=yourfinancialapikey_here
Database Configuration (Optional)
POSTGRESURL=yourpostgresconnectionstring
Authentication (Optional)
NEXTAUTHSECRET=yournextauth_secret
NEXTAUTH_URL=http://localhost:3000
Step 2: API Key Configuration
- OpenAI API Key: Get your key from OpenAI Platform
- Financial Datasets API: Sign up at Financial Datasets
Step 3: Database Setup (Optional)
# Generate database schema
npm run db:generate
Run migrations
npm run db:migrate
View database (optional)
npm run db:studio
๐ Usage
Basic Queries
Ask natural language questions about stocks and markets:
"What's Microsoft's stock price right now?"
"Give me the latest headlines about Google"
"How much has Amazon gained or lost in the past 6 months?"
"List 5 companies with a P/E ratio below 15 and dividend yield above 3%"
Advanced Analysis
Get detailed financial insights:
"Analyze the technology sector performance this quarter"
"Compare Apple and Microsoft's financial metrics"
"What are the key economic indicators for the US economy?"
"Provide a risk assessment for my portfolio"
Market Intelligence
Stay updated with real-time information:
"Latest market news and sentiment analysis"
"Economic calendar for this week"
"Sector rotation trends and opportunities"
"Dividend aristocrats with consistent growth"
๐ ๏ธ Configuration
API Keys Management
The application provides a secure interface for managing API keys:
- Click the Settings icon in the sidebar
- Select "Configure API keys"
- Enter your OpenAI and Financial Datasets API keys
- Keys are stored securely in your browser's local storage
Theme Customization
- Dark Mode: Professional dark theme for extended usage
- Light Mode: Clean light theme for presentations
- Auto Theme: Follows system preferences
Privacy Settings
- Private Chats: Your conversations remain confidential
- Public Chats: Share insights with the community
- Data Retention: Control how long your data is stored
๐ API Integration
Supported Data Sources
| Provider | Data Type | Update Frequency | |----------|-----------|------------------| | Financial Datasets | Stock prices, fundamentals | Real-time | | OpenAI | AI analysis, insights | On-demand | | Economic APIs | GDP, inflation, employment | Daily/Monthly | | News APIs | Market news, sentiment | Real-time |
Rate Limits
- OpenAI API: Varies by plan (see OpenAI documentation)
- Financial Datasets: Check your plan limits
- Application: No internal rate limits
๐ค Contributing
We welcome contributions! Here's how you can help:
Development Setup
# Fork the repository
git clone https://github.com/yourusername/algostockgpt-ai.git
Create a feature branch
git checkout -b feature/amazing-feature
Make your changes and commit
git commit -m "Add amazing feature"
Push to your branch
git push origin feature/amazing-feature
Open a Pull Request
Contribution Guidelines
- Follow TypeScript best practices
- Add tests for new features
- Update documentation
- Ensure responsive design
- Follow the existing code style
โ ๏ธ Disclaimer
๐จ IMPORTANT: Educational Use Only
This project is designed for educational and research purposes only.
Legal Notice
- โ Not for live trading or real investment decisions
- โ No financial advice provided
- โ No warranties or guarantees on accuracy
- โ Past performance does not indicate future results
- โ Creator assumes no liability for financial losses
Recommended Use
- โ Learning about financial markets and AI
- โ Research and analysis practice
- โ Educational projects and demonstrations
- โ Portfolio simulation and backtesting
Professional Advice
Always consult with qualified financial advisors before making investment decisions. This tool should supplement, not replace, professional financial guidance.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Star this repository if you found it helpful!
Made with โค๏ธ by developers, for developers