|
| 1 | +--- |
| 2 | +title: BazaarAISaathi | AI-Powered Indian Stock Market Assistant |
| 3 | +description: An AI-powered platform for Indian stock market analysis, portfolio optimization, and investment strategies using Perplexity Sonar API |
| 4 | +sidebar_position: 13 |
| 5 | +keywords: [BazaarAISaathi, stock market, finance, India, portfolio analysis, investment, perplexity, sonar] |
| 6 | +--- |
| 7 | + |
| 8 | +**BazaarAISaathi** is an AI-powered platform designed to empower investors with actionable insights into the Indian stock market. Leveraging advanced natural language processing, real-time data analytics, and expert-driven financial modeling, the app delivers personalized investment strategies, market sentiment analysis, and portfolio optimization recommendations. |
| 9 | + |
| 10 | +## Features |
| 11 | + |
| 12 | +* **Financial Independence Planner (FIRE)** with personalized plans based on age, salary, and goals |
| 13 | +* **Investment Advice Tester** using EasyOCR for text extraction and AI validation |
| 14 | +* **Fundamental & Technical Analysis** with comprehensive company reports and trading strategies |
| 15 | +* **Portfolio Analysis** with multi-dimensional analysis and stock-wise recommendations |
| 16 | +* **Market Research & Competitor Benchmarking** using AI-driven industry trend analysis |
| 17 | +* **Real-Time Stock Data** with live price tracking and trend analysis |
| 18 | +* **Hypothesis Testing** using historical and real-time market data |
| 19 | +* **Investment Books Summary** with concise summaries of top 50 investment books |
| 20 | + |
| 21 | +## Prerequisites |
| 22 | + |
| 23 | +* Python 3.8+ and pip |
| 24 | +* Streamlit for web application framework |
| 25 | +* Perplexity API key (Sonar models) |
| 26 | +* Optional: EasyOCR for image text extraction |
| 27 | + |
| 28 | +## Installation |
| 29 | + |
| 30 | +```bash |
| 31 | +# Clone the repository |
| 32 | +git clone https://github.com/mahanteshimath/BazaarAISaathi.git |
| 33 | +cd BazaarAISaathi |
| 34 | + |
| 35 | +# Install dependencies |
| 36 | +pip install -r requirements.txt |
| 37 | +``` |
| 38 | + |
| 39 | +## Configuration |
| 40 | + |
| 41 | +Create `secrets.toml` file for Streamlit secrets: |
| 42 | +```ini |
| 43 | +PERPLEXITY_API_KEY = "your_perplexity_api_key" |
| 44 | +# Add other API keys as needed |
| 45 | +``` |
| 46 | + |
| 47 | +## Usage |
| 48 | + |
| 49 | +1. **Start the Application**: |
| 50 | + ```bash |
| 51 | + streamlit run Home.py |
| 52 | + ``` |
| 53 | + |
| 54 | +2. **Access Features**: |
| 55 | + - Navigate through different pages for specific functionality |
| 56 | + - Use the main dashboard for overview and navigation |
| 57 | + - Access specialized tools like portfolio analysis, FIRE planning, and tip testing |
| 58 | + |
| 59 | +3. **Run Specific Modules**: |
| 60 | + ```bash |
| 61 | + streamlit run pages/Financial_Independence.py |
| 62 | + streamlit run pages/Portfolio_Analysis.py |
| 63 | + streamlit run pages/Tip_Tester.py |
| 64 | + ``` |
| 65 | + |
| 66 | +## Code Explanation |
| 67 | + |
| 68 | +* **Frontend**: Streamlit web application with interactive pages and real-time data visualization |
| 69 | +* **Backend**: Python-based business logic with Pandas for data manipulation and analysis |
| 70 | +* **AI Integration**: Perplexity Sonar API models (sonar-deep-research, sonar-reasoning-pro, sonar-pro) for financial analysis |
| 71 | +* **Data Processing**: Real-time stock data fetching, CSV data management, and market insights generation |
| 72 | +* **Text Extraction**: EasyOCR integration for processing investment tips from images |
| 73 | +* **Portfolio Management**: Comprehensive portfolio analysis with optimization recommendations |
| 74 | +* **Market Analysis**: Technical and fundamental analysis with sentiment scoring |
| 75 | + |
| 76 | +## Demo Video |
| 77 | + |
| 78 | +<iframe |
| 79 | + className="w-full aspect-video rounded-xl" |
| 80 | + src="https://www.youtube.com/embed/5t2ldWS3SJ8" |
| 81 | + title="YouTube video player" |
| 82 | + frameBorder="0" |
| 83 | + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 84 | + allowFullScreen |
| 85 | +></iframe> |
| 86 | + |
| 87 | +## Links |
| 88 | + |
| 89 | +- [GitHub Repository](https://github.com/mahanteshimath/BazaarAISaathi) |
| 90 | +- [Live Application](https://bazaar-ai-saathi.streamlit.app/) |
| 91 | +- [Architecture Diagram](https://github.com/mahanteshimath/BazaarAISaathi/raw/main/src/App_Architecture.jpg) |
0 commit comments