
AI Financial Analyst
Under maintenance
Pricing
Pay per usage

AI Financial Analyst
Under maintenance
AI Financial Analyst is an Apify Actor that provides detailed stock market insights using AI-powered fundamental analysis, technical analysis, and sentiment analysis
0.0 (0)
Pricing
Pay per usage
2
Total users
14
Monthly users
1
Runs succeeded
0%
Last modified
4 months ago
π AI Financial Analyst
π AI Financial Analyst is an Apify Actor that provides detailed stock market insights using AI-powered fundamental analysis, technical analysis, and sentiment analysis.
It leverages:
- π Yahoo Finance (
yfinance
) for real-time financial data. - π€ OpenAI GPT models for AI-driven market insights.
- π° Alpha Vantage News Sentiment API for sentiment analysis.
- β Apify Actor framework for automation.
π Features
β Technical Analysis (SMA, EMA, RSI, MACD, Bollinger Bands, Supertrend)
β Fundamental Analysis (P/E Ratio, EBITDA, Net Income, Debt-to-Equity)
β Sentiment Analysis (News Headlines, Market Mood)
β AI-Generated Insights (Bullish/Bearish Signals, Risks & Opportunities)
β Markdown Reports (Auto-saved to Apify Key-Value Store)
π How It Works
1οΈβ£ Fetch Stock Data β Pulls financials, technical indicators & sentiment.
2οΈβ£ Perform Analysis β Uses AI to analyze market conditions.
3οΈβ£ Generate Report β Saves insights in a report.md
file.
4οΈβ£ Store in Apify β Saves report to Apify's Key-Value Store.
5οΈβ£ Token Billing β Charges based on GPT token usage.
π¦ Installation & Setup
1οΈβ£ Clone the Repository
git clone https://github.com/yourusername/ai-financialanalyst.gitcd ai-financialanalyst
2οΈβ£ Create a Virtual Environment (Optional)
python -m venv .venvsource .venv/bin/activate # On Windows: .venv\Scripts\activate
3οΈβ£ Install Dependencies
$pip install -r requirements.txt
4οΈβ£ Set API Keys
Create a .env
file and add your API keys:
OPENAI_API_KEY=your-openai-keyALPHAVANTAGE_API_KEY=your-alpha-vantage-key
π― How to Run Locally
$apify run --input-file=input.jso
π Example input.json
{"ticker": "AAPL"}
π Project Structure
ai-financialanalyst/βββ src/β βββ main.py # Apify Actor entry pointβ βββ tools.py # Financial, technical, sentiment analysis toolsβ βββ models.py # Pydantic data modelsβ βββ utils.py # Helper functionsβ βββ report.md # Generated stock analysis reportβββ .venv/ # Virtual environment (optional)βββ requirements.txt # Python dependenciesβββ README.md # Project documentationβββ input.json # Example input formatβββ .env # API keys (gitignore this file)
π Example Report Output
A sample AI-generated Markdown Report:
# π AI Financial Analyst Report## π **Stock Analysis Report**- **Ticker Symbol:** `AAPL`- **Generated by:** Apify AI Financial Analyst---## π **AI-Generated Insights**- **Momentum:** AAPL has strong bullish momentum.- **Risks:** Overbought RSI, potential short-term pullback.- **Financial Stability:** Strong revenue & cash flow.- **Bullish Signals:** Revenue growth, brand loyalty.- **Bearish Signals:** Market saturation, competition.---## π **Technical Analysis**| Indicator | Value ||-----------|------|| **SMA (50)** | 180.25 || **RSI** | 72.3 (Overbought) || **MACD** | Bullish |---## π° **Sentiment Analysis**- **Highest Sentiment:** `Positive`- **Recent News:**- [Apple reports record iPhone sales](https://example.com/news1)- [AAPL stock hits all-time high](https://example.com/news2)
π Contributing
We welcome contributions! Feel free to:
- Open Issues for bug reports or feature requests.
- Submit Pull Requests to improve the code.
π License
This project is licensed under the MIT License.
On this page
Share Actor: