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

# Financial Ratios

> Retrieve financial ratios for a stock.

Returns ratios grouped by category for fundamental analysis and peer comparison.
Use `group` to fetch a category (valuation, profitability, liquidity, leverage, ttm, dupont)
or supply `name` to retrieve a single specific ratio.



## OpenAPI

````yaml /openapi.json get /stocks/{symbol}/ratios
openapi: 3.1.0
info:
  title: tradewatch.io
  version: 3.1.0
  description: Financial market data for Developers
servers:
  - url: https://api.tradewatch.io
    description: Production API server
security:
  - API Key: []
tags:
  - name: Account
    description: >-
      In this section, you can find methods that can be helpful to manage your
      API account.
    x-displayName: Account
  - name: Currencies
    description: >-
      In this section, you can find methods that can be helpful to retrieve data
      for traditional currencies (Forex).
    x-displayName: Currencies
  - name: Crypto
    description: >-
      In this section, you can find methods that can be helpful to retrieve data
      for cryptocurrencies.
    x-displayName: Crypto
  - name: Indices
    description: >-
      In this section, you can find methods that can be helpful to retrieve data
      for market indices.
    x-displayName: Indices
  - name: Stocks
    description: >-
      In this section, you can find methods that can be helpful to retrieve data
      for stocks and equities.
    x-displayName: Stocks
  - name: Fundamentals
    description: Financial statements and company data sourced from SEC EDGAR filings.
  - name: Markets
    description: Stock exchange and market session information.
  - name: Commodities
    description: >-
      In this section, you can find methods that can be helpful to retrieve data
      for commodities.
    x-displayName: Commodities
paths:
  /stocks/{symbol}/ratios:
    get:
      tags:
        - Stocks
      summary: Financial Ratios
      description: >-
        Retrieve financial ratios for a stock.


        Returns ratios grouped by category for fundamental analysis and peer
        comparison.

        Use `group` to fetch a category (valuation, profitability, liquidity,
        leverage, ttm, dupont)

        or supply `name` to retrieve a single specific ratio.
      operationId: stocks_get_ratios
      parameters:
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            description: Stock ticker symbol (e.g., 'AAPL', 'TSLA').
            title: Symbol
          description: Stock ticker symbol (e.g., 'AAPL', 'TSLA').
        - name: group
          in: query
          required: false
          schema:
            type: string
            description: >-
              Ratio group to return. One of: `valuation` (P/E, EV/EBITDA, P/B),
              `profitability` (ROE, ROA, net/gross margins), `liquidity`
              (current ratio, quick ratio, cash ratio), `leverage`
              (debt-to-equity, interest coverage), `ttm` (trailing twelve
              months), `dupont` (DuPont decomposition of ROE), or `all` to
              return every group (default: `all`). Ignored when `name` is
              provided.
            default: all
            title: Group
          description: >-
            Ratio group to return. One of: `valuation` (P/E, EV/EBITDA, P/B),
            `profitability` (ROE, ROA, net/gross margins), `liquidity` (current
            ratio, quick ratio, cash ratio), `leverage` (debt-to-equity,
            interest coverage), `ttm` (trailing twelve months), `dupont` (DuPont
            decomposition of ROE), or `all` to return every group (default:
            `all`). Ignored when `name` is provided.
        - name: name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Name of a specific ratio to retrieve (e.g., `pe_ratio`, `roe`,
              `current_ratio`). When provided, overrides the `group` parameter
              and returns a single ratio.
            title: Name
          description: >-
            Name of a specific ratio to retrieve (e.g., `pe_ratio`, `roe`,
            `current_ratio`). When provided, overrides the `group` parameter and
            returns a single ratio.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockApiResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    StockApiResponse:
      properties:
        data:
          title: Data
          description: >-
            Endpoint-specific response payload. Structure varies by endpoint and
            parameters.
        symbol:
          anyOf:
            - type: string
            - type: 'null'
          title: Symbol
          description: >-
            Stock ticker symbol the data relates to (e.g., 'AAPL', 'TSLA'). Null
            for market-wide endpoints.
      additionalProperties: true
      type: object
      title: StockApiResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    API Key:
      description: Authentication via API key header
      type: apiKey
      name: api-key
      in: header

````