The Finance Monitoring Agent is an Apify AI Actor tailored for investors and analysts, providing comprehensive analysis of specific stock tickers. It gathers, processes, and produces insightful reports to help understand market trends, performance metrics, and sentiment analysis.
This agent is designed to:
- Analyze stock tickers: Focuses on specific stocks to deliver detailed performance insights.
- Generate reports: Creates structured reports in markdown format, summarizing key financial data, trends, and sentiment analysis.
- Leverage AI: Utilizes OpenAI's capabilities, allowing customization between more advanced (GPT-4o) or faster, cheaper (GPT-4o Mini) models for analysis.
- Provide downloadable output: The report.md file can be downloaded from the key-value store in the storage section of the Actor run details.
Sample report from the Finance Monitoring Agent for the TSLA
ticker is available here.
- Detailed Stock Analysis: Provides in-depth analysis including sentiment, performance, and market trends.
- Customizable AI Models: Choose between gpt-4o, gpt-4o-mini and the reasoning models o1 and o3-mini.
The Finance Monitoring Agent leverages multiple data sources to ensure comprehensive and accurate analysis:
- Yahoo Finance: Provides essential ticker information, price targets, and recommendations from analysts, as well as the latest news related to the stock. Using Yahoo Finance Apify Actor.
- Google News: Searches for relevant news articles to include in the sentiment analysis and overall report. Using Google News Scraper Apify Actor.
- Input: Specify the stock ticker, choose your AI model, and provide your OpenAI API key.
- Processing: The agent fetches real-time data, processes it using the selected AI model, and compiles a report.
- Output: Generates a markdown report with analysis, which is pushed to Apify's dataset for review.
NOTE: The requirement to provide an OpenAI API key will be removed in the future by using Pay Per Event Actor billing (or Price Per Job). This change could also appeal to users who are hesitant to share their API keys.
{
"ticker": "TSLA",
"model": "gpt-4o",
"openai_api_key": "your_openai_api_key_here"
}
{
"ticker": "TSLA",
"sentiment": "hold",
"sentiment_reason": "The sentiment is derived from a mixed outlook among analysts...",
"report": "# Tesla, Inc. Financial Report - February 11, 2025 ## Executive Summary Tesla, Inc., under the leadership of Elon Musk, continues to be a significant player in the electric vehicle and clean energy sectors..."
}
- Time Efficiency: Automates the analysis process, providing quick insights without manual data crunching.
- Enhanced Decision Making: Offers sentiment analysis alongside performance metrics, aiding in investment decisions.
- Scalability: Can analyze multiple tickers by running multiple instances of the Actor in parallel.
- AI-Driven Insights: Leverages the latest in AI technology for nuanced market analysis.
- Built with Apify SDK: Ensures robust, scalable web scraping and data processing.
- AI Integration: Seamless interaction with OpenAI models for dynamic content generation.
Start leveraging AI for your financial analysis today and make informed investment decisions with ease! ππ€
Clone the repository and install the dependencies:
git clone https://github.com/apify/finance-monitoring-agent
cd finance-monitoring-agent
uv sync
# or make install-dev
To run the Actor locally, use the following command:
apify run -p -i '{"ticker": "TSLA", "model": "gpt-4o", "openai_api_key": "your_openai_api_key_here"}'
# in debug mode
#apify run -p -i '{"debug": true, "ticker": "TSLA", "model": "gpt-4o", "openai_api_key": "your_openai_api_key_here"}'
The output report will be saved in the storage/key_value_stores/default/ directory.