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

# Portfolio Risk-Adjusted Performance Ratios

> Calculates key risk-adjusted performance ratios including Sharpe ratio, Sortino ratio, maximum drawdown, information ratio, and tracking error.

**Use Cases:**
- Performance evaluation and benchmarking
- Manager selection and comparison
- Risk-adjusted return assessment
- Client reporting and communication

**Ratios Calculated:**
- **Sharpe Ratio**: Excess return per unit of total risk
- **Sortino Ratio**: Excess return per unit of downside risk
- **Max Drawdown**: Largest peak-to-trough decline
- **Information Ratio**: Active return per unit of tracking error (requires benchmark)
- **Tracking Error**: Volatility of active returns (requires benchmark)

**Credits:** 5 per request [Tier: PRO, Credits: 5]



## OpenAPI

````yaml api-specs/portfolio.json post /quantlib/portfolio/risk/ratios
openapi: 3.1.0
info:
  title: FinceptQuantLib API - Portfolio
  description: >-
    Portfolio optimization and risk management module for institutional-grade
    portfolio construction, analysis, and monitoring. Includes mean-variance
    optimization, Black-Litterman, risk parity, and comprehensive risk metrics.


    **Tier:** Pro (5 credits per request)


    **Key Features:**

    - Mean-variance optimization (minimum variance, maximum Sharpe, target
    return)

    - Efficient frontier construction with tangency portfolio identification

    - Black-Litterman model for Bayesian view incorporation

    - Risk parity strategies (ERC, HRP, inverse volatility)

    - Comprehensive risk metrics (VaR, CVaR, tracking error, information ratio)

    - Advanced portfolio analytics (risk contribution, drawdown,
    diversification)
  version: 3.0.0
  contact:
    name: Fincept API Support
    url: https://fincept.in
servers:
  - url: https://api.fincept.in
    description: Fincept API Production Server
security:
  - APIKeyHeader: []
tags:
  - name: quantlib-portfolio
    description: Portfolio optimization and risk management endpoints
    x-displayName: Portfolio
paths:
  /quantlib/portfolio/risk/ratios:
    post:
      tags:
        - quantlib-portfolio
      summary: Portfolio Risk-Adjusted Performance Ratios
      description: >-
        Calculates key risk-adjusted performance ratios including Sharpe ratio,
        Sortino ratio, maximum drawdown, information ratio, and tracking error.


        **Use Cases:**

        - Performance evaluation and benchmarking

        - Manager selection and comparison

        - Risk-adjusted return assessment

        - Client reporting and communication


        **Ratios Calculated:**

        - **Sharpe Ratio**: Excess return per unit of total risk

        - **Sortino Ratio**: Excess return per unit of downside risk

        - **Max Drawdown**: Largest peak-to-trough decline

        - **Information Ratio**: Active return per unit of tracking error
        (requires benchmark)

        - **Tracking Error**: Volatility of active returns (requires benchmark)


        **Credits:** 5 per request [Tier: PRO, Credits: 5]
      operationId: risk_ratios
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - returns
              properties:
                returns:
                  type: array
                  items:
                    type: number
                  description: >-
                    Portfolio return time series (periodic returns, not
                    cumulative)
                  example:
                    - 0.015
                    - -0.008
                    - 0.023
                    - 0.012
                    - -0.005
                    - 0.018
                    - 0.009
                    - -0.012
                    - 0.021
                    - 0.007
                rf_rate:
                  type: number
                  description: Risk-free rate (per period, matching returns frequency)
                  default: 0
                  example: 0.0012
                benchmark_returns:
                  type: array
                  items:
                    type: number
                  description: >-
                    Benchmark return time series. Required for information ratio
                    and tracking error.
                  nullable: true
                  example:
                    - 0.012
                    - -0.006
                    - 0.019
                    - 0.01
                    - -0.004
                    - 0.015
                    - 0.008
                    - -0.01
                    - 0.018
                    - 0.006
                target_return:
                  type: number
                  description: Target return for Sortino ratio calculation (per period)
                  default: 0
                  example: 0
      responses:
        '200':
          description: Risk ratios successfully calculated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      sharpe_ratio:
                        type: number
                        description: Sharpe ratio (excess return / volatility)
                        example: 0.8234
                      sortino_ratio:
                        type: number
                        description: Sortino ratio (excess return / downside deviation)
                        example: 1.1456
                      max_drawdown:
                        type: number
                        description: Maximum drawdown (largest peak-to-trough decline)
                        example: 0.1523
                      information_ratio:
                        type: number
                        description: >-
                          Information ratio (active return / tracking error).
                          Only present if benchmark provided.
                        example: 0.4567
                      tracking_error:
                        type: number
                        description: >-
                          Tracking error (volatility of active returns). Only
                          present if benchmark provided.
                        example: 0.0456
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '402':
          $ref: '#/components/responses/InsufficientCreditsError'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  responses:
    UnauthorizedError:
      description: Authentication information is missing or invalid
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
                example: Invalid API key
    InsufficientCreditsError:
      description: Insufficient API credits
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: string
                example: Insufficient credits. This endpoint requires 5 credits.
    ValidationError:
      description: Request validation error
      content:
        application/json:
          schema:
            type: object
            properties:
              detail:
                type: array
                items:
                  type: object
                  properties:
                    loc:
                      type: array
                      items:
                        type: string
                    msg:
                      type: string
                    type:
                      type: string
          example:
            detail:
              - loc:
                  - body
                  - expected_returns
                msg: field required
                type: value_error.missing
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Get your key at
        https://api.fincept.in/auth/register

````