# 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).

Computes real-time 5-minute deltas in DEX buy/sell ratio, DeFiLlama APY spreads, and Polymarket odds for a given token or asset, providing stateful alpha signals for autonomous trading bots.

## Facts

- Endpoint: GET https://onchain-risk.agentdiet.dev/v1/perps-funding-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-84843e54
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dj8rz7jJ8glpuP6i-vtIo

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-84843e54
```

Example prompt: Can you pull the latest 5-minute stateful delta stream for ETH — I want to see the DEX buy/sell ratio shifts, DeFiLlama APY spreads, and Polymarket odds changes right now so I can assess current alpha signals?

## When to prefer this

Choose this endpoint when you need a combined, stateful 5-minute delta view across DEX orderflow, DeFi yield spreads, and prediction market odds for a single token — particularly for autonomous trading bots that require real-time alpha signals rather than raw liquidity snapshots. Prefer it over raw DexScreener or DeFiLlama APIs when you need pre-computed multi-source delta aggregation in a single call.

## Known failure modes

- Missing or invalid 'target' parameter returns a validation error
- Unknown or unlisted token symbols may return empty or null delta fields
- Stale upstream data from DexScreener, DeFiLlama, or Polymarket may reduce signal freshness
- Payment failure via x402 returns HTTP 402 before data is served
- Rate limiting may occur under high-frequency autonomous bot polling

## 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/perps-funding-alpha)

## Output

Returns a structured object containing stateful 5-minute computed deltas for the requested token, including DEX buy/sell ratio changes, DeFiLlama APY spread shifts, and Polymarket odds movements — designed as alpha signals for autonomous trading bot decision-making.

## 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-84843e54/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)
