> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequency.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Classify Snapshot Route



## OpenAPI

````yaml /api/openapi.json post /api/internal/regime/v2/snapshots/classify
openapi: 3.1.0
info:
  title: Sequency Graph API
  description: >

    # Sequency Graph-Native Trading API


    Graph-native API for trading intelligence, built on FalkorDB.


    ## Features


    - **Screener**: Filter stocks using graph-native queries with relationship
    expansion

    - **Stock Detail**: Complete stock context with all relationships

    - **Confluence Scoring**: Setup quality assessment with weighted components

    - **Strategy Matching**: Find matching options strategies via graph
    traversal

    - **Market Context**: Current market-wide context for trading decisions


    ## Data Sources


    All data is sourced from the FalkorDB knowledge graph, populated by:

    - Pattern detector (Go) - Technical indicators, patterns

    - Graph sync service - Levels, volume profiles, news, day classification
  version: 1.0.0
servers: []
security: []
paths:
  /api/internal/regime/v2/snapshots/classify:
    post:
      tags:
        - regime-vnext-internal
      summary: Classify Snapshot Route
      operationId: classify_snapshot_route_api_internal_regime_v2_snapshots_classify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegimeFeatureSet'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegimeSnapshotV2'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    RegimeFeatureSet:
      properties:
        as_of:
          type: string
          format: date-time
          title: As Of
        effective_for_session:
          type: string
          format: date
          title: Effective For Session
        asset_scope:
          $ref: '#/components/schemas/AssetScope'
        horizon_profile:
          $ref: '#/components/schemas/HorizonProfile'
        logic_version:
          type: string
          title: Logic Version
        feature_version:
          type: string
          title: Feature Version
        variant:
          type: string
          title: Variant
          default: corrected
        feature_binding:
          anyOf:
            - $ref: '#/components/schemas/FeatureBinding'
            - type: 'null'
        vix_percentile:
          anyOf:
            - type: number
              maximum: 100
              minimum: 0
            - type: 'null'
          title: Vix Percentile
        realized_vol_percentile:
          anyOf:
            - type: number
              maximum: 100
              minimum: 0
            - type: 'null'
          title: Realized Vol Percentile
        realized_vol_change_z:
          anyOf:
            - type: number
            - type: 'null'
          title: Realized Vol Change Z
        range_percentile:
          anyOf:
            - type: number
              maximum: 100
              minimum: 0
            - type: 'null'
          title: Range Percentile
        drawdown_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Drawdown Pct
        tail_loss_z:
          anyOf:
            - type: number
            - type: 'null'
          title: Tail Loss Z
        return_20d_z:
          anyOf:
            - type: number
            - type: 'null'
          title: Return 20D Z
        trend_persistence:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Trend Persistence
        breadth_pct:
          anyOf:
            - type: number
              maximum: 100
              minimum: 0
            - type: 'null'
          title: Breadth Pct
        breadth_change_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Breadth Change Pct
        avg_correlation:
          anyOf:
            - type: number
              maximum: 1
              minimum: -1
            - type: 'null'
          title: Avg Correlation
        correlation_change_z:
          anyOf:
            - type: number
            - type: 'null'
          title: Correlation Change Z
        intraday_trend_strength:
          anyOf:
            - type: number
              maximum: 1
              minimum: 0
            - type: 'null'
          title: Intraday Trend Strength
        opening_drive_z:
          anyOf:
            - type: number
            - type: 'null'
          title: Opening Drive Z
        failed_auction:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Failed Auction
        noise_z:
          anyOf:
            - type: number
            - type: 'null'
          title: Noise Z
        source_refs:
          items:
            $ref: '#/components/schemas/ProvenanceRef'
          type: array
          title: Source Refs
      additionalProperties: false
      type: object
      required:
        - as_of
        - effective_for_session
        - horizon_profile
        - logic_version
        - feature_version
      title: RegimeFeatureSet
      description: Point-in-time features used by deterministic vNext classification.
    RegimeSnapshotV2:
      properties:
        snapshot_id:
          type: string
          title: Snapshot Id
        logic_version:
          type: string
          title: Logic Version
        feature_version:
          type: string
          title: Feature Version
        variant:
          type: string
          title: Variant
          default: corrected
        as_of:
          type: string
          format: date-time
          title: As Of
        effective_for_session:
          type: string
          format: date
          title: Effective For Session
        asset_scope:
          $ref: '#/components/schemas/AssetScope'
        horizon_profile:
          $ref: '#/components/schemas/HorizonProfile'
        feature_binding:
          $ref: '#/components/schemas/FeatureBinding'
        risk_state:
          $ref: '#/components/schemas/RiskState'
        volatility_change:
          $ref: '#/components/schemas/VolatilityChange'
        directional_pressure:
          $ref: '#/components/schemas/DirectionalPressure'
        breadth_state:
          $ref: '#/components/schemas/BreadthState'
        correlation_state:
          $ref: '#/components/schemas/CorrelationState'
        intraday_structure:
          $ref: '#/components/schemas/IntradayStructure'
        unavailable_inputs:
          items:
            type: string
          type: array
          title: Unavailable Inputs
        risk_classifier_version:
          type: string
          title: Risk Classifier Version
          default: risk-v2.0
        risk_inputs_complete:
          type: boolean
          title: Risk Inputs Complete
          default: false
        provenance:
          items:
            $ref: '#/components/schemas/ProvenanceRef'
          type: array
          title: Provenance
        legacy_shadow_grid:
          anyOf:
            - $ref: '#/components/schemas/LegacyShadowGrid'
            - type: 'null'
      additionalProperties: false
      type: object
      required:
        - snapshot_id
        - logic_version
        - feature_version
        - as_of
        - effective_for_session
        - asset_scope
        - horizon_profile
        - feature_binding
        - risk_state
        - volatility_change
        - directional_pressure
        - breadth_state
        - correlation_state
        - intraday_structure
      title: RegimeSnapshotV2
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AssetScope:
      properties:
        kind:
          type: string
          enum:
            - market_index
            - symbol
            - universe
            - portfolio
          title: Kind
          default: market_index
        primary_asset:
          type: string
          title: Primary Asset
          default: SPY
        universe:
          items:
            type: string
          type: array
          maxItems: 500
          title: Universe
      additionalProperties: false
      type: object
      title: AssetScope
    HorizonProfile:
      type: string
      enum:
        - macro
        - swing
        - intraday
      title: HorizonProfile
    FeatureBinding:
      type: string
      enum:
        - prior_session
        - prior_bar
      title: FeatureBinding
    ProvenanceRef:
      properties:
        source:
          type: string
          title: Source
        source_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Id
        artifact_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Artifact Id
        as_of:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: As Of
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
      additionalProperties: false
      type: object
      required:
        - source
      title: ProvenanceRef
    RiskState:
      type: string
      enum:
        - calm
        - normal
        - elevated
        - stress
        - unavailable
      title: RiskState
    VolatilityChange:
      type: string
      enum:
        - compressing
        - stable
        - expanding
        - unavailable
      title: VolatilityChange
    DirectionalPressure:
      type: string
      enum:
        - upside_extended
        - downside_extended
        - balanced
        - persistent_trend
      title: DirectionalPressure
    BreadthState:
      type: string
      enum:
        - broad
        - narrow
        - deteriorating
        - recovering
        - unavailable
      title: BreadthState
    CorrelationState:
      type: string
      enum:
        - diversified
        - correlated
        - turbulent
        - unavailable
      title: CorrelationState
    IntradayStructure:
      type: string
      enum:
        - range_bound
        - trend_day
        - opening_drive
        - failed_auction
        - high_noise
        - unavailable
      title: IntradayStructure
    LegacyShadowGrid:
      properties:
        direction:
          anyOf:
            - type: string
            - type: 'null'
          title: Direction
        volatility:
          anyOf:
            - type: string
            - type: 'null'
          title: Volatility
        grid_cell:
          anyOf:
            - type: string
            - type: 'null'
          title: Grid Cell
        logic_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Logic Version
        variant:
          anyOf:
            - type: string
            - type: 'null'
          title: Variant
      additionalProperties: false
      type: object
      title: LegacyShadowGrid
      description: Legacy 2x3 grid retained for diagnostics, never direct vNext policy.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````