Agentic Stock Actor
by luxurious_gel
Agentic Stock Actor is an AI trading assistant for swing traders. It tracks real-time data from Yahoo Finance, Reddit, Truth Social, and GPT-4 to spot...
Opens on Apify.com
About Agentic Stock Actor
Agentic Stock Actor is an AI trading assistant for swing traders. It tracks real-time data from Yahoo Finance, Reddit, Truth Social, and GPT-4 to spot buy-the-dip and sell-the-spike signals from priceโsentiment divergences, and sends instant WhatsApp alerts.
What does this actor do?
Agentic Stock Actor is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
๐ฏ Agentic Stock Actor AI-Powered Stock Timing Agent with WhatsApp Notifications Built for the Apify 1M Challenge Hackathon
--- ## ๐ Overview Agentic Stock Actor is an AI-powered trading assistant that helps swing traders time their entries and exits by analyzing real-time data from 4 sources: - ๐ Yahoo Finance: Stock prices, market data, and financial news - ๐ฌ Reddit: Community sentiment from r/wallstreetbets, r/stocks, r/investing, r/StockMarket - ๐ฑ Truth Social: @realDonaldTrump posts for political risk analysis - ๐ค GPT-4: Advanced sentiment analysis and trading signal generation The actor identifies buy opportunities on dips and sell signals on spikes by detecting divergences between price action and sentiment. Get instant WhatsApp alerts when trading signals change! --- ## โจ Unique Features ### ๐ What Makes This Special: 1. ๐ฑ WhatsApp Notifications - Get instant mobile alerts when signals change 2. ๐บ๐ธ Trump Sentiment Analysis - Track @realDonaldTrump for market-moving posts 3. ๐ค AI-Powered Reasoning - GPT-4 explains every signal with detailed analysis 4. ๐ Signal Change Detection - Automatic notifications for BUYโSELL, HOLDโWATCH, etc. 5. โฐ Fully Automated - Runs every hour, 24/7 on Apify platform --- ## ๐ Quick Start (5 Minutes) ### 1. Run on Apify Console 1. Visit: https://console.apify.com/actors/43ZTkpbPq0YKf3djc 2. Click "Start" 3. Configure input: json { "tickers": ["AAPL", "TSLA", "NVDA"], "openaiApiKey": "YOUR_OPENAI_KEY", "whatsappNumber": "+15551234567", "twilioAccountSid": "ACxxxxx...", "twilioAuthToken": "your_token", "enableNotifications": true } 4. Get instant WhatsApp alerts! ๐ฑ ### 2. Set Up WhatsApp (Optional) 1. Free Twilio account: https://www.twilio.com/try-twilio ($15 free credit) 2. Activate WhatsApp sandbox (5 minutes) 3. Add credentials to actor input 4. Receive instant mobile notifications! Full guide: See WHATSAPP_SETUP.md --- ## ๐ What You Get ### Trading Signals: ๐ข BUY Signal - AAPL (85% confidence) ๐ฐ Price: $182.50 (-1.2%) ๐ญ Sentiment: +0.68 (very positive) ๐ AI Reasoning: "Strong positive sentiment from AI partnership announcement while price dipped 2% below recent high. Excellent swing trade entry point." ๐ Key Catalysts: โข AI partnership announcement โข Price near support level ($180) โข High volume (2.3x average) โข Positive Reddit sentiment (+0.65) ๐ฑ TRUMP IMPACT: MEDIUM Trump mentioned AI sector positively (+0.40 sentiment) โ๏ธ Risk: MEDIUM ๐ก Entry Strategy: "Enter below $185. Set stop-loss at $175. Target $200." ๐ 14:00 UTC ### WhatsApp Notification: ๐จ URGENT SIGNAL CHANGE: AAPL ๐ก Previous: HOLD ๐ข *NEW: BUY* ๐ฐ $182.50 ๐ญ +0.68 ๐ฏ 85% Strong positive sentiment from partnership while price dipped... ๐ 14:00 UTC --- ## ๐ฏ Features ### Data Collection (4 Sources): - โ
Yahoo Finance: Real-time prices, news, market data - โ
Reddit: 4 major investing subreddits (25M+ members) - โ
Truth Social: @realDonaldTrump political sentiment - โ
OpenAI GPT-4: AI analysis and reasoning ### AI Analysis: - โ
Sentiment Scoring: -1 (very negative) to +1 (very positive) - โ
Market-Moving Events: Earnings, partnerships, FDA approvals, tariffs - โ
Trump Impact: Political risk quantification (0x to 2.0x weight) - โ
Divergence Detection: Sentiment vs. price mismatches - โ
Technical Indicators: 52-week position, volume ratios ### Trading Signals: - โ
4 Signal Types: BUY, SELL, HOLD, WATCH - โ
Confidence Scores: 0-100% certainty - โ
Risk Assessment: Low, Medium, High - โ
Entry Strategies: Specific price levels and tactics - โ
AI Reasoning: Detailed explanations ### Notifications: - โ
WhatsApp: Instant mobile alerts (via Twilio) - โ
Signal Changes: BUYโSELL, HOLDโWATCH, etc. - โ
Trump Alerts: When ticker is mentioned - โ
Console Logs: Real-time logging - โ
Dataset History: All notifications saved ### Automation: - โ
Hourly Schedule: Runs every hour automatically - โ
Signal Tracking: Stores history in key-value store - โ
Change Detection: Compares with previous run - โ
Auto-Notifications: Sends alerts automatically --- ## ๐ How It Works Every Hour: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 1. Scrape Yahoo Finance โ โ โข Prices, news, market data โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 2. Scrape Reddit (4 subreddits) โ โ โข Posts, scores, comments โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 3. Scrape Truth Social (@realDonaldTrump) โ โ โข Recent posts, ticker mentions โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 4. AI Sentiment Analysis (GPT-4) โ โ โข News: -1 to +1 โ โ โข Reddit: Community mood โ โ โข Trump: Political impact (0x to 2.0x) โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 5. Generate Trading Signal (GPT-4) โ โ โข BUY/SELL/HOLD/WATCH โ โ โข Confidence + Reasoning โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 6. Detect Signal Changes โ โ โข Compare with previous run โ โ โข Identify significant changes โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 7. Send WhatsApp Notification ๐ฑ โ โ โข If signal changed โ โ โข Instant mobile alert โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ --- ## ๐ฎ Usage ### Basic (News Only): json { "tickers": ["AAPL", "TSLA"], "openaiApiKey": "YOUR_KEY" } ### Advanced (With WhatsApp): json { "tickers": ["AAPL", "TSLA", "NVDA"], "openaiApiKey": "YOUR_OPENAI_KEY", "whatsappNumber": "+15551234567", "twilioAccountSid": "ACxxxxx...", "twilioAuthToken": "your_token", "enableNotifications": true, "maxNewsPerTicker": 20, "maxRedditPostsPerTicker": 50, "maxTrumpPosts": 20, "subreddits": ["wallstreetbets", "stocks", "investing", "StockMarket"] } --- ## ๐ฑ WhatsApp Notifications Get instant mobile alerts when trading signals change! ### Example Message: ๐จ URGENT: TSLA ๐กโ๐ข HOLD to BUY ๐ฐ $378.50 ๐ฏ 90% confidence ๐ฑ TRUMP MENTIONED TSLA! "Tesla doing incredible work..." Buy below $380 Stop: $365 Target: $420 ๐ 13:00 UTC ### Setup (5 Minutes): 1. Get Twilio account: https://www.twilio.com/try-twilio (FREE $15 credit) 2. Activate WhatsApp: Send "join your-code" to Twilio's number 3. Add to input: Phone number + Twilio credentials 4. Done! Receive instant alerts ๐ฑ Full guide: WHATSAPP_SETUP.md --- ## ๐บ๐ธ Trump Sentiment Analysis Unique Feature: Track @realDonaldTrump's Truth Social posts for market impact! ### Why It Matters: - ๐ Trump's posts can move markets immediately - ๐ฅ Tariff announcements: Direct company impact - ๐ฏ Company mentions: Significant price swings - ๐ Policy changes: Industry-wide effects ### Impact Levels: | Level | Weight | Example | |-------|--------|---------| | HIGH | 2.0x | "Tesla doing incredible work!" โ BUY boost | | MEDIUM | 0.7x | "Tariffs on auto parts" โ Industry impact | | LOW | 0.3x | "Manufacturing booming" โ General positive | ### Example: ๐ฑ TRUMP IMPACT ALERT ๐จ TSLA DIRECTLY MENTIONED! Impact: HIGH (2.0x weight) Sentiment: +0.90 (very positive) Post: "Tesla doing incredible work on American manufacturing. Great American company!" Market Prediction: Strong positive reaction expected Original sentiment: +0.45 โ Trump-adjusted: +0.78 Signal: WATCH โ BUY Full guide: TRUTH_SOCIAL_INTEGRATION.md --- ## ๐ Output Format json { "ticker": "AAPL", "signal": "BUY", "confidence": 0.85, "reasoning": "Strong positive sentiment...", "key_catalysts": ["Partnership", "Price dip", "High volume"], "risk_level": "medium", "entry_strategy": "Enter below $185. Stop: $175. Target: $200.", "current_price": 182.50, "percent_change": -0.0124, "position_52w": 0.73, "volume_ratio": 2.3, "sentiment_score": 0.68, "news_sentiment": 0.75, "reddit_sentiment": 0.58, "trump_sentiment": 0.40, "trump_impact_level": "medium", "trump_mentioned_ticker": false, "market_moving_events": ["partnership", "product launch"], "trump_themes": ["AI", "Manufacturing"], "signal_changed": true, "previous_signal": "HOLD", "notification_sent": true } --- ## โฐ Automation ### Hourly Schedule (Active): - Frequency: Every hour (:00) - Timezone: America/Chicago (CST) - Tickers: AAPL, TSLA, NVDA - Status: โ
ENABLED Schedule URL: https://console.apify.com/schedules/7A6c15ixwldghb0bh --- ## ๐ฏ Use Cases ### For Swing Traders: - โ
Buy dips with positive sentiment - โ
Sell spikes with negative sentiment - โ
Get WhatsApp alerts for signal changes - โ
Know when Trump affects your stocks ### For Risk Management: - โ
Trump tariff early warnings - โ
Policy change detection - โ
Sentiment shift alerts - โ
Political risk quantification ### For Portfolio Monitoring: - โ
Track multiple tickers (3+) - โ
Hourly automated analysis - โ
Mobile notifications - โ
Zero manual effort --- ## ๐ ๏ธ Tech Stack - Apify Platform: Actor framework, scheduling, storage - Python 3.11: Core logic - OpenAI GPT-4: Sentiment analysis and signal generation - BeautifulSoup + httpx: Web scraping - Twilio: WhatsApp notifications --- ## ๐ Documentation - QUICKSTART.md - Get started in 5 minutes - WHATSAPP_SETUP.md - Configure mobile notifications - TRUTH_SOCIAL_INTEGRATION.md - Trump sentiment analysis - NOTIFICATIONS_COMPLETE.md - Full notification guide - COMPLETE_FEATURES.md - All features explained - DEPLOYMENT.md - Deployment instructions - SCHEDULE_SETUP.md - Scheduling guide --- ## ๐ Hackathon Highlights ### Innovation: - ๐ฅ First trading agent with Trump sentiment analysis - ๐ฅ First to combine News + Reddit + Truth Social - ๐ฅ WhatsApp instant notifications for traders ### Technical Excellence: - โ
Clean, modular architecture - โ
Apify-native implementation - โ
Fault-tolerant with fallbacks - โ
Production-ready code ### Business Value: - โ
Solves real problem (market timing) - โ
Saves trader time (automated) - โ
Provides trading edge (early signals) - โ
Quantifies political risk (Trump factor) --- ## ๐ Reddit Communities Analyzes sentiment from 4 major investing subreddits (25M+ combined members): 1. r/wallstreetbets (15M+) - Meme stocks, options, YOLO plays 2. r/stocks (5M+) - General stock discussion, DD 3. r/investing (2M+) - Long-term investing, fundamentals 4. r/StockMarket (2M+) - Daily market discussion, TA --- ## ๐
Scheduling Current schedule (Hourly): - Cron: 0 * * * * - Timezone: America/Chicago (CST) - Status: โ
ENABLED Alternative schedules: bash # Market hours only (9am-4pm Mon-Fri) 0 9-16 * * 1-5 # Twice daily (6am & 1pm) 0 6,13 * * * # Every 2 hours 0 */2 * * * Edit schedule: https://console.apify.com/schedules/7A6c15ixwldghb0bh --- ## ๐ฐ Cost ### Per Run (3 tickers): - Apify compute: ~$0.02 (4-5 min on 4GB memory) - OpenAI API: ~$0.01 (GPT-4 calls) - WhatsApp: FREE (Twilio $15 credit) - Total: ~$0.03 per run ### Monthly: - 24/7 Hourly: ~$22/month - Market hours only: ~$5/month - Twice daily: ~$2/month --- ## ๐ Security - โ
API keys stored as encrypted secrets - โ
WhatsApp credentials protected - โ
No sensitive data logged - โ
Follows Apify security best practices --- ## ๐ Example Use Case Morning routine: 06:00 - Actor runs, analyzes overnight news 06:04 - Signal change detected: NVDA HOLD โ BUY 06:05 - ๐ฑ WhatsApp notification received 07:00 - Review reasoning on Apify console 09:30 - Market opens, execute BUY order Entry: $135, Target: $155, Stop: $128 16:00 - Actor runs again 16:04 - Signal change: NVDA BUY โ SELL 16:05 - ๐ฑ WhatsApp: "Take profits!" 16:10 - Sell at $154 (+14% gain!) --- ## ๐ Built For Apify 1M Challenge Hackathon Key Differentiators: 1. Only agent tracking Trump for trading 2. Multi-source intelligence (4 sources) 3. WhatsApp mobile notifications 4. AI-powered with reasoning 5. Fully automated on Apify --- ## ๐ Links - Apify Actor: https://console.apify.com/actors/43ZTkpbPq0YKf3djc - Schedule: https://console.apify.com/schedules/7A6c15ixwldghb0bh - GitHub: https://github.com/techstar9797/AgenticStockActor - Apify 1M Challenge: https://apify.notion.site/apify-1m-challenge-hackathon --- ## ๐ค Credits Built by: Sachin Keswani Email: sachin.news@gmail.com Hackathon: Apify 1M Challenge Date: December 2025 --- ## ๐ License MIT License - See LICENSE file --- Made with โค๏ธ for swing traders everywhere. Get WhatsApp alerts and never miss a trade! ๐๐ฑ
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Agentic Stock Actor now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- luxurious_gel
- Pricing
- Paid
- Total Runs
- 29
- Active Users
- 1
Related Actors
Google Search Results Scraper
by apify
Website Content Crawler
by apify
๐ฅ Leads Generator - $3/1k 50k leads like Apollo
by microworlds
Video Transcript Scraper: Youtube, X, Facebook, Tiktok, etc.
by invideoiq
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support