# CarryLens Perpetual Funding Screen API

> CarryLens Perpetual Funding Screen API is a paid API for AI agents from carry-lens-api.netlify.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-10).

Returns live, cost-aware cross-venue perpetual futures funding rate spreads and carry trade economics for trading agents, ranked by projected net yield.

## Facts

- Endpoint: GET https://carry-lens-api.netlify.app/v1/perps/report?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/carrylens-perpetual-funding-screen-api-d632d0e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jdInx5L7GxLtkPt4P31fK

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 carrylens-perpetual-funding-screen-api-d632d0e8
```

Example prompt: Pull the best cross-venue perpetual carry spreads right now for a $10,000 notional held for 168 hours, assuming 20 bps all-in costs, and show me which pairs have the highest net annualized yield.

## When to prefer this

Choose this endpoint when an AI trading agent needs live, cost-adjusted cross-venue perpetual funding rate comparisons ready for immediate trade sizing — especially when the agent needs projected net economics (not just raw rates), market regime context, and risk flags in a single call, without needing an API key or account. Prefer this over generic market data APIs when the goal is actionable carry trade screening with fee/slippage modeling built in.

## Known failure modes

- Missing or malformed 'notionalUsd' pattern (must be numeric string 100–100000000) returns validation error
- 'holdingHours' out of range (must be 1–2160) causes rejection
- 'totalCostBps' exceeding 2000 is rejected
- Payment failure via x402 (insufficient USDC balance or missing payment header) blocks the response
- No carry spreads returned when funding rates are too compressed to pass cost screen

## How this service works

Live, cost-aware cross-venue perpetual-funding screens for trading agents. x402 payment; no API key or account.

## Output

Returns a ranked list of cross-venue perpetual funding carry spreads with projected economics (gross funding USD, net annualized %, breakeven hours, net yield %, net funding USD, assumed costs), plus a market regime label and stress score, risk flags, and Hyperliquid 24h funding persistence data — all computed against the supplied notional, holding period, and cost assumptions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "notionalUsd": {
       "type": "string",
       "pattern": "^(?:\\d+(?:\\.\\d*)?|\\.\\d+)$",
       "description": "Matched USD notional on each hedged leg (100 to 100000000)."
      },
      "holdingHours": {
       "type": "string",
       "pattern": "^(?:\\d+(?:\\.\\d*)?|\\.\\d+)$",
       "description": "Expected holding period in hours (1 to 2160)."
      },
      "totalCostBps": {
       "type": "string",
       "pattern": "^(?:\\d+(?:\\.\\d*)?|\\.\\d+)$",
       "description": "All-in entry and planned-exit fees plus slippage in bps (0 to 2000)."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "assumptions",
      "top_cross_venue_carry_spreads"
     ],
     "properties": {
      "assumptions": {
       "type": "object"
      },
      "top_cross_venue_carry_spreads": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "risk_flags": [
   "no_systemic_threshold_breach_detected"
  ],
  "assumptions": {
   "notionalUsd": 10000,
   "holdingHours": 168,
   "totalCostBps": 20
  },
  "market_regime": {
   "label": "balanced",
   "stress_score_0_to_100": 18.5,
   "advancing_market_share_pct": 54.2
  },
  "top_cross_venue_carry_spreads": [
   {
    "coin": "BTC",
    "longVenue": "HlPerp",
    "costScreen": "passes",
    "shortVenue": "BinPerp",
    "executionTier": "high",
    "projectedEconomics": {
     "breakEvenHours": 14.1,
     "grossFundingUsd": 237.81,
     "netAnnualizedPct": 113.57,
     "assumedTotalCostUsd": 20,
     "projectedNetYieldPct": 2.1781,
     "projectedNetFundingUsd": 217.81
    },
    "grossSpreadAnnualizedPct": 12.4
   }
  ],
  "hyperliquid_funding_persistence_24h": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/carrylens-perpetual-funding-screen-api-d632d0e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from carry-lens-api.netlify.app](https://www.zero.xyz/host/carry-lens-api.netlify.app/llms.txt)
