DeFi market regime classification via x402-paid API on Base (USDC)
What it does
The `/api/defi/market-regime` endpoint is part of DeFi Shield, a suite of 69 paid API endpoints that sell security and market intelligence to autonomous AI agents. Payments are made per-request using USDC on Base via the x402 protocol. The endpoint is accessed via POST and is listed among the DeFi Intelligence category of endpoints, though its specific pricing is not individually listed on the landing page — the broader DeFi Intelligence category ranges from $0.25 to $2.50 per call.
DeFi Shield provides a discovery mechanism: every endpoint supports a free GET request that returns endpoint metadata including an `llm_usage_prompt`, and a health endpoint at `/api/health` lists all endpoints with pricing. An A2A discovery card is available at `/.well-known/agent-card.json`. The x402 payment flow works by sending a POST with an x402 payment header; the facilitator verifies USDC payment on Base, processes the request, and returns JSON. Payment settles only on successful response.
The `market-regime` endpoint likely classifies current DeFi market conditions (e.g., bull, bear, accumulation, distribution regimes), though the exact request/response schema is not documented in the crawled material. No OpenAPI spec or dedicated docs page was found. The probe confirmed the endpoint is live, returning HTTP 402 as expected for an x402 endpoint, but the challenge object was empty, meaning no structured pricing metadata was captured from the 402 response itself.
Capabilities
Use cases
- —Autonomous agents classifying current DeFi market conditions before executing trades
- —Portfolio rebalancing bots adjusting strategy based on detected market regime
- —Risk management systems that gate DeFi operations on market state
- —Dashboard services displaying real-time market regime indicators
- —Multi-agent workflows where one agent queries market regime and passes context to trading agents
Fit
Best for
- —AI agents needing on-demand DeFi market regime classification
- —Automated trading systems that adapt strategy to market conditions
- —Crypto-native applications paying per-call with USDC on Base
Not for
- —Users who need free or subscription-based market data
- —Applications requiring historical time-series regime data (not confirmed available)
- —Non-crypto use cases with no USDC payment capability
Quick start
# Discover endpoint metadata (free)
curl https://defi-shield-hazel.vercel.app/api/defi/market-regime
# Paid request (requires x402 payment header)
curl -X POST https://defi-shield-hazel.vercel.app/api/defi/market-regime \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <x402-payment-token>" \
-d '{}'Endpoint
Quality
The endpoint is confirmed live (402 on POST), but the x402 challenge was empty with no pricing metadata. No OpenAPI spec, no docs page, no request/response schema, and no specific listing for this endpoint's price. Most details are inferred from the landing page's general description of the DeFi Shield platform.
Warnings
- —No OpenAPI or schema documentation found — request/response format is unknown
- —The x402 challenge object was empty; exact price for this endpoint could not be confirmed from the probe
- —The /docs, /pricing, and /README pages all return 404
- —Endpoint-specific functionality (market-regime) is not described on the landing page; its behavior is inferred from the name only
Citations
- —DeFi Shield offers 69 paid API endpoints selling security intelligence to autonomous AI agents, paid per request with USDC via x402 on Basehttps://defi-shield-hazel.vercel.app
- —DeFi Intelligence category endpoints range from $0.25 to $2.50 per callhttps://defi-shield-hazel.vercel.app
- —Every endpoint supports a free GET for discovery with llm_usage_prompt, and /api/health lists all endpoints with pricinghttps://defi-shield-hazel.vercel.app
- —The endpoint returned HTTP 402 on POST, confirming it is live as an x402 endpointhttps://defi-shield-hazel.vercel.app/api/defi/market-regime