# crypto-price > Get cryptocurrency token price and generate candlestick charts via CoinGecko API or Hyperliquid API. Use when user asks for token price, crypto price, price chart, or cryptocurrency market data. - Author: evgyur - Repository: evgyur/crypto-price - Version: 20260123085545 - Stars: 2 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/evgyur/crypto-price - Web: https://mule.run/skillshub/@@evgyur/crypto-price~crypto-price:20260123085545 --- --- name: crypto-price description: Get cryptocurrency token price and generate candlestick charts via CoinGecko API or Hyperliquid API. Use when user asks for token price, crypto price, price chart, or cryptocurrency market data. metadata: {"clawdbot":{"emoji":"📈","requires":{"bins":["python3"]}}} --- # Crypto Price & Chart Get cryptocurrency token price and generate candlestick charts. ## Usage Execute the script with token symbol and optional duration: ```bash python3 {baseDir}/scripts/get_price_chart.py [duration] ``` **Examples:** - `python3 {baseDir}/scripts/get_price_chart.py HYPE` - `python3 {baseDir}/scripts/get_price_chart.py HYPE 12h` - `python3 {baseDir}/scripts/get_price_chart.py BTC 3h` - `python3 {baseDir}/scripts/get_price_chart.py ETH 30m` - `python3 {baseDir}/scripts/get_price_chart.py SOL 2d` **Duration format:** `30m`, `3h`, `12h`, `24h` (default), `2d` ## Output Returns JSON with: - `price` - Current price in USD/USDT - `change_period_percent` - Price change percentage for the period - `chart_path` - Path to generated PNG chart (if available) - `text_plain` - Formatted text description If `chart_path` is present, attach the PNG along with the text. Return text exactly as `text_plain` with no extra formatting. ## Chart Details - Format: Candlestick chart (8x8 square) - Theme: Dark (#0f141c background) - Output: `/tmp/crypto_chart_{SYMBOL}_{timestamp}.png` ## Data Sources 1. **Hyperliquid API** - For HYPE and other Hyperliquid tokens (preferred) 2. **CoinGecko API** - Fallback for other tokens Price data cached for 300 seconds (5 minutes) in `/tmp/crypto_price_*.json`.