Switch Gainium DCA bot risk mode with the fear and greed index and Telegram
UnknownWhat this workflow does
This workflow has 15 nodes and runs on a schedule (every day at 08:00) (plus 1 other trigger). Along the way it connects Telegram and Gainium (community). It also calls api.alternative.me over HTTP.
How it runs
Trigger: On a schedule (every day at 08:00) (plus 1 other trigger).
- Set Bot Configuration (Edit Fields (Set)): sets 6 fields: bot_id, bot_type, paper_trading…
- Alert Workflow Error (Telegram): uses Telegram
- Fetch Fear & Greed Index (HTTP Request): calls api.alternative.me
- Classify Market Regime (Code): runs custom JavaScript code
- Alert Index Fetch Failed (Telegram): uses Telegram
- If: checks a condition and branches into true / false
- Deactivate Bot Risk-Off (Gainium): stop
- If: checks a condition and branches into true / false
- Notify Risk-Off Mode (Telegram): uses Telegram
- Alert Bot Action Failed (Telegram): uses Telegram
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: api.alternative.me
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-gainium is verified or supports 3.0 (used in Deactivate Bot Risk-Off, Activate Bot Risk-On).
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Gainium
n8n-nodes-gainium.Gainium - Telegram
n8n-nodes-base.telegram - Error Trigger
n8n-nodes-base.errorTrigger
From the author
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…