# Agent Rest Stop – StablePeg

> Agent Rest Stop – StablePeg is a paid API for AI agents from agent-gas-station.agent-gas-station.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Returns the cached mid-price of a stablecoin relative to one US dollar

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/StablePeg?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-rest-stop-stablepeg-3c3f57dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PbrTFluDdZzVLjIMvuElf

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 agent-rest-stop-stablepeg-3c3f57dc -d '<json body>'
```

Example prompt: Can you check the current mid price of USDC versus the dollar — I want to see how close it is to its peg right now?

## When to prefer this

Choose this endpoint when you need a fast, cheap ($0.01 USDC) cached read of a stablecoin's current mid price versus USD, and sub-second latency matters more than guaranteed real-time precision. Ideal for pre-trade sanity checks, DeFi automation logic, or dashboards that poll frequently. Prefer a live oracle feed if you need guaranteed real-time accuracy for high-value transactions.

## Known failure modes

- Unknown or unsupported stablecoin symbol returns an error or empty result
- Cache miss or stale data if the underlying price feed has not refreshed recently
- Malformed symbol input (e.g. lowercase or typo) may return no result
- Service unavailability returns a non-200 response; caller should retry

## How this service works

Cached stablecoin mid versus one dollar.

## Output

Returns the cached mid-price of the requested stablecoin symbol expressed relative to one US dollar, indicating how closely it is trading to its intended $1.00 peg. The response is served from cache for low-latency access.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-stablepeg-3c3f57dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-gas-station.agent-gas-station.workers.dev](https://www.zero.xyz/host/agent-gas-station.agent-gas-station.workers.dev/llms.txt)
