# Market Intelligence API – DeFi vs TradFi Yield Spread

> Market Intelligence API – DeFi vs TradFi Yield Spread is a paid API for AI agents from api.marketintelligenceapi.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Returns USDC supply and borrow APRs on Aave v3 across five chains alongside the 3-month T-bill rate, computing the spread in basis points and interpreting on-chain leverage demand.

## Facts

- Endpoint: GET https://api.marketintelligenceapi.com/api/v1/rates/defi-spread?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market-intelligence-api-defi-vs-tradfi-yield-spread-5df43294
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9lXXjN7ABN1FR8kmyILbg

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 market-intelligence-api-defi-vs-tradfi-yield-spread-5df43294
```

Example prompt: What's the current USDC supply APR on Aave v3 across chains, and how does it compare to the 3-month T-bill — is DeFi yield in a premium or discount right now?

## When to prefer this

Choose this endpoint when you need a real-time, cross-chain comparison of DeFi stablecoin yields against the risk-free rate, with an interpreted macro signal about on-chain leverage demand — rather than just raw Aave rates in isolation or a single-chain view.

## Known failure modes

- On-chain RPC unavailability may cause missing or stale chain data
- T-bill rate data source outage could return null for treasury3mPercent
- Rate limiting or payment failure (x402) returns 402 Payment Required
- Unexpected Aave v3 contract changes could cause incorrect APR readings
- Network timeout for slow chains may result in partial market data

## How this service works

DeFi lending rates vs Treasury yields: USDC supply and borrow APR on Aave v3 across five chains, read on chain, against the 3-month T-bill, with the spread and what it says about on-chain leverage demand. Use to compare DeFi and TradFi dollar yields.

## Output

A JSON object containing the 3-month T-bill rate, a per-chain breakdown of USDC supply and variable borrow APRs on Aave v3, the spread in basis points versus the T-bill for each chain, an average spread across all chains, and a named signal (e.g. TREASURY_PREMIUM) summarizing what the spread implies about on-chain leverage demand.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {},
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "description": "Example JSON response returned by this endpoint"
    }
   },
   "additionalProperties": true
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "signal": "TREASURY_PREMIUM",
  "markets": [
   {
    "chain": "base",
    "protocol": "aave_v3",
    "supplyAprPercent": 3.97,
    "spreadVs3mBillBps": -27,
    "variableBorrowAprPercent": 4.89
   }
  ],
  "averageSpreadBps": -92,
  "treasury3mPercent": 4.24,
  "averageUsdcSupplyAprPercent": 3.32
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market-intelligence-api-defi-vs-tradfi-yield-spread-5df43294/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.marketintelligenceapi.com](https://www.zero.xyz/host/api.marketintelligenceapi.com/llms.txt)
