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

# Poll One Authorized Quantile Backtest and Read Its Completed Simulation



## OpenAPI

````yaml https://quantura.studio/api/openapi.json get /backtests/{id}
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/{id}:
    get:
      tags:
        - Backtests
      summary: Poll One Authorized Quantile Backtest and Read Its Completed Simulation
      operationId: getBacktest
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            Queued/running progress, or final ensemble quantiles, simulated
            trades, equity curve and assumptions.
          content:
            application/json:
              schema:
                type: object
              example:
                data:
                  id: bt_0123456789abcdef0123456789abcdef
                  status: completed
                  workspace_id: ws_01JEXAMPLE9Y6Z
                  source:
                    type: ticker
                    symbol: SPY
                    provider: auto
                    frequency: 1Day
                  provider: alpaca
                  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
                  replay:
                    context_rows: 128
                    evaluation_windows: 2
                  fill_model: next_observed_bar_open
                  data_hash: 0123456789abcdef
                  live_eligible: false
                  metrics:
                    observed_bars: 500
                    forecast_windows: 2
                    matched_forecast_bars: 60
                    trades: 8
                    wins: 5
                    losses: 3
                    win_rate_pct: 62.5
                    net_pnl: 42.18
                    return_pct: 4.218
                    max_drawdown: 26.2
                    fees: 5.6
                  forecast_windows:
                    - number: 1
                      cutoff_at: '2026-09-01T20:00:00.000Z'
                      training_rows: 128
                      predictions:
                        - timestamp: '2026-09-02T20:00:00.000Z'
                          quantiles:
                            '0.01': 500
                            '0.1': 510
                            '0.5': 530
                  trades:
                    - entry_at: '2026-09-03T13:30:00.000Z'
                      exit_at: '2026-09-04T13:30:00.000Z'
                      shares: 1
                      pnl: 3.2
                      entry_rule_ids:
                        - entry_p10
                      exit_rule_id: take_p50
                  equity_curve:
                    - timestamp: '2026-09-01T20:00:00.000Z'
                      equity: 1000
                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
        '404':
          description: Backtest not found.
        '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.