# xx402 Base DeFi Risk & Data API

> xx402 Base DeFi Risk & Data API is a paid API for AI agents from x402.xx402.icu, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-26).

Returns risk assessments, DeFi protocol rankings, yield pool data, stablecoin info, and actionable allocation guidance for the Base blockchain network.

## Facts

- Endpoint: GET https://x402.xx402.icu/api/base-defi-risk?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xx402-base-defi-risk-data-api-e2ceb626
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SpFDB2nOh1eb8NHZuyLyi

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 xx402-base-defi-risk-data-api-e2ceb626
```

Example prompt: Give me a Base DeFi risk assessment for a $25,000 treasury budget with a max single position of $5,000 — show me the top 10 protocols, yield pools, and stablecoins ranked by safety.

## When to prefer this

Choose this endpoint when an AI agent or autonomous risk tool needs structured, actionable DeFi risk data specifically for the Base blockchain — including protocol rankings, yield pool analysis, stablecoin safety scores, and capital authorization guidance — especially when operating within defined budget and position-size constraints. Best suited for agents that need a single bundled risk packet rather than making multiple separate API calls to different DeFi data sources.

## Known failure modes

- Payment not received or x402 micropayment handshake fails — returns 402 Payment Required
- Invalid query parameters (limit out of 3-12 range, negative USD values) — returns 400 Bad Request
- Upstream data source unavailable — source_status may show degraded or failed feeds
- Rate limiting if called too rapidly within the repeat_purchase_window

## How this service works

Paid Base token, wallet, DeFi, chain-read, x402 buyer/seller discovery, and specialized Bitcoin 15-minute Up/Down prediction-market data packets for autonomous agents and risk tools.

## Output

Returns a JSON object containing: risk breakdown by protocol, ranked lists of top protocols/stablecoins/yield pools, risk and fee quality queues, incident history, capital authorization status, position move queue, defi decision recommendation, treasury action guidance, source status, and a not-financial-advice disclaimer.

## Response schema (JSON Schema)

```json
{
 "keys": [
  "summary",
  "purchase_acceptance",
  "buyer_next_action",
  "next_paid_call",
  "defi_followup_purchase_plan",
  "decision_evidence",
  "defi_decision",
  "treasury_action",
  "defi_allocation_plan",
  "reliability_status",
  "action_gate",
  "capital_authorization",
  "position_move_queue",
  "decision_cards",
  "repeat_purchase_window",
  "repeat_purchase_guard",
  "capital_action_queue",
  "source_recovery_plan",
  "defi_repeat_purchase_hint",
  "buyer_execution_plan",
  "recheck_policy",
  "priority_queue",
  "best_next_products",
  "best_allocation_candidates",
  "risk_breakdown",
  "risk_queue",
  "review_queue",
  "avoid_queue",
  "withdrawal_review_queue",
  "fee_quality_queue",
  "incident_history",
  "top_protocols",
  "top_fee_quality_protocols",
  "top_stablecoins",
  "top_yield_pools",
  "bucket_counts",
  "risk_flags",
  "source_status",
  "sources",
  "not_financial_advice"
 ],
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xx402-base-defi-risk-data-api-e2ceb626/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.xx402.icu](https://www.zero.xyz/host/x402.xx402.icu/llms.txt)
