Two Regime Systems, One Question Each

CryptoDataAPI ships two regime systems, and they are not redundant. The quant HMM is a probabilistic, short-horizon engine that scores six market states every hour. The 14-basket framework is a rule-based taxonomy of structural conditions — volatility, liquidity, on-chain flows, macro, security and more.

They answer different questions on different clocks. The HMM asks "what is the tradeable state right now, and how confident are we?" The 14-basket framework asks "what structural conditions is the market operating under?" The strongest agents use both.

HMM Quant Probabilities vs the 14-Basket Framework

DimensionQuant HMM (/quant)14-Basket Framework (/regimes)
MethodHidden Markov Model, trained on 6y hourly dataRule-based, transparent thresholds
OutputProbability + calibrated confidenceClassified state + score per basket
HorizonShort: 4h / 24hStructural: hours to weeks
States6 market regimes14 thematic baskets
UpdateHourly, hysteresis-smoothedPer data source (intraday to daily)
ExtrasTransitions, heads, Monte CarloDomain signals (hacks, unlocks, ETF flows…)
Best forTiming, sizing, executionContext, risk posture, what to watch

Neither replaces the other. One is a fast probabilistic clock; the other is a wide structural map.

When to Use the Quant HMM

Reach for /quant when the decision is about timing and sizing:

It is deliberately short-horizon and probabilistic — built to be polled every hour by an execution agent.

When to Use the 14-Basket Framework

Reach for the 14-basket framework when the decision is about context and posture:

These are the slow-moving conditions that decide whether you should be trading at all, and which playbook applies.

Combining Both: The Layered Stack

The two compose cleanly — structural posture from the baskets, timing from the HMM:

import httpx
h = {"X-API-Key": "cdk_live_your_key"}
B = "https://cryptodataapi.com/api/v1"

# 1) posture: is the structural backdrop safe to trade?
sec = httpx.get(f"{B}/security/regime", headers=h).json()
# 2) timing: what's the short-horizon state + conviction?
q = httpx.get(f"{B}/quant/market?horizon=24h", headers=h).json()

trade = (sec["regime"]["score"] < 50               # no black-swan stress
         and q["regime"]["confidence"] > 0.65)      # confident state

Black-swan regime gates the whole book off; the HMM gates individual entries. Structural map plus probabilistic clock.

How AI Agents Should Wire Both

Use the label for display, the probabilities for decisions, and the basket regimes for the guardrails around both.