返回顶部
d

defillama-prices-openapi-skillDefiLlama价格API

Operate DefiLlama public price APIs through UXC with a curated OpenAPI schema and read-first guardrails.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
175
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

defillama-prices-openapi-skill

技能名称: defillama-prices-openapi-skill

详细描述:

DefiLlama 价格 API 技能

使用此技能通过 uxc + OpenAPI 运行 DefiLlama 公共价格 API 操作。

复用 uxc 技能以获取共享执行、认证和错误处理指导。

前提条件

  • - uxc 已安装并可在 PATH 中使用。
  • 可访问网络 https://coins.llama.fi。
  • 可访问精选的 OpenAPI 模式 URL:
- https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-prices-openapi-skill/references/defillama-prices.openapi.json

范围

此技能涵盖 coins.llama.fi 上一个小型公共只读价格接口:

  • - 一个或多个资产的当前价格查询

此技能涵盖:

  • - 写入操作
  • 来自 api.llama.fi 的协议或链概览端点
  • 来自 yields.llama.fi 的收益端点
  • DefiLlama Pro API

认证

此公共技能不需要认证。

核心工作流程

  1. 1. 默认使用固定链接命令:
- command -v defillama-prices-openapi-cli - 如果缺失,则创建它: uxc link defillama-prices-openapi-cli https://coins.llama.fi --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-prices-openapi-skill/references/defillama-prices.openapi.json - defillama-prices-openapi-cli -h
  1. 2. 首先检查操作模式:
- defillama-prices-openapi-cli get:/prices/current/{coins} -h
  1. 3. 在进行更广泛的读取之前,优先进行窄范围读取验证:
- defillama-prices-openapi-cli get:/prices/current/{coins} coins=coingecko:bitcoin searchWidth=4h

操作

  • - get:/prices/current/{coins}

防护措施

  • - 保持自动化在 JSON 输出信封上;不要使用 --text。
  • 首先解析稳定字段:ok、kind、protocol、data、error。
  • 将此 v1 技能视为只读。
  • 此技能仅封装 coins.llama.fi;对于其他 DefiLlama 主机,请使用单独的公共分析或收益技能。
  • defillama-prices-openapi-cli <操作> ... 等同于 uxc https://coins.llama.fi --schema-url pricesopenapi_schema> <操作> ...。

参考资料

  • - 使用模式:references/usage-patterns.md
  • 精选的 OpenAPI 模式:references/defillama-prices.openapi.json
  • DefiLlama API 文档:https://defillama.com/docs/api

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 defillama-prices-openapi-skill-1776358502 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 defillama-prices-openapi-skill-1776358502 技能

通过命令行安装

skillhub install defillama-prices-openapi-skill-1776358502

下载

⬇ 下载 defillama-prices-openapi-skill v1.0.0(免费)

文件大小: 4.27 KB | 发布时间: 2026-4-17 14:37

v1.0.0 最新 2026-4-17 14:37
Initial release of DefiLlama Prices OpenAPI skill:

- Enables access to DefiLlama's public coin price APIs via UXC and OpenAPI.
- Supports current price lookups for single or multiple assets.
- Operates in read-only mode; no write or advanced endpoints included.
- Uses curated OpenAPI schema with clear workflow and guardrails.
- No authentication required.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部