[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B9M070ZSWFVEYHKS0KQ4T4":3,"skill-same:01M7B9M070ZSWFVEYHKS0KQ4T4":60},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7B9M070ZSWFVEYHKS0KQ4T4","jerryliu369-defillama-data",null,"jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fjerryliu369-defillama-data\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fjerryliu369-defillama-data\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"\u003C!--\n  Imported from: https:\u002F\u002Fgithub.com\u002FDefiLlama\u002Fdefillama-skills\n  Source Path: defi-data\u002FSKILL.md\n  Curated for awesome-quant-skills\n-->\n\n---\nname: defi-data\ndescription: Core reference for DefiLlama MCP tools. Maps DeFi questions to the correct tool call with proper parameters. Covers entity conventions, metric interpretation, stock vs flow distinctions, percentage formatting, and error recovery. Use whenever querying DeFi data — protocol TVL, token prices, chain metrics, fees, revenue, yields, stablecoins, bridges, ETFs, hacks, raises, treasuries, or institutional holdings.\n---\n\n# DefiLlama MCP Data Reference\n\n## Tool Quick Reference\n\n| Question | Tool | Key Params |\n|----------|------|------------|\n| Total DeFi TVL, global volumes | `defillama:get_market_totals` | `metrics` (tvl_base, volume_dexs_1d, etc.) |\n| Protocol TVL, fees, revenue | `defillama:get_protocol_metrics` | `protocol`, `metrics` |\n| Chain TVL, gas fees, REV | `defillama:get_chain_metrics` | `chain`, `metrics` |\n| Token price, mcap, ATH | `defillama:get_token_prices` | `token` |\n| Category rankings | `defillama:get_category_metrics` | `category` |\n| Pool APY, lending rates | `defillama:get_yield_pools` | `token`, `chain`, `category` |\n| Stablecoin supply | `defillama:get_stablecoin_supply` | `stablecoin`, `chain` |\n| ETF inflows\u002Foutflows | `defillama:get_etf_flows` | `token` (bitcoin\u002Fethereum) |\n| Bridge volume | `defillama:get_bridge_flows` | `bridge`, `chain` |\n| CEX volume | `defillama:get_cex_volumes` | `cex` |\n| Open interest | `defillama:get_open_interest` | `protocol`, `chain` |\n| Hacks\u002Fexploits | `defillama:get_events` | `event_type: \"hacks\"` |\n| Fundraising | `defillama:get_events` | `event_type: \"raises\"` |\n| Protocol events | `defillama:get_events` | `event_type: \"protocol_events\"` |\n| Protocol treasury | `defillama:get_treasury` | `treasury` |\n| Institutional holdings | `defillama:get_dat_holdings` | `institution`, `token` |\n| Token unlocks | `defillama:get_token_unlocks` | `token`, `query_type` (chart, window, day, window_all, ratio, market_window) |\n| Token TVL in protocols | `defillama:get_token_tvl` | `token`, `protocol` |\n| Oracle coverage | `defillama:get_oracle_metrics` | `oracle` |\n| User activity | `defillama:get_user_activity` | `protocol`, `chain` |\n| Income statement | `defillama:get_income_statement` | `protocol` |\n| Protocol metadata, URLs, audit | `defillama:get_protocol_info` | `protocol`, `category`, `tag`, `has_token`, `chain` |\n| Chain metadata, type, L2 parent | `defillama:get_chain_info` | `chain`, `chain_type` |\n| List valid categories | `defillama:list_categories` | `type` (protocol, token, chain) |\n| Unknown entity slug | `defillama:resolve_entity` | `name` |\n\n## Entity Conventions\n\n- **Protocols**: lowercase-hyphenated slugs (`aave`, `uniswap`, `compound-v3`)\n- **Chains**: lowercase (`ethereum`, `solana`, `arbitrum`)\n- **Tokens**: `coingecko:` prefix (`coingecko:ethereum`, `coingecko:bitcoin`, `coingecko:usd-coin`)\n- **CEX**: slug includes suffix (`binance-cex`, `coinbase-cex`, `htx`, `gate-io`)\n- **Categories**: Title case (`Lending`, `DEX`, `Derivatives`)\n\n## Protocol vs Sub-Protocol\n\nMany protocols have multiple versions. The database tracks both:\n- **Parent protocol** (e.g., `aave`) — used in `get_protocol_metrics`, aggregates all versions\n- **Sub-protocol** (e.g., `aave-v3`) — individual versions, used in sub_protocol views\n\n`resolve_entity` returns both `slug` (sub-protocol) and `parent_protocol`. Use `parent_protocol` for `get_protocol_metrics`. Use `slug` when you need a specific version.\n\nExample: resolve_entity({name: \"compound\"}) returns:\n- slug: compound-v2, parent_protocol: compound\n- slug: compound-v3, parent_protocol: compound\n→ Use `protocol: \"compound\"` in get_protocol_metrics for the aggregate.\n\n## Array Support\n\nAll entity params accept single values or arrays for comparison:\n- `protocol: \"aave\"` or `protocol: [\"aave\", \"lido\", \"compound\"]`\n- `chain: \"ethereum\"` or `chain: [\"ethereum\", \"solana\"]`\n- `token: \"coingecko:ethereum\"` or `token: [\"coingecko:ethereum\", \"coingecko:bitcoin\"]`\n\n## Entity Resolution\n\nTry tools directly for well-known entities — works 80%+ of the time. Use `defillama:resolve_entity` only when:\n\n- Unsure of exact slug\n- Tool returns 0 rows\n- Need to disambiguate (e.g., \"compound\" → compound-v2, compound-v3)\n- Need to find the parent_protocol slug\n\n## Period Parameter\n\nAll tools accept `period` (NOT `time_range`):\n\n- `current` (default) -- latest snapshot\n- `7d`, `30d`, `90d`, `180d`, `365d` -- rolling windows\n\nFor custom date ranges, use `start_date` and `end_date` (YYYY-MM-DD format) instead of `period`. If `start_date` is set without `end_date`, it defaults to today.\n\n## Critical Conventions\n\n### Stock vs Flow\n\nDifferent aggregation rules -- getting this wrong produces nonsensical results:\n\n- **Stock** (point-in-time snapshots): `tvl`, `price`, `mcap` -- NEVER sum across dates\n- **Flow** (cumulative over period): `fees_1d`, `revenue_1d`, `volume` -- CAN sum across dates\n\n### Percentage Formatting\n\nTwo different conventions in the data:\n\n- `*_pct_change` columns = **decimals** (e.g., -0.13 = -13%, 0.35 = +35%). Multiply by 100 for display.\n- `apy` columns = **already percentages** (e.g., 2.32 = 2.32%). Do NOT multiply by 100.\n\n### TVL Components\n\nComponents are mutually exclusive -- never double-add:\n\n- `tvl_base` = default TVL (excludes liquid staking and double-counted)\n- `tvl_ls_only` = liquid staking portion not in tvl_base\n- `tvl_dc_only` = double-counted portion not in tvl_base\n- `tvl_ls_and_dc` = both LS and DC\n- Total with LS+DC = `tvl_base + tvl_ls_only + tvl_dc_only + tvl_ls_and_dc`\n\n### Fee and Revenue\n\n- `fees` = gross payments by users\n- `revenue` = protocol's cut (fees - payments to LPs\u002Fstakers)\n- `holder_revenue` = buybacks + dividends to token holders\n- Chain-level: `chain_fees` (gas), `chain_revenue`, `chain_mev`, `app_fees` (protocol fees on chain), `app_revenue`\n\n### Metric Name Patterns\n\nProtocol metrics follow these patterns:\n- **TVL**: `tvl_base`, `tvl_staking`, `tvl_borrowed`, `tvl_pool2`, `tvl_treasury`, `tvl_vesting`\n- **Flows** (with suffixes `_1d\u002F_7d\u002F_30d\u002F_90d\u002F_180d\u002F_365d\u002F_ytd\u002F_alltime\u002F_annualised`): `fees`, `revenue`, `holder_revenue`, `incentive`\n- **Volume** (same suffixes): `volume_dexs`, `volume_aggregators`, `volume_derivatives`, `volume_aggr_derivatives`, `volume_options`\n- **Market**: `price`, `mcap`, `fdv`, `fdv_outstanding`, `token_volume`, `ps_ratio`, `pf_ratio`\n- **pct_change** variants only available on `_current` views\n\nChain metrics use `chain_fees`, `chain_revenue`, `chain_mev`, `app_fees`, `app_revenue` instead of `fees`, `revenue`.\n\nDaily views only have the `_1d` suffix for flows\u002Fvolumes.\n\n### Important Gotchas\n\n- **Category column**: `get_protocol_metrics` has NO category column. Use `get_category_metrics` for category-level data.\n- **FDV**: Never sort by FDV -- unreliable `total_supply` data produces junk rankings. Sort by `mcap` instead.\n- **Valuation**: `ps_ratio` = mcap \u002F annualised revenue. `pf_ratio` = mcap \u002F annualised fees. Lower = potentially undervalued.\n- **Metric validation**: Protocol\u002Fchain\u002Fcategory metrics are validated against actual DB columns. Invalid metrics return a suggestion for the closest match.\n- **NULL values**: NULL means data unavailable, NOT $0. Do not report NULL as zero.\n- **Params accept string or array**: `protocol: \"aave\"` or `protocol: [\"aave\", \"lido\"]`. Param names are singular (`protocol` not `protocols`).\n- **sort_by format**: String like `\"tvl_base desc\"` or `\"fees_1d desc\"`.\n\n## Examples\n\n**Example 1:**\nUser: \"What is Aave's TVL?\"\nTool call: `defillama:get_protocol_metrics(protocol: \"aave\", metrics: [\"tvl_base\"])`\n\n**Example 2:**\nUser: \"Top 5 chains by fees\"\nTool call: `defillama:get_chain_metrics(sort_by: \"chain_fees_1d desc\", limit: 5)`\n\n**Example 3:**\nUser: \"ETH price history over 90 days\"\nTool call: `defillama:get_token_prices(token: \"coingecko:ethereum\", period: \"90d\")`\n\n**Example 4:**\nUser: \"Compare ETH price and Ethereum chain TVL\"\nTool calls in parallel:\n- `defillama:get_token_prices(token: \"coingecko:ethereum\")`\n- `defillama:get_chain_metrics(chain: \"ethereum\")`\n\n**Example 5:**\nUser: \"Biggest DeFi hacks this year\"\nTool call: `defillama:get_events(event_type: \"hacks\", sort_by: \"amount desc\", limit: 10, period: \"365d\")`\n\n**Example 6:**\nUser: \"Aave TVL from Jan to Mar 2025\"\nTool call: `defillama:get_protocol_metrics(protocol: \"aave\", metrics: [\"tvl_base\"], start_date: \"2025-01-01\", end_date: \"2025-03-31\")`\n\n## Error Recovery\n\n1. **0 rows returned** -> call `defillama:resolve_entity(name: \"...\")` -> retry with the correct slug\n2. **Wrong data** -> verify you're using the right tool (protocol vs chain vs category)\n3. **Ambiguous entity** -> call `resolve_entity` to see all matching slugs, then pick the right one\n",{},"main","4aff87e77e63c1886a978b82902814d015f55a4f","skills\u002Fmcp-servers\u002Fjerryliu369-defillama-data",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill jerryliu369-defillama-data",{"tool":38,"command":39},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill jerryliu369-defillama-data",{"tool":41,"command":42},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill jerryliu369-defillama-data","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fjerryliu369-defillama-data\u002FSKILL.md",true,[46,50,56],{"path":47,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":15},"LICENSE","许可证",1068,{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"SOURCE.md","REFERENCE","参考文档",381,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fjerryliu369-defillama-data\u002FSOURCE.md",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"TRUST.auto.yaml",2217,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fjerryliu369-defillama-data\u002FTRUST.auto.yaml",[61,69,77,85,93,101],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":65,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":73,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7DTK6CJSMGC8KCQHGNYFZBD","trade","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":81,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]