# Sagitta Market Regime Classifier

> Sagitta Market Regime Classifier is a paid API for AI agents from selun.sagitta.systems, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Classifies current market regime and returns volatility, liquidity, sentiment, and allocation authorization signals for a given portfolio segment and risk profile before rebalancing or allocation decisions.

## Facts

- Endpoint: POST https://selun.sagitta.systems/agent/x402/market-regime
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/selun-sagitta-systems-686e4627
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jfT2wBOyK3TIt2_1Qmn00

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 selun-sagitta-systems-686e4627 -d '<json body>'
```

Example prompt: Before I rebalance my bluechip crypto holdings, run a market regime check for a Balanced risk tolerance with a 1-3 year timeframe and tell me whether current volatility, liquidity, and sentiment conditions authorize proceeding.

## When to prefer this

Use this endpoint as a pre-flight check before any allocation or rebalancing action in an automated crypto portfolio workflow. It is specifically designed to gate downstream decisions with regime-aware signals (volatility, liquidity, sentiment) and explicitly supports segment-level context (Bluechips, Memecoins, Gaming, Yield Farm) that generic market data APIs do not. Prefer this over generic market data endpoints when you need an authorization signal, not just raw price data.

## Known failure modes

- Invalid enum value for timeframe, riskTolerance, or portfolioSegment returns a 400 validation error
- Service unavailable or market data feed disruption may return 5xx errors
- Insufficient USDC balance or payment failure returns a 402 Payment Required
- Missing required fields returns a schema validation error
- Duplicate decisionId may return cached or rejected response depending on idempotency handling

## How this service works

Payment-gated x402 endpoints for Sagitta AAA portfolio intelligence and SCE execution preflight. Includes allocation, market regime, policy envelope, asset scoring, rebalance, continuity mode, case relevance, and doctrine-based risk evaluation for autonomous agents.

## Output

Returns a structured market regime classification including volatility level, liquidity assessment, sentiment reading, and allocation authorization inputs — all contextualized to the requested portfolio segment (e.g. Bluechips, Memecoins, Gaming, Yield Farm) and risk profile.

## Example request

```json
{
 "timeframe": "1-3_years",
 "decisionId": "qa-test-001",
 "riskTolerance": "Balanced",
 "portfolioSegment": "Bluechips"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "timeframe": {
   "enum": [
    "<1_year",
    "1-3_years",
    "3+_years"
   ]
  },
  "decisionId": {
   "type": "string"
  },
  "riskTolerance": {
   "enum": [
    "Conservative",
    "Balanced",
    "Growth",
    "Aggressive"
   ]
  },
  "portfolioSegment": {
   "enum": [
    "Bluechips",
    "Memecoins",
    "Gaming",
    "Yield Farm"
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "result": {
    "regime": "defensive",
    "marketCondition": {
     "confidence": 0.74,
     "risk_appetite": "defensive",
     "liquidity_state": "stable",
     "volatility_state": "elevated"
    }
   },
   "status": "completed",
   "endpoint": "/agent/x402/market-regime",
   "productId": "market_regime",
   "decisionId": "market-regime-001"
  },
  "success": true,
  "executionModelVersion": "Selun-1.0.0"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/selun-sagitta-systems-686e4627/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from selun.sagitta.systems](https://www.zero.xyz/host/selun.sagitta.systems/llms.txt)
