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

# Run Confidence Curve

> Compute confidence calibration curve.



## OpenAPI

````yaml /api/openapi.json post /api/internal/acceptance/calibration/confidence-curve
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/acceptance/calibration/confidence-curve:
    post:
      tags:
        - acceptance
      summary: Run Confidence Curve
      description: Compute confidence calibration curve.
      operationId: >-
        run_confidence_curve_api_internal_acceptance_calibration_confidence_curve_post
      parameters:
        - name: regime
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Specific regime or None for overall
            title: Regime
          description: Specific regime or None for overall
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CalibrationCurve'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CalibrationCurve:
      properties:
        regime:
          anyOf:
            - type: string
            - type: 'null'
          title: Regime
        buckets:
          items:
            $ref: '#/components/schemas/CalibrationBucket'
          type: array
          title: Buckets
        overall_accuracy:
          anyOf:
            - type: number
            - type: 'null'
          title: Overall Accuracy
      type: object
      title: CalibrationCurve
      description: Confidence calibration curve.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CalibrationBucket:
      properties:
        bucket_min:
          type: number
          title: Bucket Min
        bucket_max:
          type: number
          title: Bucket Max
        expected_accuracy:
          type: number
          title: Expected Accuracy
        actual_accuracy:
          anyOf:
            - type: number
            - type: 'null'
          title: Actual Accuracy
        sample_size:
          type: integer
          title: Sample Size
          default: 0
        calibration_gap:
          anyOf:
            - type: number
            - type: 'null'
          title: Calibration Gap
        calibration_factor:
          anyOf:
            - type: number
            - type: 'null'
          title: Calibration Factor
      type: object
      required:
        - bucket_min
        - bucket_max
        - expected_accuracy
      title: CalibrationBucket
      description: Calibration analysis for a confidence bucket.
    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

````