← 返回 Skills 市场
poploli2

DefiLlama API

作者 lewis · GitHub ↗ · v0.1.0
cross-platform ✓ 安全检测通过
645
总下载
0
收藏
6
当前安装
1
版本数
在 OpenClaw 中安装
/install defillama-api
功能描述
使用 DefiLlama API/SDK 获取 TVL、stablecoins、coins 价格、yields、volumes、fees、perps、unlocks、bridges、ETFs、narratives、token liquidity、main page、DAT、meta 等数据的 CLI 技能;当需要...
使用说明 (SKILL.md)

DefiLlama API

只允许通过 src/run.py 调用,禁止直接运行 src/scripts/ 下的脚本。

安装

cd {baseDir}

环境变量

  • DEFILLAMA_API_KEY:可选,Pro API key。若未提供,Pro 端点会提示 API PLAN REQUIRED

使用方式(必须通过 run.py)

TVL

uv run {baseDir}/src/run.py tvl protocols
uv run {baseDir}/src/run.py tvl protocol --protocol aave
uv run {baseDir}/src/run.py tvl tvl --protocol uniswap
uv run {baseDir}/src/run.py tvl chains
uv run {baseDir}/src/run.py tvl historical-chain-tvl --chain Ethereum

Stablecoins

uv run {baseDir}/src/run.py stablecoins list --include-prices
uv run {baseDir}/src/run.py stablecoins charts-all
uv run {baseDir}/src/run.py stablecoins charts-chain --chain Ethereum
uv run {baseDir}/src/run.py stablecoins detail --asset 1
uv run {baseDir}/src/run.py stablecoins dominance --chain Ethereum --stablecoin-id 1

Coins(价格与链上数据)

uv run {baseDir}/src/run.py coins current --coins coingecko:ethereum,ethereum:0x0000000000000000000000000000000000000000
uv run {baseDir}/src/run.py coins historical --timestamp 1704067200 --coins coingecko:ethereum
uv run {baseDir}/src/run.py coins chart --coins coingecko:ethereum --period 7d

Yields(Pro)

uv run {baseDir}/src/run.py yields pools
uv run {baseDir}/src/run.py yields pool-chart --pool \x3Cpool_id>

Volumes

uv run {baseDir}/src/run.py volumes dex-overview
uv run {baseDir}/src/run.py volumes options-overview --data-type dailyPremiumVolume

Fees

uv run {baseDir}/src/run.py fees overview
uv run {baseDir}/src/run.py fees summary --protocol uniswap

Perps

uv run {baseDir}/src/run.py perps open-interest
uv run {baseDir}/src/run.py perps derivatives-overview

Unlocks(Pro)

uv run {baseDir}/src/run.py unlocks all
uv run {baseDir}/src/run.py unlocks protocol --protocol hyperliquid

Main Page(Pro)

uv run {baseDir}/src/run.py main-page categories
uv run {baseDir}/src/run.py main-page raises

Token Liquidity(Pro)

uv run {baseDir}/src/run.py token-liquidity historical --token usdt

ETFs(Pro)

uv run {baseDir}/src/run.py etfs overview
uv run {baseDir}/src/run.py etfs history

Narratives(Pro)

uv run {baseDir}/src/run.py narratives fdv-performance --period 30

Bridges(Pro)

uv run {baseDir}/src/run.py bridges list --include-chains
uv run {baseDir}/src/run.py bridges transactions --id 1 --limit 50

Meta / DAT(Pro)

uv run {baseDir}/src/run.py meta usage
uv run {baseDir}/src/run.py dat institutions

备注

  • Coin 需要使用 chain:addresscoingecko:slug 格式,例如 coingecko:ethereum
  • Pro 端点需要 DEFILLAMA_API_KEY--api-key

常见错误

  • rate limited:放缓速率或提供 API plan key。
  • API PLAN REQUIRED:升级订阅或设置 DEFILLAMA_API_KEY
安全使用建议
This skill appears to be a legitimate CLI wrapper around the DefiLlama SDK. Before installing: (1) be aware it will install the 'uv' brew formula to run the CLI; (2) if you want Pro endpoints, provide DEFILLAMA_API_KEY (optional) — that key is sent to DefiLlama only; (3) the Python dependency defillama-sdk is referenced in the source header (ensure your environment or the platform will install it); (4) review and trust the skill owner/source before granting network access or supplying any API key. If you need stricter assurance, request a build/run log or run the code in an isolated environment first.
功能分析
Type: OpenClaw Skill Name: defillama-api Version: 0.1.0 The skill provides a CLI interface to the DefiLlama API using the `defillama-sdk` Python library. All code is straightforward, directly implementing API calls via the SDK. The `SKILL.md` instructions are clear and do not contain any prompt injection attempts or malicious directives. The skill properly handles an optional `DEFILLAMA_API_KEY` environment variable for Pro API access, passing it securely to the SDK. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or obfuscation.
能力评估
Purpose & Capability
Name/description match the code: the package exposes many DefiLlama endpoints (TVL, prices, yields, bridges, etc.). It requires the 'uv' runner (declared) which is used in SKILL.md to execute src/run.py. The optional DEFILLAMA_API_KEY is appropriate for Pro endpoints.
Instruction Scope
SKILL.md limits execution to src/run.py via 'uv run' and documents command-line usage and the optional API key. The runtime scripts call the defillama-sdk client and only request data from DefiLlama endpoints; they do not read unrelated files or environment variables or transmit data to unexpected endpoints.
Install Mechanism
Install spec only installs the 'uv' brew formula (reasonable for the specified invocation). The Python code requires the defillama-sdk dependency (declared in a script header comment) but the install block does not show Python package installation — this is likely an implementation detail (runtime/platform may handle it) rather than a security issue.
Credentials
No required secrets are requested. DEFILLAMA_API_KEY is optional and appropriate for Pro endpoints. There are no unrelated environment variables, tokens, or config paths requested.
Persistence & Privilege
always is false and the skill does not request persistent/privileged presence or modify other skills or system-wide settings. It runs on demand and only uses the network to call DefiLlama APIs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install defillama-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /defillama-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release: DefiLlama API CLI skill - Provides CLI access to DefiLlama data: TVL, stablecoins, coins prices, yields, volumes, fees, perps, unlocks, bridges, ETFs, narratives, token liquidity, meta, and DAT. - Must use run.py to invoke; direct execution of scripts is prohibited. - Supports both public and Pro API endpoints (Pro endpoints require DEFILLAMA_API_KEY). - Includes detailed CLI usage examples for each supported data category. - Lists common error messages and troubleshooting tips.
元数据
Slug defillama-api
版本 0.1.0
许可证
累计安装 6
当前安装数 6
历史版本数 1
常见问题

DefiLlama API 是什么?

使用 DefiLlama API/SDK 获取 TVL、stablecoins、coins 价格、yields、volumes、fees、perps、unlocks、bridges、ETFs、narratives、token liquidity、main page、DAT、meta 等数据的 CLI 技能;当需要... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 645 次。

如何安装 DefiLlama API?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install defillama-api」即可一键安装,无需额外配置。

DefiLlama API 是免费的吗?

是的,DefiLlama API 完全免费(开源免费),可自由下载、安装和使用。

DefiLlama API 支持哪些平台?

DefiLlama API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 DefiLlama API?

由 lewis(@poploli2)开发并维护,当前版本 v0.1.0。

💬 留言讨论