Skip to content

ankurneog/finagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

finagent

LLM powered stock analysis agent

Logo

Features

  • LLM-powered analysis for stock trends
  • Real-time data processing
  • User-friendly interface for stock queries
  • Light weight , uses in-device LLMs ( eg llama3:8b)

Design

  • In a nutshell
    • Uses yfinance APIs to pull stock data
    • Compares fundamentals to universally agreed thresholds and limits
    • Creates a pipeline with LLM integration to compare data and generate text
    • Consolidates the commentary

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/finagent.git
  2. Navigate to the project directory:
    cd finagent
  3. Install the required dependencies:
    pip install -r requirements.txt

Usage

To start the agent, run:

 python main.py --symbol <stock ticker> --country <US/IN> --output_dir ./
 eg :  python main.py --symbol TATAMOTORS --country IN --output_dir ./

Credits and Acknowledgement

This work is heavily inspired by contents in this paper :

I have used freely available tools , for example yfinance for indian stocks. LLM integration using OLAMA with LLAMA3. I have not used openAI APIs, LLAMAI Index pipelines - pipelines were handwritten. Everything is free!

I need to thank github co-pilot for massively improving my speed.

Disclaimer

This is still work in progress. Use with caution :)

Planned immediate work :

  • Integration of technical analysis
  • Provide buy/hold/sell recommendation
  • Feedback from friends/colleagues.
  • Migrate to bigger models for better output
  • run on intel gaudi 3 accelerators

About

LLM powered stock analysis agent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages