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...
Template notes
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.
---