Skip to main content

Analyze crypto market with CoinGecko: volatility metrics & investment signals

Workflow preview

Workflow preview
100%
Analyze crypto market with CoinGecko: volatility metrics & investment signals preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This n8n template lets you automatically pull market data for the cryptocurrencies from CoinGecko every hour, calculate custom volatility and market health metrics, classify each coin’s price actio...

Best for

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

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.function, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.noop, n8n-nodes-base.splitinbatches, n8n-nodes-base.switch, n8n-nodes-base.splitout

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Analyze crypto market with CoinGecko: volatility metrics & investment signals
Workflow name
Analyze crypto market with CoinGecko: volatility metrics & investment signals

This n8n template lets you automatically pull market data for the cryptocurrencies from CoinGecko every hour, calculate custom volatility and market-health metrics, classify each coin’s price action into buy/sell/hold/neutral signals with risk ratings, and expose both individual analyses and a portfolio summary via a webhook. It’s perfect for crypto analysts, DeFi builders, or portfolio managers who want on-demand insights without writing a single line of backend code.


🔧 How it works

  • Schedule Trigger fires every hour (or interval you choose).

  • HTTP Request (CoinGecko) fetches the top 10 coins by market cap, including 24 h, 7 d, and 30 d price change percentages.

  • Split In Batches ensures each coin is processed sequentially.

  • Function (Calculate Market Metrics) computes:

    • A weighted volatility score
    • Market-cap-to-volume ratio
    • Price-to-ATH ratio
    • Composite market score
  • IF & Switch nodes categorize each coin’s 24 h price action (up >5%, down >5%, high volatility, or stable) and append:

    • signal (BUY/SELL/HOLD/NEUTRAL)
    • riskRating (High/Medium/Low/Unknown)
    • recommendation & investmentStrategy guidance
  • NoOp & Merge nodes consolidate each branch back into a single data stream.

  • Function (Generate Portfolio Summary) aggregates all analyses into:

    • A Markdown portfolioSummary
    • Counts of buy/sell/hold/neutral signals
    • Risk distribution
  • Webhook Response returns the full JSON payload with individual analyses and the summary for downstream consumers.


👤 Who is it for?

This workflow is ideal for:

  • Crypto researchers and analysts who need scheduled market insights

  • DeFi and trading bot developers looking to automate signal generation

  • Portfolio managers seeking a no-code overview of top assets

  • Automation engineers exploring API integration and data enrichment


📑 Data Structure

When you trigger the webhook, you’ll receive a JSON object containing:

  • individualAnalyses: Array of { coin, symbol, currentPrice, priceChanges, marketMetrics, signal, riskRating, recommendation }

  • portfolioSummary: Markdown report summarizing signals, risk distribution, and top opportunity

  • marketSignals: Counts of each signal type

  • riskDistribution: Counts of each risk rating

  • timestamp: ISO string of analysis time


⚙️ Setup Instructions

  • Import: In n8n Editor → click “Import from JSON” → paste this workflow JSON.

  • Configure Schedule: Double-click the Schedule Trigger → set your desired interval (default: every hour).

  • Webhook Path: Open the Webhook node → choose a unique path (e.g., /crypto‐analysis) and “POST”.

  • Activate: Save and activate the workflow.

  • Test:

    • Open the webhook url to other tab or use cURL
curl -X POST https://<your-n8n-host>/webhook/<path>

You’ll get back a JSON payload with both portfolioSummary and individualAnalyses.


📝 Tips

  • Rate-Limit Handling: If CoinGecko returns 429, insert a Delay node (e.g., 500 ms) after the HTTP Request.
  • Batch Size: Default is 1 coin at a time; you can bump it to parallelize.
  • Customization: Tweak volatility weightings or add new metrics directly in the “Calculate Market Metrics” Function node.
  • Extension: Swap CoinGecko for another API by updating the HTTP Request URL and field mappings.

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 - Fetch Crypto Data

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

Block 2 - Calculate Market Metrics

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

Block 3 - IF 24h Price Up >5%

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

Block 4 - IF 24h Price Down >5%

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

Block 5 - IF High Volatility

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

Block 6 - Set Uptrend Data

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

Block 7 - Set Downtrend Data

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

Block 8 - Set Volatility Data

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

Block 9 - Set Stable Data

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

Block 10 - Merge Results

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

Block 11 - Set High Risk Rating

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

Block 12 - Set Medium Risk Rating

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

Block 13 - Set Low Risk Rating

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

Block 14 - Set Default Risk Rating

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

Block 15 - Final Merge

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

Block 16 - Format Final Analysis

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

Block 17 - Collect All Analyses

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

Block 18 - Generate Portfolio Summary

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

Block 19 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 20 - Switch by Market Score

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

Block 21 - Split Out

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

Block 22 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 23 - Webhook

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

Block 24 - Sticky Note

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

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

3. Summary Table

Workflow Analyze crypto market with CoinGecko: volatility metrics & investment signals
Complexity advanced
Nodes 26
Categories Crypto Trading
Author ist00dent
Published 16 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4115/4115.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 Analyze crypto market with CoinGecko: volatility metrics & investment signals do?

This n8n template lets you automatically pull market data for the cryptocurrencies from CoinGecko every hour, calculate custom volatility and market health metrics, classify each coin’s price actio...

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.