# market2000.xyz Regime Detection

> market2000.xyz Regime Detection is a paid API for AI agents from market2000.xyz, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-13).

Identifies which historical market periods most closely resemble the current price action window for a given ticker, returning consensus outlook and ranked analog matches.

## Facts

- Endpoint: GET https://market2000.xyz/regime_detection
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market2000-xyz-regime-detection-a2f6d66f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_abbUZ6ufbfPrJAaxSjj5M

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 market2000-xyz-regime-detection-a2f6d66f
```

Example prompt: What historical market period does SPY most resemble right now, and what did returns look like in the following 7 and 30 days after those analogs?

## When to prefer this

Use this endpoint when you need to contextualize current market conditions by finding the closest historical precedents — especially useful for regime-aware forecasting, risk management, or explaining market dynamics by analogy. Prefer this over generic charting or momentum indicators when the goal is narrative context or historically-grounded return expectations.

## Known failure modes

- Invalid or unrecognized ticker symbol returns an error
- Insufficient historical data for the ticker to compute analogs
- Payment failure via x402 if USDC balance is insufficient on Base
- Service unavailable if time series data feed is down
- No high-confidence analogs found results in low confidence consensus

## How this service works

An origin the crawlers already index. We count what AI agents try to buy, what they are refused, and what the AI companies take without sending anyone back. Sold per call in USDC.

## Output

Returns a JSON object containing the current analysis window dates, a consensus object with confidence level and 7-day/30-day outlook labels plus average forward return percentages, and a ranked list of top historical analog periods each with era name, description, similarity score, date range, and forward returns at 7, 14, 30, and 60 days.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "k": {
       "type": "integer",
       "description": "Number of top analogs to return (default 3)"
      },
      "ticker": {
       "type": "string",
       "description": "Asset symbol (default SPY)"
      },
      "lookback_days": {
       "type": "integer",
       "description": "Query window length in days (default 60)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ticker": {
       "type": "string"
      },
      "question": {
       "type": "string"
      },
      "consensus": {
       "type": "object"
      },
      "top_analogs": {
       "type": "array"
      },
      "generated_at": {
       "type": "string"
      },
      "current_window": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ticker": "SPY",
  "question": "What historical period does SPY most resemble right now?",
  "consensus": {
   "confidence": "high",
   "outlook_7d": "bullish",
   "outlook_30d": "bearish",
   "avg_fwd_7d_pct": 1.2,
   "avg_fwd_30d_pct": -4.5
  },
  "top_analogs": [
   {
    "era": "Trade war correction",
    "rank": 1,
    "analog_end": "2018-08-27",
    "similarity": 0.0821,
    "analog_start": "2018-06-15",
    "era_description": "US-China tariffs; Q4 -20%",
    "forward_returns": {
     "fwd_7d": 0.012,
     "fwd_14d": 0.025,
     "fwd_30d": -0.082,
     "fwd_60d": -0.156
    }
   }
  ],
  "generated_at": "2026-06-08T12:00:00+00:00",
  "current_window": {
   "end": "2026-06-08",
   "days": 42,
   "start": "2026-04-09"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market2000-xyz-regime-detection-a2f6d66f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market2000.xyz](https://www.zero.xyz/host/market2000.xyz/llms.txt)
