{"uid":"cap_kCG7JUaTzmIps4nWqfRv1","slug":"api-quantoracle-dev-ed5c67bd","name":"QuantOracle Regime Classifier","description":"QuantOracle: /v1/indicators/regime-classify","url":"https://api.quantoracle.dev/v1/indicators/regime-classify","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","title":"RegimeClassifyIn","required":["closes"],"properties":{"lows":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}],"title":"Lows","description":"Low prices (optional, improves vol estimate)"},"highs":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}],"title":"Highs","description":"High prices (optional, improves vol estimate)"},"opens":{"anyOf":[{"type":"array","items":{"type":"number"}},{"type":"null"}],"title":"Opens","description":"Opening prices (optional, improves vol estimate)"},"closes":{"type":"array","items":{"type":"number"},"title":"Closes","minItems":30,"description":"Closing prices"},"rsi_period":{"type":"integer","title":"Rsi Period","default":14,"description":"RSI period"},"sma_period":{"type":"integer","title":"Sma Period","default":50,"description":"SMA period for trend"},"vol_window":{"type":"integer","title":"Vol Window","default":21,"description":"Rolling vol window"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"closes":[100,101,102,103,102,101,100,99,98,97,98,99,100,101,102,104,106,108,110,112,111,110,109,108,107,106,105,104,103,102]},"response":{"ms":15.45,"rsi":44.44,"sma":103.6,"_meta":{"url":"https://quantoracle.dev","docs":"https://api.quantoracle.dev/docs","powered_by":"QuantOracle"},"trend":"DOWNTREND","composite":"NEUTRAL","direction":"CHOPPY","vol_ratio":1.0516,"vol_regime":"NORMAL","realized_vol":{"close_to_close":0.2004},"slope_5d_pct":-3.77,"slope_20d_pct":4.08,"price_vs_sma_pct":-1.5444,"suggested_strategy":"WAIT"}},"exampleRequest":{"closes":[100,101,102,103,102,101,100,99,98,97,98,99,100,101,102,104,106,108,110,112,111,110,109,108,107,106,105,104,103,102]},"tags":["x402"],"displayCostAmount":"0.015","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mwkkPXDy5abI3oFCTRtty","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Classifies market regime (trend, volatility, risk) from a price series and returns RSI, SMA, trend direction, and a suggested strategy.","exampleAgentPrompt":"Classify the market regime for this 50-bar close series: [100.5, 101.2, 100.8, ..., 124.4] — use RSI period 14, SMA period 20, and volatility window 10, and tell me whether it's risk-on or risk-off and what strategy is suggested.","exampleUseCases":null,"resultDescription":"Returns RSI value, SMA, trend label (e.g. UPTREND), composite regime (e.g. RISK_ON), direction (UP/DOWN), volatility ratio, volatility regime (NORMAL/HIGH/LOW), realized close-to-close volatility, 5-day and 20-day slope percentages, price vs SMA percentage, and a suggested strategy string (e.g. TAKE_PROFITS).","failureModes":["Insufficient price data — fewer closes than the required window periods returns an error","Invalid period parameters — non-integer or zero/negative values for rsi_period, sma_period, or vol_window","Malformed closes array — non-numeric values or empty array","Payment failure — x402 payment not processed, returns 402","Rate limit exceeded — too many requests in a short window"],"whenToPreferThis":"Use this endpoint when you need a fast, multi-dimensional market regime snapshot from raw close prices, combining momentum (RSI), trend (SMA slope), and volatility into a single composite label and actionable strategy suggestion. Prefer it over raw indicator libraries when you want a pre-integrated, opinionated regime classification with a suggested strategy rather than computing individual indicators separately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:49:26.545Z","isFirstParty":false}