{"uid":"cap_cCptnPCg_qPOu8CSY6Ovx","slug":"defi-shield-hazel-vercel-app-bf839e10","name":"DeFi Shield Market Regime Detector","description":"","url":"https://defi-shield-hazel.vercel.app/api/defi/market-regime","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","bodyType","body","method"],"properties":{"body":{"properties":{"chain":{"type":"string","description":"Chain context (default: base)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":{"request":{"chain":"base"},"response":{"chain":"base","regime":"NEUTRAL","tokens":[{"token":"aave","price_usd":64.22,"change_24h":2.7},{"token":"bitcoin","price_usd":63398,"change_24h":1.98},{"token":"chainlink","price_usd":7.88,"change_24h":2.36},{"token":"ethereum","price_usd":1665.99,"change_24h":1.47},{"token":"solana","price_usd":66.64,"change_24h":2.72},{"token":"uniswap","price_usd":2.5,"change_24h":3.1}],"signals":{"breadth":1,"gas_gwei":{"fast":0.0054,"slow":0.0054,"standard":0.0054},"gas_level":"low","volatility":0.54,"avg_24h_change":2.39,"negative_tokens":0,"positive_tokens":6},"confidence":0.68,"scanned_at":"2026-06-12T02:03:17.570Z","recommendations":["No strong directional signal — trade selectively","Focus on individual token fundamentals over macro trend","Maintain current position sizes"],"response_time_ms":120}},"exampleRequest":{"chain":"base"},"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iqX-BK5x98gU8MhIEaCVx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects the current DeFi market regime (RISK_ON, RISK_OFF, NEUTRAL, VOLATILE, or ILLIQUID) for a specified chain with supporting signals and trading recommendations","exampleAgentPrompt":"What's the current market regime on Base — is it risk-on, risk-off, neutral, volatile, or illiquid — and should I be trading aggressively right now?","exampleUseCases":null,"resultDescription":"Returns the current market regime label (RISK_ON, RISK_OFF, NEUTRAL, VOLATILE, or ILLIQUID) for the specified chain, along with token prices and 24h changes, breadth/volatility/gas signals, a confidence score (0-1), a scan timestamp, and 2-3 plain-English trading recommendations.","failureModes":["Unsupported or invalid chain identifier returns an error","External price feed unavailability may degrade confidence or prevent regime classification","Low data coverage may yield NEUTRAL with low confidence rather than a decisive regime","Payment failure (x402) blocks the request before processing"],"whenToPreferThis":"Use this endpoint when you need a high-level macro regime classification for DeFi trading decisions on Base, especially when you want bundled signals (gas, breadth, volatility, token prices) alongside a single actionable label and human-readable recommendations. Prefer over raw price APIs when you want opinionated regime categorization rather than raw data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:35:42.109Z","isFirstParty":false}