# agentfeeds.jp DEX Peg Alert — Real-Time Peg Deviation Alert

> agentfeeds.jp DEX Peg Alert — Real-Time Peg Deviation Alert is a paid API for AI agents from api.agentfeeds.jp, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns a binary yes/no action signal (reroute_away_temporarily or no_action_needed) indicating whether the latest 1-minute peg deviation reading for a monitored pair is currently above its trailing 30-day p99 baseline.

## Facts

- Endpoint: GET https://api.agentfeeds.jp/v1/dex/peg/alert
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfeeds-jp-dex-peg-alert-real-time-peg-deviation-alert-a7ac3e95
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O_gbqlJ4Td3OtrySKbglB

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 agentfeeds-jp-dex-peg-alert-real-time-peg-deviation-alert-a7ac3e95
```

Example prompt: Check right now whether the USDT/USDC peg on the DEX is showing an anomaly above its 30-day p99 baseline — I need to know if I should temporarily reroute away from that pair, and how long that reading stays valid.

## When to prefer this

Use this endpoint when an agent needs a single, actionable binary signal about whether to avoid a DEX peg pair right now — rather than a full historical anomaly log. Prefer it over the sibling dex.peg.anomalies endpoint when you only care about the current moment and want a low-latency go/no-go decision with a built-in cache TTL, not a time-series event log.

## Known failure modes

- Unrecognized or unsupported pair string returns an error or empty result
- Stale data if queried after the validity window has expired — agent must re-query
- Upstream DEX data feed outage may result in unavailable or cached readings
- Malformed pair parameter (wrong format, wrong delimiter) causes request rejection

## How this service works

Same detection framework as dex.peg.anomalies, re-shaped to a single yes/no for right now: is the latest available 1-minute reading for this pair itself over the trailing 30-day p99 baseline, instead of a historical event log. Returns action=reroute_away_temporarily or action=no_action_needed, plus how many seconds the reading is valid for before you should re-query. Descriptive computation only; not investment or redemption advice.

## Output

Returns a JSON object with an `action` field set to either `reroute_away_temporarily` (current 1-minute peg deviation exceeds the trailing 30-day p99 baseline) or `no_action_needed` (within normal range), plus a `valid_for_seconds` integer indicating how long the result is reliable before a fresh query is required.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "pair"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "one of the monitored peg/parity pairs, e.g. 'USDT/USDC'"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfeeds-jp-dex-peg-alert-real-time-peg-deviation-alert-a7ac3e95/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentfeeds.jp](https://www.zero.xyz/host/api.agentfeeds.jp/llms.txt)
