Suivi des prix des cryptomonnaies

VérifiéPrudence

Suivi en temps réel des prix des cryptomonnaies avec données historiques et alertes. Infrastructure de données pour 10+ compétences dépendantes (portefeuille, impôts, DeFi, arbitrage).

Spar Skills Guide Bot
Data & IADébutant
10/03/2026
Claude CodeCursorCodex
#crypto#market-data#api-integration#historical-data#watchlist

Recommandé pour

Synthèse automatique

Récupère des prix de cryptomonnaies en temps réel et des données OHLCV historiques via un script Python, avec cache, multi-devises et watchlists.

Points forts

  • Couvre plus de 10 000 cryptomonnaies et 30+ devises fiat via un CLI simple
  • Cache configurable (TTL spot et historique) pour limiter les appels API
  • Export CSV/JSON et plages de dates personnalisées pour l'analyse
  • Sert de couche de données réutilisable pour d'autres skills crypto (portefeuille, fiscalité, DeFi)

Limites

  • Nécessite l'installation de requests, pandas et yfinance, et une clé CoinGecko optionnelle pour des quotas plus élevés
  • Dépend d'API tierces : les prix peuvent être périmés pendant la durée du cache
  • Les alertes sont évoquées dans la description mais aucune commande d'alerte n'est documentée
Quand l'utiliser

Pour obtenir un prix spot, un historique OHLCV ou scanner une watchlist avant une analyse de portefeuille ou DeFi.

Quand l'éviter

Pour passer des ordres, consulter un carnet d'ordres en profondeur ou trader sur un exchange, ce que ce skill ne fait pas.

Analyse de sécurité

Prudence
Score qualité82/100

No destructive, obfuscated, or exfiltrating instructions are present: commands are plain python invocations for fetching public market data, and any API key is scoped to the documented provider. Risk is limited to normal network access, dependency installation, and local file writes, so it lands at caution rather than risky. A reviewer should ideally inspect the referenced price_tracker.py before distribution since it is the component that actually executes.

Points d'attention
  • •Invokes python scripts via Bash(python:*) that perform outbound network requests to third-party APIs (CoinGecko, yfinance) — legitimate but requires network access and trusts external data sources.
  • •Instructs `pip install requests pandas yfinance` (and optional python-dotenv), which mutates the environment and pulls arbitrary package versions without pinning.
  • •Reads COINGECKO_API_KEY from environment/config; the key is only described as used for CoinGecko rate limits, but the actual script code is not included in SKILL.md, so key handling (logging, storage in cache/CSV) cannot be verified.
  • •Writes to {baseDir}/config/settings.yaml and a local ./data cache directory — expected file writes, scoped to the skill directory.
  • •Bundled script `scripts/price_tracker.py` and `references/errors.md` are referenced but not shown; actual behavior of the executable code is unaudited.
Comment cette analyse est faite

Exemples

Single price check
Check the current price of BTC and ETH in USD with 24h change.
Historical export
Fetch the last 90 days of OHLCV data for SOL and export it to CSV.
Watchlist scan
Show me the top 10 coins by market cap and the DeFi watchlist prices.

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: 2.0.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT

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

| Error | Cause | Solution | |-------|-------|----------| | Unknown symbol: XYZ | Invalid cryptocurrency ticker | Check spelling, use --list to search | | Rate limit exceeded | Too many API calls | Wait 60s, or use API key for higher limits | | Network error | No internet connection | Check connection, cached data will be used | | Cache stale | Cached data older than TTL | Data 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

| File | Purpose | |------|---------| | scripts/price_tracker.py | Main CLI entry point | | scripts/api_client.py | CoinGecko/yfinance abstraction | | scripts/cache_manager.py | Cache read/write/invalidation | | scripts/formatters.py | Output formatting | | config/settings.yaml | User configuration | | data/cache.json | Price cache (auto-generated) |

Resources

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

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/tracking-crypto-prices-mmk3nhto' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/tracking-crypto-prices-mmk3nhto/download' --output '.skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md.part' && mv '.skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md.part' '.skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Outils déclarés par l’auteur (à vérifier dans votre agent) : Read, Write, Edit, Grep, Glob, Bash(python:*)

Extrait original : 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

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md' && test -s '.skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/tracking-crypto-prices' && cp -R '.skill-downloads/tracking-crypto-prices-mmk3nhto' '.claude/skills/tracking-crypto-prices'

Cursor
test -f '.skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md' && test -s '.skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/tracking-crypto-prices' && cp -R '.skill-downloads/tracking-crypto-prices-mmk3nhto' '.cursor/skills/tracking-crypto-prices'

Codex
test -f '.skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md' && test -s '.skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/tracking-crypto-prices' && cp -R '.skill-downloads/tracking-crypto-prices-mmk3nhto' '.agents/skills/tracking-crypto-prices'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/tracking-crypto-prices-mmk3nhto'

openskills read 'tracking-crypto-prices-mmk3nhto'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/tracking-crypto-prices-mmk3nhto/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires