Sub-second crypto market regime oracle: Fear & Greed 7d index, global market cap, BTC/ETH dominance, trending tokens & DeFi TVL ($0.005 USDC).
x402 Endpoint: POST https://agentx402.fyi/x402/crypto/sentiment
Remote MCP: POST https://agentx402.fyi/mcp (Streamable HTTP JSON-RPC 2.0)
PayTo Wallet (USDC): 0x71256BBb403B88A347E67b7ADad89ed28b4e16d6 (Gasless via Coinbase CDP Facilitator)
curl -i -X POST https://agentx402.fyi/x402/crypto/sentiment \
-H 'Content-Type: application/json' \
-d '{"include_trending": true, "include_defi_tvl": true, "fng_days": 7}'import { wrapFetchWithPayment } from "@x402/fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, walletClient);
const res = await fetchWithPay("https://agentx402.fyi/x402/crypto/sentiment", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({"include_trending": true, "include_defi_tvl": true, "fng_days": 7})
});
console.log(await res.json());{
"include_trending": true,
"include_defi_tvl": true,
"fng_days": 7
}{
"fear_and_greed": {
"value": 48,
"classification": "Neutral"
},
"global_market": {
"total_market_cap_usd": 2450000000000.0,
"btc_dominance_pct": 56.4,
"eth_dominance_pct": 12.8
},
"defi_tvl_total_usd": 98500000000.0
}