# Beggar Bot Stablecoin Price History & Depeg Analysis

> Beggar Bot Stablecoin Price History & Depeg Analysis is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-24).

Returns historical price data and depeg event analysis for a stablecoin over a specified number of days, flagging instances where the price deviated beyond a configurable threshold.

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/stablepxhist?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-stablecoin-price-history-depeg-analysis-75d4c603
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_icO6Q0JnpTem1U-EuDTz3

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 beggar-bot-stablecoin-price-history-depeg-analysis-75d4c603
```

Example prompt: Can you pull the stablecoin price history for USDC (usd-coin) over the last 90 days and flag any depeg events where the price moved more than 0.5% from $1?

## When to prefer this

Use this endpoint when you need historical stablecoin price stability data with configurable depeg detection thresholds, especially in an agentic workflow that can handle x402 micropayments on Base mainnet. Prefer this over manual CoinGecko API calls when you want pre-processed depeg event detection rather than raw OHLC data.

## Known failure modes

- Invalid or unrecognized CoinGecko coin ID returns an error or empty result
- Payment of $0.02 USDC via x402 on Base mainnet required; unpaid requests return 402 Payment Required
- Days parameter outside supported range may return an error
- Network issues with CoinGecko data source may cause failures or stale data
- Malformed query parameters return validation errors

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

Returns a JSON object containing historical price data points for the specified stablecoin over the requested time window, along with identified depeg events where the price exceeded the configured threshold percentage deviation from $1.00. Includes metadata about the coin, the analysis period, and severity of any depeg incidents found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "coin": {
       "type": "string",
       "description": "gecko id e.g. usd-coin"
      },
      "days": {
       "type": "string",
       "description": "days (90)"
      },
      "threshold_pct": {
       "type": "string",
       "description": "depeg threshold (0.5)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-stablecoin-price-history-depeg-analysis-75d4c603/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
