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

# Start Sweep

> Start an async parameter sensitivity sweep.

Accepts parameter ranges to sweep over, runs each combination through the
simulator, and collects metrics. Returns a sweep_id to poll for status and
results.

The control plane registers a pending sweep and enqueues a sweep-class job;
an out-of-process worker claims it and runs run_sweep (B5 cutover).

Enforces max 500 grid points. Individual runs time out at 30s, overall
sweep times out at 10 minutes.



## OpenAPI

````yaml /api/openapi.json post /api/graph/v1/backtest/v2/sweep
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/graph/v1/backtest/v2/sweep:
    post:
      tags:
        - backtest-v2
      summary: Start Sweep
      description: >-
        Start an async parameter sensitivity sweep.


        Accepts parameter ranges to sweep over, runs each combination through
        the

        simulator, and collects metrics. Returns a sweep_id to poll for status
        and

        results.


        The control plane registers a pending sweep and enqueues a sweep-class
        job;

        an out-of-process worker claims it and runs run_sweep (B5 cutover).


        Enforces max 500 grid points. Individual runs time out at 30s, overall

        sweep times out at 10 minutes.
      operationId: start_sweep_api_graph_v1_backtest_v2_sweep_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SweepStartRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SweepStartRequest:
      properties:
        base_request:
          additionalProperties: true
          type: object
          title: Base Request
        param_ranges:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Param Ranges
        target_metric:
          type: string
          title: Target Metric
          default: sharpe_ratio
      type: object
      required:
        - base_request
        - param_ranges
      title: SweepStartRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````