An intelligent agent utilizing Large Language Models (LLMs) for automated financial news retrieval and stock price prediction.
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.
git clone https://github.com/GURPREETKAURJETHRA/LLM-based-Finance-Agent.git
cd LLM-based-Finance-Agent
pip install -r requirements.txt
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.Ensure that you have configured the config.json file as described in the Configuration section.
Run the project using the following command:
python main.py
Distributed under the MIT License. See LICENSE
for more information.