← Back to Skills Marketplace
645
Downloads
0
Stars
6
Active Installs
1
Versions
Install in OpenClaw
/install defillama-api
Description
使用 DefiLlama API/SDK 获取 TVL、stablecoins、coins 价格、yields、volumes、fees、perps、unlocks、bridges、ETFs、narratives、token liquidity、main page、DAT、meta 等数据的 CLI 技能;当需要...
README (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:address或coingecko:slug格式,例如coingecko:ethereum。 - Pro 端点需要
DEFILLAMA_API_KEY或--api-key。
常见错误
rate limited:放缓速率或提供 API plan key。API PLAN REQUIRED:升级订阅或设置DEFILLAMA_API_KEY。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install defillama-api - After installation, invoke the skill by name or use
/defillama-api - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is DefiLlama API?
使用 DefiLlama API/SDK 获取 TVL、stablecoins、coins 价格、yields、volumes、fees、perps、unlocks、bridges、ETFs、narratives、token liquidity、main page、DAT、meta 等数据的 CLI 技能;当需要... It is an AI Agent Skill for Claude Code / OpenClaw, with 645 downloads so far.
How do I install DefiLlama API?
Run "/install defillama-api" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is DefiLlama API free?
Yes, DefiLlama API is completely free (open-source). You can download, install and use it at no cost.
Which platforms does DefiLlama API support?
DefiLlama API is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created DefiLlama API?
It is built and maintained by lewis (@poploli2); the current version is v0.1.0.
More Skills