How to Use DeFiLlama pool yields in VS Code
Returns current pool records with chain, project, assets, USD TVL, APY, and base and reward components where available. Use it to compare pools and identify one for historical analysis.
Prompts to try with DeFiLlama pool yields in VS Code
Copy an example into VS Code, or ask in your own words.
Use DeFiLlama pool yields to find Aave V3 USDC pools on Ethereum and Base, then add a comparison of their reported APY and TVL to my project.
Use DeFiLlama pool yields to find Ethereum USDC pools with at least $10 million in TVL, then add a table showing total, base, and reward APY where returned.
Use DeFiLlama pool yields to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from DeFiLlama pool yields and tell me what changed since last week.
Check DeFiLlama pool yields and summarize what you find in three bullet points.
How to set up DeFiLlama pool yields in VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run DeFiLlama pool yields
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "defillama-com/crypto/yield_pools", "input": { "sort": "tvl" } }'
Then paste one of the prompts above: VS Code finds DeFiLlama pool yields on Spiral, shows the price and runs it.
DeFiLlama pool yields providers and prices
Spiral runs DeFiLlama pool yields through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Sort | tvl or apy | tvl |
|
| Limit | 1 to 100 | 20 | Items per page (1..100, default 20). |
| Min tvl usd | a number | Drop pools below this TVL. | |
| Stablecoin only | on or off | Only pools DeFiLlama flags as stablecoin pools. |
Every API field of DeFiLlama · Yield pools is on its tool page: open its card above.
What can you do with DeFiLlama pool yields in VS Code?
Build a research view that compares stablecoin circulation with pool APY and TVL. A coding agent can add current comparisons and historical charts to your project while keeping asset supply separate from pool deposits.
Compare a chain's stablecoin market and pool yields
Compare current stablecoin supply and pool yields on Ethereum, then examine supply and pool histories to separate a recent change from a longer trend.
Prepare a USDC research brief
Summarize USDC's current supply, historical supply changes, and the APY and TVL of selected USDC pools. Keep asset circulation and pool deposits as separate measurements.
Review a market event
Identify stablecoins and pools to investigate, then compare their available supply, APY, and TVL observations around a chosen event date. Describe concurrent changes without claiming one caused another.
Investigate an unusual reading
Check whether a surprising stablecoin supply or pool yield reading also appears in historical observations. Use current listings to confirm the asset, chain, project, and pool being compared.
Check yield persistence
Find USDC pools with substantial TVL, then compare their historical APY ranges and medians. Identify which current readings are unusual relative to each pool's own record.
Compare pool size and reported yield
Select Aave V3 pools on Ethereum and compare their current APY and TVL with historical observations. Identify periods when reported yield rose while pool TVL fell.
More on DeFiLlama pool yields and VS Code
Overview
DeFiLlama pool yields in other agents
Questions about DeFiLlama pool yields in VS Code
Can VS Code use DeFiLlama pool yields?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run DeFiLlama pool yields like any built-in tool.
How much does DeFiLlama pool yields cost in VS Code?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need an Alexandria account to use DeFiLlama pool yields in VS Code?
No. Spiral runs DeFiLlama pool yields on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up DeFiLlama pool yields in VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while DeFiLlama pool yields runs?
DeFiLlama pool yields runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.
How often does DeFiLlama refresh these datasets?
DeFiLlama documents hourly stablecoin supply updates, and its public yield pipeline schedules collection every hour. These are hourly snapshots, so repeated checks within a few minutes may return unchanged observations.
Why can the API disagree with DeFiLlama's website?
DeFiLlama updates the API before its website. Its FAQ says website caching can produce a delay of up to one hour.
Does stablecoin supply measure the same thing as pool TVL?
Stablecoin supply measures circulating tokens; DeFiLlama's stablecoin market cap multiplies that supply by price and excludes burned and non-issued tokens. Yield records describe individual pools with USD TVL and APY, so a pool's TVL is not an asset's total circulating supply.
What period underlies fee-based APY?
DeFiLlama instructs adapters to calculate fee-based APY over a 24-hour window. Historical pool observations let you examine how that reported annualized rate changed over time.
Can I republish or resell DeFiLlama data?
DeFiLlama's terms require permission to republish data in any form or resell data or access to it. Public availability does not grant unrestricted redistribution rights.
Start using DeFiLlama pool yields in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


