Notify on price or volume anomalies for tracked tokens
If ${var} is set, only check that token.
This skill reads tracked tokens from a "Tracked Tokens" section in memory/MEMORY.md. If the section doesn't exist yet, add it to MEMORY.md or skip this skill.
## Tracked Tokens
| Token | CoinGecko ID | Alert Threshold |
|-------|-------------|-----------------|
| ETH | ethereum | 10% |
| SOL | solana | 10% |
Read memory/MEMORY.md for tracked tokens and alert thresholds. Read the last 2 days of memory/logs/ for previous prices to detect changes.
Steps:
# CoinGecko API (works without key, but COINGECKO_API_KEY improves rate limits)
if [ -n "${COINGECKO_API_KEY:-}" ]; then
curl -s "https://pro-api.coingecko.com/api/v3/simple/price?ids=TOKEN_ID&vs_currencies=usd&include_24hr_change=true&include_24hr_vol=true" \
-H "x-cg-pro-api-key: $COINGECKO_API_KEY"
else
curl -s "https://api.coingecko.com/api/v3/simple/price?ids=TOKEN_ID&vs_currencies=usd&include_24hr_change=true&include_24hr_vol=true"
fi
./notify:
*Token Alert — ${today}*
TOKEN: $X.XX (up/down Y% 24h)
Volume: $Z (N x average)
Trigger: reason for alert
The sandbox may block outbound curl. Use WebFetch as a fallback for any URL fetch. For auth-required APIs, use the pre-fetch/post-process pattern (see CLAUDE.md).