Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计提醒

cmc-api-marketCMC API market 图表绘制

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

19,045

周安装

778

GitHub Stars

2

下载量

6,238
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cmc-api-market(CMC API market 图表绘制)
来源仓库:https://github.com/bryan-cmc/cmc-api-market
安装命令:
openclaw skills install cmc-api-market
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cmc-api-market

简介

提供 CoinMarketCap 市场范围端点的 API 参考,包括全球指标、恐惧/贪婪指数、趋势主题和图表。

  • 适用于梳理 endpoint、生成 OpenAPI 草稿、检查字段命名或整理错误码等场景。
  • 使用时需确认业务语义、鉴权方式、分页规则和错误处理,避免凭空补字段。
  • 建议从现有代码、schema 或接口样例中提取事实,确保文档准确性。
  • 适合辅助 API 设计、接口文档编写和服务集成说明工作。

SKILL.md

name
cmc-api-market
description
|
Trigger
market API", "fear greed API", "global metrics API", "CMC charts API", "/cmc-api-market
homepage
https://github.com/coinmarketcap/skills-for-ai-agents-by-CoinMarketCap
source
https://github.com/coinmarketcap/skills-for-ai-agents-by-CoinMarketCap
user-invocable
true
allowed-tools

CoinMarketCap Market API Skill

This skill covers market-wide cryptocurrency data including global metrics, sentiment indicators, market indices, community activity, news content, charting data, and utility endpoints.

Authentication

All requests require the X-CMC_PRO_API_KEY header.

curl -X GET "https://pro-api.coinmarketcap.com/v1/global-metrics/quotes/latest" \
  -H "X-CMC_PRO_API_KEY: your-api-key"

Get your API key at: https://pro.coinmarketcap.com/login

Base URL

https://pro-api.coinmarketcap.com

Common Use Cases

See use-cases.md for goal-based guidance on which endpoint to use:

  1. Get current market sentiment (Fear & Greed)
  2. Get total crypto market cap
  3. Get BTC dominance
  4. Track market cap history
  5. Track Fear & Greed history
  6. Get CMC100 index performance
  7. Compare CMC100 vs CMC20
  8. Get OHLCV candlestick data for charts
  9. Get simple price time series
  10. Get community trending tokens
  11. Get trending discussion topics
  12. Get latest crypto news
  13. Convert currency amounts
  14. Check API usage and limits
  15. Get fiat currency IDs

API Overview

Global Metrics

EndpointDescriptionReference
GET /v1/global-metrics/quotes/historicalHistorical global market metricsglobal-metrics.md
GET /v1/global-metrics/quotes/latestLatest total market cap, BTC dominanceglobal-metrics.md

Fear and Greed Index

EndpointDescriptionReference
GET /v3/fear-and-greed/historicalHistorical fear/greed valuesfear-greed.md
GET /v3/fear-and-greed/latestCurrent market sentiment scorefear-greed.md

Market Indices

EndpointDescriptionReference
GET /v3/index/cmc100-historicalCMC100 index historyindices.md
GET /v3/index/cmc100-latestCMC100 current valueindices.md
GET /v3/index/cmc20-historicalCMC20 index historyindices.md
GET /v3/index/cmc20-latestCMC20 current valueindices.md

Community

EndpointDescriptionReference
GET /v1/community/trending/tokenTrending tokens by community activitycommunity.md
GET /v1/community/trending/topicTrending discussion topicscommunity.md

Content

EndpointDescriptionReference
GET /v1/content/latestLatest news and Alexandria articlescontent.md
GET /v1/content/posts/commentsComments on a specific postcontent.md
GET /v1/content/posts/latestLatest community postscontent.md
GET /v1/content/posts/topTop ranked community postscontent.md

K-Line Charts

EndpointDescriptionReference
GET /v1/k-line/candlesOHLCV candlestick datakline.md
GET /v1/k-line/pointsTime series price/market cap pointskline.md

Tools

EndpointDescriptionReference
GET /v1/fiat/mapMap fiat currencies to CMC IDstools.md
GET /v1/key/infoAPI key usage and plan detailstools.md
GET /v2/tools/price-conversionConvert between currenciestools.md

Common Workflows

Get Market Sentiment Overview

  1. Fetch fear/greed index: /v3/fear-and-greed/latest
  2. Get global metrics: /v1/global-metrics/quotes/latest
  3. Combine for sentiment analysis with market cap context

Track Market Index Performance

  1. Get current CMC100 value: /v3/index/cmc100-latest
  2. Fetch historical data: /v3/index/cmc100-historical
  3. Compare performance over time

Monitor Community Activity

  1. Check trending tokens: /v1/community/trending/token
  2. Review trending topics: /v1/community/trending/topic
  3. Read latest posts: /v1/content/posts/top

Build Price Charts

  1. Fetch OHLCV candles: /v1/k-line/candles
  2. Use interval parameter for timeframe (1h, 4h, 1d)
  3. Plot candlestick chart with returned data

Currency Conversion

  1. Get fiat currency IDs: /v1/fiat/map
  2. Convert amounts: /v2/tools/price-conversion

Error Handling

Status CodeMeaningAction
400Bad RequestCheck parameter values and format
401UnauthorizedVerify API key is valid
403ForbiddenEndpoint not available on your plan
429Rate LimitedWait and retry with backoff
500Server ErrorRetry after delay

Error Response Format

{
  "status": {
    "error_code": 400,
    "error_message": "Invalid value for 'id'"
  }
}

Rate Limit Headers

Check these response headers to monitor usage:

  1. X-CMC_PRO_API_KEY_CREDITS_USED - Credits consumed
  2. X-CMC_PRO_API_KEY_CREDITS_REMAINING - Credits left
  3. X-CMC_PRO_API_KEY_RATE_LIMIT - Requests per minute limit

Response Format

All endpoints return JSON with this structure:

{
  "status": {
    "timestamp": "2024-01-15T10:30:00.000Z",
    "error_code": 0,
    "error_message": null,
    "credit_count": 1
  },
  "data": { }
}

Tips

  1. Use the /v1/key/info endpoint to check your plan limits before heavy usage
  2. Cache global metrics data as it updates every few minutes
  3. Fear/greed index updates daily, no need for frequent polling
  4. K-line data supports multiple intervals for different chart timeframes
  5. Community trending data refreshes periodically throughout the day

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

91.17%
按下载量换算5,687

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills