TradeExpert is a lightweight application that integrates various data sources and leverages external LLM APIs to generate investment signals or stock recommendations.
- Data Collection: Gathers news, market data, alpha factors, and fundamental data.
- LLM-based Analysis: Utilizes external LLM services to interpret data and generate predictions.
- Decision Output: Provides actionable recommendations like "Buy," "Sell," or "Hold."
-
Clone the Repository
git clone https://github.com/yourusername/trade_expert.git cd trade_expert -
Create a Virtual Environment
python3 -m venv venv source venv/bin/activate -
Install Dependencies
pip install -r requirements.txt
-
Configure Environment Variables
Create a
.envfile in the project root and add the following:LLM_API_KEY=your_llm_api_key LLM_ENDPOINT=your_llm_endpoint NEWS_API_KEY=your_news_api_key
-
Run the Application
python main.py
- When prompted, enter the stock symbol you wish to analyze (e.g.,
AAPLfor Apple Inc.). - The application will fetch the necessary data, interact with the LLM, and output a decision.
- Ensure that all API keys are valid and have the necessary permissions.
- The current implementation uses placeholder functions for fetching fundamental data. Integrate with actual financial APIs as needed.