Skip to content
FlowHubFluxonLab
C
Telegramfree

Switch Gainium DCA bot risk mode with the fear and greed index and Telegram

by Gainiumadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeHTTP RequestHTTP RequestTelegramTelegram
Share Post Share
ScWhen Daily at 08:00When Daily at 0…SeSet Bot ConfigurationSet Bot Configu…HRFetch Fear & Greed IndexFetch Fear & Gr…CoClassify Market RegimeClassify Market…IfIf Extreme FearIfIf Extreme GreedGaDeactivate Bot Risk-OffDeactivate Bot …GaActivate Bot Risk-OnActivate Bot Ri…Notify Risk-Off ModeNotify Risk-Off…Notify Risk-On ModeNotify Risk-On …Notify Neutral ModeNotify Neutral …Alert Bot Action FailedAlert Bot Actio…Alert Index Fetch FailedAlert Index Fet…ErOn Global ErrorAlert Workflow ErrorAlert Workflow …12345678910111213
1/5
FLOWS
STEPS · 13
Runs on a schedule

Quick overview This workflow runs daily, fetches the Crypto Fear & Greed Index from alternative.me, and uses it to start or stop a Gainium Crypto Trading DCA bot as a simple risk-on/risk-off switch, sending the current regime and any errors to Telegram. How it works Runs every day at 08:00 on a schedule. Loads your bot settings, Fear/Greed thresholds, and Telegram chat ID from a single configuration step. Fetches the latest Crypto Fear & Greed Index value from the public alternative.me API. Classifies the 0–100 index value into risk-off, risk-on, or neutral based on your thresholds. Stops the Gainium bot when the value is at or below the fear threshold, starts the Gainium bot when it is at or above the greed threshold, and makes no change in the neutral band. Sends a Telegram message describing the index value, regime, and action taken, and posts Telegram alerts if the index fetch, bot action, or any workflow step fails. Setup Install the n8n-nodes-gainium community node and add a Gainium API credential with permission to start/stop the target bot.

Tags

n8nreference-onlytelegram
Connects
CCodeWHTTP RequesttelegramTelegram
CategoryTelegram
Triggermanual
Complexitycomplex
Nodes15
AddedJul 17, 2026