Detect stock price anomalies & send news alerts with Marketstack, HackerNews & DeepL
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on a schedule (every day at 09:00). Along the way it connects Marketstack, Hacker News and Slack.
How it runs
Trigger: On a schedule (every day at 09:00).
- Get Stock Data (Marketstack): uses Marketstack
- Calculate Deviation (Code): runs custom JavaScript code
- Is Anomaly? (status != "normal") (If): checks a condition and branches into true / false
- Add Symbol Field (Edit Fields (Set)): sets 1 field: symbol
- Send Normal Report to Slack (Slack): uses Slack
- Build News Keyword (Code): runs custom JavaScript code
- Get Related News (Hacker News): work with all
- Compose Slack Message (Code): runs custom JavaScript code
- Translate News (DeepL): uses DeepL
- Merge: merges the data from its input branches
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Rarely used nodes in this template: n8n-nodes-base.marketstack
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Marketstack
n8n-nodes-base.marketstack - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Hacker News
n8n-nodes-base.hackerNews - DeepL
n8n-nodes-base.deepL - Slack
n8n-nodes-base.slack - Merge
n8n-nodes-base.merge - Edit Fields (Set)
n8n-nodes-base.set
From the author
Price Anomaly Detection & News Alert (Marketstack + HN + DeepL + Slack) Overview This workflow monitors a stock’s closing price via Marketstack. It computes a 20-day moving average and standard deviation (±2σ). If the latest close is outside ±2σ, it flags an…