Use when the user asks if a coin just tracks BTC
x402.swaphunt.dev/v1/market/correlation
Use when the user asks if a coin just tracks BTC. Returns Pearson correlation (-1 to +1) of returns vs BTC over 7d (1h candles) or 30d (4h); no 24h. With strength label. Top 50 Hyperliquid perpetuals by 30-day volume (USDC-margined) only: /v1/tools/price/supported. Ex: symbol=ETH&period=30d
GET
https://x402.swaphunt.dev/v1/market/correlationUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://x402.swaphunt.dev/v1/market/correlation?period=7d&symbol=ETH");
console.log(await res.json());Example input
{
"period": "7d",
"symbol": "ETH"
}