Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock Market Analysis Agent

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.

Features

  • 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

Project Structure

  • main.py: Core analysis engine with AI integration
  • main_streamlit.py: Web interface implementation
  • scrapper.py: NSE India data scraper
  • data_formatting.py: Data processing and formatting utilities
  • stock_data.csv: Processed stock data
  • stock_data.json: Raw stock data from NSE

Requirements

  • Python 3.x
  • pandas
  • transformers
  • torch
  • streamlit
  • plotly
  • requests
  • T5 model: "AventIQ-AI/t5-stockmarket-qa-chatbot"

Installation

  1. Clone the repository:
git clone https://github.com/rk0802p/Stock_Market_Agent.git
cd Stock_Market_Agent
  1. Install required packages:
pip install pandas transformers torch streamlit plotly requests

Usage

  1. First, fetch the latest stock data:
python scrapper.py
  1. Format the data:
python data_formatting.py
  1. Launch the web interface:
streamlit run main_streamlit.py

Features in Detail

Data Collection

  • Automated scraping of NIFTY 50 stock data from NSE India
  • Data processing and formatting for analysis
  • Support for both JSON and CSV data formats

Analysis Capabilities

  • Real-time price analysis
  • Technical indicators
  • Performance metrics (daily, monthly, yearly)
  • AI-powered insights and recommendations
  • Industry-specific analysis

Visualization

  • Interactive charts and graphs
  • Performance comparison visualizations
  • Price range analysis
  • Trading activity metrics

Input Data Format

The system expects the following data fields:

  • symbol
  • companyName
  • industry (optional)
  • open
  • dayHigh
  • dayLow
  • lastPrice
  • previousClose
  • change
  • pChange
  • yearHigh
  • yearLow
  • totalTradedVolume
  • totalTradedValue
  • perChange365d
  • perChange30d

Output

The analysis provides:

  • Basic company information
  • Current market position
  • Technical analysis
  • AI-generated insights
  • Performance metrics
  • Investment recommendations
  • Risk factors

Note

  • Regular data updates are recommended for accurate analysis

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages