# Losbeto /regime — Market Regime Detection Endpoint

> Losbeto /regime — Market Regime Detection Endpoint is a paid API for AI agents from api.losbeto.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns the current market regime classification (e.g. trending, ranging, volatile) for crypto or financial instruments via a micropayment-gated x402 API.

## Facts

- Endpoint: GET https://api.losbeto.xyz/regime
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-regime-market-regime-detection-endpoint-4594d496
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XkMAmcHzgRjWfdf6NO7uk

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 losbeto-regime-market-regime-detection-endpoint-4594d496
```

Example prompt: What is the current market regime right now — is it trending, ranging, or volatile? I need this for my crypto trading bot to decide whether to use a momentum or mean-reversion strategy.

## When to prefer this

Choose this endpoint when an AI trading agent needs a quick, cheap ($0.02 USDC) regime classification signal to gate strategy selection, and the agent supports x402 micropayment flows on Solana or Base. Prefer it over building custom regime detection when low-latency regime labels are sufficient and cost-per-call matters.

## Known failure modes

- Missing or malformed 'properties' query parameter may return 400 or empty result
- Payment failure via x402 protocol returns 402 Payment Required
- Endpoint may return generic JSON with limited detail due to sparse schema documentation
- Service may be unavailable or return 5xx if the Losbeto swarm is down
- Response schema is underspecified so output format may vary

## How this service works

OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana and Algorand via x402.

## Output

A JSON object containing the current market regime classification, likely including a regime label (e.g. trending, ranging, volatile/choppy) and possibly supporting metadata such as confidence or timestamp. Exact schema fields are not fully documented.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "properties": {
      "format": {
       "type": "string",
       "description": "Response format (json)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "Bull, bear or chop — right now? Regime classification from the last 24h-7d of momentum and realized volatility, with a confidence score. The 'now' is the product: models do not know today."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

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