AlphaSphere-AI is a next-generation, AI-powered trading and investment analytics platform. It provides advanced tools, real-time data, and intelligent insights for stocks, options, and forex markets, empowering both retail and professional traders to make smarter, faster, and more informed decisions.
- Stocks, Options, and Forex: Analyze and trade across multiple asset classes with seamless navigation.
- Real-Time Data: Live price charts, order books, and market depth for accurate, up-to-the-second information.
- Predictive Price Forecasting: Leverage machine learning models to forecast price movements and trends.
- AI Options Flow & Insider Trading Analysis: Uncover hidden market signals and unusual activity.
- Earnings & News Impact Prediction: Assess how news and earnings reports may affect asset prices.
- Pattern Recognition & Sentiment Analysis: Detect technical patterns and gauge market sentiment using NLP and deep learning.
- Options Chain & Strategy Builder: Visualize options data and construct complex strategies with ease.
- Backtest Simulator: Test your trading ideas against historical data.
- Portfolio Optimizer & Risk Management: Optimize allocations and manage risk with AI-powered recommendations.
- Modern, Responsive UI: Built with React and Tailwind CSS for a seamless experience on any device.
- Smart Alerts & Notifications: Get notified about key market events, price levels, and portfolio changes.
- Social Trading & Community: Share strategies, follow top traders, and discuss market moves.
- Frontend: React (with TypeScript), Vite, modular component structure.
- Backend Proxy: Python Flask server for secure API key management and proxying requests to external data providers.
- State Management: React Context for authentication and portfolio state.
- Extensible: Easily add new analytics modules, data sources, or UI components.
AlphaSphere-AI/
│
├── src/
│ ├── app/ # Next.js-style app directory (routing, layouts)
│ ├── components/ # Reusable UI and analytics components
│ ├── context/ # React Context providers (auth, portfolio, etc.)
│ ├── data/ # Static and mock data
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Core logic, API clients, and utilities
│ ├── pages/ # Main application pages (dashboard, trading, analytics, etc.)
│ └── types/ # TypeScript type definitions
│
├── backend_proxy/ # Flask backend proxy for secure API access
│ ├── app.py # Main Flask app (API proxy)
│ └── requirements.txt # Python dependencies
│
├── public/ # Static assets
├── package.json # Project metadata and dependencies
├── tailwind.config.ts # Tailwind CSS configuration
└── README.md # Project documentation
git clone https://github.com/yourusername/AlphaSphere-AI.git
cd AlphaSphere-AI
npm install
- Create a
.env
file in the root and add your API keys or credentials for your chosen data providers. - For the backend proxy, create a
.env
file inbackend_proxy/
with your required API credentials, for example:(Replace with the actual variable names required by your data provider.)API_KEY_ID=your_key API_SECRET_KEY=your_secret
cd backend_proxy
pip install -r requirements.txt
python app.py
- The proxy runs on port 5001 by default.
npm run dev
- The app runs on Vite's default port (usually 5173 or 8080).
- StockPriceChart, RealTimeStockChart: Interactive, real-time price visualization.
- PredictivePriceForecasting, AIEarningsPrediction: AI modules for forecasting and event analysis.
- OptionChain, OptionStrategyBuilder: Options analytics and strategy construction.
- PortfolioOptimizer, RiskManagementDashboard: AI-driven portfolio and risk tools.
- SmartAlerts, SmartNotifications: Customizable alerting system.
- SocialTrading, CommunityPage: Social features for collaborative trading.
- All sensitive API requests are routed through the Flask backend proxy, keeping your API keys secure and off the client.
- CORS is enabled for local development; configure as needed for production.
- Fork the repo and create your feature branch (
git checkout -b feature/YourFeature
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature/YourFeature
) - Open a Pull Request
This project is licensed under the MIT License.
AlphaSphere-AI is inspired by the need for accessible, AI-powered trading tools that combine professional-grade analytics with a user-friendly interface. Whether you're a beginner or a seasoned trader, AlphaSphere-AI aims to be your all-in-one trading companion.