{"uid":"cap_fhxmxkX6rf1Y2aUf3jD9d","slug":"cryptofeed402-perps-news-context-1107fe4f","name":"cryptofeed402 Perps + News Context","description":"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.","url":"https://cryptofeed402.site/perps/context?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":{"type":"number"},"funding_apr_pct":{"type":"number"},"in_top10_extreme":{"type":"boolean"},"funding_ranked_of":{"type":"integer"},"open_interest_usd":{"type":"number"},"open_interest_coins":{"type":"number"},"funding_extreme_rank":{"type":"integer"}}},"flags":{"type":"object","properties":{"news_active":{"type":"boolean"},"attention_spike":{"type":"boolean"},"funding_extreme":{"type":"boolean"}}},"attention":{"type":"object","required":["available"],"properties":{"z":{"type":"number"},"rank":{"type":"integer"},"ratio":{"type":"number"},"avg_7d":{"type":"number"},"reason":{"type":"string"},"available":{"type":"boolean"},"mentions_12h":{"type":"integer"}}},"sentiment":{"type":"object","required":["available"],"properties":{"neg":{"type":"integer"},"neu":{"type":"integer"},"pos":{"type":"integer"},"label":{"enum":["bearish","neutral","bullish"],"type":"string"},"score":{"type":"number"},"reason":{"type":"string"},"available":{"type":"boolean"},"n_headlines":{"type":"integer"},"top_headlines":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"title":{"type":"string"},"source":{"type":"string"},"stance":{"type":"string"}}}}}},"active_flags":{"type":"array","items":{"type":"string"}},"in_watchlist":{"type":"boolean"}}}},"count":{"type":"integer"},"method":{"type":"string"},"source":{"type":"string"},"freshness":{"type":"object","properties":{"perp":{"type":"object"},"attention":{"type":"object"},"sentiment":{"type":"object"}}},"selection":{"enum":["default","requested"],"type":"string"},"disclaimer":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UNVpNYChfjs2-vvesHJrm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Pre-trade funding and sentiment check","prompt":"Before I open a long on ETH, can you pull the current Hyperliquid perp state for ETH — funding rate, open interest, and whether there's any notable news sentiment or attention spike — all in one shot?"},{"title":"Watchlist market scan for trading bot","prompt":"Run a full market scan on BTC, SOL, AVAX, ARB, and DOGE — I need funding rates (hourly and annualized), OI in USD, 24h volume, and whether any of them are flagged as extreme funding or have news attention above their 7-day average."},{"title":"Identify crowded perp trades with news catalysts","prompt":"Which coins in the default watchlist currently have both extreme funding ranks and active news coverage? I want to spot potentially crowded perp trades that might be news-driven."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:31:37.825Z","isFirstParty":false,"canonicalSlug":"cryptofeed402-perps-news-context-1107fe4f"}