75trust / 100

Perps Context

by cryptofeed402.site in Markets & finance

x402 APIPassing, checked 6 h ago

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.

GET
https://cryptofeed402.site/perps/context
Price
$0.01
per call in USDC
Uptime
99.0%
last 30 days
Response time
653 ms
965 ms slowest 5%
Last check
Passed
6 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://cryptofeed402.site/perps/context

Each call costs $0.01 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://cryptofeed402.site/perps/context?symbols=BTC%2CETH

Parameters

ParameterTypeRequiredDescription
symbolsstringNoOptional 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)

Example response

The provider's example. We can't check it without paying.

Example response, 138 lines
{
  "as_of": "2026-10-30T19:00:00.000Z",
  "coins": [
    {
      "active_flags": [
        "attention_spike",
        "news_active"
      ],
      "attention": {
        "available": true,
        "avg_7d": 17.71,
        "mentions_12h": 26,
        "rank": 1,
        "ratio": 1.47,
        "z": 2.23
      },
      "coin": "BTC",
      "flags": {
        "attention_spike": true,
        "funding_extreme": false,
        "news_active": true
      },
      "in_watchlist": true,
      "perp": {
        "day_change_pct": -1.57,
        "funding_8h": 0.0001,
        "funding_apr_pct": 10.95,
        "funding_extreme_rank": 41,
        "funding_hourly": 0.0000125,
        "funding_ranked_of": 120,
        "in_top10_extreme": false,
        "mark_px": 76677,
        "max_leverage": 40,
        "mid_px": 76683.5,
        "open_interest_coins": 30123.4,
        "open_interest_usd": 2309800000,
        "oracle_px": 76674.4,
        "premium": 0.0000338,
        "prev_day_px": 77900,
        "symbol": "BTC",
        "venue": "hyperliquid",
        "volume_24h_usd": 4120000000
      },
      "sentiment": {
        "available": true,
        "label": "bearish",
        "n_headlines": 10,
        "neg": 5,
        "neu": 3,
        "pos": 2,
        "score": -0.3,
        "top_headlines": [
          {
            "source": "example.com",
            "stance": "neg",
            "title": "Example: liquidations jump after an exchange hack",
            "url": "https://example.com/btc-1"
          }
        ]
      }
    },
    {
      "active_flags": [],
      "attention": {
        "available": true,
        "avg_7d": 5.14,
        "mentions_12h": 5,
        "rank": 3,
        "ratio": 0.97,
        "z": -0.07
      },
      "coin": "ETH",
      "flags": {
        "attention_spike": false,
        "funding_extreme": false,
        "news_active": false
      },
      "in_watchlist": true,
      "perp": {
        "day_change_pct": -1.92,
        "funding_8h": 0.00005,
        "funding_apr_pct": 5.48,
        "funding_extreme_rank": 77,
        "funding_hourly": 0.00000625,
        "funding_ranked_of": 120,
        "in_top10_extreme": false,
        "mark_px": 2650.1,
        "max_leverage": 25,
        "mid_px": 2650.15,
        "open_interest_coins": 512000,
        "open_interest_usd": 1356851200,
        "oracle_px": 2650.4,
        "premium": -0.0001,
        "prev_day_px": 2702,
        "symbol": "ETH",
        "venue": "hyperliquid",
        "volume_24h_usd": 1800000000
      },
      "sentiment": {
        "available": true,
        "label": "neutral",
        "n_headlines": 2,
        "neg": 1,
        "neu": 0,
        "pos": 1,
        "score": 0,
        "top_headlines": []
      }
    }
  ],
  "count": 2,
  "disclaimer": "Automated data for AI agents. Not financial advice.",
  "freshness": {
    "attention": {
      "age_seconds": 22800,
      "available": true,
      "generated_at": "2026-10-30T12:40:00.000Z",
      "window": {
        "baseline_days_approx": 7,
        "baseline_runs": 14,
        "current_hours": 12
      }
    },
    "perp": {
      "as_of": "2026-10-30T19:00:00.000Z",
      "cache_seconds": 30
    },
    "sentiment": {
      "age_seconds": 753,
      "available": true,
      "generated_at": "2026-10-30T18:47:27.000Z",
      "window_minutes": 1440
    }
  },
  "method": "Hyperliquid metaAndAssetCtxs joined by ticker with cryptofeed402 news sentiment and headline mention volume vs 7-day average. Flags are neutral facts.",
  "selection": "requested",
  "source": "Hyperliquid public info API + cryptofeed402 sentiment and attention snapshots"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.01.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://cryptofeed402.site/perps/context?symbols=BTC%2CETH'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://cryptofeed402.site/perps/context?symbols=BTC%2CETH' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.01 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.01" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.01 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fcryptofeed402.site%2Fperps%2Fcontext
const res = await pay("https://cryptofeed402.site/perps/context?symbols=BTC%2CETH");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.01 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.01"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://cryptofeed402.site/perps/context?symbols=BTC%2CETH")
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
6 h agoPassed402496 ms$0.01
16 h agoPassed402643 ms$0.01
26 h agoPassed402625 ms$0.01
36 h agoPassed402538 ms$0.01
47 h agoPassed402625 ms$0.01
Show 10 older checks
3 days agoPassed402621 ms$0.01
4 days agoTimed out---
6 days agoPassed402911 ms$0.01
6 days agoPassed402548 ms$0.01
7 days agoPassed402526 ms$0.01
7 days agoPassed402719 ms$0.01
7 days agoPassed402520 ms$0.01
8 days agoPassed402415 ms$0.01
8 days agoPassed402853 ms$0.01
8 days agoPassed402836 ms$0.01