Skip to main content

Detect stock price anomalies & send news alerts with Marketstack, HackerNews & DeepL

Workflow preview

Workflow preview
100%
Detect stock price anomalies & send news alerts with Marketstack, HackerNews & DeepL preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 de...

Best for

  • Crypto Trading automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.marketstack, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.hackernews, n8n-nodes-base.deepl, n8n-nodes-base.slack, n8n-nodes-base.merge

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by noda.

Original n8n.io source

1.1 Workflow description

Title
Detect stock price anomalies & send news alerts with Marketstack, HackerNews & DeepL
Workflow name
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

  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).

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Daily Check

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Get Stock Data

Type / Role
n8n-nodes-base.marketstack - marketstack
Config choices
Version 1

Block 3 - Calculate Deviation

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Is Anomaly? (status != "normal")

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Get Related News

Type / Role
n8n-nodes-base.hackerNews - hackerNews
Config choices
Version 1

Block 6 - Translate News

Type / Role
n8n-nodes-base.deepL - deepL
Config choices
Version 1

Block 7 - Send Alert to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 8 - Send Normal Report to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 9 - Merge Original + Translated

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note10

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note11

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note12

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note13

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Add Symbol Field

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Detect stock price anomalies & send news alerts with Marketstack, HackerNews & DeepL
Complexity advanced
Nodes 26
Categories Crypto Trading, Multimodal AI
Author noda
Published 30 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10306/10306.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Detect stock price anomalies & send news alerts with Marketstack, HackerNews & DeepL do?

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 de...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, Multimodal AI use case.