Skip to content
tracking-crypto-prices logo

Tracking Crypto Prices

tracking-crypto-prices

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 "che...

SKILL.md

Full skill instructions

Tracking Crypto Prices

Overview

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

Key Capabilities:

  • Real-time prices for 10,000+ cryptocurrencies
  • Historical OHLCV data (1 day to all-time)
  • Multi-currency support (USD, EUR, GBP, 30+ currencies)
  • Intelligent caching to minimize API calls
  • Predefined and custom watchlists
  • Export to CSV/​JSON for analysis

Dependent Skills: This skill provides price data to: market-movers-scanner, crypto-portfolio-tracker, crypto-tax-calculator, defi-yield-optimizer, liquidity-pool-analyzer, staking-rewards-optimizer, crypto-derivatives-tracker, dex-aggregator-router, options-flow-analyzer, arbitrage-opportunity-finder.

Prerequisites

Install required dependencies:

pip install requests pandas yfinance

Optional for advanced features:

pip install python-dotenv  # For API key management

API Setup (optional, for higher rate limits):

  1. Get free API key from https://www.coingecko.com/en/api
  2. Add to {baseDir}/​config/​settings.yaml or set environment variable COINGECKO_API_KEY

Instructions

Step 1: Quick Price Check

Get current price for any cryptocurrency:

python {baseDir}/​scripts/​price_tracker.py --symbol BTC

Check multiple assets:

python {baseDir}/​scripts/​price_tracker.py --symbols BTC,ETH,SOL

Step 2: Use Watchlists

Scan predefined watchlists:

# Top 10 by market cap
python {baseDir}/​scripts/​price_tracker.py --watchlist top10

# DeFi tokens
python {baseDir}/​scripts/​price_tracker.py --watchlist defi

# Layer 2 tokens
python {baseDir}/​scripts/​price_tracker.py --watchlist layer2

Available watchlists: top10, defi, layer2, stablecoins, memecoins

Step 3: Fetch Historical Data

Get OHLCV (Open, High, Low, Close, Volume) history:

# Last 30 days
python {baseDir}/​scripts/​price_tracker.py --symbol BTC --period 30d

# Last 90 days with CSV export
python {baseDir}/​scripts/​price_tracker.py --symbol BTC --period 90d --output csv

# Custom date range
python {baseDir}/​scripts/​price_tracker.py --symbol ETH --start 2024-01-01 --end 2024-12-31

Step 4: Configure Settings

Edit {baseDir}/​config/​settings.yaml to customize:

cache:
  spot_ttl: 30          # Seconds to cache spot prices
  historical_ttl: 3600  # Seconds to cache historical data

currency:
  default: usd          # Default fiat currency

watchlists:
  custom:               # Add your own watchlist
    - BTC
    - ETH
    - SOL

Output

Price Table (Default)

================================================================================
  CRYPTO PRICES                                           Updated: [timestamp]
================================================================================

  Symbol     Price (USD)      24h Change     Volume (24h)      Market Cap
--------------------------------------------------------------------------------
  BTC       $97,234.56          +2.34%      $28.5B            $1.92T
  ETH        $3,456.78          +1.87%      $12.3B            $415.2B
  SOL          $142.34          +5.12%       $2.1B             $61.4B
--------------------------------------------------------------------------------

  Total 24h Change: +2.44% (weighted)

================================================================================

JSON Output (--format json)

{
  "prices": [
    {
      "symbol": "BTC",
      "name": "Bitcoin",
      "price": 97234.56,
      "currency": "USD",
      "change_24h": 2.34,
      "volume_24h": 28500000000,
      "market_cap": 1920000000000,
      "timestamp": "[timestamp]",
      "source": "coingecko"
    }
  ],
  "meta": {
    "count": 1,
    "currency": "USD",
    "cached": false
  }
}

Historical CSV Export

date,open,high,low,close,volume
[date],95000.00,96500.00,94200.00,96100.00,25000000000
[date],96100.00,97800.00,95800.00,97500.00,27000000000

Configuration

Edit {baseDir}/​config/​settings.yaml:

# API Configuration
api:
  coingecko:
    api_key: ${COINGECKO_API_KEY}  # Optional, from env
    use_pro: false
  yfinance:
    enabled: true                   # Fallback source

# Cache Configuration
cache:
  enabled: true
  spot_ttl: 30                      # Spot price TTL (seconds)
  historical_ttl: 3600              # Historical data TTL (seconds)
  directory: ./​data

# Display Configuration
currency:
  default: usd
  supported:
    - usd
    - eur
    - gbp
    - jpy
    - cad
    - aud

# Predefined Watchlists
watchlists:
  top10:
    - bitcoin
    - ethereum
    - tether
    - binancecoin
    - solana
    - ripple
    - cardano
    - avalanche-2
    - dogecoin
    - polkadot

  defi:
    - uniswap
    - aave
    - chainlink
    - maker
    - compound-governance-token
    - curve-dao-token
    - sushi

  layer2:
    - matic-network
    - arbitrum
    - optimism
    - immutable-x

Error Handling

See {baseDir}/​references/​errors.md for comprehensive error handling.

Common Errors

ErrorCauseSolution
Unknown symbol: XYZInvalid cryptocurrency tickerCheck spelling, use --list to search
Rate limit exceededToo many API callsWait 60s, or use API key for higher limits
Network errorNo internet connectionCheck connection, cached data will be used
Cache staleCached data older than TTLData still shown with warning, will refresh

Rate Limit Handling

The skill automatically:

  1. Uses cached data when available
  2. Applies exponential backoff on rate limits
  3. Falls back to yfinance if CoinGecko fails
  4. Shows stale cache data with warning as last resort

Examples

See {baseDir}/​references/​examples.md for detailed examples including:

  • Multi-timeframe analysis
  • Portfolio value calculation
  • Price alert setup
  • Integration with other skills

Example 1: Quick Price Check

python {baseDir}/​scripts/​price_tracker.py --symbol BTC

Output:

BTC (Bitcoin)
$97,234.56 USD
+2.34% (24h) | Vol: $28.5B | MCap: $1.92T

Example 2: Watchlist Scan

python {baseDir}/​scripts/​price_tracker.py --watchlist top10

Example 3: Historical Export

python {baseDir}/​scripts/​price_tracker.py --symbol ETH --period 90d --output csv

Creates: {baseDir}/​data/​ETH_90d_[date].csv

Integration with Other Skills

This skill provides the price data foundation for other crypto skills.

Direct Import (recommended for Python skills):

from price_tracker import get_current_prices, get_historical_prices

# Get prices for portfolio valuation
prices = get_current_prices(["BTC", "ETH", "SOL"])

CLI Subprocess (for non-Python or isolation):

PRICES=$(python {baseDir}/​scripts/​price_tracker.py --symbols BTC,ETH --format json)

Shared Cache (efficient for batch): Multiple skills can read from {baseDir}/​data/​cache.json to avoid redundant API calls.

Files

FilePurpose
scripts/​price_tracker.pyMain CLI entry point
scripts/​api_client.pyCoinGecko/​yfinance abstraction
scripts/​cache_manager.pyCache read/​write/​invalidation
scripts/​formatters.pyOutput formatting
config/​settings.yamlUser configuration
data/​cache.jsonPrice cache (auto-generated)

Resources

  • CoinGecko API - Primary data source
  • yfinance - Fallback for historical data
  • PRD.md - Product requirements
  • ARD.md - Architecture documentation

More skills from Dicklesworthstone

environment-setup-guide logo
Dicklesworthstone/pi_agent_rust

environment-setup-guide

Guide developers through setting up development environments with proper tools, dependencies, and configurations

1.8K 0
View
exa-policy-guardrails logo
Dicklesworthstone/pi_agent_rust

exa-policy-guardrails

Implement Exa lint rules, policy enforcement, and automated guardrails. Use when setting up code quality rules for Exa integrations, implementing pre-commit hooks, or configuring CI policy checks for Exa best practices. Trigger with phrases like "exa policy", "exa lint", "exa guardrails", "exa be...

1.8K 0
View
documenso-ci-integration logo
Dicklesworthstone/pi_agent_rust

documenso-ci-integration

Configure CI/CD pipelines for Documenso integrations. Use when setting up automated testing, deployment pipelines, or continuous integration for Documenso projects. Trigger with phrases like "documenso CI", "documenso GitHub Actions", "documenso pipeline", "documenso automated testing".

1.8K 0
View
openrouter-model-availability logo
Dicklesworthstone/pi_agent_rust

openrouter-model-availability

Build check model availability and implement fallback chains. Use when building resilient systems or handling model outages. Trigger with phrases like 'openrouter availability', 'openrouter fallback', 'openrouter model down', 'openrouter health check'.

1.8K 0
View
langfuse-enterprise-rbac logo
Dicklesworthstone/pi_agent_rust

langfuse-enterprise-rbac

Configure Langfuse enterprise organization management and access control. Use when implementing team access controls, configuring organization settings, or setting up role-based permissions for Langfuse projects. Trigger with phrases like "langfuse RBAC", "langfuse teams", "langfuse organization"...

1.8K 0
View
cursor-compliance-audit logo
Dicklesworthstone/pi_agent_rust

cursor-compliance-audit

Execute compliance and security auditing for Cursor usage. Triggers on "cursor compliance", "cursor audit", "cursor security review", "cursor soc2", "cursor gdpr". Use when analyzing or auditing cursor compliance audit. Trigger with phrases like "cursor compliance audit", "cursor audit", "cursor".

1.8K 0
View
apollo-ci-integration logo
Dicklesworthstone/pi_agent_rust

apollo-ci-integration

Configure Apollo.io CI/CD integration. Use when setting up automated testing, continuous integration, or deployment pipelines for Apollo integrations. Trigger with phrases like "apollo ci", "apollo github actions", "apollo pipeline", "apollo ci/cd", "apollo automated tests".

1.8K 0
View
python-script logo
Dicklesworthstone/pi_agent_rust

python-script

Create robust Python automation with full logging and safety checks. Use when tasks need complex data processing, authenticated API work, conditional file operations, or error handling beyond simple shell commands.

1.8K 0
View
posthog-multi-env-setup logo
Dicklesworthstone/pi_agent_rust

posthog-multi-env-setup

Configure PostHog across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment secrets, or implementing environment-specific PostHog configurations. Trigger with phrases like "posthog environments", "posthog staging", "po...

1.8K 0
View
ai-agents-architect logo
Dicklesworthstone/pi_agent_rust

ai-agents-architect

Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration. Use when: build agent, AI agent, autonomous agent, tool use, function calling.

1.8K 0
View
insecure-deserialization-checker logo
Dicklesworthstone/pi_agent_rust

insecure-deserialization-checker

Validate insecure deserialization checker operations. Auto-activating skill for Security Fundamentals. Triggers on: insecure deserialization checker, insecure deserialization checker Part of the Security Fundamentals skill category. Use when working with insecure deserialization checker functiona...

1.8K 0
View
path-traversal-finder logo
Dicklesworthstone/pi_agent_rust

path-traversal-finder

Manage path traversal finder operations. Auto-activating skill for Security Fundamentals. Triggers on: path traversal finder, path traversal finder Part of the Security Fundamentals skill category. Use when working with path traversal finder functionality. Trigger with phrases like "path traversa...

1.8K 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View