82trust / 100
Sentiment Summary
by x402.swaphunt.dev in News & content
x402 APIPassing, checked 4 h ago
Aggregated market sentiment label (strong_bearish → strong_bullish) with a normalized score, computed from LLM-scored news over the window. One-number mood read for an agent that just needs the verdict, not the individual articles.
GET https://x402.swaphunt.dev/v1/sentiment/summary
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 127 ms typical, 127 ms slowest 5%
- Last check
- 4 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/sentiment/summary?category=all&hours=24"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%2Fsentiment%2Fsummary
const res = await pay("https://x402.swaphunt.dev/v1/sentiment/summary?category=all&hours=24");
console.log(await res.json());Example input
{
"category": "all",
"hours": 24
}Example output
{
"article_count": 42,
"hours": 24,
"score": 0.6,
"sentiment": "bullish"
}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 |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 127 ms | $0.003 |