What This Workflow Does
This automated workflow solves the challenge of manually monitoring stock prices and correlating them with relevant news. It continuously tracks specified stocks using Marketstack's API, applies statistical analysis to detect unusual price movements, then searches HackerNews for related discussions. When an anomaly is detected, it translates relevant news articles using DeepL and sends actionable alerts to Slack.
The system eliminates hours of manual monitoring while providing more comprehensive coverage than human analysts could achieve. It combines quantitative analysis with qualitative context, giving traders and investors a complete picture of market movements and potential catalysts.
How It Works
1. Stock Price Monitoring
The workflow pulls daily closing prices from Marketstack's API for your configured stocks. It maintains a running history to establish normal price patterns and volatility baselines.
2. Anomaly Detection
Using statistical methods, the system compares current price movements against historical patterns. It flags deviations that exceed configured thresholds for percentage change or volatility.
3. News Gathering
When an anomaly is detected, the workflow searches HackerNews for recent discussions mentioning the stock ticker or company name. It prioritizes high-engagement threads and authoritative sources.
4. News Translation
Relevant foreign-language articles are automatically translated using DeepL's API, which specializes in financial terminology accuracy. The system preserves key numerical data and proper nouns during translation.
5. Alert Delivery
The compiled alert package - containing the price anomaly details and translated news context - is formatted and sent to your Slack channel. Alerts include actionable links and summary statistics.
Who This Is For
This workflow is ideal for day traders, investment analysts, hedge fund managers, and financial researchers who need to:
- Monitor multiple stocks simultaneously
- Identify trading opportunities from unusual price movements
- Understand the news context behind price changes
- Access international market news without language barriers
- Reduce manual monitoring time
What You'll Need
- Marketstack API key (free tier available)
- DeepL API key (free tier available)
- Slack workspace with incoming webhook configured
- n8n instance (self-hosted or cloud)
- List of stock tickers to monitor
Quick Setup Guide
- Download the JSON template file
- Import into your n8n instance
- Configure Marketstack, DeepL and Slack credentials
- Set your stock tickers and monitoring parameters
- Adjust anomaly detection thresholds as needed
- Test with historical data to verify alert accuracy
- Deploy the workflow on your preferred schedule
Key Benefits
24/7 market monitoring: Never miss important price movements outside trading hours with continuous automated surveillance.
Multilingual news access: Break language barriers with professional-grade translations of international financial news and analysis.
Contextual alerts: Receive complete packages combining quantitative price data with qualitative news context for informed decision-making.
Customizable thresholds: Tailor sensitivity to match your trading strategy and risk tolerance.
Time savings: Replace hours of manual monitoring with automated alerts, freeing you for higher-value analysis.