# LST Health Tracker — stETH rETH cbETH wstETH Peg Live (`gochujang/lst-health-tracker`) Actor

Real-time peg deviation for major LSTs: stETH, rETH, cbETH, wstETH, weETH, frxETH, sfrxETH, ezETH. Rebasing vs reward-bearing handled correctly (no false depeg). PPE $0.002/LST.

- **URL**: https://apify.com/gochujang/lst-health-tracker.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Liquid Staking ETH Health Tracker

> Live state of every major Ethereum LST: **stETH, wstETH, rETH, cbETH, frxETH, sfrxETH, ETHx, weETH, swETH, ezETH**. Supply, APY, USD price, peg vs ETH, and Lido's withdrawal-queue ETH balance. Telegram depeg alerts. No API key required.

---

### What It Does

Liquid staking is now a >$25B market — and the most-watched risk in DeFi after stablecoins. This Actor returns, for each tracked LST:

- **Current on-chain supply** (Etherscan tokensupply)
- **Live APY** + base + reward (DefiLlama yields)
- **TVL in USD** (DefiLlama)
- **Live USD price** (Coingecko)
- **Peg vs ETH %** (key depeg early-warning)
- **Issuer label** (Lido, Rocket Pool, Coinbase, Frax, Stader, ether.fi, Swell, Renzo)
- **Category** (LST vs LRT)

Plus an optional row for **Lido's WithdrawalQueueERC721 ETH balance** — the contract-held ETH waiting to be redeemed. Sustained queue growth = Lido unstake pressure.

---

### Why This Matters

- **2022 stETH depeg flashbacks**: stETH traded at -8% during the Celsius/3AC unwind. The first 1% depeg signal would have been worth millions to anyone watching this number. This Actor monitors it.
- **LRT depegs (ezETH, weETH) cascade fast.** Restaking adds slashing risk on top of staking risk — peg matters more, not less.
- **Lido queue length** correlates with macro deleveraging events (LST holders rushing the exit during ETH dumps).

---

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `issuers` | array | all | Subset of `Lido, Rocket Pool, Coinbase, Frax, Stader, ether.fi, Swell, Renzo` |
| `includeWithdrawQueue` | boolean | `true` | Add a Lido withdraw-queue ETH balance row |
| `alertPegDeviationPct` | number | `0` | Telegram alert if any LST trades > X% below ETH. 0 = off |
| `telegramBotToken` | string (secret) | — | Bot token |
| `telegramChatId` | string | — | Chat ID |

#### Example: Lido + Rocket Pool only with depeg alert
```json
{
  "issuers": ["Lido", "Rocket Pool"],
  "alertPegDeviationPct": 0.5,
  "telegramBotToken": "...",
  "telegramChatId": "..."
}
````

#### Example: Full LST/LRT sweep

```json
{"alertPegDeviationPct": 1.0}
```

***

### Output

```json
{
  "symbol": "stETH",
  "issuer": "Lido",
  "category": "LST",
  "contract": "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
  "supply_native": 8881877.31,
  "price_usd": 3920.45,
  "eth_price_usd": 3924.01,
  "peg_vs_eth_pct": -0.09,
  "tvl_usd": 15612345678,
  "apy_pct": 2.513,
  "apy_base_pct": 2.513,
  "apy_reward_pct": null,
  "defillama_pool_id": "ae6e2c61-..."
}
```

Plus a **SUMMARY** with total TVL, depeg list, and Lido queue ETH balance.

***

### Pricing

- **$0.002 per LST returned** (slightly higher due to multiple data sources per row)

Examples:

- Full sweep (~10 LSTs + queue): **$0.022**
- Lido-only: **$0.004**

***

### Use Cases

**Depeg early-warning** — Schedule every 10 minutes with `alertPegDeviationPct: 0.5`. Catch unwinds the moment they start.

**LST APY arbitrage scanner** — Compare APY across issuers. When rETH APY beats stETH by 1%+ for sustained periods, capital flows shift.

**Lido queue stress monitor** — Track the queue ETH balance as a daily metric. Spikes correlate with risk-off events.

***

### Data Sources

- **DefiLlama** `/yields/pools` (TVL + APY per pool)
- **Etherscan V2** `tokensupply` + `balance` for the Lido queue
- **Coingecko** `simple/price` for USD pricing
- No API key required (Etherscan key bundled)

***

### Limitations

- Ethereum mainnet only.
- Peg is computed against ETH spot from Coingecko — not from any specific DEX pool. Pool-level peg can differ slightly during illiquid moments.
- Lido withdraw queue balance is a proxy, not a precise queue-length signal. The contract balance includes already-finalized + unclaimed withdrawals.

***

### Related Actors

- **[EigenLayer Restaking Tracker](https://apify.com/gochujang/eigenlayer-restaking-tracker)** — Covers LRT TVL trends across the restaking landscape.
- **[DeFi Yield Scanner](https://apify.com/gochujang/defi-yield-scanner)** — Compare LST yield against general DeFi opportunities.
- **[Stablecoin Depeg Monitor](https://apify.com/gochujang/stablecoin-depeg-monitor)** — The other major depeg-risk corner of DeFi.

***

***

### 🎬 Live Sample Run

A real run of this actor with default-ish inputs, executed on 2026-06-10:

| Field | Value |
|---|---|
| Items in dataset | 11 |
| Dataset (JSON) | `https://api.apify.com/v2/datasets/lVmg14rxEwXL8o4Xm/items?clean=1&format=json` |
| Dataset (CSV) | `https://api.apify.com/v2/datasets/lVmg14rxEwXL8o4Xm/items?clean=1&format=csv` |
| Run summary (KVS) | `https://api.apify.com/v2/key-value-stores/LsRudLNT7CGPtF2OG/records/SUMMARY` |
| Run details | `https://api.apify.com/v2/actor-runs/ZtRqvhbm0NTzlXIdN` |

**Try it now**: pop any of the dataset URLs in your browser to see live output, or hit the API endpoints from your code.

> Want to reproduce? Click **Try Actor** on the Apify Store page and use the input defaults shown above.

### Feedback

[Leave a review on Apify Store](https://apify.com/gochujang/lst-health-tracker#reviews)

# Actor input Schema

## `issuers` (type: `array`):

Limit to specific issuers. Empty = all.

## `includeWithdrawQueue` (type: `boolean`):

Add an extra row with Lido's withdrawal-queue contract ETH balance (rough proxy for unstake demand).

## `alertPegDeviationPct` (type: `number`):

Alert when any LST trades > X% below ETH. 0 = disabled. Useful for catching stETH-style depegs early.

## `telegramBotToken` (type: `string`):

Telegram bot token for depeg alerts.

## `telegramChatId` (type: `string`):

Chat ID to receive alerts.

## `etherscanApiKey` (type: `string`):

Bring your own Etherscan V2 API key for higher rate limits (recommended for heavy/scheduled use). Free at etherscan.io/myapikey.

## Actor input object example

```json
{
  "issuers": [
    "Lido",
    "Rocket Pool",
    "Coinbase",
    "Frax",
    "Stader",
    "ether.fi",
    "Swell"
  ],
  "includeWithdrawQueue": true,
  "alertPegDeviationPct": 0,
  "telegramChatId": ""
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "issuers": [
        "Lido",
        "Rocket Pool",
        "Coinbase",
        "Frax",
        "Stader",
        "ether.fi",
        "Swell"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/lst-health-tracker").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "issuers": [
        "Lido",
        "Rocket Pool",
        "Coinbase",
        "Frax",
        "Stader",
        "ether.fi",
        "Swell",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gochujang/lst-health-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "issuers": [
    "Lido",
    "Rocket Pool",
    "Coinbase",
    "Frax",
    "Stader",
    "ether.fi",
    "Swell"
  ]
}' |
apify call gochujang/lst-health-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=gochujang/lst-health-tracker",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "LST Health Tracker — stETH rETH cbETH wstETH Peg Live",
        "description": "Real-time peg deviation for major LSTs: stETH, rETH, cbETH, wstETH, weETH, frxETH, sfrxETH, ezETH. Rebasing vs reward-bearing handled correctly (no false depeg). PPE $0.002/LST.",
        "version": "0.1",
        "x-build-id": "eoW5cq7sW9eKYWzzm"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/gochujang~lst-health-tracker/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-gochujang-lst-health-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/gochujang~lst-health-tracker/runs": {
            "post": {
                "operationId": "runs-sync-gochujang-lst-health-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/gochujang~lst-health-tracker/run-sync": {
            "post": {
                "operationId": "run-sync-gochujang-lst-health-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "issuers": {
                        "title": "LST Issuers",
                        "type": "array",
                        "description": "Limit to specific issuers. Empty = all.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeWithdrawQueue": {
                        "title": "Include Lido Withdraw Queue",
                        "type": "boolean",
                        "description": "Add an extra row with Lido's withdrawal-queue contract ETH balance (rough proxy for unstake demand).",
                        "default": true
                    },
                    "alertPegDeviationPct": {
                        "title": "Telegram Alert Peg Deviation (%)",
                        "minimum": 0,
                        "type": "number",
                        "description": "Alert when any LST trades > X% below ETH. 0 = disabled. Useful for catching stETH-style depegs early.",
                        "default": 0
                    },
                    "telegramBotToken": {
                        "title": "Telegram Bot Token",
                        "type": "string",
                        "description": "Telegram bot token for depeg alerts."
                    },
                    "telegramChatId": {
                        "title": "Telegram Chat ID",
                        "type": "string",
                        "description": "Chat ID to receive alerts.",
                        "default": ""
                    },
                    "etherscanApiKey": {
                        "title": "Etherscan API key (optional)",
                        "type": "string",
                        "description": "Bring your own Etherscan V2 API key for higher rate limits (recommended for heavy/scheduled use). Free at etherscan.io/myapikey."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
