Finance4 min readBy Purrkey team

How to list stablecoins by circulating supply on DefiLlama

Pull a ranked stablecoin table with peg type, mechanism, circulating supply and price from one DefiLlama catalog call

On this page

You need to screen 40 stablecoins before a treasury rebalance and want peg type, peg mechanism, circulating supply and price for each one. One call to defillama.stablecoins.list returns a ranked list for that screen

The 40-row screen and the table to build

Example input: limit: 40. The example is invented for this guide; replace 40 with the number of rows you need. The deliverable is a table with one row per stablecoin, and rank is reader-added because the response does not include a rank field

RanknamesymbolpegTypepegMechanismcirculatingpricechainCount
1Example stablecoin AEXA(pegType string)(string or null)(number or null)(number or null)(integer)

Values here are placeholders showing the shape. No row is a real stablecoin and no call has been run for this article. The raw response also has id for each row; keep it in a working column so you can trace a row back to the response

Set limit and understand the cap

limit is optional. The contract's input schema gives it as an integer from 1 to 200, defaulting to 25 when omitted. Set it to 40 for the screen above. The stablecoins array has a maximum of 200 items. The cap matters at this step: a single call cannot return more than 200 rows, and a failed execution is not charged

Read the fields that drive the screen

Turn each item in stablecoins into a row. The required item fields are id, name, symbol, pegType and chainCount. The contract permits null for pegMechanism, circulating and price. Use pegType to group the peg category you will hold. Use pegMechanism to remove algorithmic designs; if it is null, the row cannot be classified from that field and needs a manual check. Use circulating to order the table and size the coin; a null has no number to rank. Use price to flag a coin away from its peg; compare it with the peg you expect, and treat a null as unknown rather than as a number. chainCount is an integer with a minimum of 0. The top-level response has stablecoins and matched; matched is an integer with a minimum of 0, and the contract does not define how it relates to the array length

Run the agent prompt for a 40-coin screen

The prompt below is a template. It uses the example limit of 40 and asks for the table above. Check the catalog before running it; the price line carries a revision date

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list 40 stablecoins by circulating supply with defillama.stablecoins.list. Before running, check the current inputs and the current price of defillama.stablecoins.list. Call the tool once with limit set to 40. Return a table with rank, name, symbol, pegType, pegMechanism, circulating, price and chainCount. Add rank yourself from 1 to the number of rows. Keep null values as null; do not replace them with zero. Include matched as a separate reported value. Do not invent rows or values.

Estimated tool cost

The catalog price for defillama.stablecoins.list is $0.0005 per call, read on November 17, 2026. The tool path is POST /v1/runs. The rule text says: "Fixed per-call price under the published tool contract; failed executions are not charged." The totals below are ceilings based on that price. Agent model fees are not counted

StepFormulaUnit pricePlanned quantityTotal
Default 25-coin snapshot1 call x $0.0005$0.0005 per call1$0.0005
Daily 40-coin screen for a week7 calls x $0.0005$0.0005 per call7$0.0035

Next action

Open defillama.stablecoins.list to start the 40-row screen. For a single equity quote, the companion guide is look up a Yahoo Finance stock quote

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with DefiLlama.
Explore DefiLlama tools and pricing

FAQ

How do I list stablecoins by circulating supply with DefiLlama?

Call defillama.stablecoins.list with a limit for the number of rows you want. The response returns stablecoins ranked by circulating supply, with peg type, mechanism, circulating supply and price for each row.

What input does defillama.stablecoins.list take?

The contract's input schema includes an optional limit, an integer from 1 to 200 that defaults to 25 when omitted.

What does the stablecoins array contain?

An item in the array carries id, name, symbol, pegType and chainCount as required fields, plus pegMechanism, circulating and price, which can be null.

How much does one call to defillama.stablecoins.list cost?

The catalog lists $0.0005 per call. Failed executions are not charged.

Can I get more than 200 stablecoins in one call?

No. A single call cannot return more than 200 rows, because limit has a maximum of 200 and the stablecoins array has a maximum of 200 items.

What happens when pegMechanism or price is null?

The contract permits null for pegMechanism, circulating and price. Treat a null as unknown rather than as a zero, and decide by hand whether the row stays in the screen.

How many calls does a daily screen for a week use?

A daily 40-coin screen for seven days uses 7 calls at $0.0005 per call, a ceiling of $0.0035 before agent model fees.

Next step

Try this with DefiLlama

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See DefiLlama tools

Share this article