πŸ“ˆ Detect stock price anomalies & send news alerts with Marketstack, HackerNews & DeepL

⚑ 759 views Β· πŸ“ˆ Crypto Trading & Stock Market

Description

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

Notes

πŸ”— Nodes Used

Slack, Hacker News, DeepL, Marketstack, Schedule Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup