{
  "data": {
    "id": "gSwiMv6IAfamCsQ2k",
    "actId": "3reMqRFfQdnztHOtf",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-11-26T07:45:26.240Z",
    "finishedAt": "2026-11-26T07:45:29.821Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "stats": {
      "durationMillis": 3431,
      "runTimeSecs": 3.431,
      "computeUnits": 0.003812222222222222,
      "imageSizeBytes": 319242752
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "6GwdnIcc2aWR7LzCS",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"DefiLlama Scraper Input\",\n  \"description\": \"Pull DeFi metrics from DefiLlama's public APIs. Choose a `mode`, optionally narrow by `chain` / `protocolSlug` / `category` / `stablecoin filters` / `URL`, and run.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to fetch.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"protocols\",\n        \"byProtocol\",\n        \"tvl\",\n        \"historicalChainTvl\",\n        \"stablecoins\",\n        \"stablecoinChains\",\n        \"stablecoinPrices\",\n        \"yields\",\n        \"yieldsByPool\",\n        \"dexVolumes\",\n        \"dexByProtocol\",\n        \"lendingMarkets\",\n        \"lendingByProtocol\",\n        \"fees\",\n        \"bridges\",\n        \"bridgeByName\",\n        \"currentPrices\",\n        \"byUrl\"\n      ],\n      \"enumTitles\": [\n        \"Protocols — list of all protocols with current TVL\",\n        \"By protocol — historical TVL + breakdown for one protocol\",\n        \"TVL — current TVL by chain (all chains)\",\n        \"Historical chain TVL — daily TVL series for one chain\",\n        \"Stablecoins — list with circulating supplies & breakdowns\",\n        \"Stablecoin chains — circulating per chain across all stablecoins\",\n        \"Stablecoin prices — historical price series\",\n        \"Yields — yield pool list (all pools)\",\n        \"Yields by pool — historical APY for one pool\",\n        \"DEX volumes — DEX overview / per-protocol volumes\",\n        \"DEX by protocol — historical volume for one DEX\",\n        \"Lending markets — lending overview (TVL/borrow)\",\n        \"Lending by protocol — historical lending for one protocol\",\n        \"Fees — protocol fees & revenue\",\n        \"Bridges — cross-chain bridge volume aggregates\",\n        \"Bridge by name — historical bridge volume\",\n        \"Current prices — current token prices by coingecko/chain id\",\n        \"By URL — paste a defillama.com URL, auto-detect mode\"\n      ],\n      \"default\": \"protocols\",\n      \"prefill\": \"protocols\"\n    },\n    \"protocolSlug\": {\n      \"title\": \"Protocol slug (mode=byProtocol / dexByProtocol / lendingByProtocol)\",\n      \"type\": \"string\",\n      \"description\": \"DefiLlama protocol slug — visible in the URL on defillama.com (e.g. `aave`, `lido`, `uniswap`, `curve-dex`). Example: `aave`.\",\n      \"editor\": \"textfield\",\n      \"sectionCaption\": \"Inputs\",\n      \"sectionDescription\": \"Mode-specific identifiers: protocol slug, chain name, stablecoin / pool / bridge / token IDs, or a defillama.com URL.\"\n    },\n    \"chain\": {\n      \"title\": \"Chain (mode=historicalChainTvl, optional filter)\",\n      \"type\": \"string\",\n      \"description\": \"Chain name as DefiLlama uses it. Required for `historicalChainTvl`; also filters protocols, chains, stablecoins, yields, DEX, lending, fees, and bridges by chain where the source exposes it. Use the dropdown for top chains, OR paste an exact chain name from the chains list (case-sensitive — DefiLlama uses `Ethereum`, `BSC`, etc.).\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"Ethereum\",\n        \"Tron\",\n        \"Solana\",\n        \"BSC\",\n        \"Bitcoin\",\n        \"Base\",\n        \"Arbitrum\",\n        \"Polygon\",\n        \"Avalanche\",\n        \"Sui\",\n        \"Hyperliquid\",\n        \"Optimism\",\n        \"Sei\",\n        \"Aptos\",\n        \"Mantle\",\n        \"Sonic\",\n        \"Cronos\",\n        \"Linea\",\n        \"Cardano\",\n        \"Mixin\",\n        \"Hedera\",\n        \"Manta\",\n        \"Blast\",\n        \"Scroll\",\n        \"Algorand\",\n        \"Polygon zkEVM\",\n        \"Fantom\",\n        \"Gnosis\",\n        \"Celo\",\n        \"zkSync Era\",\n        \"Stellar\"\n      ],\n      \"enumTitles\": [\n        \"(any)\",\n        \"Ethereum\",\n        \"Tron\",\n        \"Solana\",\n        \"BSC\",\n        \"Bitcoin\",\n        \"Base\",\n        \"Arbitrum\",\n        \"Polygon\",\n        \"Avalanche\",\n        \"Sui\",\n        \"Hyperliquid\",\n        \"Optimism\",\n        \"Sei\",\n        \"Aptos\",\n        \"Mantle\",\n        \"Sonic\",\n        \"Cronos\",\n        \"Linea\",\n        \"Cardano\",\n        \"Mixin\",\n        \"Hedera\",\n        \"Manta\",\n        \"Blast\",\n        \"Scroll\",\n        \"Algorand\",\n        \"Polygon zkEVM\",\n        \"Fantom\",\n        \"Gnosis\",\n        \"Celo\",\n        \"zkSync Era\",\n        \"Stellar\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"category\": {\n      \"title\": \"Category filter (protocols / DEX / lending / fees)\",\n      \"type\": \"string\",\n      \"description\": \"Filter records by DefiLlama category (e.g. `Lending`, `Dexes`, `Liquid Staking`, `Yield Aggregator`, `Bridge`, `CDP`, `Yield`, `Derivatives`, `Cross Chain`).\",\n      \"sectionCaption\": \"Filters\",\n      \"sectionDescription\": \"Optional filters applied after fetch: text search, chain, category, TVL/APY floors, and yield-only options.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"Lending\",\n        \"Dexes\",\n        \"Liquid Staking\",\n        \"Yield Aggregator\",\n        \"Bridge\",\n        \"CDP\",\n        \"Yield\",\n        \"Derivatives\",\n        \"Cross Chain\",\n        \"Restaking\",\n        \"Liquid Restaking\",\n        \"RWA\",\n        \"Stablecoin Issuer\",\n        \"Insurance\",\n        \"Synthetics\",\n        \"Options\",\n        \"Indexes\",\n        \"NFT Marketplace\",\n        \"NFT Lending\",\n        \"Launchpad\",\n        \"Prediction Market\",\n        \"Privacy\",\n        \"Algo-Stables\",\n        \"Services\"\n      ],\n      \"enumTitles\": [\n        \"(any)\",\n        \"Lending\",\n        \"Dexes\",\n        \"Liquid Staking\",\n        \"Yield Aggregator\",\n        \"Bridge\",\n        \"CDP\",\n        \"Yield\",\n        \"Derivatives\",\n        \"Cross Chain\",\n        \"Restaking\",\n        \"Liquid Restaking\",\n        \"RWA\",\n        \"Stablecoin Issuer\",\n        \"Insurance\",\n        \"Synthetics\",\n        \"Options\",\n        \"Indexes\",\n        \"NFT Marketplace\",\n        \"NFT Lending\",\n        \"Launchpad\",\n        \"Prediction Market\",\n        \"Privacy\",\n        \"Algo-Stables\",\n        \"Services\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"minTvlUsd\": {\n      \"title\": \"Minimum TVL in USD (protocols / chains / yields / lending)\",\n      \"type\": \"integer\",\n      \"description\": \"Drop records with TVL below this threshold (USD).\",\n      \"minimum\": 0,\n      \"maximum\": 1000000000000\n    },\n    \"searchQuery\": {\n      \"title\": \"Name search (any list mode)\",\n      \"type\": \"string\",\n      \"description\": \"Case-insensitive text match on name, symbol, or project — e.g. `aave`, `uniswap`, `USDC`.\",\n      \"editor\": \"textfield\"\n    },\n    \"minApy\": {\n      \"title\": \"Minimum APY % (mode=yields)\",\n      \"type\": \"number\",\n      \"description\": \"Drop yield pools whose total APY is below this percentage. Applies to `mode=yields` only.\",\n      \"minimum\": -100000,\n      \"maximum\": 1000000\n    },\n    \"yieldStablecoinOnly\": {\n      \"title\": \"Stablecoin pools only (mode=yields)\",\n      \"type\": \"boolean\",\n      \"description\": \"Keep only yield pools where DefiLlama marks the underlying asset as a stablecoin.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"yieldProject\": {\n      \"title\": \"Yield project filter (mode=yields)\",\n      \"type\": \"string\",\n      \"description\": \"Only keep yield pools from projects whose slug contains this text, e.g. `aave`, `lido`, `curve`.\",\n      \"editor\": \"textfield\"\n    },\n    \"stablecoinId\": {\n      \"title\": \"Stablecoin ID (mode=stablecoinPrices)\",\n      \"type\": \"integer\",\n      \"description\": \"DefiLlama stablecoin ID (e.g. `1` = USDT, `2` = USDC). See `mode=stablecoins` to enumerate.\",\n      \"minimum\": 1,\n      \"maximum\": 999\n    },\n    \"poolId\": {\n      \"title\": \"Pool ID (mode=yieldsByPool)\",\n      \"type\": \"string\",\n      \"description\": \"DefiLlama yield pool UUID (visible in the pool URL on yields.llama.fi).\",\n      \"editor\": \"textfield\"\n    },\n    \"bridgeName\": {\n      \"title\": \"Bridge name (mode=bridgeByName)\",\n      \"type\": \"string\",\n      \"description\": \"Bridge identifier from the bridges list.\",\n      \"editor\": \"textfield\"\n    },\n    \"tokenIds\": {\n      \"title\": \"Token IDs (mode=currentPrices)\",\n      \"type\": \"array\",\n      \"description\": \"List of token IDs in DefiLlama format: `coingecko:bitcoin`, `ethereum:0x...`, `bsc:0x...`. Up to 100 per call.\",\n      \"editor\": \"stringList\",\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"stablecoinIncludePrices\": {\n      \"title\": \"Include current prices (mode=stablecoins)\",\n      \"type\": \"boolean\",\n      \"description\": \"When true, the stablecoins endpoint includes current price data per asset.\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"url\": {\n      \"title\": \"URL (mode=byUrl)\",\n      \"type\": \"string\",\n      \"description\": \"Any defillama.com URL — auto-detected. Examples: defillama.com/protocol/aave , defillama.com/chain/Ethereum , stablecoins.llama.fi (homepage → top stablecoins).\",\n      \"editor\": \"textfield\"\n    },\n    \"maxItems\": {\n      \"title\": \"Max items (page size)\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on records emitted in this run. Combine with `offset` to page through a long result set. Example: `100`.\",\n      \"minimum\": 1,\n      \"maximum\": 50000,\n      \"default\": 100,\n      \"prefill\": 3,\n      \"sectionCaption\": \"Output\",\n      \"sectionDescription\": \"Pagination, sorting, and hard output caps.\"\n    },\n    \"offset\": {\n      \"title\": \"Pagination offset\",\n      \"type\": \"integer\",\n      \"description\": \"Skip this many records after filtering and sorting, then emit up to `maxItems`. Page 2 with `maxItems=100` means `offset=100`.\",\n      \"minimum\": 0,\n      \"maximum\": 1000000,\n      \"default\": 0,\n      \"prefill\": 0\n    },\n    \"sortBy\": {\n      \"title\": \"Sort by\",\n      \"type\": \"string\",\n      \"description\": \"Sort matching records before applying `offset` and `maxItems`. Leave empty to keep the source order.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"\",\n        \"tvlUsd\",\n        \"apy\",\n        \"apyBase\",\n        \"apyReward\",\n        \"change1d\",\n        \"change7d\",\n        \"volume24hUsd\",\n        \"fees24hUsd\",\n        \"circulating\",\n        \"priceUsd\",\n        \"marketCapUsd\",\n        \"date\",\n        \"timestamp\",\n        \"name\"\n      ],\n      \"enumTitles\": [\n        \"(source order)\",\n        \"TVL (USD)\",\n        \"APY (%)\",\n        \"Base APY (%)\",\n        \"Reward APY (%)\",\n        \"1-day change (%)\",\n        \"7-day change (%)\",\n        \"24h volume (USD)\",\n        \"24h fees (USD)\",\n        \"Circulating supply\",\n        \"Price (USD)\",\n        \"Market cap (USD)\",\n        \"Date\",\n        \"Timestamp\",\n        \"Name\"\n      ],\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"sortOrder\": {\n      \"title\": \"Sort direction\",\n      \"type\": \"string\",\n      \"description\": \"Direction used when `sortBy` is set. Records with a missing sort value are placed last.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"desc\",\n        \"asc\"\n      ],\n      \"enumTitles\": [\n        \"Highest / newest first\",\n        \"Lowest / oldest first\"\n      ],\n      \"default\": \"desc\",\n      \"prefill\": \"desc\"\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# DefiLlama Protocol, Chain & Yield Data Extractor\n\nPull live DeFi metrics straight from DefiLlama's open datasets — total value locked, stablecoin supply, yield-pool APY, DEX and lending volume, protocol fees, bridge flow, and token prices. Eighteen modes cover everything from one protocol's full TVL history to a ranked snapshot of every chain at once, with filters, deterministic sorting, and offset pagination on top.\n\n## What this actor does\n\n- **18 modes** spanning protocols, chains, stablecoins, yield pools, DEX/lending volume, fees, bridges, and token prices\n- **Snapshot and history pairs** — e.g. `protocols` for current TVL across every project, `byProtocol` for one project's full TVL time series\n- **`byUrl` auto-detect** — paste any defillama.com page URL and the actor chooses the right mode and identifier\n- **Mode-aware filters** — name search, chain, category, minimum TVL, minimum APY, stablecoin-only pools, and project-scoped yields\n- **Deterministic paging** — `sortBy` + `sortOrder` + `offset` + `maxItems` produce stable pages over a long result set\n- **Legacy key support in code** — old key names still work without cluttering the input form\n- **Empty fields are omitted** from every record\n\n## Output per record\n\nEvery record carries `recordType`, `siteName: \"DefiLlama\"`, and `scrapedAt`, plus the fields below for its type.\n\n**`protocol`** (modes `protocols`, `byProtocol`)\n- `id`, `slug`, `name`, `symbol`, `address`, `description`, `url`, `logo`\n- `chains[]`, `chain`, `category`, `module`, `parentProtocol`, `protocolType`, `isParentProtocol`, `misrepresentedTokens`\n- `rank` (TVL rank across all protocols), `tvl`, `tvlUsd`, `chainTvls`, `currentChainTvls`\n- `change1h`, `change1d`, `change7d`\n- `marketCapUsd`, `fullyDilutedValuationUsd`\n- `twitter`, `github[]`, `audits`, `auditLinks[]`, `governanceIds[]`, `methodology`\n- `listedAt`, `listedAtIso`, `cmcId`, `cgId`, `raiseCount`, `hackCount`\n- `defillamaUrl`\n\n**`protocolHistory`** (mode `byProtocol`) — `slug`, `date`, `dateIso`, `tvlUsd`\n\n**`chainTvl`** (mode `tvl`) — `name`, `tokenSymbol`, `chainId`, `cgId`, `gasTokenCgId`, `cmcId`, `rank`, `sharePct`, `tvlUsd`, `defillamaUrl`\n\n**`chainHistory`** (mode `historicalChainTvl`) — `chain`, `date`, `dateIso`, `tvlUsd`\n\n**`stablecoin`** (mode `stablecoins`) — `id`, `name`, `symbol`, `pegType`, `pegMechanism`, `chains[]`, `circulating`, `circulatingPrevDay`, `circulatingPrevWeek`, `circulatingPrevMonth`, `change1dPct`, `change7dPct`, `change30dPct`, `priceUsd` (when `stablecoinIncludePrices` is on), `delisted`, `defillamaUrl`\n\n**`stablecoinChain`** (mode `stablecoinChains`) — `name`, `circulatingUSD` or per-currency `circulating<CODE>` fields\n\n**`stablecoinPrice`** (mode `stablecoinPrices`) — `stablecoinId`, `name`, `symbol`, `currentPriceUsd`, `date`, `dateIso`, `circulatingUSD`\n\n**`yieldPool`** (mode `yields`) — `pool`, `poolMeta`, `project`, `symbol`, `chain`, `tvlUsd`, `apy`, `apyBase`, `apyReward`, `apyBase7d`, `apyMean30d`, `apyChange1d`, `apyChange7d`, `apyChange30d`, `ilRisk`, `il7d`, `exposure`, `stablecoin`, `volume1dUsd`, `volume7dUsd`, `predictedClass`, `predictedProbability`, `binnedConfidence`, `rewardTokens[]`, `underlyingTokens[]`, `defillamaUrl`\n\n**`yieldHistory`** (mode `yieldsByPool`) — `poolId`, `timestamp`, `apy`, `apyBase`, `apyReward`, `tvlUsd`\n\n**`dexVolume`** (mode `dexVolumes`) — `name`, `displayName`, `module`, `category`, `protocolType`, `parentProtocol`, `logo`, `url`, `chains[]`, `volume24hUsd`, `volume48to24hUsd`, `volumeLastFullDayUsd`, `volume7dUsd`, `volume14dto7dUsd`, `volume30dUsd`, `volume60dto30dUsd`, `volume1yUsd`, `volumeAllTimeUsd`, `annualized1yUsd`, `average1yUsd`, `monthlyAverage1yUsd`, `change1d`, `change7d`, `change30d`, `change7dOver7d`, `change30dOver30d`, `defillamaUrl`\n\n**`dexHistory`** (mode `dexByProtocol`) — `slug`, `timestamp`, `timestampIso`, `volumeUsd`\n\n**`lendingMarket`** / **`lendingHistory`** (modes `lendingMarkets`, `lendingByProtocol`) — public protocol TVL data for lending-category protocols, with the same identity, chain, rank, TVL, and change fields as protocol records plus a daily `tvlUsd` history\n\n**`fees`** (mode `fees`) — same shape as `dexVolume`, with `fees24hUsd`, `fees7dUsd`, `fees1yUsd`, etc. in place of `volume*Usd`\n\n**`bridge`** (mode `bridges`) — `id`, `name`, `displayName`, `icon`, `chains[]`, `volumeLastDayUsd`, `volumeDayBeforeUsd`, `volumeWeeklyUsd`, `volumeMonthlyUsd`, `txsLastDay`, `txsWeekly`, `txsMonthly` (DefiLlama currently gates this dataset behind a paid plan)\n\n**`bridgeHistory`** (mode `bridgeByName`) — `bridge`, `date`, `dateIso`, `depositUsd`, `withdrawUsd` (same paid-plan caveat)\n\n**`tokenPrice`** (mode `currentPrices`) — `tokenId`, `symbol`, `priceUsd`, `decimals`, `timestamp`, `timestampIso`, `confidence`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `protocols` | One of the 18 modes listed above |\n| `protocolSlug` | string | – | Protocol slug from its defillama.com URL, e.g. `aave` (modes `byProtocol` / `dexByProtocol` / `lendingByProtocol`) |\n| `chain` | string | – | Required for `historicalChainTvl`; also filters protocols, chains, stablecoins, yields, DEX, lending, fees, and bridges by chain where available |\n| `category` | string | – | Category filter for protocols, DEX, lending, and fee records, e.g. `Lending`, `Dexes` |\n| `minTvlUsd` | int | – | Drop records below this TVL in USD (protocols / chains / yields / lending) |\n| `searchQuery` | string | – | Case-insensitive name/symbol/project search across list modes |\n| `minApy` | number | – | Minimum total APY for yield pools (mode `yields`) |\n| `yieldStablecoinOnly` | boolean | `false` | Keep only stablecoin yield pools (mode `yields`) |\n| `yieldProject` | string | – | Keep yield pools whose project slug contains this text (mode `yields`) |\n| `stablecoinId` | int | – | DefiLlama stablecoin ID, e.g. `1` = USDT (mode `stablecoinPrices`) |\n| `poolId` | string | – | Yield pool UUID from yields.llama.fi (mode `yieldsByPool`) |\n| `bridgeName` | string | – | Bridge name from the bridges list (mode `bridgeByName`) |\n| `tokenIds` | array | `[]` | Token IDs in `coingecko:bitcoin` / `ethereum:0x...` format, up to 100 (mode `currentPrices`) |\n| `stablecoinIncludePrices` | boolean | `true` | Include current price per stablecoin (mode `stablecoins`) |\n| `url` | string | – | Any defillama.com URL — mode and identifier are detected automatically (mode `byUrl`) |\n| `maxItems` | int | `100` | Page size: hard cap on records emitted in this run |\n| `offset` | int | `0` | Records to skip after filtering and sorting; page 2 means `offset = maxItems` |\n| `sortBy` | string | – | Sort matching records before paging: TVL, APY, change, volume, fees, supply, price, market cap, date, timestamp, or name |\n| `sortOrder` | string | `desc` | `desc` or `asc`; records with a missing value sort last |\n\n### Example: top lending protocols on Ethereum\n\n```json\n{\n  \"mode\": \"protocols\",\n  \"chain\": \"Ethereum\",\n  \"category\": \"Lending\",\n  \"minTvlUsd\": 1000000000,\n  \"sortBy\": \"tvlUsd\",\n  \"sortOrder\": \"desc\",\n  \"maxItems\": 20\n}\n```\n\n### Example: second page of a long result set\n\n```json\n{\n  \"mode\": \"protocols\",\n  \"sortBy\": \"tvlUsd\",\n  \"sortOrder\": \"desc\",\n  \"offset\": 100,\n  \"maxItems\": 100\n}\n```\n\n### Example: higher-yield stablecoin pools\n\n```json\n{\n  \"mode\": \"yields\",\n  \"chain\": \"Ethereum\",\n  \"minTvlUsd\": 10000000,\n  \"minApy\": 5,\n  \"yieldStablecoinOnly\": true,\n  \"sortBy\": \"apy\",\n  \"maxItems\": 50\n}\n```\n\n### Example: full TVL history for one protocol\n\n```json\n{\n  \"mode\": \"byProtocol\",\n  \"protocolSlug\": \"aave\"\n}\n```\n\n### Example: auto-detect from a pasted URL\n\n```json\n{\n  \"mode\": \"byUrl\",\n  \"url\": \"https://defillama.com/chain/Ethereum\",\n  \"maxItems\": 50\n}\n```\n\n### Example: current prices for a token list\n\n```json\n{\n  \"mode\": \"currentPrices\",\n  \"tokenIds\": [\"coingecko:bitcoin\", \"coingecko:ethereum\", \"ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\"]\n}\n```\n\n## Legacy inputs\n\nSaved tasks that still send old key names keep working: keys such as `limit` / `maxResults` (→ `maxItems`), `skip` / `start` (→ `offset`), `protocol` / `slug` (→ `protocolSlug`), `chainName` (→ `chain`), `minTVL` (→ `minTvlUsd`), `pool` (→ `poolId`), `bridge` (→ `bridgeName`), `tokens` (→ `tokenIds`), `includePrices` (→ `stablecoinIncludePrices`), `search` / `query` (→ `searchQuery`), `project` (→ `yieldProject`), `stablecoinOnly` (→ `yieldStablecoinOnly`), and `sort` / `order` are mapped in code. Old identifiers such as `mode: \"protocol\"` or `mode: \"yield\"` are also understood by the code path, but the input schema validates `mode` against the canonical list, so use the canonical mode value in new runs.\n\n## Use cases\n\n- **Treasury dashboards** — pull chain and protocol TVL on a schedule to track exposure\n- **Yield scouting** — rank stablecoin pools by APY with TVL floors, then page through the tail\n- **DeFi research reports** — combine DEX volume, fees, and lending TVL for market-structure analysis\n- **Bridge-flow monitoring** — watch deposit/withdraw volume when the upstream dataset allows it\n- **Portfolio pricing** — look up current USD prices for a basket of tokens by ID\n\n## FAQ\n\n**Do I need an API key?**\nNo. Every mode reads DefiLlama's free public datasets and runs cookielessly.\n\n**How do I paginate?**\nSort first (`sortBy` + `sortOrder`), then set `offset` and `maxItems`. Without a sort the source order is preserved, which may change between runs.\n\n**How do I find `protocolSlug`, `poolId`, or `bridgeName`?**\nCopy the slug straight out of a defillama.com URL (e.g. `defillama.com/protocol/aave` → `aave`), or paste the whole URL into `mode: \"byUrl\"` and let the actor work it out.\n\n**Why doesn't `mode=protocols` include a TVL history?**\nIt returns the current snapshot (with 1h/1d/7d change) for every protocol in one call. For the full time series, use `mode=byProtocol` with a `protocolSlug`.\n\n**What happened to the lending modes?**\nDefiLlama's lending overview/summary endpoints currently return HTTP 500. The actor derives lending markets and history from public protocol TVL data for lending-category protocols instead, and says so in the run status. No cookie or key is involved.\n\n**Why are `bridges` and `bridgeByName` empty?**\nDefiLlama moved bridge volume and transaction history behind a paid plan. The run finishes cleanly with a status message explaining the limit; every other mode is unaffected.\n\n**Why do some chains show no TVL in `mode=tvl`?**\nChains with zero reported TVL are dropped so the dataset stays free of placeholder rows.\n\n**Is price data live?**\nYes for `currentPrices` — it reflects DefiLlama's latest aggregated quote, including a `confidence` score; values below `0.5` may be stale upstream.\n\n**Is this affiliated with DefiLlama?**\nNo. This is a third-party actor built on DefiLlama's publicly documented datasets; it is not affiliated with or endorsed by DefiLlama.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "defillama-protocol-chain-and-yield-data-extractor",
      "title": "DefiLlama Protocol, Chain & Yield Data Extractor",
      "description": "Pull DeFi protocol TVL history, chain rankings, stablecoin supply, yield-pool APY, DEX and lending volume, fees, bridge flow, and token prices from DefiLlama's open datasets.",
      "categories": [
        "BUSINESS",
        "DEVELOPER_TOOLS"
      ],
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# DefiLlama Protocol, Chain & Yield Data Extractor\n\nPull live DeFi metrics straight from DefiLlama's open datasets — total value locked, stablecoin supply, yield-pool APY, DEX and lending volume, protocol fees, bridge flow, and token prices. Eighteen modes cover everything from one protocol's full TVL history to a ranked snapshot of every chain at once, with filters, deterministic sorting, and offset pagination on top.\n\n## What this actor does\n\n- **18 modes** spanning protocols, chains, stablecoins, yield pools, DEX/lending volume, fees, bridges, and token prices\n- **Snapshot and history pairs** — e.g. `protocols` for current TVL across every project, `byProtocol` for one project's full TVL time series\n- **`byUrl` auto-detect** — paste any defillama.com page URL and the actor chooses the right mode and identifier\n- **Mode-aware filters** — name search, chain, category, minimum TVL, minimum APY, stablecoin-only pools, and project-scoped yields\n- **Deterministic paging** — `sortBy` + `sortOrder` + `offset` + `maxItems` produce stable pages over a long result set\n- **Legacy key support in code** — old key names still work without cluttering the input form\n- **Empty fields are omitted** from every record\n\n## Output per record\n\nEvery record carries `recordType`, `siteName: \"DefiLlama\"`, and `scrapedAt`, plus the fields below for its type.\n\n**`protocol`** (modes `protocols`, `byProtocol`)\n- `id`, `slug`, `name`, `symbol`, `address`, `description`, `url`, `logo`\n- `chains[]`, `chain`, `category`, `module`, `parentProtocol`, `protocolType`, `isParentProtocol`, `misrepresentedTokens`\n- `rank` (TVL rank across all protocols), `tvl`, `tvlUsd`, `chainTvls`, `currentChainTvls`\n- `change1h`, `change1d`, `change7d`\n- `marketCapUsd`, `fullyDilutedValuationUsd`\n- `twitter`, `github[]`, `audits`, `auditLinks[]`, `governanceIds[]`, `methodology`\n- `listedAt`, `listedAtIso`, `cmcId`, `cgId`, `raiseCount`, `hackCount`\n- `defillamaUrl`\n\n**`protocolHistory`** (mode `byProtocol`) — `slug`, `date`, `dateIso`, `tvlUsd`\n\n**`chainTvl`** (mode `tvl`) — `name`, `tokenSymbol`, `chainId`, `cgId`, `gasTokenCgId`, `cmcId`, `rank`, `sharePct`, `tvlUsd`, `defillamaUrl`\n\n**`chainHistory`** (mode `historicalChainTvl`) — `chain`, `date`, `dateIso`, `tvlUsd`\n\n**`stablecoin`** (mode `stablecoins`) — `id`, `name`, `symbol`, `pegType`, `pegMechanism`, `chains[]`, `circulating`, `circulatingPrevDay`, `circulatingPrevWeek`, `circulatingPrevMonth`, `change1dPct`, `change7dPct`, `change30dPct`, `priceUsd` (when `stablecoinIncludePrices` is on), `delisted`, `defillamaUrl`\n\n**`stablecoinChain`** (mode `stablecoinChains`) — `name`, `circulatingUSD` or per-currency `circulating<CODE>` fields\n\n**`stablecoinPrice`** (mode `stablecoinPrices`) — `stablecoinId`, `name`, `symbol`, `currentPriceUsd`, `date`, `dateIso`, `circulatingUSD`\n\n**`yieldPool`** (mode `yields`) — `pool`, `poolMeta`, `project`, `symbol`, `chain`, `tvlUsd`, `apy`, `apyBase`, `apyReward`, `apyBase7d`, `apyMean30d`, `apyChange1d`, `apyChange7d`, `apyChange30d`, `ilRisk`, `il7d`, `exposure`, `stablecoin`, `volume1dUsd`, `volume7dUsd`, `predictedClass`, `predictedProbability`, `binnedConfidence`, `rewardTokens[]`, `underlyingTokens[]`, `defillamaUrl`\n\n**`yieldHistory`** (mode `yieldsByPool`) — `poolId`, `timestamp`, `apy`, `apyBase`, `apyReward`, `tvlUsd`\n\n**`dexVolume`** (mode `dexVolumes`) — `name`, `displayName`, `module`, `category`, `protocolType`, `parentProtocol`, `logo`, `url`, `chains[]`, `volume24hUsd`, `volume48to24hUsd`, `volumeLastFullDayUsd`, `volume7dUsd`, `volume14dto7dUsd`, `volume30dUsd`, `volume60dto30dUsd`, `volume1yUsd`, `volumeAllTimeUsd`, `annualized1yUsd`, `average1yUsd`, `monthlyAverage1yUsd`, `change1d`, `change7d`, `change30d`, `change7dOver7d`, `change30dOver30d`, `defillamaUrl`\n\n**`dexHistory`** (mode `dexByProtocol`) — `slug`, `timestamp`, `timestampIso`, `volumeUsd`\n\n**`lendingMarket`** / **`lendingHistory`** (modes `lendingMarkets`, `lendingByProtocol`) — public protocol TVL data for lending-category protocols, with the same identity, chain, rank, TVL, and change fields as protocol records plus a daily `tvlUsd` history\n\n**`fees`** (mode `fees`) — same shape as `dexVolume`, with `fees24hUsd`, `fees7dUsd`, `fees1yUsd`, etc. in place of `volume*Usd`\n\n**`bridge`** (mode `bridges`) — `id`, `name`, `displayName`, `icon`, `chains[]`, `volumeLastDayUsd`, `volumeDayBeforeUsd`, `volumeWeeklyUsd`, `volumeMonthlyUsd`, `txsLastDay`, `txsWeekly`, `txsMonthly` (DefiLlama currently gates this dataset behind a paid plan)\n\n**`bridgeHistory`** (mode `bridgeByName`) — `bridge`, `date`, `dateIso`, `depositUsd`, `withdrawUsd` (same paid-plan caveat)\n\n**`tokenPrice`** (mode `currentPrices`) — `tokenId`, `symbol`, `priceUsd`, `decimals`, `timestamp`, `timestampIso`, `confidence`\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `protocols` | One of the 18 modes listed above |\n| `protocolSlug` | string | – | Protocol slug from its defillama.com URL, e.g. `aave` (modes `byProtocol` / `dexByProtocol` / `lendingByProtocol`) |\n| `chain` | string | – | Required for `historicalChainTvl`; also filters protocols, chains, stablecoins, yields, DEX, lending, fees, and bridges by chain where available |\n| `category` | string | – | Category filter for protocols, DEX, lending, and fee records, e.g. `Lending`, `Dexes` |\n| `minTvlUsd` | int | – | Drop records below this TVL in USD (protocols / chains / yields / lending) |\n| `searchQuery` | string | – | Case-insensitive name/symbol/project search across list modes |\n| `minApy` | number | – | Minimum total APY for yield pools (mode `yields`) |\n| `yieldStablecoinOnly` | boolean | `false` | Keep only stablecoin yield pools (mode `yields`) |\n| `yieldProject` | string | – | Keep yield pools whose project slug contains this text (mode `yields`) |\n| `stablecoinId` | int | – | DefiLlama stablecoin ID, e.g. `1` = USDT (mode `stablecoinPrices`) |\n| `poolId` | string | – | Yield pool UUID from yields.llama.fi (mode `yieldsByPool`) |\n| `bridgeName` | string | – | Bridge name from the bridges list (mode `bridgeByName`) |\n| `tokenIds` | array | `[]` | Token IDs in `coingecko:bitcoin` / `ethereum:0x...` format, up to 100 (mode `currentPrices`) |\n| `stablecoinIncludePrices` | boolean | `true` | Include current price per stablecoin (mode `stablecoins`) |\n| `url` | string | – | Any defillama.com URL — mode and identifier are detected automatically (mode `byUrl`) |\n| `maxItems` | int | `100` | Page size: hard cap on records emitted in this run |\n| `offset` | int | `0` | Records to skip after filtering and sorting; page 2 means `offset = maxItems` |\n| `sortBy` | string | – | Sort matching records before paging: TVL, APY, change, volume, fees, supply, price, market cap, date, timestamp, or name |\n| `sortOrder` | string | `desc` | `desc` or `asc`; records with a missing value sort last |\n\n### Example: top lending protocols on Ethereum\n\n```json\n{\n  \"mode\": \"protocols\",\n  \"chain\": \"Ethereum\",\n  \"category\": \"Lending\",\n  \"minTvlUsd\": 1000000000,\n  \"sortBy\": \"tvlUsd\",\n  \"sortOrder\": \"desc\",\n  \"maxItems\": 20\n}\n```\n\n### Example: second page of a long result set\n\n```json\n{\n  \"mode\": \"protocols\",\n  \"sortBy\": \"tvlUsd\",\n  \"sortOrder\": \"desc\",\n  \"offset\": 100,\n  \"maxItems\": 100\n}\n```\n\n### Example: higher-yield stablecoin pools\n\n```json\n{\n  \"mode\": \"yields\",\n  \"chain\": \"Ethereum\",\n  \"minTvlUsd\": 10000000,\n  \"minApy\": 5,\n  \"yieldStablecoinOnly\": true,\n  \"sortBy\": \"apy\",\n  \"maxItems\": 50\n}\n```\n\n### Example: full TVL history for one protocol\n\n```json\n{\n  \"mode\": \"byProtocol\",\n  \"protocolSlug\": \"aave\"\n}\n```\n\n### Example: auto-detect from a pasted URL\n\n```json\n{\n  \"mode\": \"byUrl\",\n  \"url\": \"https://defillama.com/chain/Ethereum\",\n  \"maxItems\": 50\n}\n```\n\n### Example: current prices for a token list\n\n```json\n{\n  \"mode\": \"currentPrices\",\n  \"tokenIds\": [\"coingecko:bitcoin\", \"coingecko:ethereum\", \"ethereum:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48\"]\n}\n```\n\n## Legacy inputs\n\nSaved tasks that still send old key names keep working: keys such as `limit` / `maxResults` (→ `maxItems`), `skip` / `start` (→ `offset`), `protocol` / `slug` (→ `protocolSlug`), `chainName` (→ `chain`), `minTVL` (→ `minTvlUsd`), `pool` (→ `poolId`), `bridge` (→ `bridgeName`), `tokens` (→ `tokenIds`), `includePrices` (→ `stablecoinIncludePrices`), `search` / `query` (→ `searchQuery`), `project` (→ `yieldProject`), `stablecoinOnly` (→ `yieldStablecoinOnly`), and `sort` / `order` are mapped in code. Old identifiers such as `mode: \"protocol\"` or `mode: \"yield\"` are also understood by the code path, but the input schema validates `mode` against the canonical list, so use the canonical mode value in new runs.\n\n## Use cases\n\n- **Treasury dashboards** — pull chain and protocol TVL on a schedule to track exposure\n- **Yield scouting** — rank stablecoin pools by APY with TVL floors, then page through the tail\n- **DeFi research reports** — combine DEX volume, fees, and lending TVL for market-structure analysis\n- **Bridge-flow monitoring** — watch deposit/withdraw volume when the upstream dataset allows it\n- **Portfolio pricing** — look up current USD prices for a basket of tokens by ID\n\n## FAQ\n\n**Do I need an API key?**\nNo. Every mode reads DefiLlama's free public datasets and runs cookielessly.\n\n**How do I paginate?**\nSort first (`sortBy` + `sortOrder`), then set `offset` and `maxItems`. Without a sort the source order is preserved, which may change between runs.\n\n**How do I find `protocolSlug`, `poolId`, or `bridgeName`?**\nCopy the slug straight out of a defillama.com URL (e.g. `defillama.com/protocol/aave` → `aave`), or paste the whole URL into `mode: \"byUrl\"` and let the actor work it out.\n\n**Why doesn't `mode=protocols` include a TVL history?**\nIt returns the current snapshot (with 1h/1d/7d change) for every protocol in one call. For the full time series, use `mode=byProtocol` with a `protocolSlug`.\n\n**What happened to the lending modes?**\nDefiLlama's lending overview/summary endpoints currently return HTTP 500. The actor derives lending markets and history from public protocol TVL data for lending-category protocols instead, and says so in the run status. No cookie or key is involved.\n\n**Why are `bridges` and `bridgeByName` empty?**\nDefiLlama moved bridge volume and transaction history behind a paid plan. The run finishes cleanly with a status message explaining the limit; every other mode is unaffected.\n\n**Why do some chains show no TVL in `mode=tvl`?**\nChains with zero reported TVL are dropped so the dataset stays free of placeholder rows.\n\n**Is price data live?**\nYes for `currentPrices` — it reflects DefiLlama's latest aggregated quote, including a `confidence` score; values below `0.5` may be stale upstream.\n\n**Is this affiliated with DefiLlama?**\nNo. This is a third-party actor built on DefiLlama's publicly documented datasets; it is not affiliated with or endorsed by DefiLlama.\n",
      "input": {
        "title": "DefiLlama Scraper Input",
        "description": "Pull DeFi metrics from DefiLlama's public APIs. Choose a `mode`, optionally narrow by `chain` / `protocolSlug` / `category` / `stablecoin filters` / `URL`, and run.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to fetch.",
            "editor": "select",
            "enum": [
              "protocols",
              "byProtocol",
              "tvl",
              "historicalChainTvl",
              "stablecoins",
              "stablecoinChains",
              "stablecoinPrices",
              "yields",
              "yieldsByPool",
              "dexVolumes",
              "dexByProtocol",
              "lendingMarkets",
              "lendingByProtocol",
              "fees",
              "bridges",
              "bridgeByName",
              "currentPrices",
              "byUrl"
            ],
            "enumTitles": [
              "Protocols — list of all protocols with current TVL",
              "By protocol — historical TVL + breakdown for one protocol",
              "TVL — current TVL by chain (all chains)",
              "Historical chain TVL — daily TVL series for one chain",
              "Stablecoins — list with circulating supplies & breakdowns",
              "Stablecoin chains — circulating per chain across all stablecoins",
              "Stablecoin prices — historical price series",
              "Yields — yield pool list (all pools)",
              "Yields by pool — historical APY for one pool",
              "DEX volumes — DEX overview / per-protocol volumes",
              "DEX by protocol — historical volume for one DEX",
              "Lending markets — lending overview (TVL/borrow)",
              "Lending by protocol — historical lending for one protocol",
              "Fees — protocol fees & revenue",
              "Bridges — cross-chain bridge volume aggregates",
              "Bridge by name — historical bridge volume",
              "Current prices — current token prices by coingecko/chain id",
              "By URL — paste a defillama.com URL, auto-detect mode"
            ],
            "default": "protocols",
            "prefill": "protocols"
          },
          "protocolSlug": {
            "title": "Protocol slug (mode=byProtocol / dexByProtocol / lendingByProtocol)",
            "type": "string",
            "description": "DefiLlama protocol slug — visible in the URL on defillama.com (e.g. `aave`, `lido`, `uniswap`, `curve-dex`). Example: `aave`.",
            "editor": "textfield",
            "sectionCaption": "Inputs",
            "sectionDescription": "Mode-specific identifiers: protocol slug, chain name, stablecoin / pool / bridge / token IDs, or a defillama.com URL."
          },
          "chain": {
            "title": "Chain (mode=historicalChainTvl, optional filter)",
            "type": "string",
            "description": "Chain name as DefiLlama uses it. Required for `historicalChainTvl`; also filters protocols, chains, stablecoins, yields, DEX, lending, fees, and bridges by chain where the source exposes it. Use the dropdown for top chains, OR paste an exact chain name from the chains list (case-sensitive — DefiLlama uses `Ethereum`, `BSC`, etc.).",
            "editor": "select",
            "enum": [
              "",
              "Ethereum",
              "Tron",
              "Solana",
              "BSC",
              "Bitcoin",
              "Base",
              "Arbitrum",
              "Polygon",
              "Avalanche",
              "Sui",
              "Hyperliquid",
              "Optimism",
              "Sei",
              "Aptos",
              "Mantle",
              "Sonic",
              "Cronos",
              "Linea",
              "Cardano",
              "Mixin",
              "Hedera",
              "Manta",
              "Blast",
              "Scroll",
              "Algorand",
              "Polygon zkEVM",
              "Fantom",
              "Gnosis",
              "Celo",
              "zkSync Era",
              "Stellar"
            ],
            "enumTitles": [
              "(any)",
              "Ethereum",
              "Tron",
              "Solana",
              "BSC",
              "Bitcoin",
              "Base",
              "Arbitrum",
              "Polygon",
              "Avalanche",
              "Sui",
              "Hyperliquid",
              "Optimism",
              "Sei",
              "Aptos",
              "Mantle",
              "Sonic",
              "Cronos",
              "Linea",
              "Cardano",
              "Mixin",
              "Hedera",
              "Manta",
              "Blast",
              "Scroll",
              "Algorand",
              "Polygon zkEVM",
              "Fantom",
              "Gnosis",
              "Celo",
              "zkSync Era",
              "Stellar"
            ],
            "default": "",
            "prefill": ""
          },
          "category": {
            "title": "Category filter (protocols / DEX / lending / fees)",
            "type": "string",
            "description": "Filter records by DefiLlama category (e.g. `Lending`, `Dexes`, `Liquid Staking`, `Yield Aggregator`, `Bridge`, `CDP`, `Yield`, `Derivatives`, `Cross Chain`).",
            "sectionCaption": "Filters",
            "sectionDescription": "Optional filters applied after fetch: text search, chain, category, TVL/APY floors, and yield-only options.",
            "editor": "select",
            "enum": [
              "",
              "Lending",
              "Dexes",
              "Liquid Staking",
              "Yield Aggregator",
              "Bridge",
              "CDP",
              "Yield",
              "Derivatives",
              "Cross Chain",
              "Restaking",
              "Liquid Restaking",
              "RWA",
              "Stablecoin Issuer",
              "Insurance",
              "Synthetics",
              "Options",
              "Indexes",
              "NFT Marketplace",
              "NFT Lending",
              "Launchpad",
              "Prediction Market",
              "Privacy",
              "Algo-Stables",
              "Services"
            ],
            "enumTitles": [
              "(any)",
              "Lending",
              "Dexes",
              "Liquid Staking",
              "Yield Aggregator",
              "Bridge",
              "CDP",
              "Yield",
              "Derivatives",
              "Cross Chain",
              "Restaking",
              "Liquid Restaking",
              "RWA",
              "Stablecoin Issuer",
              "Insurance",
              "Synthetics",
              "Options",
              "Indexes",
              "NFT Marketplace",
              "NFT Lending",
              "Launchpad",
              "Prediction Market",
              "Privacy",
              "Algo-Stables",
              "Services"
            ],
            "default": "",
            "prefill": ""
          },
          "minTvlUsd": {
            "title": "Minimum TVL in USD (protocols / chains / yields / lending)",
            "type": "integer",
            "description": "Drop records with TVL below this threshold (USD).",
            "minimum": 0,
            "maximum": 1000000000000
          },
          "searchQuery": {
            "title": "Name search (any list mode)",
            "type": "string",
            "description": "Case-insensitive text match on name, symbol, or project — e.g. `aave`, `uniswap`, `USDC`.",
            "editor": "textfield"
          },
          "minApy": {
            "title": "Minimum APY % (mode=yields)",
            "type": "number",
            "description": "Drop yield pools whose total APY is below this percentage. Applies to `mode=yields` only.",
            "minimum": -100000,
            "maximum": 1000000
          },
          "yieldStablecoinOnly": {
            "title": "Stablecoin pools only (mode=yields)",
            "type": "boolean",
            "description": "Keep only yield pools where DefiLlama marks the underlying asset as a stablecoin.",
            "default": false,
            "prefill": false
          },
          "yieldProject": {
            "title": "Yield project filter (mode=yields)",
            "type": "string",
            "description": "Only keep yield pools from projects whose slug contains this text, e.g. `aave`, `lido`, `curve`.",
            "editor": "textfield"
          },
          "stablecoinId": {
            "title": "Stablecoin ID (mode=stablecoinPrices)",
            "type": "integer",
            "description": "DefiLlama stablecoin ID (e.g. `1` = USDT, `2` = USDC). See `mode=stablecoins` to enumerate.",
            "minimum": 1,
            "maximum": 999
          },
          "poolId": {
            "title": "Pool ID (mode=yieldsByPool)",
            "type": "string",
            "description": "DefiLlama yield pool UUID (visible in the pool URL on yields.llama.fi).",
            "editor": "textfield"
          },
          "bridgeName": {
            "title": "Bridge name (mode=bridgeByName)",
            "type": "string",
            "description": "Bridge identifier from the bridges list.",
            "editor": "textfield"
          },
          "tokenIds": {
            "title": "Token IDs (mode=currentPrices)",
            "type": "array",
            "description": "List of token IDs in DefiLlama format: `coingecko:bitcoin`, `ethereum:0x...`, `bsc:0x...`. Up to 100 per call.",
            "editor": "stringList",
            "default": [],
            "prefill": []
          },
          "stablecoinIncludePrices": {
            "title": "Include current prices (mode=stablecoins)",
            "type": "boolean",
            "description": "When true, the stablecoins endpoint includes current price data per asset.",
            "default": true,
            "prefill": true
          },
          "url": {
            "title": "URL (mode=byUrl)",
            "type": "string",
            "description": "Any defillama.com URL — auto-detected. Examples: defillama.com/protocol/aave , defillama.com/chain/Ethereum , stablecoins.llama.fi (homepage → top stablecoins).",
            "editor": "textfield"
          },
          "maxItems": {
            "title": "Max items (page size)",
            "type": "integer",
            "description": "Hard cap on records emitted in this run. Combine with `offset` to page through a long result set. Example: `100`.",
            "minimum": 1,
            "maximum": 50000,
            "default": 100,
            "prefill": 3,
            "sectionCaption": "Output",
            "sectionDescription": "Pagination, sorting, and hard output caps."
          },
          "offset": {
            "title": "Pagination offset",
            "type": "integer",
            "description": "Skip this many records after filtering and sorting, then emit up to `maxItems`. Page 2 with `maxItems=100` means `offset=100`.",
            "minimum": 0,
            "maximum": 1000000,
            "default": 0,
            "prefill": 0
          },
          "sortBy": {
            "title": "Sort by",
            "type": "string",
            "description": "Sort matching records before applying `offset` and `maxItems`. Leave empty to keep the source order.",
            "editor": "select",
            "enum": [
              "",
              "tvlUsd",
              "apy",
              "apyBase",
              "apyReward",
              "change1d",
              "change7d",
              "volume24hUsd",
              "fees24hUsd",
              "circulating",
              "priceUsd",
              "marketCapUsd",
              "date",
              "timestamp",
              "name"
            ],
            "enumTitles": [
              "(source order)",
              "TVL (USD)",
              "APY (%)",
              "Base APY (%)",
              "Reward APY (%)",
              "1-day change (%)",
              "7-day change (%)",
              "24h volume (USD)",
              "24h fees (USD)",
              "Circulating supply",
              "Price (USD)",
              "Market cap (USD)",
              "Date",
              "Timestamp",
              "Name"
            ],
            "default": "",
            "prefill": ""
          },
          "sortOrder": {
            "title": "Sort direction",
            "type": "string",
            "description": "Direction used when `sortBy` is set. Records with a missing sort value are placed last.",
            "editor": "select",
            "enum": [
              "desc",
              "asc"
            ],
            "enumTitles": [
              "Highest / newest first",
              "Lowest / oldest first"
            ],
            "default": "desc",
            "prefill": "desc"
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "DefiLlama Protocol, Chain & Yield Data Extractor Output",
        "description": "DeFi records covering protocol TVL, chain rankings, stablecoins, yield pools, DEX/lending volume, fees, bridges, and token prices, each tagged with a recordType and supporting filters, sorting, and offset pagination.",
        "properties": {
          "records": {
            "type": "string",
            "title": "DefiLlama records",
            "description": "Dataset containing all scraped DefiLlama records.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Records",
              "transformation": {
                "fields": [
                  "recordType",
                  "name",
                  "category",
                  "chain",
                  "tvl",
                  "tvlUsd",
                  "url",
                  "apy",
                  "priceUsd",
                  "dateIso",
                  "pool",
                  "project",
                  "rank",
                  "sharePct"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "recordType": {
                    "label": "Type",
                    "format": "text"
                  },
                  "name": {
                    "label": "Name",
                    "format": "text"
                  },
                  "category": {
                    "label": "Category",
                    "format": "text"
                  },
                  "chain": {
                    "label": "Chain",
                    "format": "text"
                  },
                  "tvl": {
                    "label": "TVL",
                    "format": "number"
                  },
                  "tvlUsd": {
                    "label": "TVL USD",
                    "format": "number"
                  },
                  "url": {
                    "label": "URL",
                    "format": "link"
                  },
                  "apy": {
                    "label": "APY %",
                    "format": "number"
                  },
                  "priceUsd": {
                    "label": "Price USD",
                    "format": "number"
                  },
                  "dateIso": {
                    "label": "Date",
                    "format": "text"
                  },
                  "pool": {
                    "label": "Pool",
                    "format": "text"
                  },
                  "project": {
                    "label": "Project",
                    "format": "text"
                  },
                  "rank": {
                    "label": "Rank",
                    "format": "number"
                  },
                  "sharePct": {
                    "label": "Share %",
                    "format": "number"
                  }
                }
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.2",
    "imageDigest": "74513fae154d2553e369af561f1adc0d2cd9a53401e84d9a108e46749ef416b9",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.003812222222222222
    }
  }
}