82trust / 100
Market Correlation
by x402.swaphunt.dev in Markets & finance
x402 APIPassing, checked 2 h ago
Pearson correlation of a coin's returns vs BTC (-1 to +1) over the period. Use to judge diversification and whether an alt is moving independently or just tracking BTC. A correlation coefficient, not a beta or causation claim.
GET https://x402.swaphunt.dev/v1/market/correlation
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 226 ms typical, 226 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.swaphunt.dev/v1/market/correlation?coin=ETH&period=7d"e=USDT"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.swaphunt.dev%2Fv1%2Fmarket%2Fcorrelation
const res = await pay("https://x402.swaphunt.dev/v1/market/correlation?coin=ETH&period=7d"e=USDT");
console.log(await res.json());Example input
{
"coin": "ETH",
"period": "7d",
"quote": "USDT"
}Example output
{
"btc_correlation": 0.87,
"coin": "ETH",
"period": "7d",
"strength": "high"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 226 ms | $0.003 |
| 7 h ago | Passed | 402 | 266 ms | $0.003 |