> ## 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.

# Create Research Run



## OpenAPI

````yaml /api/openapi.json post /api/internal/regime/v2/research/runs
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/research/runs:
    post:
      tags:
        - regime-vnext-internal
      summary: Create Research Run
      operationId: create_research_run_api_internal_regime_v2_research_runs_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResearchRunRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResearchRunManifest'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ResearchRunRequest:
      properties:
        run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Run Id
        logic_version:
          type: string
          title: Logic Version
        feature_version:
          type: string
          title: Feature Version
        variant:
          type: string
          title: Variant
        horizon_profile:
          $ref: '#/components/schemas/HorizonProfile'
        asset_scope:
          $ref: '#/components/schemas/AssetScope'
        cost_model:
          $ref: '#/components/schemas/CostModel'
        strategy_family_registry_version:
          type: string
          title: Strategy Family Registry Version
          default: strategy-family-registry-v1
        source_query_windows:
          items:
            $ref: '#/components/schemas/SourceQueryWindow'
          type: array
          title: Source Query Windows
        input_artifact_refs:
          items:
            $ref: '#/components/schemas/ProvenanceRef'
          type: array
          title: Input Artifact Refs
        code_version_pins:
          additionalProperties:
            type: string
          type: object
          title: Code Version Pins
        approved:
          type: boolean
          title: Approved
          default: false
        feature_sets:
          items:
            $ref: '#/components/schemas/RegimeFeatureSet'
          type: array
          maxItems: 1000
          title: Feature Sets
        observations:
          items:
            $ref: '#/components/schemas/StrategyReturnObservation'
          type: array
          maxItems: 20000
          title: Observations
      additionalProperties: false
      type: object
      required:
        - logic_version
        - feature_version
        - variant
        - horizon_profile
      title: ResearchRunRequest
    ResearchRunManifest:
      properties:
        run_id:
          type: string
          title: Run Id
        created_at:
          type: string
          format: date-time
          title: Created At
        logic_version:
          type: string
          title: Logic Version
        feature_version:
          type: string
          title: Feature Version
        variant:
          type: string
          title: Variant
        horizon_profiles:
          items:
            $ref: '#/components/schemas/HorizonProfile'
          type: array
          title: Horizon Profiles
        asset_scope:
          $ref: '#/components/schemas/AssetScope'
        snapshot_ids:
          items:
            type: string
          type: array
          title: Snapshot Ids
        evidence_ids:
          items:
            type: string
          type: array
          title: Evidence Ids
        artifact_ids:
          items:
            type: string
          type: array
          title: Artifact Ids
        input_artifact_refs:
          items:
            $ref: '#/components/schemas/ProvenanceRef'
          type: array
          title: Input Artifact Refs
        source_query_windows:
          items:
            $ref: '#/components/schemas/SourceQueryWindow'
          type: array
          title: Source Query Windows
        cost_model_id:
          type: string
          title: Cost Model Id
        strategy_family_registry_version:
          type: string
          title: Strategy Family Registry Version
        code_version_pins:
          additionalProperties:
            type: string
          type: object
          title: Code Version Pins
        immutable_hash:
          type: string
          title: Immutable Hash
        status:
          type: string
          enum:
            - completed
            - failed
          title: Status
        notes:
          items:
            type: string
          type: array
          title: Notes
      additionalProperties: false
      type: object
      required:
        - run_id
        - created_at
        - logic_version
        - feature_version
        - variant
        - horizon_profiles
        - asset_scope
        - cost_model_id
        - strategy_family_registry_version
        - immutable_hash
        - status
      title: ResearchRunManifest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HorizonProfile:
      type: string
      enum:
        - macro
        - swing
        - intraday
      title: HorizonProfile
    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
    CostModel:
      properties:
        model_id:
          type: string
          title: Model Id
          default: default
        commission_bps:
          type: number
          minimum: 0
          title: Commission Bps
          default: 0
        slippage_bps:
          type: number
          minimum: 0
          title: Slippage Bps
          default: 0
        spread_bps:
          type: number
          minimum: 0
          title: Spread Bps
          default: 0
      additionalProperties: false
      type: object
      title: CostModel
    SourceQueryWindow:
      properties:
        source:
          type: string
          title: Source
        start:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start
        end:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: End
        horizon_binding:
          anyOf:
            - $ref: '#/components/schemas/FeatureBinding'
            - type: 'null'
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
      additionalProperties: false
      type: object
      required:
        - source
      title: SourceQueryWindow
    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
    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.
    StrategyReturnObservation:
      properties:
        strategy_family:
          $ref: '#/components/schemas/StrategyFamily'
        horizon_profile:
          $ref: '#/components/schemas/HorizonProfile'
        regime_axes:
          additionalProperties:
            type: string
          type: object
          title: Regime Axes
        gross_return:
          type: number
          title: Gross Return
        r_multiple:
          anyOf:
            - type: number
            - type: 'null'
          title: R Multiple
        cost_bps:
          type: number
          minimum: 0
          title: Cost Bps
          default: 0
        trade_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Trade Date
        subperiod:
          anyOf:
            - type: string
            - type: 'null'
          title: Subperiod
      additionalProperties: false
      type: object
      required:
        - strategy_family
        - horizon_profile
        - regime_axes
        - gross_return
      title: StrategyReturnObservation
    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
    FeatureBinding:
      type: string
      enum:
        - prior_session
        - prior_bar
      title: FeatureBinding
    StrategyFamily:
      type: string
      enum:
        - mean_reversion
        - breakout
        - trend_following
        - volatility_selling
        - hedging
        - cross_sectional_relative_strength
      title: StrategyFamily

````