İçeriğe geç
TakoAPI
Becerilere dön

crypto-prices

ryandeangraves tarafından

Web & Frontend Development
527İndirme sayıları clawskills.sh tarafından bildirilir
1Görüntülenmeler
0 beğeniBu beceriyi beğenmek için giriş yapın
—Henüz değerlendirilmedi
Puanınız

Özet

Fetch live cryptocurrency and commodity prices using the local `crypto_prices.py` module.

Açıklama

Bu Beceri Ne Yapar

Fetches live prices for cryptocurrencies and commodities using a local Python module with a multi-provider fallback chain. Supports assets like Bitcoin, Ethereum, gold, and silver with 60-second caching. Returns price, 24h/7d/30d change, market cap, volume, and ATH data.

Using a cached provider chain instead of web search avoids stale article snippets and eliminates the risk of hallucinated prices.

Ne Zaman Kullanılır

  • Checking BTC price before placing a trade
  • Pulling gold and silver spot prices for a morning report
  • Batch fetching multiple crypto prices for a portfolio summary
  • Getting 24h and 7d change data for market analysis
  • Querying ETH price with automatic DEX failover when CoinGecko is rate-limited

Örnek İş Akışı

GİRİŞ

User asks: What are the current prices for Bitcoin, Ethereum, and gold?

AJAN
  1. 1

    Calls fetch_multiple_prices(['bitcoin', 'ethereum', 'gold']) from the crypto_prices module

  2. 2

    Checks the 60-second cache for each asset before making network requests

  3. 3

    Queries Yahoo Finance for gold and CoinGecko for BTC and ETH

  4. 4

    Falls back to DexScreener or CoinGecko simple endpoint if the primary source fails

  5. 5

    Formats results using format_prices_block() and returns the output

ÇIKIŞ

BTC: $97,450.00 (+2.34% 24h) | ETH: $3,210.00 (-0.87% 24h) | GOLD: $2,345.60 (+0.12% 24h)

Kurulum

clawhub install ryandeangraves/crypto-prices

CLI komutunu çalıştırın ya da istemi Claude Code, Cursor, Codex veya kullandığınız kodlama ajanına yapıştırın.

Bağlantılar