Skip to main content

Send weekly Taiwan foreign flow reports to Telegram using TWSE T86

Workflow preview

Workflow preview
100%
Send weekly Taiwan foreign flow reports to Telegram using TWSE T86 preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow runs every Monday morning and pulls last week’s TWSE T86 institutional trading data, aggregates foreign investor net flows into weekly leaders and streaks, and sends a ...

Best for

  • Crypto Trading automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.telegram

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Send weekly Taiwan foreign flow reports to Telegram using TWSE T86
Workflow name
Send weekly Taiwan foreign flow reports to Telegram using TWSE T86

Quick overview

This workflow runs every Monday morning and pulls last week’s TWSE T86 institutional trading data, aggregates foreign investor net flows into weekly leaders and streaks, and sends a plain-text report to a Telegram chat.

How it works

  1. Runs every Monday at 08:00 Asia/Taipei on a schedule.
  2. Loads configuration values such as the target Telegram chat ID, list sizes (Top N), streak threshold, and a holiday skip list.
  3. Calculates last Monday to last Friday dates and removes any days listed as market holidays.
  4. Requests the TWSE public T86 institutional trading report for each remaining trading date and ignores days where TWSE returns no data.
  5. Aggregates the week’s data to compute foreign investor weekly net-buy and net-sell leaders plus consecutive buy/sell streak lists based on the configured threshold.
  6. Formats the results into a plain-text Telegram message with data source notes and a risk disclaimer, then sends it via your Telegram bot.

Setup

  1. Create a Telegram bot with BotFather and add the bot token to an n8n Telegram credential.
  2. Set your target telegramChatId (and optionally topN, consecutiveThreshold, and holidaySkipList) in the configuration step.
  3. Confirm the schedule time zone (Asia/Taipei) and weekly cron timing, run it once with Execute to confirm the Telegram message arrives, then activate the workflow.

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 - Sticky Note

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

Block 2 - Sticky Note1

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

Block 3 - Sticky Note2

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

Block 4 - Sticky Note3

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

Block 5 - Sticky Note4

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

Block 6 - Weekly Report Trigger

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

Block 7 - Set Report Config Parameters

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

Block 8 - Calculate Trading Days

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

Block 9 - Fetch TWSE Daily Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Aggregate Weekly Foreign Net

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

Block 11 - Format Telegram Message

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

Block 12 - Send Report to Telegram

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

3. Summary Table

Workflow Send weekly Taiwan foreign flow reports to Telegram using TWSE T86
Complexity intermediate
Nodes 12
Categories Crypto Trading
Author floviq
Published 03 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16101/16101.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 Send weekly Taiwan foreign flow reports to Telegram using TWSE T86 do?

Quick overview This workflow runs every Monday morning and pulls last week’s TWSE T86 institutional trading data, aggregates foreign investor net flows into weekly leaders and streaks, and sends a ...

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 use case.