Spiral gives your agent every tool with one account. Browse the tools →

opencode · Finance

How to Use DeFiLlama stablecoin supply rankings in opencode

Returns tracked stablecoins and their circulating amounts. Use it to compare current supply, identify assets on a chain, or find the stablecoin ID needed for historical research.

Prompts to try with DeFiLlama stablecoin supply rankings in opencode

Copy an example into opencode, or ask in your own words.

Use DeFiLlama stablecoin supply rankings to fetch USDT and USDC on Ethereum, then add a comparison table to this project's research view.

DeFiLlama stablecoin supply rankingsopencode
Try asking
  • Use DeFiLlama stablecoin supply rankings to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from DeFiLlama stablecoin supply rankings and tell me what changed since last week.

  • Check DeFiLlama stablecoin supply rankings and summarize what you find in three bullet points.

  • Pull the newest data from DeFiLlama stablecoin supply rankings and give me the result as a table.

How to set up DeFiLlama stablecoin supply rankings in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run DeFiLlama stablecoin supply rankings

    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/stablecoins",
        "input": {
          "chain": "<chain>"
        }
      }'

Then paste one of the prompts above: opencode finds DeFiLlama stablecoin supply rankings on Spiral, shows the price and runs it.

DeFiLlama stablecoin supply rankings providers and prices

Spiral runs DeFiLlama stablecoin supply rankings through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
DeFiLlama · Stablecoins
defillama-com/crypto/stablecoins

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 10025

Items per page (1..100, default 25).

Every API field of DeFiLlama · Stablecoins is on its tool page: open its card above.

What can you do with DeFiLlama stablecoin supply rankings in opencode?

Build a research view that puts stablecoin supply beside DeFi pool APY and TVL. A coding agent can connect current listings to historical series and add comparisons to the project's existing charts.

Weekly Ethereum stablecoin report

Combine current stablecoin supply rankings with supply changes, then compare current stablecoin pool APYs with their historical APY and TVL. Produce a research brief that separates asset supply from pool activity.

Compare chains

Compare USDC supply on Ethereum and Arbitrum alongside USDC pool APYs and TVL. Use the historical series to see whether the current differences persisted over the available period.

USDC research brief

Identify USDC in the stablecoin listing, examine its supply history, and compare pools using USDC. Add pool histories to show how their yields and deposited value changed.

Review a market event

Examine stablecoin supply and pool APY and TVL before and after a selected event date. Use current listings to identify the assets and pools, then describe the historical changes without assuming the event caused them.

Stablecoin supply concentration

Compare current USDT and USDC circulating amounts, then calculate how each asset's supply changed over the available historical period.

Questions about DeFiLlama stablecoin supply rankings in opencode

Can opencode use DeFiLlama stablecoin supply rankings?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run DeFiLlama stablecoin supply rankings like any built-in tool.

How much does DeFiLlama stablecoin supply rankings cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use DeFiLlama stablecoin supply rankings in opencode?

No. Spiral runs DeFiLlama stablecoin supply rankings 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 stablecoin supply rankings in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while DeFiLlama stablecoin supply rankings runs?

DeFiLlama stablecoin supply rankings runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

How fresh are DeFiLlama's stablecoin and yield figures?

DeFiLlama documents hourly updates for stablecoin supply, yield APY, and pool TVL. These figures follow an hourly collection schedule rather than updating with every transaction.

Where does DeFiLlama get yield data?

Its yield adapters use on-chain calls or subgraphs. DeFiLlama accepts centralized API data only when there is no other way to obtain it, such as off-chain gauge weights.

Does DeFiLlama show boosted yields?

Its stated methodology targets minimum attainable yield. It uses unboosted APY and excludes locked rewards and yield that requires holding an additional token.

Can I request history using just a ticker?

DeFiLlama identifies stablecoins and yield pools separately: its documented stablecoin IDs include 1 for USDT and 2 for USDC, while yield history uses an identifier from the pool listing. Resolve the asset or pool first to select the intended historical series.

Can I examine a current figure over time?

DeFiLlama provides stablecoin history for a specific chain and historical APY and TVL for an individual yield pool. Match the chain and asset or pool before comparing a current result with its history.

Get started

Start using DeFiLlama stablecoin supply rankings in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options