360 Secure SkillHub
360 安全技能中心

DefiLlama Prices OpenAPI Skill

该 Skill 通过 uxc CLI 结合精选 OpenAPI schema 调用 DefiLlama 公共价格 API,仅支持只读查询一个或多个资产的当前价格,强调 JSON 输出信封与窄范围读取;无需认证,只覆盖价格端点,不含写操作、协议概览与收益端点。

jolestar
jolestar
热度 62.31
最近更新 2026-05-11 17:32:41
分类:数据依赖:代码执行 / 第三方 API应用场景:API 集成 / 数据处理 / 财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add defillama-prices-openapi-skill
Metadata
name
defillama-prices-openapi-skill
description
Operate DefiLlama public price APIs through UXC with a curated OpenAPI schema and read-first guardrails.

DefiLlama Prices API Skill

Use this skill to run DefiLlama public price API operations through uxc + OpenAPI.

Reuse the uxc skill for shared execution, auth, and error-handling guidance.

Prerequisites

  • uxc is installed and available in PATH.
  • Network access to https://coins.llama.fi.
  • Access to the curated OpenAPI schema URL:
    • https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-prices-openapi-skill/references/defillama-prices.openapi.json

Scope

This skill covers a small public read-only price surface on coins.llama.fi:

  • current price lookups for one or more assets

This skill does not cover:

  • write operations
  • protocol or chain overview endpoints from api.llama.fi
  • yield endpoints from yields.llama.fi
  • DefiLlama Pro APIs

Authentication

This public skill does not require authentication.

Core Workflow

  1. Use the fixed link command by default:

    • command -v defillama-prices-openapi-cli
    • If missing, create it: 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
  2. Inspect operation schema first:

    • defillama-prices-openapi-cli get:/prices/current/{coins} -h
  3. Prefer narrow read validation before broader reads:

    • defillama-prices-openapi-cli get:/prices/current/{coins} coins=coingecko:bitcoin searchWidth=4h

Operations

  • get:/prices/current/{coins}

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.
  • This skill only wraps coins.llama.fi; use the separate public analytics or yields skills for other DefiLlama hosts.
  • defillama-prices-openapi-cli <operation> ... is equivalent to uxc https://coins.llama.fi --schema-url <defillama_prices_openapi_schema> <operation> ....

References

  • Usage patterns: references/usage-patterns.md
  • Curated OpenAPI schema: references/defillama-prices.openapi.json
  • DefiLlama API docs: https://defillama.com/docs/api