Install
openclaw skills install crypto-chartGet 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.
openclaw skills install crypto-chartGet cryptocurrency token price and generate candlestick charts.
Execute the script with token symbol and optional duration:
python3 {baseDir}/scripts/get_price_chart.py <SYMBOL> [duration]
Examples:
python3 {baseDir}/scripts/get_price_chart.py HYPEpython3 {baseDir}/scripts/get_price_chart.py HYPE 12hpython3 {baseDir}/scripts/get_price_chart.py BTC 3hpython3 {baseDir}/scripts/get_price_chart.py ETH 30mpython3 {baseDir}/scripts/get_price_chart.py SOL 2dDuration format: 30m, 3h, 12h, 24h (default), 2d
Returns JSON with:
price - Current price in USD/USDTchange_period_percent - Price change percentage for the periodchart_path - Path to generated PNG chart (if available)text_plain - Formatted text descriptionChart as image (always when chart_path is present):
In OpenClaw, send the image via message tool (not plain text placeholder):
/tmp to workspace: cp <chart_path> ./crypto_chart_<SYMBOL>_<duration>.pngmessage(action="send", filePath="./crypto_chart_<SYMBOL>_<duration>.png", message="<text_plain>")rm ./crypto_chart_<SYMBOL>_<duration>.pngrm <chart_path>NO_REPLY.Do not skip step 3. Files left in workspace accumulate and waste disk space.
/tmp/crypto_chart_{SYMBOL}_{timestamp}.pngPrice data cached for 300 seconds (5 minutes) in /tmp/crypto_price_*.json.