Operate DefiLlama Pro analytics APIs through UXC with a curated OpenAPI schema, path-templated API-key auth, and read-first guardrails.
Use this skill to run DefiLlama Pro API operations through uxc + OpenAPI.
Reuse the uxc skill for shared execution, auth, and error-handling guidance.
uxc is installed and available in PATH.https://pro-api.llama.fi.https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-pro-openapi-skill/references/defillama-pro.openapi.jsonThis skill covers a read-first analytics surface:
This skill does not cover:
DefiLlama Pro places the API key in the request path, between the host and the endpoint path.
Configure one API-key credential with a request path prefix template:
uxc auth credential set defillama-pro \
--auth-type api_key \
--secret-env DEFILLAMA_PRO_API_KEY \
--path-prefix-template "/{{secret}}"
uxc auth binding add \
--id defillama-pro \
--host pro-api.llama.fi \
--scheme https \
--credential defillama-pro \
--priority 100
Validate the active mapping when auth looks wrong:
uxc auth binding match https://pro-api.llama.fi
Use the fixed link command by default:
command -v defillama-pro-openapi-cliuxc link defillama-pro-openapi-cli https://pro-api.llama.fi --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-pro-openapi-skill/references/defillama-pro.openapi.jsondefillama-pro-openapi-cli -hInspect operation schema first:
defillama-pro-openapi-cli get:/api/protocols -hdefillama-pro-openapi-cli get:/coins/prices/current/{coins} -hdefillama-pro-openapi-cli get:/yields/chart/{pool} -hPrefer narrow read validation before broader reads:
defillama-pro-openapi-cli get:/api/v2/chainsdefillama-pro-openapi-cli get:/api/protocol/{protocol} protocol=aavedefillama-pro-openapi-cli get:/yields/poolsExecute with key/value parameters:
defillama-pro-openapi-cli get:/api/protocol/{protocol} protocol=aavedefillama-pro-openapi-cli get:/coins/prices/current/{coins} coins=ethereum:0x0000000000000000000000000000000000000000 searchWidth=4hdefillama-pro-openapi-cli get:/stablecoins/stablecoindominance/{chain} chain=ethereumget:/api/protocolsget:/api/protocol/{protocol}get:/api/v2/chainsget:/coins/prices/current/{coins}get:/yields/poolsget:/yields/chart/{pool}get:/stablecoins/stablecoindominance/{chain}--text.ok, kind, protocol, data, error.--secret-env or --secret-op, not shell history literals, when possible.~/.uxc/daemon/daemon.log, sanitize, rotate, or delete the log after debugging and avoid verbose logging unless necessary.defillama-pro-openapi-cli <operation> ... is equivalent to uxc https://pro-api.llama.fi --schema-url <defillama_pro_openapi_schema> <operation> ....references/usage-patterns.mdreferences/defillama-pro.openapi.json