Skip to main content
skill CX Codex

tracking-crypto-prices — Claude Code skill: prices and setup

This skill fetches current and historical cryptocurrency prices, scans named watchlists, and returns table, JSON, or CSV output. Use it for quotes and price history.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add jeremylongshore/tons-of-skills-marketplace --skill tracking-crypto-prices -a claude-code
Open on GitHub

What tracking-crypto-prices does

The skill runs the Python script price_tracker.py to look up one symbol, several symbols, or a predefined watchlist. Available groups include top10, defi, layer2, stablecoins, and memecoins. Historical requests accept a period or custom dates. Results can be returned as a table or JSON, while OHLCV history can be exported to ${CLAUDE_SKILL_DIR}/data/ as CSV.

Install requests, pandas, and yfinance before running the script. Without those packages, it will not start. python-dotenv can be added for API key handling, and a CoinGecko key can be stored in ${CLAUDE_SKILL_DIR}/config/settings.yaml or exposed through COINGECKO_API_KEY. The skill checks cached data first, retries with backoff, and can fall back to yfinance when the primary request fails.

What it helps with

  • check the live price of BTC or several coins
  • scan a predefined top10 or defi watchlist
  • retrieve a price series for a period or date range
  • export historical OHLCV data as CSV
  • return market data in machine-readable JSON

Example prompts for the agent

  • Check the current BTC price with price_tracker.py.
  • Scan the defi watchlist and return the result as JSON.
  • Export ETH price history for 90d to CSV.

How to install tracking-crypto-prices

1Skills CLI (Vercel)

npx skills add jeremylongshore/tons-of-skills-marketplace --skill tracking-crypto-prices -a claude-code

2Manually: put the files in place

~/.claude/skills/tracking-crypto-prices/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/tracking-crypto-prices/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about tracking-crypto-prices

How do I install tracking-crypto-prices in Claude Code?

Run npx skills add jeremylongshore/tons-of-skills-marketplace --skill tracking-crypto-prices -a claude-code, then use ~/.claude/skills/tracking-crypto-prices/SKILL.md.

What does tracking-crypto-prices do?

It fetches current or historical cryptocurrency prices, handles symbols and named watchlists, and formats the result as a table, JSON, or CSV export.

What does tracking-crypto-prices require?

Install requests, pandas, and yfinance first. A CoinGecko API key is optional and can raise rate limits when placed in COINGECKO_API_KEY or settings.yaml.

Source text

SKILL.md · MIT
---
name: tracking-crypto-prices
description: 'Track real-time cryptocurrency prices across exchanges with historical
  data and alerts.

  Provides price data infrastructure for dependent skills (portfolio, tax, DeFi, arbitrage).

  Use when checking crypto prices, monitoring markets, or fetching historical price
  data.

  Trigger with phrases like "check price", "BTC price", "crypto prices", "price history",

  "get quote for", "what''s ETH trading at", "show me top coins", or "track my watchlist".

  '
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(python:*)
version: 1.28.0
author: Jeremy Longshore <[email protected]>
license: MIT
tags:
- crypto
- monitoring
- tracking-crypto
compatibility: Designed for Claude Code
---
# Tracking Crypto Prices

## Contents

[Overview](#overview) | [Prerequisites](#prerequisites) | [Instructions](#instructions) | [Output](#output) | [Error Handling](#error-handling) | [Examples](#examples) | [Resources](#resources)

## Overview

Foundation skill providing real-time and historical cryptocurrency price data for 10,000+ coins. This is the data layer for the crypto plugin ecosystem -- 10+ other skills depend on it for price information.

## Prerequisites

1. Install dependencies: `pip install requests pandas yfinance`
2. Optional: `pip install python-dotenv` for API key management
3. Optional: Get free API key from https://www.coingecko.com/en/api for higher rate limits
4. Add API key to `${CLAUDE_SKILL_DIR}/config/settings.yaml` or set `COINGECKO_API_KEY` env var

## Instructions

1. Check current prices for one or more symbols:

   ```bash
   python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --symbol BTC
   python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --symbols BTC,ETH,SOL
   ```

2. Use watchlists to scan predefined groups (available: `top10`, `defi`, `layer2`, `stablecoins`, `memecoins`):

   ```bash
   python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --watchlist top10     # Top 10 by market cap
   python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --watchlist defi      # DeFi tokens
   python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --watchlist layer2    # Layer 2 tokens
   ```

3. Fetch historical data by period or custom date range:

   ```bash
   python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --symbol BTC --period 30d
   python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --symbol BTC --period 90d --output csv
   python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --symbol ETH --start 2024-01-01 --end 2024-12-31  # 2024 full year
   ```

4. Configure settings by editing `${CLAUDE_SKILL_DIR}/config/settings.yaml` to customize cache TTLs, default currency, and custom watchlists. See `references/implementation.md` for the full configuration reference.

## Output

- **Table** (default): Symbol, price, 24h change, volume, market cap in formatted columns
- **JSON** (`--format json`): Machine-readable with prices array and metadata
- **CSV** (`--output csv`): OHLCV historical data export to `${CLAUDE_SKILL_DIR}/data/`

See [`references/implementation.md`](references/implementation.md) for detailed output format examples.

## Error Handling

| Error | Cause | Solution |
|-------|-------|----------|
| `Unknown symbol: XYZ` | Invalid ticker | Check spelling, use `--list` to search |
| `Rate limit exceeded` | Too many API calls | Wait 60s, or add API key for higher limits |
| `Network error` | No internet | Check connection; cached data used automatically |
| `Cache stale` | Data older than TTL | Shown with warning, refreshes on next call |

The skill auto-manages rate limits: cache first, exponential backoff, yfinance fallback, stale cache as last resort.

## Examples

**Quick price check:**

```bash
python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --symbol BTC
# Output: BTC (Bitcoin) $97,234.56 USD +2.34% (24h) | Vol: $28.5B | MCap: $1.92T
```

**Watchlist scan:**

```bash
python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --watchlist top10
```

**Historical export:**

```bash
python ${CLAUDE_SKILL_DIR}/scripts/price_tracker.py --symbol ETH --period 90d --output csv
# Creates: ${CLAUDE_SKILL_DIR}/data/ETH_90d_[date].csv
```

## Resources

- [`references/implementation.md`](references/implementation.md) - Output formats, full config, integration guide, file map
- [CoinGecko API](https://www.coingecko.com/en/api) - Primary data source
- [yfinance](https://github.com/ranaroussi/yfinance) - Fallback for historical data

© Jeremy Longshore · MIT · jeremylongshore/tons-of-skills-marketplace

Similar skills

Everything for Finance and business →

From the same set6

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor