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

# Get the Versioned Backtest Strategy JSON Schema and Safe Defaults



## OpenAPI

````yaml https://quantura.studio/api/openapi.json get /backtests/strategy-schema
openapi: 3.1.0
info:
  title: Quantura Forecast Intelligence API
  version: 1.0.0
  description: >-
    Versioned access to Quantura forecasts, collaborator-aware workspaces,
    screeners, datasets, and provenance metadata.
  contact:
    name: Quantura
    url: https://quantura.studio/contact
  license:
    name: Quantura API Terms
    url: https://quantura.studio/terms
servers:
  - url: https://quantura.studio/api/v1
security:
  - bearerAuth: []
tags:
  - name: Access
    description: Identity, token scopes, plans, and effective workspace access.
  - name: Workspaces
    description: Resources are authorized against current membership on every request.
  - name: Uploaded CSVs
    description: Workspace-isolated CSV metadata, organization, and authorized exports.
  - name: Datasets
    description: Licensing-aware catalog and schema metadata.
  - name: Forecasts
    description: Prospective forecasts and immutable probability trajectories.
  - name: Ensemble Forecasts
    description: >-
      Asynchronous probabilistic time-series ensemble jobs and reproducible
      presets.
  - name: Backtests
    description: >-
      Asynchronous point-in-time ensemble-quantile simulations and versioned
      strategy exports; never live order execution.
paths:
  /backtests/strategy-schema:
    get:
      tags:
        - Backtests
      summary: Get the Versioned Backtest Strategy JSON Schema and Safe Defaults
      operationId: getBacktestStrategySchema
      responses:
        '200':
          description: >-
            Quantile-rule JSON Schema, default blocks, and bounded replay
            settings.
          content:
            application/json:
              schema:
                type: object
              example:
                data:
                  schema:
                    $schema: https://json-schema.org/draft/2020-12/schema
                    title: Quantura quantile backtest strategy v2
                    description: >-
                      Research-only long strategy; exits are OR-combined. Stops
                      take precedence over trailing stops, then take-profit when
                      several signal on the same completed bar.
                    type: object
                    additionalProperties: false
                    required:
                      - schema_version
                      - type
                      - entry_logic
                      - rules
                    properties:
                      schema_version:
                        const: 2
                      type:
                        const: quantile_rules
                      entry_logic:
                        enum:
                          - all
                          - any
                      rules:
                        type: array
                        minItems: 2
                        maxItems: 10
                        items:
                          oneOf:
                            - type: object
                              additionalProperties: false
                              required:
                                - id
                                - kind
                                - condition
                                - quantile
                              properties:
                                id:
                                  type: string
                                  pattern: ^[a-z][a-z0-9_]{0,39}$
                                kind:
                                  const: entry
                                condition:
                                  enum:
                                    - crosses_above
                                    - crosses_below
                                    - at_or_above
                                    - at_or_below
                                quantile:
                                  type: number
                                  exclusiveMinimum: 0
                                  exclusiveMaximum: 1
                            - type: object
                              additionalProperties: false
                              required:
                                - id
                                - kind
                                - target_mode
                                - quantile
                              properties:
                                id:
                                  type: string
                                  pattern: ^[a-z][a-z0-9_]{0,39}$
                                kind:
                                  enum:
                                    - take_profit
                                    - stop_loss
                                target_mode:
                                  const: quantile
                                quantile:
                                  type: number
                                  exclusiveMinimum: 0
                                  exclusiveMaximum: 1
                            - type: object
                              additionalProperties: false
                              required:
                                - id
                                - kind
                                - target_mode
                                - percent
                              properties:
                                id:
                                  type: string
                                  pattern: ^[a-z][a-z0-9_]{0,39}$
                                kind:
                                  enum:
                                    - take_profit
                                    - stop_loss
                                target_mode:
                                  const: percent
                                percent:
                                  type: number
                                  minimum: 0.1
                                  maximum: 100
                            - type: object
                              additionalProperties: false
                              required:
                                - id
                                - kind
                                - percent
                              properties:
                                id:
                                  type: string
                                  pattern: ^[a-z][a-z0-9_]{0,39}$
                                kind:
                                  const: trailing_stop
                                percent:
                                  type: number
                                  minimum: 0.1
                                  maximum: 90
                  default_strategy:
                    schema_version: 2
                    type: quantile_rules
                    entry_logic: all
                    rules:
                      - id: entry_p10
                        kind: entry
                        condition: crosses_above
                        quantile: 0.1
                      - id: take_p50
                        kind: take_profit
                        target_mode: quantile
                        quantile: 0.5
                      - id: stop_p01
                        kind: stop_loss
                        target_mode: quantile
                        quantile: 0.01
                  default_replay:
                    context_rows: 128
                    evaluation_windows: 2
                  default_execution:
                    starting_capital: 1000
                    position_fraction: 1
                    commission_bps: 10
                    slippage_bps: 5
                  model_capabilities_url: /api/v1/ensemble-forecasts/models
                  live_eligible: false
                meta:
                  api_version: v1
        '401':
          description: Authentication failed
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - request_id
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      request_id:
                        type: string
                        format: uuid
        '403':
          description: Scope, plan, or workspace authorization denied
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - request_id
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      request_id:
                        type: string
                        format: uuid
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - code
                      - message
                      - request_id
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      request_id:
                        type: string
                        format: uuid
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Quantura API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.