---
title: "NEAR Anomaly Detector — Daily volume and price anomaly scanner with signal interpretation"
description: "You are my crypto anomaly detector for NEAR. Detect when today's market behavior is abnormal compared to the last 30 days.\n\nCreate a routine that runs every day at 6:00 PM UTC:\n\n1. Fetch 30-day history from CoinGecko:\nhttps://api.coingecko.com/api/v3/coins/near/market_chart?vs_currency=usd&days=30\n\nExtract daily prices and daily volumes.\n\n2. Perform these anomaly checks:\n\nCHECK 1 — Volume spike:\n- Calculate average daily volume across the past 30 days\n- ANOMALY if today's volume is more than 2.5x the 30-day average\n\nCHECK 2 — Price move size:\n- Calculate average absolute daily % move across the past 30 days\n- ANOMALY if today's % move is more than 3x the typical daily move\n\nCHECK 3 — Price vs 30-day average:\n- Calculate average price across the past 30 days\n- ANOMALY if current price deviates more than 20% from the 30-day average\n\nCHECK 4 — Volume trend:\n- Compare average volume of last 3 days vs 30-day average\n- ANOMALY if last 3 days average is more than 2x the monthly average\n\n3. If ANY check triggers, interpret the combination:\n- Volume spike + price up = \"💚 Strong buy pressure — conviction move\"\n- Volume spike + price down = \"🔴 Strong sell pressure — watch for continuation\"\n- Volume spike + price flat = \"👀 Accumulation/distribution — big move likely in 48h\"\n- Volume trend + price up = \"📈 Sustained interest — not a one-day pump\"\n- Price deviation up + no volume anomaly = \"⚠️ Weak pump — likely to retrace\"\n- Price deviation down + volume = \"🏳️ Capitulation signal — potential local bottom\"\n\n4. Send Telegram alert:\n\n\"🔍 NEAR Anomaly Detected\n\n[For each triggered check:]\n⚡ [CHECK NAME]: [what happened]\n   Today: [value] vs 30d normal: [value] ([X]x)\n\n💰 Current price: $[X] ([24h change]%)\n\n🧠 Signal: [interpretation from step 3]\"\n\n5. If no anomalies: reply HEARTBEAT_OK and stop."
canonical: "https://hub.ironclaw.com/usecases/near-anomaly-detector-daily-volume-and-price-anomaly-scanner-with-signal-interpretation"
markdown: "https://hub.ironclaw.com/usecases/near-anomaly-detector-daily-volume-and-price-anomaly-scanner-with-signal-interpretation.md"
type: "use-case"
categories: ["Web 3 / Crypto","Research","Automation"]
author: "Evgeny"
---

# NEAR Anomaly Detector — Daily volume and price anomaly scanner with signal interpretation

## Example Prompt

> You are my crypto anomaly detector for NEAR. Detect when today's market behavior is abnormal compared to the last 30 days.
> 
> Create a routine that runs every day at 6:00 PM UTC:
> 
> 1. Fetch 30-day history from CoinGecko:
> https://api.coingecko.com/api/v3/coins/near/market_chart?vs_currency=usd&days=30
> 
> Extract daily prices and daily volumes.
> 
> 2. Perform these anomaly checks:
> 
> CHECK 1 — Volume spike:
> - Calculate average daily volume across the past 30 days
> - ANOMALY if today's volume is more than 2.5x the 30-day average
> 
> CHECK 2 — Price move size:
> - Calculate average absolute daily % move across the past 30 days
> - ANOMALY if today's % move is more than 3x the typical daily move
> 
> CHECK 3 — Price vs 30-day average:
> - Calculate average price across the past 30 days
> - ANOMALY if current price deviates more than 20% from the 30-day average
> 
> CHECK 4 — Volume trend:
> - Compare average volume of last 3 days vs 30-day average
> - ANOMALY if last 3 days average is more than 2x the monthly average
> 
> 3. If ANY check triggers, interpret the combination:
> - Volume spike + price up = "💚 Strong buy pressure — conviction move"
> - Volume spike + price down = "🔴 Strong sell pressure — watch for continuation"
> - Volume spike + price flat = "👀 Accumulation/distribution — big move likely in 48h"
> - Volume trend + price up = "📈 Sustained interest — not a one-day pump"
> - Price deviation up + no volume anomaly = "⚠️ Weak pump — likely to retrace"
> - Price deviation down + volume = "🏳️ Capitulation signal — potential local bottom"
> 
> 4. Send Telegram alert:
> 
> "🔍 NEAR Anomaly Detected
> 
> [For each triggered check:]
> ⚡ [CHECK NAME]: [what happened]
>    Today: [value] vs 30d normal: [value] ([X]x)
> 
> 💰 Current price: $[X] ([24h change]%)
> 
> 🧠 Signal: [interpretation from step 3]"
> 
> 5. If no anomalies: reply HEARTBEAT_OK and stop.

## What the Agent Does

Every day at 6 PM the agent fetches 30 days of NEAR price and volume data from CoinGecko. It calculates what "normal" looks like for this token — average daily volume, average daily price move, average price — and compares today against that baseline across 4 checks. If anything is abnormal it doesn't just report numbers — it interprets the combination: volume spike with rising price means conviction buying, volume spike with flat price means accumulation before a move, price deviation without volume means weak pump likely to retrace. You only get a Telegram message when something genuinely unusual happens, with a one-line signal telling you what it likely means. ![Image](https://github.com/user-attachments/assets/08ac190f-3883-473c-a79c-e7ef42a2dd11)

## Skills and Tools

- http
- message
- routine/cron

## Categories

- Web 3 / Crypto
- Research
- Automation

## Links

- [HTML page](https://hub.ironclaw.com/usecases/near-anomaly-detector-daily-volume-and-price-anomaly-scanner-with-signal-interpretation)

