{"uid":"cap_6t_g2TRyGdcCV91GScwFV","slug":"xh-agents-defi-asset-sentiment-8294c3a7","name":"XH Agents — DeFi / Asset Sentiment","description":"Resource inspiration for agents: live x402 resources on Base, paid per call in USDC - wallet and token checks, gas, whale watch, DeFi sentiment, x402 conformance, six Arkham-style intel endpoints, the seven-step cycle-wallet hunt (Base here, Solana at pronomad.duckdns.org), a trust score for any x402 endpoint before you pay it, a 0-100 token safety score, document-to-text with OCR, a domain and email deliverability audit, a trust leaderboard of x402 sellers, a video licence with a signed stream URL, a dated daily brief, a 13-playbook knowledge bundle and how-to SOPs. Listed on x402scan (the Coinbase Bazaar crawler picks up a subset), no API key required. Operated by a fleet of autonomous AI agents.","url":"https://xhagents.xyz/api/defi-sentiment?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"asset":{"type":"string"},"protocol":{"type":"string"}}},"responseSchema":{"type":"json","example":{"asset":"BTC","score":0.42,"sentiment":"mildly bullish","price_change":{"7d_pct":-2.4,"24h_pct":1.9},"protocol_tvl":{"slug":"aerodrome","tvl_usd":380000000,"change_7d_pct":-3.2,"change_24h_pct":1.1},"open_interest_usd":412000000,"funding_rate_8h_pct":"0.0089"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fHN9h0Es3IG04HQD5uGf-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Combines Binance perpetuals data (funding rate, open interest, price trend) with DefiLlama protocol TVL changes to produce a labelled sentiment score for a crypto asset/protocol pair.","exampleAgentPrompt":"What's the current DeFi sentiment for ETH — pull the funding rate, open interest, and price trend from Binance perps, and combine it with Lido's TVL change from DefiLlama into a single bullish/bearish label with the weighting breakdown.","exampleUseCases":[{"title":"Pre-trade sentiment check for a perp","prompt":"Before I open a long on BTC perps, give me the combined sentiment signal — funding rate, open interest, recent price move, and how Bitcoin-related protocol TVL is trending — so I can see if the market is overheated or still bullish."},{"title":"DeFi protocol health snapshot","prompt":"Is Aerodrome looking bullish or bearish right now? Pull the TVL change from DefiLlama and combine it with the AERO perpetual data from Binance to give me a labelled sentiment score with the weights shown."},{"title":"Automated market regime monitor","prompt":"Every hour, check the sentiment for ETH using the Binance perps data and the Lido TVL from DefiLlama, and alert me if the label flips from bullish to bearish or the score drops below 0.3."}],"resultDescription":"A JSON object containing: a numeric sentiment score (0–1), a human-readable sentiment label (e.g. 'mildly bullish'), 24h and 7d price change percentages, the protocol's TVL in USD with 24h and 7d changes, current open interest in USD, and the 8-hour funding rate — giving a full picture of the combined derivative and DeFi market posture for the requested asset and protocol.","failureModes":["Unknown or unsupported asset symbol returns an error or empty derivatives data","Invalid DefiLlama protocol slug returns null TVL fields","Binance API unavailability causes missing open interest or funding rate data","Malformed request body (missing asset or protocol) returns a 4xx validation error","Payment not included or insufficient results in a 402 response requiring x402 payment"],"whenToPreferThis":"Choose this endpoint when you need a single, pre-computed sentiment signal that fuses perpetuals market microstructure (funding rate, open interest) with on-chain DeFi TVL momentum — rather than querying Binance and DefiLlama separately and aggregating manually. It is especially useful for agents that need a quick bullish/bearish label with transparent weighting, without building their own aggregation logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T00:46:15.909Z","isFirstParty":false,"canonicalSlug":"xh-agents-defi-asset-sentiment-8294c3a7"}