[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [DeFiLlama yield pool history](https://spiral.ai/integrations/gemini-cli/defillama-yield-pool-history)

# How to Use DeFiLlama yield pool history in Gemini CLI

Returns historical APY and total value locked for one DeFi pool. Use it to check whether a pool's current yield reflects a sustained pattern or a brief spike.

|  |  |
| --- | --- |
| Model | DeFiLlama yield pool history |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with DeFiLlama yield pool history in Gemini CLI

- Use DeFiLlama yield pool history for the Aave V3 USDC pool on Ethereum, resolving its pool ID first, and add APY and TVL charts to the project.
- Use DeFiLlama yield pool history to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from DeFiLlama yield pool history and tell me what changed since last week.
- Check DeFiLlama yield pool history and summarize what you find in three bullet points.
- Pull the newest data from DeFiLlama yield pool history and give me the result as a table.

## How to set up DeFiLlama yield pool history in Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run DeFiLlama yield pool history**: One request; the result comes back by polling or a webhook.

```bash
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_pool_history",
    "input": {
      "pool": "<pool>"
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds DeFiLlama yield pool history on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## DeFiLlama yield pool history tools and prices

- [DeFiLlama · Yield pool history](https://spiral.ai/tools/alexandria/defillama-com/crypto/yield_pool_history) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 4000 | 90 | Maximum points, newest first (1..4000, default 90). |

## What can you do with DeFiLlama yield pool history in Gemini CLI?

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.

### Check yield persistence

Find USDC pools on Ethereum and compare their current APYs with their historical ranges. Show the accompanying TVL changes to give each yield comparison context.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## DeFiLlama yield pool history in other agents

- [Amp](https://spiral.ai/integrations/amp/defillama-yield-pool-history)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/defillama-yield-pool-history)
- [Claude](https://spiral.ai/integrations/claude-desktop/defillama-yield-pool-history)
- [Claude Code](https://spiral.ai/integrations/claude-code/defillama-yield-pool-history)
- [Cline](https://spiral.ai/integrations/cline/defillama-yield-pool-history)
- [Codex](https://spiral.ai/integrations/codex/defillama-yield-pool-history)
- [Cursor](https://spiral.ai/integrations/cursor/defillama-yield-pool-history)
- [Devin](https://spiral.ai/integrations/devin/defillama-yield-pool-history)
- [dots](https://spiral.ai/integrations/dots/defillama-yield-pool-history)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/defillama-yield-pool-history)
- [Gemini](https://spiral.ai/integrations/gemini/defillama-yield-pool-history)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/defillama-yield-pool-history)
- [goose](https://spiral.ai/integrations/goose/defillama-yield-pool-history)
- [Grok](https://spiral.ai/integrations/grok/defillama-yield-pool-history)
- [Grok Build](https://spiral.ai/integrations/grok-build/defillama-yield-pool-history)
- [Hermes](https://spiral.ai/integrations/hermes/defillama-yield-pool-history)
- [Instinct](https://spiral.ai/integrations/instinct/defillama-yield-pool-history)
- [Manus](https://spiral.ai/integrations/manus/defillama-yield-pool-history)
- [Muse](https://spiral.ai/integrations/muse/defillama-yield-pool-history)
- [Muse Code](https://spiral.ai/integrations/muse-code/defillama-yield-pool-history)
- [n8n](https://spiral.ai/integrations/n8n/defillama-yield-pool-history)
- [Notion](https://spiral.ai/integrations/notion/defillama-yield-pool-history)
- [OpenClaw](https://spiral.ai/integrations/openclaw/defillama-yield-pool-history)
- [opencode](https://spiral.ai/integrations/opencode/defillama-yield-pool-history)
- [Perplexity](https://spiral.ai/integrations/perplexity/defillama-yield-pool-history)
- [Raycast](https://spiral.ai/integrations/raycast/defillama-yield-pool-history)
- [VS Code](https://spiral.ai/integrations/vscode/defillama-yield-pool-history)
- [Windsurf](https://spiral.ai/integrations/windsurf/defillama-yield-pool-history)
- [Zapier](https://spiral.ai/integrations/zapier/defillama-yield-pool-history)

## More Gemini CLI guides

- [DeFiLlama token prices](https://spiral.ai/integrations/gemini-cli/defillama-token-prices)
- [DeFiLlama yield pools](https://spiral.ai/integrations/gemini-cli/defillama-yield-pools)
- [DeFiLlama token price history](https://spiral.ai/integrations/gemini-cli/defillama-token-price-history)
- [ECB dataset search](https://spiral.ai/integrations/gemini-cli/ecb-dataset-search)
- [DeFiLlama stablecoin supply rankings](https://spiral.ai/integrations/gemini-cli/defillama-stablecoin-supply-rankings)
- [ECB economic time series](https://spiral.ai/integrations/gemini-cli/ecb-economic-time-series)

## Questions about DeFiLlama yield pool history in Gemini CLI

**Can Gemini CLI use DeFiLlama yield pool history?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run DeFiLlama yield pool history like any built-in tool.

**How much does DeFiLlama yield pool history cost in Gemini CLI?**

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

**Do I need an Alexandria account to use DeFiLlama yield pool history in Gemini CLI?**

No. Spiral runs DeFiLlama yield pool history 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 yield pool history in Gemini CLI?**

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

**Does Gemini CLI wait while DeFiLlama yield pool history runs?**

DeFiLlama yield pool history runs in the background. Gemini CLI 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.

