# cryptofeed402 Perps + News Context

> cryptofeed402 Perps + News Context is a paid API for AI agents from cryptofeed402.site, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-23).

Returns a combined snapshot of Hyperliquid perpetual futures market data (funding rates, OI, volume, premium) joined with news sentiment and attention signals for a watchlist of up to 25 crypto coins in a single call.

## Facts

- Endpoint: GET https://cryptofeed402.site/perps/context?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cryptofeed402-perps-news-context-1107fe4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fhxmxkX6rf1Y2aUf3jD9d

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 cryptofeed402-perps-news-context-1107fe4f
```

Example prompt: Give me a combined perp and news scan for BTC, ETH, and SOL — I want to see the current funding rates, open interest, annualized funding APR, and whether any of them have news attention spikes or extreme funding ranks right now.

## When to prefer this

Choose this endpoint when you need Hyperliquid perp market state AND news sentiment/attention in a single API call rather than stitching two separate feeds. Ideal for trading agents that need to make decisions using both market microstructure signals (funding rates, OI, premium) and macro narrative signals (news sentiment, attention spikes) simultaneously. Prefer over raw Hyperliquid API when you also need news context, and over standalone news APIs when you also need live perp data. At $0.01 USDC per call it is cost-effective for frequent polling loops.

## Known failure modes

- 400 Bad Request: invalid symbols format (e.g. too many symbols, non-alphanumeric characters, or malformed comma-separated list)
- 404 Not Found: requested symbol not listed on Hyperliquid main DEX
- 503 Service Unavailable: upstream data is stale (returned before any payment is charged)
- 402 Payment Required: payment not provided or insufficient — note: failed calls are never charged

## How this service works

For trading agents that need a market scan in one call: Hyperliquid perp state (mark, funding hourly/8h/annualized, OI USD, 24h volume, premium, extreme-funding rank) joined with news sentiment and headline attention vs 7-day average for the watchlist plus coins in the news (up to 25), or ?symbols=BTC,ETH (1-20). Neutral flags, no advice. Bad params 400 / unknown 404 / stale 503 before any 402; failed calls are never charged. Sample /samples/perps-context. $0.01 USDC on Base.

## Output

A JSON object with an as_of timestamp, coin count, and an array of per-coin objects each containing: perp data (mark price, mid price, oracle price, hourly/8h/annualized funding, open interest in USD and coins, 24h volume, premium, day change %, max leverage, extreme-funding rank out of all listed perps, top-10 extreme flag) plus sentiment score, attention ratio vs 7-day baseline, attention z-score, rank, and boolean flags (news_active, attention_spike, funding_extreme). Also includes a freshness indicator for the underlying data sources.

## 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": {
      "symbols": {
       "type": "string",
       "pattern": "^[A-Za-z0-9]{1,20}(,[A-Za-z0-9]{1,20}){0,19}$",
       "description": "Optional comma-separated Hyperliquid main-dex tickers (1-20), e.g. BTC,ETH,SOL. Omit for the default set: watchlist plus coins in the current news snapshots (max 25)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "as_of",
      "count",
      "coins",
      "freshness"
     ],
     "properties": {
      "as_of": {
       "type": "string",
       "description": "ISO 8601 UTC time of the Hyperliquid fetch"
      },
      "coins": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "coin",
         "perp",
         "sentiment",
         "attention",
         "flags"
        ],
        "properties": {
         "coin": {
          "type": "string"
         },
         "perp": {
          "type": "object",
          "required": [
           "symbol",
           "mark_px",
           "funding_hourly",
           "open_interest_usd"
          ],
          "properties": {
           "venue": {
            "type": "string"
           },
           "mid_px": {
            "type": "number"
           },
           "symbol": {
            "type": "string"
           },
           "mark_px": {
            "type": "number"
           },
           "premium": {
            "type": "number"
           },
           "oracle_px": {
            "type": "number"
           },
           "funding_8h": {
            "type": "number"
           },
           "prev_day_px": {
            "type": "number"
           },
           "max_leverage": {
            "type": "integer"
           },
           "day_change_pct": {
            "type": "number"
           },
           "funding_hourly": {
            "type": "number"
           },
           "volume_24h_usd
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cryptofeed402-perps-news-context-1107fe4f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cryptofeed402.site](https://www.zero.xyz/host/cryptofeed402.site/llms.txt)
