A Clawdbot skill for fetching cryptocurrency token prices and generating beautiful candlestick charts.
- π Fast price lookup via CoinGecko and Hyperliquid APIs
- π Candlestick charts with dark theme (8x8 square format)
- β‘ Smart caching (5-minute TTL for price data)
- π― Multiple data sources (Hyperliquid preferred for supported tokens, CoinGecko fallback)
- π± Flexible timeframes (30m, 3h, 12h, 24h, 2d)
clawdhub install evgyur/crypto-price-
Clone or copy this skill to your Clawdbot workspace:
cd ~/.clawdbot/workspace/skills git clone https://github.com/evgyur/crypto-price.git
-
Ensure Python 3 is installed:
python3 --version
-
Install required Python packages:
pip install matplotlib
-
Verify installation:
clawdbot skills info crypto-price
The skill is automatically triggered when users ask for:
- Token prices
- Crypto charts
- Cryptocurrency market data
python3 scripts/get_price_chart.py <SYMBOL> [duration]Examples:
# Get HYPE price and 24h chart
python3 scripts/get_price_chart.py HYPE
# Get Bitcoin price and 12h chart
python3 scripts/get_price_chart.py BTC 12h
# Get Ethereum price and 3h chart
python3 scripts/get_price_chart.py ETH 3h
# Get Solana price and 30m chart
python3 scripts/get_price_chart.py SOL 30m
# Get Cardano price and 2d chart
python3 scripts/get_price_chart.py ADA 2d30m- 30 minutes3h- 3 hours12h- 12 hours24h- 24 hours (default)2d- 2 days
The script returns JSON with the following structure:
{
"symbol": "BTC",
"token_id": "bitcoin",
"source": "coingecko",
"currency": "USD",
"hours": 24.0,
"duration_label": "24h",
"candle_minutes": 15,
"price": 89946.00,
"price_usdt": 89946.00,
"change_period": -54.00,
"change_period_percent": -0.06,
"chart_path": "/tmp/crypto_chart_BTC_1769142011.png",
"text": "BTC: $89946.00 USD (-0.06% over 24h)",
"text_plain": "BTC: $89946.00 USD (-0.06% over 24h)"
}- Type: Candlestick (OHLC)
- Size: 8x8 inches (square format)
- Theme: Dark (#0f141c background)
- Colors:
- Green (#26a69a) for bullish candles
- Red (#ef5350) for bearish candles
- Output: PNG files saved to
/tmp/crypto_chart_{SYMBOL}_{timestamp}.png
-
Hyperliquid API (
https://api.hyperliquid.xyz/info)- Preferred for HYPE and other Hyperliquid tokens
- Provides real-time price data and candlestick data
-
CoinGecko API (
https://api.coingecko.com/api/v3/)- Fallback for all other tokens
- Supports price lookup, market charts, and OHLC data
Price data is cached for 300 seconds (5 minutes) to reduce API calls:
- Cache files:
/tmp/crypto_price_*.json - Automatic cache invalidation after TTL
Works with any token supported by CoinGecko or Hyperliquid:
- Popular tokens: BTC, ETH, SOL, ADA, DOT, LINK, MATIC, AVAX, ATOM, ALGO, XLM, XRP, LTC, BCH, ETC, TRX, XMR, DASH, ZEC, EOS, BNB, DOGE, SHIB, UNI, AAVE
- Hyperliquid tokens: HYPE, and other tokens listed on Hyperliquid
- Python 3.6+
matplotliblibrary- Internet connection for API calls
pip install matplotlibMIT
Created for Clawdbot community. Originally part of Clawdbot bundled skills, restored and enhanced.
Contributions welcome! Please feel free to submit a Pull Request.
This skill works with slash command skills:
/hype- HYPE token price and chart/token <SYMBOL>- Any token price and chart/btc,/eth,/sol, etc. - Popular tokens
- Initial release
- Support for CoinGecko and Hyperliquid APIs
- Candlestick chart generation
- Smart caching system
- Multiple timeframe support