# Stateful 5-Minute DeFi, DEX & Polymarket Alpha Delta Stream

> Stateful 5-Minute DeFi, DEX & Polymarket Alpha Delta Stream is a paid API for AI agents from onchain-risk.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-10-21).

Returns stateful 5-minute delta snapshots of DEX buy/sell ratio shifts, DeFiLlama APY spreads, and Polymarket odds changes for a given token or asset.

## Facts

- Endpoint: GET https://onchain-risk.agentdiet.dev/v1/autonomous-trading-alpha?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: onchain-risk.agentdiet.dev
- Website: https://onchain-risk.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/onchain-risk-agentdiet-dev-stateful-5-minute-defi-dex-polymarket-706dde88
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_t7YBbpZquuCjndiyXwXMX

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 onchain-risk-agentdiet-dev-stateful-5-minute-defi-dex-polymarket-706dde88
```

Example prompt: Pull the latest 5-minute delta stream for AERO — I want to see the DEX buy/sell ratio shifts, DeFiLlama APY spread changes, and any Polymarket odds movements right now.

## When to prefer this

Choose this endpoint when an autonomous trading agent needs a stateful, time-windowed (5-minute) delta view combining DEX orderflow pressure, DeFi yield spreads, and prediction market odds in a single call — rather than querying each data source separately or relying on static snapshots.

## Known failure modes

- Missing or empty 'target' parameter returns a 400 validation error
- Unknown or unlisted token symbol may return empty or null delta fields
- Payment not settled via x402 results in a 402 Payment Required response
- DexScreener, DeFiLlama, or Polymarket upstream data unavailable causes partial or failed response
- Rate limiting or SLA breach may return a 429 or 503 error

## How this service works

Stateful 5-minute delta feed for autonomous trading bots: computes real-time shifts in DEX buy/sell ratio, DeFiLlama APY spreads, and Polymarket odds. (Live x402 v2, IETF MPP & MCP endpoint at https://onchain-risk.agentdiet.dev/v1/autonomous-trading-alpha)

## Output

A structured JSON object containing stateful 5-minute delta metrics for the requested token, including DEX buy/sell ratio shift, DeFiLlama APY spread change, and Polymarket odds delta — designed for autonomous trading bot consumption.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "target"
 ],
 "properties": {
  "target": {
   "type": "string",
   "minLength": 1,
   "description": "Primary token symbol or asset (e.g. AERO, ETH, SOL) to track stateful 5-minute orderflow and yield deltas"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchain-risk-agentdiet-dev-stateful-5-minute-defi-dex-polymarket-706dde88/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchain-risk.agentdiet.dev](https://www.zero.xyz/host/onchain-risk.agentdiet.dev/llms.txt)
