Skip to content

An intelligent agent utilizing Large Language Models (LLMs) for automated financial news retrieval and stock price prediction.

License

Notifications You must be signed in to change notification settings

GURPREETKAURJETHRA/LLM-based-Finance-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM based Finance Agent

An intelligent agent utilizing Large Language Models (LLMs) for automated financial news retrieval and stock price prediction.

Introduction

LLM based Finance Agent is a powerful tool that leverages large language models (LLMs) to automatically fetch news and predict historical stock prices to forecast future prices. This repository is designed to provide financial insights using state-of-the-art natural language processing (NLP) and machine learning techniques.

Installation

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

Configuration

Configure the agent by editing the config.json file with your API keys and desired settings:

{
    "news_api_key": "your_news_api_key",
    "genai_api_key": "your_genai_api_key",
    "model_name": "gemini-1.5-pro",
    "stock_symbol": "2330.tw",
    "days": 30
}
  • news_api_key: Your API key for the news data provider (Apply here).
  • genai_api_key: Your API key for Google Generative AI (Apply here).
  • model_name: The name of the Google Generative AI model to be used.
  • stock_symbol: The stock symbol to analyze.
  • days: The number of days to consider for the analysis.

Usage

  1. Ensure that you have configured the config.json file as described in the Configuration section.

  2. Run the project using the following command:

    python main.py

©️ License 🪪

Distributed under the MIT License. See LICENSE for more information.


If you like this LLM Project do drop ⭐ to this repo

Follow me on LinkedIn   GitHub


Releases

No releases published

Packages

No packages published

Languages