Detect Stock Price Anomalies & Send News Alerts with Marketstack, HackerNews & DeepL
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
- Daily trigger at 09:00 JST
- Marketstack: fetch EOD data
- Code: compute mean/σ and classify (normal/high/low)
- IF: anomaly? → yes = news path / no = normal report
- Hacker News: search related items
- DeepL: translate EN → JA
- 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).
Related Templates
Automated SEO Performance Collection from Google Search Console to NocoDB
Problem Monitoring SEO performance from Google Search Console (GSC) manually is repetitive and prone to human error. Fo...
Automated Work Attendance with Location Triggers
his workflow automates time tracking using location-based triggers. How it works Trigger: It starts when you enter or e...
Lookup IP Geolocation Details with IP-API.com via Webhook
This n8n template enables you to instantly retrieve detailed geolocation information for any given IP address by simply ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments