crypto-prices for Openclaw

A specialized Python-based price oracle for retrieving live cryptocurrency and precious metal data from multiple reliable providers.

ryandeangraves
v1.1.0
Feb 20, 2026
0
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install crypto-prices

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install crypto-prices using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is crypto-prices?

The crypto-prices skill is a robust data retrieval tool designed to serve as the definitive source of truth for market valuations within the Openclaw Skills framework. By connecting directly to premium financial APIs such as CoinGecko, Yahoo Finance, and DexScreener, it bypasses the inaccuracies of general web searches. This skill ensures that AI agents have access to high-fidelity data, including price changes over various timeframes (24h, 7d, 30d), market capitalization, and all-time highs for both digital assets and commodities like gold and silver.

Built for reliability, the skill incorporates an intelligent provider chain and a localized caching mechanism to handle rate limits and ensure uptime. It provides a standardized interface for single lookups or batch queries, making it an essential component for any financial analysis or reporting workflow powered by Openclaw Skills.

crypto-prices Use Cases

  • Real-time price lookups for major cryptocurrencies like Bitcoin (BTC) and Ethereum (ETH) during agent-led discussions.
  • Monitoring precious metal prices such as Gold (XAU) and Silver (XAG) for commodity market analysis.
  • Generating comprehensive portfolio reports using batch lookups for multiple assets simultaneously.
  • Verifying market trends with detailed percentage change data across daily, weekly, and monthly intervals.

How crypto-prices Works

  1. The skill initiates a query by first checking a local cache with a 60-second Time-To-Live (TTL) to deliver near-instant results for repeated requests.
  2. If the data is stale, the request enters a provider chain: Yahoo Finance is prioritized for metals, while CoinGecko is the primary source for crypto assets.
  3. A failover logic is employed where the skill attempts CoinGecko's full endpoint, followed by its simple endpoint, and finally DexScreener for decentralized exchange data if needed.
  4. The crypto_prices.py module processes the raw API responses, handles asset symbol resolution (e.g., mapping 'btc' to 'bitcoin'), and returns a structured data object.

crypto-prices Setup

To integrate this capability into your environment, ensure the crypto_prices.py script is present in your local directory. You can test the installation by running a single price lookup from your terminal.

cd ~/clawd && python3 -c "
from crypto_prices import fetch_live_price, format_price_text
data = fetch_live_price('bitcoin')
if data:
    print(format_price_text(data))
"

crypto-prices Data Schema & Taxonomy

The skill returns a structured dictionary containing the following metrics for each asset:

Key Description Example
price Current unit price in USD 65000.50
change_24h Percentage change in the last 24 hours +2.5
market_cap Total market capitalization 1200000000
ath All-time high price recorded 73000.00
source The specific provider that fulfilled the request CoinGecko
high_24h Highest price in the last 24 hours 66000.00

crypto-prices Advanced Features

  • Multi-provider failover chain ensuring data availability even during API rate-limiting events.
  • Built-in batch processing via fetch_multiple_prices to retrieve data for several assets in a single logic block.
  • Automated symbol resolution supporting common aliases for crypto and commodities (e.g., xag, sol, link).
  • Integrated 60-second caching system to optimize performance and minimize external API calls within Openclaw Skills.
  • Minimalist output mode for quick CLI-based status updates.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*