Agentic Stock Actor
Pricing
Pay per usage
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.
Pricing
Pay per usage
Rating
0.0
(0)
Developer

Sachin Keswani
Actor stats
1
Bookmarked
1
Total users
0
Monthly active users
9 days ago
Last modified
Categories
Share
๐ฏ 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:
- ๐ฑ WhatsApp Notifications - Get instant mobile alerts when signals change
- ๐บ๐ธ Trump Sentiment Analysis - Track @realDonaldTrump for market-moving posts
- ๐ค AI-Powered Reasoning - GPT-4 explains every signal with detailed analysis
- ๐ Signal Change Detection - Automatic notifications for BUYโSELL, HOLDโWATCH, etc.
- โฐ Fully Automated - Runs every hour, 24/7 on Apify platform
๐ Quick Start (5 Minutes)
1. Run on Apify Console
- Visit: https://console.apify.com/actors/43ZTkpbPq0YKf3djc
- Click "Start"
- Configure input:
{"tickers": ["AAPL", "TSLA", "NVDA"],"openaiApiKey": "YOUR_OPENAI_KEY","whatsappNumber": "+15551234567","twilioAccountSid": "ACxxxxx...","twilioAuthToken": "your_token","enableNotifications": true}
- Get instant WhatsApp alerts! ๐ฑ
2. Set Up WhatsApp (Optional)
- Free Twilio account: https://www.twilio.com/try-twilio ($15 free credit)
- Activate WhatsApp sandbox (5 minutes)
- Add credentials to actor input
- 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 announcementwhile price dipped 2% below recent high. Excellent swingtrade entry point."๐ Key Catalysts:โข AI partnership announcementโข Price near support level ($180)โข High volume (2.3x average)โข Positive Reddit sentiment (+0.65)๐ฑ TRUMP IMPACT: MEDIUMTrump 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 frompartnership 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):
{"tickers": ["AAPL", "TSLA"],"openaiApiKey": "YOUR_KEY"}
Advanced (With WhatsApp):
{"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 $380Stop: $365Target: $420๐ 13:00 UTC
Setup (5 Minutes):
- Get Twilio account: https://www.twilio.com/try-twilio (FREE $15 credit)
- Activate WhatsApp: Send "join your-code" to Twilio's number
- Add to input: Phone number + Twilio credentials
- 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 Americanmanufacturing. Great American company!"Market Prediction: Strong positive reaction expectedOriginal sentiment: +0.45 โ Trump-adjusted: +0.78Signal: WATCH โ BUY
Full guide: TRUTH_SOCIAL_INTEGRATION.md
๐ Output Format
{"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):
- r/wallstreetbets (15M+) - Meme stocks, options, YOLO plays
- r/stocks (5M+) - General stock discussion, DD
- r/investing (2M+) - Long-term investing, fundamentals
- r/StockMarket (2M+) - Daily market discussion, TA
๐ Scheduling
Current schedule (Hourly):
- Cron:
0 * * * * - Timezone: America/Chicago (CST)
- Status: โ ENABLED
Alternative schedules:
# Market hours only (9am-4pm Mon-Fri)0 9-16 * * 1-5# Twice daily (6am & 1pm)0 6,13 * * *# Every 2 hours0 */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 news06:04 - Signal change detected: NVDA HOLD โ BUY06:05 - ๐ฑ WhatsApp notification received07:00 - Review reasoning on Apify console09:30 - Market opens, execute BUY orderEntry: $135, Target: $155, Stop: $12816:00 - Actor runs again16:04 - Signal change: NVDA BUY โ SELL16:05 - ๐ฑ WhatsApp: "Take profits!"16:10 - Sell at $154 (+14% gain!)
๐ Built For
Apify 1M Challenge Hackathon
Key Differentiators:
- Only agent tracking Trump for trading
- Multi-source intelligence (4 sources)
- WhatsApp mobile notifications
- AI-powered with reasoning
- 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! ๐๐ฑ

