# Riley Craig x402 Agent Store — Macro Risk Spread

> Riley Craig x402 Agent Store — Macro Risk Spread is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns the current spread between top on-chain stablecoin yields and the US risk-free rate, identifying whether DeFi yields are offering a meaningful premium.

## Facts

- Endpoint: GET https://store.agentexchange.work/macro/risk-spread
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/riley-craig-x402-agent-store-macro-risk-spread-990ed840
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4N-Uw82eeCSO1SiMAu7Vk

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 riley-craig-x402-agent-store-macro-risk-spread-990ed840
```

Example prompt: What's the current macro risk spread — are top on-chain stablecoin pools like Aave v3 USDC on Base actually beating the US Treasury bill rate right now, and by how much?

## When to prefer this

Use this endpoint when an agent needs a fast, pre-computed macro snapshot comparing the best stablecoin DeFi yields to the US risk-free rate — ideal for portfolio decision support, DeFi opportunity scanning, or macro yield monitoring without needing to aggregate multiple data sources manually.

## Known failure modes

- Upstream yield data unavailable — stale or missing on-chain APY data
- Treasury rate feed unavailable — risk-free benchmark cannot be fetched
- Payment not received — x402 micropayment in USDC not completed, returns 402
- Malformed response if DeFi data source temporarily returns unexpected schema

## How this service works

Credit-analyst primitive for agents: compares live top stablecoin DeFi yields (DefiLlama) against the official US Treasury Bill rate (US Treasury Fiscal Data) in one call. Returns the risk-free rate, top on-chain yields, the spread for each, and a verdict on whether on-chain yield currently compensates above risk-free. TradFi + DeFi combined — no other single endpoint does this.

## Output

A JSON object containing a plain-language verdict (e.g. 'ON-CHAIN PREMIUM: top stable yields exceed risk-free by >1%'), an array of top yield spreads with pool name, chain, APY percentage, and spread percentage over the risk-free rate, plus the current US Treasury bill rate and its source.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "verdict": "ON-CHAIN PREMIUM: top stable yields exceed risk-free by >1%",
  "top_spreads": [
   {
    "pool": "aave-v3-usdc",
    "chain": "Base",
    "apy_pct": 5.2,
    "spread_pct": 1.51
   }
  ],
  "risk_free_source": "US Treasury Bills (official)",
  "risk_free_rate_pct": 3.69
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riley-craig-x402-agent-store-macro-risk-spread-990ed840/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
