/install coinapi-openapi-skill
CoinAPI REST Skill
Use this skill to run CoinAPI REST market data operations through uxc + OpenAPI.
Reuse the uxc skill for shared execution, auth, and error-handling guidance.
Prerequisites
uxcis installed and available inPATH.- Network access to
https://rest.coinapi.io. - Access to the curated OpenAPI schema URL:
https://raw.githubusercontent.com/holon-run/uxc/main/skills/coinapi-openapi-skill/references/coinapi-market.openapi.json
- A CoinAPI key.
Scope
This skill covers a read-first market data surface:
- current exchange rates
- current quote snapshots
- latest OHLCV candles
- latest trades
- latest order books
This skill does not cover:
- FIX, WebSocket, or MCP transport surfaces
- write operations
- the broader CoinAPI catalog
Authentication
CoinAPI uses X-CoinAPI-Key header auth.
Configure one API-key credential and bind it to rest.coinapi.io:
uxc auth credential set coinapi \
--auth-type api_key \
--api-key-header X-CoinAPI-Key \
--secret-env COINAPI_KEY
uxc auth binding add \
--id coinapi \
--host rest.coinapi.io \
--scheme https \
--credential coinapi \
--priority 100
Validate the active mapping when auth looks wrong:
uxc auth binding match https://rest.coinapi.io
Core Workflow
-
Use the fixed link command by default:
command -v coinapi-openapi-cli- If missing, create it:
uxc link coinapi-openapi-cli https://rest.coinapi.io --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/coinapi-openapi-skill/references/coinapi-market.openapi.json coinapi-openapi-cli -h
-
Inspect operation schema first:
coinapi-openapi-cli get:/v1/exchangerate/{asset_id_base}/{asset_id_quote} -hcoinapi-openapi-cli get:/v1/ohlcv/{symbol_id}/latest -hcoinapi-openapi-cli get:/v1/trades/{symbol_id}/latest -h
-
Prefer narrow spot and latest reads before broader crawls:
coinapi-openapi-cli get:/v1/exchangerate/{asset_id_base}/{asset_id_quote} asset_id_base=BTC asset_id_quote=USDcoinapi-openapi-cli get:/v1/quotes/current filter_symbol_id=BINANCE_SPOT_BTC_USDT
-
Execute with key/value parameters:
coinapi-openapi-cli get:/v1/ohlcv/{symbol_id}/latest symbol_id=BINANCE_SPOT_BTC_USDT period_id=1DAY limit=10coinapi-openapi-cli get:/v1/orderbooks/{symbol_id}/latest symbol_id=BINANCE_SPOT_BTC_USDT limit_levels=20
Operations
get:/v1/exchangerate/{asset_id_base}/{asset_id_quote}get:/v1/quotes/currentget:/v1/ohlcv/{symbol_id}/latestget:/v1/trades/{symbol_id}/latestget:/v1/orderbooks/{symbol_id}/latest
Guardrails
- Keep automation on the JSON output envelope; do not use
--text. - Parse stable fields first:
ok,kind,protocol,data,error. - Treat this v1 skill as read-only. Do not imply order entry or market connectivity support.
- Keep
filter_symbol_id,period_id,limit, andlimit_levelsnarrow unless the user explicitly wants larger pulls. coinapi-openapi-cli \x3Coperation> ...is equivalent touxc https://rest.coinapi.io --schema-url \x3Ccoinapi_openapi_schema> \x3Coperation> ....
References
- Usage patterns:
references/usage-patterns.md - Curated OpenAPI schema:
references/coinapi-market.openapi.json - CoinAPI REST docs: https://docs.coinapi.io/market-data/rest-api
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install coinapi-openapi-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/coinapi-openapi-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
CoinAPI OpenAPI Skill 是什么?
Operate CoinAPI market data reads through UXC with a curated OpenAPI schema, API-key auth, and read-first guardrails. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 212 次。
如何安装 CoinAPI OpenAPI Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install coinapi-openapi-skill」即可一键安装,无需额外配置。
CoinAPI OpenAPI Skill 是免费的吗?
是的,CoinAPI OpenAPI Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
CoinAPI OpenAPI Skill 支持哪些平台?
CoinAPI OpenAPI Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 CoinAPI OpenAPI Skill?
由 jolestar(@jolestar)开发并维护,当前版本 v1.0.0。