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

# Get backtest run

> Returns run metrics and performance telemetry, including the Deflated Sharpe Ratio (DSR).



## OpenAPI

````yaml /openapi.json get /api/v2/backtest/runs/{id}
openapi: 3.1.0
info:
  title: QuantDesk API
  version: 2.0.0
  description: >-
    Public HTTP API for the QuantDesk perpetual DEX gateway. Endpoints are
    grouped by market data, unified portfolio state, oracle pricing, social
    surfaces, backtesting, and reference data. Field-level truth for on-chain
    accounts lives in the SDK; this reference documents the REST gateway
    surface.


    Authenticated routes accept a Bearer JWT obtained from the wallet session
    flow described in the Authentication guide.
  contact:
    name: QuantDesk Support
    url: https://docs.quantdesk.app
    email: support@quantdesk.app
  license:
    name: MIT
servers:
  - url: https://api.quantdesk.app
    description: Production gateway
security: []
tags:
  - name: Markets
    description: Market registry, metadata, and crankless orderbook depth.
  - name: Oracle
    description: Price feeds sourced from the Pyth oracle network.
  - name: Portfolio
    description: Unified portfolio state aggregated from on-chain accounts.
  - name: Data
    description: Authoritative market statistics and historical OHLCV candles.
  - name: Social
    description: Leaderboard and verified proof (flex) cards.
  - name: Backtesting
    description: Strategy simulation lifecycle and dataset catalog.
  - name: Referrals
    description: Referral validation before on-chain assignment.
paths:
  /api/v2/backtest/runs/{id}:
    get:
      tags:
        - Backtesting
      summary: Get backtest run
      description: >-
        Returns run metrics and performance telemetry, including the Deflated
        Sharpe Ratio (DSR).
      operationId: getBacktestRun
      parameters:
        - name: id
          in: path
          required: true
          description: Backtest run identifier.
          schema:
            type: string
            example: b4f1c2a0-6d3e-4f7a-9c1b-0a2d3e4f5a6b
      responses:
        '200':
          description: Run metrics
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      run_id:
                        type: string
                        example: b4f1c2a0-6d3e-4f7a-9c1b-0a2d3e4f5a6b
                      status:
                        type: string
                        example: completed
                      sharpe:
                        type: number
                        example: 1.84
                      dsr:
                        type: number
                        example: 0.72
                      max_drawdown:
                        type: number
                        example: -0.14
        '404':
          description: Unknown run
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: PORTFOLIO_NOT_FOUND
        code:
          type: string
          example: PORTFOLIO_NOT_FOUND
        message:
          type: string
          example: Wallet has not initialized a V2 portfolio yet.
        timestamp:
          type: string
          format: date-time
        request_id:
          type: string
          example: req_8f2a1c

````