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.
uxc is installed and available in PATH.https://rest.coinapi.io.https://raw.githubusercontent.com/holon-run/uxc/main/skills/coinapi-openapi-skill/references/coinapi-market.openapi.jsonThis skill covers a read-first market data surface:
This skill does not cover:
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
command -v coinapi-openapi-cli 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 -hcoinapi-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 -hcoinapi-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_USDTcoinapi-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=20get:/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--text.ok, kind, protocol, data, error.filter_symbol_id, period_id, limit, and limit_levels narrow unless the user explicitly wants larger pulls.coinapi-openapi-cli ... is equivalent to uxc https://rest.coinapi.io --schema-url ... .references/usage-patterns.mdreferences/coinapi-market.openapi.json共 1 个版本