Detect stock price anomalies & send news alerts with Marketstack, HackerNews & DeepL
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
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
What it does
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 anomaly, fetches related headlines from Hacker News, translates them to Japanese with DeepL, and posts both original and translated text to Slack. When no anomaly is detected, it sends a concise “normal” report. How it works 1) Daily trigger at 09:00 JST 2) Marketstack: fetch EOD data 3) Code: compute mean/σ and classify (normal/high/low) 4) IF: anomaly? → yes = news path / no = normal report 5) Hacker News: search related items 6) DeepL: translate EN → JA 7) Slack: send bilingual notification Requirements - Marketstack API key - DeepL API key - Slack OAuth2 (bot token / channel permission) Notes - Edit the ticker in Get Stock Data. - Adjust N (days) and k (sigma multiplier) in Calculate Deviation. - Keep credentials out of HTTP nodes (use n8n Credentials).