# Lido stETH Peg Check

> Lido stETH Peg Check is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Returns the current Lido stETH-to-ETH peg percentage, USD prices for both ETH and stETH, and total stETH staked/market cap data

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/lido-steth-peg?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lido-steth-peg-check-66041408
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EIYCj2STFCCFrY6kHvcD0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability lido-steth-peg-check-66041408
```

Example prompt: What's the current Lido stETH peg right now — is it trading at a discount or premium to ETH, and by how much?

## When to prefer this

Choose this endpoint when you need a real-time, on-chain-sourced snapshot of the Lido stETH peg health, including both ETH and stETH USD prices and total protocol stake size, without any API key or signup. Prefer over manual DeFi aggregator queries when you need a single structured JSON response suitable for agent pipelines, alerting, or dashboard updates.

## Known failure modes

- Upstream DefiLlama price feed unavailable — stale or missing price data
- Network error reaching coins.llama.fi — may return 5xx or empty response
- stETH or ETH contract address not found in upstream feed — missing fields in response
- Payment verification failure on x402 — call is not charged and returns 402

## How this service works

Lido stETH vs ETH peg from public USD prices (DefiLlama coins API): stETH and ETH price, discount or premium in %, plus Lido's total stETH staked and market cap. The two prices can be quoted a few minutes apart. Curve pool balances and the Lido withdrawal queue are not included.

## Output

Returns a JSON object with ETH USD price, stETH USD price, the peg percentage (stETH vs ETH as a % difference), total stETH staked, stETH market cap in USD, the timestamp of the check, and the Unix timestamps of when each price was quoted. Sourced from DefiLlama's price feed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ethUsd": 2393.07233173953,
  "pegPct": 0.1585,
  "source": "https://coins.llama.fi/prices/current/ethereum:0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84,ethereum:0x0000000000000000000000000000000000000000",
  "stethUsd": 2396.866504891423,
  "checkedAt": "2026-10-23T09:35:56.499Z",
  "pricesQuotedAt": {
   "ethUnix": 1792748096,
   "stethUnix": 1792747618
  },
  "stethTotalStaked": 9663981.06370602,
  "stethMarketCapUsd": 23236319601.89755
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lido-steth-peg-check-66041408/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
