# Mangrove Market Regime Detector

> Mangrove Market Regime Detector is a paid API for AI agents from api.mangrovedeveloper.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-04).

Returns the current market regime classification for a given crypto asset based on historical price data

## Facts

- Endpoint: GET https://api.mangrovedeveloper.ai/api/v1/market-data/regime/%7Basset%7D?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mangrove-market-regime-detector-fa0b1a1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6QSYFpUd4tzcQd-7k4pco

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mangrove-market-regime-detector-fa0b1a1e
```

Example prompt: What's the current market regime for BTC using 365 days of history — is it trending, ranging, or in some other state?

## When to prefer this

Use this endpoint when you need a regime label — not just raw price data — for a crypto asset, especially when building trading strategies that gate on market conditions or when you need a quick signal about whether the market is trending vs ranging. Prefer this over raw OHLCV data endpoints when you want pre-computed regime classification rather than doing your own statistical analysis.

## Known failure modes

- Unknown or unsupported asset symbol returns 4xx error
- Invalid market data venue returns no data or error
- Requested lookback_days exceeds available history for asset
- Upstream data provider unavailable causing timeout or 5xx
- Missing required asset path parameter returns 400 or 422
- Payment not completed returns 402 Payment Required

## How this service works

Developer references for Mangrove Agent, API contracts, MCP and AI integrations.

## Output

Returns a market regime classification for the specified asset, indicating the current market phase (e.g. trending, mean-reverting, volatile, or similar regime labels) derived from the requested lookback period of historical price data, optionally scoped to a specific venue and quote currency.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "asset"
     ],
     "properties": {
      "asset": {
       "type": "string",
       "description": "Asset symbol, e.g. BTC or ETH."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "provider": {
       "type": "string",
       "description": "Optional upstream override; omitted uses the existing server default."
      },
      "quote_token": {
       "type": "string",
       "description": "Quote currency of the requested market."
      },
      "lookback_days": {
       "type": "integer",
       "default": 365,
       "description": "Number of days of history to request."
      },
      "market_data_venue": {
       "type": "string",
       "description": "Exact venue of the requested market."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mangrove-market-regime-detector-fa0b1a1e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mangrovedeveloper.ai](https://www.zero.xyz/host/api.mangrovedeveloper.ai/llms.txt)
