A comprehensive stock market agent that combines traditional technical analysis with AI-powered insights. The tool features a Streamlit web interface for interactive visualization and analysis.
- Real-time stock data scraping from NSE India
- AI-powered stock analysis using T5 transformer model
- Interactive web interface with Streamlit
- Comprehensive technical analysis including:
- Growth metrics
- Valuation risks
- Technical signals
- Market risks
- Investment strategies
- Interactive visualizations with Plotly
- Industry-based filtering
- Detailed performance metrics and insights
main.py: Core analysis engine with AI integrationmain_streamlit.py: Web interface implementationscrapper.py: NSE India data scraperdata_formatting.py: Data processing and formatting utilitiesstock_data.csv: Processed stock datastock_data.json: Raw stock data from NSE
- Python 3.x
- pandas
- transformers
- torch
- streamlit
- plotly
- requests
- T5 model: "AventIQ-AI/t5-stockmarket-qa-chatbot"
- Clone the repository:
git clone https://github.com/rk0802p/Stock_Market_Agent.git
cd Stock_Market_Agent- Install required packages:
pip install pandas transformers torch streamlit plotly requests- First, fetch the latest stock data:
python scrapper.py- Format the data:
python data_formatting.py- Launch the web interface:
streamlit run main_streamlit.py- Automated scraping of NIFTY 50 stock data from NSE India
- Data processing and formatting for analysis
- Support for both JSON and CSV data formats
- Real-time price analysis
- Technical indicators
- Performance metrics (daily, monthly, yearly)
- AI-powered insights and recommendations
- Industry-specific analysis
- Interactive charts and graphs
- Performance comparison visualizations
- Price range analysis
- Trading activity metrics
The system expects the following data fields:
- symbol
- companyName
- industry (optional)
- open
- dayHigh
- dayLow
- lastPrice
- previousClose
- change
- pChange
- yearHigh
- yearLow
- totalTradedVolume
- totalTradedValue
- perChange365d
- perChange30d
The analysis provides:
- Basic company information
- Current market position
- Technical analysis
- AI-generated insights
- Performance metrics
- Investment recommendations
- Risk factors
- Regular data updates are recommended for accurate analysis