# QuantOracle Indicators Regime

> QuantOracle Indicators Regime is a paid API for AI agents from api.quantoracle.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Detects and labels the current market regime (e.g. trending, mean-reverting, volatile) from a time-series of price or return data

## Facts

- Endpoint: POST https://api.quantoracle.dev/v1/indicators/regime
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-quantoracle-dev-25c28767
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VxV0GNMcid9P5uu9CsDjW

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 api-quantoracle-dev-25c28767 -d '<json body>'
```

Example prompt: What market regime is BTC/USD currently in? Give me the regime label and confidence score based on the last 90 days of daily close prices — I want to know if we're trending, mean-reverting, or in a high-volatility breakout state.

## When to prefer this

Choose this endpoint when you need a quantitative, model-driven classification of the current market regime from raw price or return data, particularly for algorithmic trading signals, strategy switching, or risk management. Prefer this over the sibling regime-classify endpoint if you need raw indicator computation rather than a pure classification label. Best suited for time-series inputs where you want a structured regime score alongside the label.

## Known failure modes

- Insufficient data points in the input series — returns 422 or validation error
- Unsupported regime type or indicator parameter — returns 400 bad request
- Empty or malformed price array — returns 400 with schema validation error
- Service unavailable or timeout — returns 503
- Payment not provided or insufficient — returns 402 payment required

## How this service works

QuantOracle: indicators/regime

## Output

Returns a structured object containing the detected regime label (e.g. 'trending', 'mean-reverting', 'volatile', 'neutral'), a numeric regime score or confidence value, and potentially supporting indicator values used to derive the classification.

## Example request

```json
{
 "input": {
  "body": {
   "prices": [
    100,
    101.5,
    103,
    102,
    100.5,
    99,
    97,
    98.5,
    100,
    101,
    103,
    105,
    107,
    108,
    110,
    112,
    114,
    113,
    115,
    117,
    119,
    118,
    116,
    117,
    119,
    121,
    120,
    118,
    117,
    119,
    121,
    123,
    125,
    124,
    122,
    120,
    121,
    123,
    125,
    127,
    126,
    124,
    123,
    125,
    127,
    129,
    128,
    126,
    125,
    127
   ],
   "sma_period": 50,
   "vol_window": 21
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prices": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "title": "Prices",
   "minItems": 30,
   "description": "Array of price data"
  },
  "sma_period": {
   "type": "integer",
   "title": "Sma Period",
   "default": 50,
   "description": "SMA period for trend detection"
  },
  "vol_window": {
   "type": "integer",
   "title": "Vol Window",
   "default": 21,
   "description": "Window for rolling volatility calculation"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-quantoracle-dev-25c28767/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.quantoracle.dev](https://www.zero.xyz/host/api.quantoracle.dev/llms.txt)
