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

# Get security calculation metrics

> Return calculated fields for securities. `fields` uses CLI field names and defaults to `pe,pb,dps_rate,turnover_rate,mktcap`.



## OpenAPI

````yaml /api-reference/openapi.json get /api/market-data/quote/calc_index
openapi: 3.1.0
info:
  title: Financial Context
  version: 1.0.0
  description: >-
    Financial Context exposes authenticated, metered access to read-only US
    stock market data. Use `/api/market-data/*` endpoints for `.US` symbols and
    `US` market filters across quotes, candlesticks, market calendars,
    fundamentals, news, screeners, and related analytics.
servers:
  - url: https://openapi.fcontext.com
    description: Production
security:
  - ApiKeyHeader: []
  - BearerAuth: []
tags:
  - name: Quote
    description: >-
      Quotes, candlesticks, trading days, depth, broker queue, and other
      market-data endpoints.
  - name: Content
    description: 'Security content: news and topics.'
  - name: Market
    description: Market status, trading calendars, unusual activity, and rankings.
  - name: Calendar
    description: Financial event calendar.
  - name: Fundamental
    description: >-
      Fundamentals, analyst ratings, valuation, shareholders, and trading
      disclosures.
  - name: Screener
    description: Screening strategies, filters, and indicators.
paths:
  /api/market-data/quote/calc_index:
    get:
      tags:
        - Quote
      summary: Get security calculation metrics
      description: >-
        Return calculated fields for securities. `fields` uses CLI field names
        and defaults to `pe,pb,dps_rate,turnover_rate,mktcap`.
      parameters:
        - name: symbols
          in: query
          required: true
          description: Comma-separated security symbols.
          schema:
            type: string
          example: AAPL.US,MSFT.US
        - name: fields
          in: query
          required: false
          description: >-
            Comma-separated calculation fields. Common fields include
            `last_done`, `change_rate`, `turnover_rate`, `mktcap`,
            `capital_flow`, `pe`, `pb`, and `dps_rate`. SDK numeric enums are
            also accepted.
          schema:
            type: string
            default: pe,pb,dps_rate,turnover_rate,mktcap
          example: pe,pb,turnover_rate
        - name: indexes
          in: query
          required: false
          description: >-
            Compatibility alias for `fields`; supports the same comma-separated
            fields or SDK numeric enums.
          schema:
            type: string
          example: pe,pb,turnover_rate
      responses:
        '200':
          description: Calculation metrics
          content:
            application/json:
              schema:
                type: object
                properties:
                  quote:
                    type: array
                    items:
                      $ref: '#/components/schemas/SecurityCalcIndex'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: >-
            A paid Financial Context plan or remaining data request allowance is
            required.
        '403':
          description: The credential does not allow Financial Context market-data access.
components:
  schemas:
    SecurityCalcIndex:
      type: object
      description: >-
        Security calculation metrics. Fields follow the Financial Context
        market-data provider `SecurityCalcIndex` shape.
      additionalProperties: true
      properties:
        symbol:
          type: string
          description: Security symbol.
        lastDone:
          type: string
          description: >-
            Last traded price, represented as a string to preserve decimal
            precision.
        changeValue:
          type: string
          description: Price change.
        changeRate:
          type: string
          description: Price change percentage.
        volume:
          type: string
          description: Volume.
        turnover:
          type: string
          description: Turnover, represented as a string to preserve decimal precision.
        ytdChangeRate:
          type: string
          description: Year-to-date price change percentage.
        marketValue:
          type: string
          description: Market capitalization.
        peTtmRatio:
          type: string
          description: Price-to-earnings ratio (TTM).
        pbRatio:
          type: string
          description: Price-to-book ratio.
        dividendRatioTtm:
          type: string
          description: Dividend yield (TTM).
    Error:
      type: object
      description: Standard error response.
      additionalProperties: true
      properties:
        error:
          type: string
          description: Human-readable error message.
  responses:
    BadRequest:
      description: Invalid request parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid Financial Context credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'Unauthorized: missing API key'
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Financial Context key generated from account settings. Send it as
        `x-api-key: <key>`.
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth access token
      description: >-
        OAuth bearer token for Financial Context CLI, MCP, or agent clients with
        the `market_data` scope.

````