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

# List benchmark index prices to compare performance

> Lists prices and returns over time for the market benchmarks Itoflow tracks, such as the S&P 500 and NASDAQ 100, so you can compare a strategy or portfolio against the market. Returns are measured from the first price in the range.

Operation ID: get__benchmarks.



## OpenAPI

````yaml /openapi/itoflow-public.openapi.json get /benchmarks
openapi: 3.1.0
info:
  description: >-
    All Itoflow APIs are experimental and may change without notice. Read-only
    operations marked interactive can be tried from the documentation; the
    others are reference-only.
  title: Itoflow Developer API
  version: 1.0.0
servers:
  - description: Itoflow API
    url: https://api.itoflow.ai
security: []
tags:
  - name: Account
  - name: Billing
  - name: Brokers
  - name: Chat
  - name: Connected MCP servers
  - name: GitHub
  - name: Market data
  - name: Monitors
  - name: Notifications
  - name: Portfolios
  - name: Risk runs
  - name: Sharing and data
  - name: Strategies
paths:
  /benchmarks:
    get:
      tags:
        - Market data
      summary: List benchmark index prices to compare performance
      description: >-
        Lists prices and returns over time for the market benchmarks Itoflow
        tracks, such as the S&P 500 and NASDAQ 100, so you can compare a
        strategy or portfolio against the market. Returns are measured from the
        first price in the range.


        Operation ID: get__benchmarks.
      operationId: get__benchmarks
      parameters:
        - description: Time range to return. Ignored when startDate is set.
          in: query
          name: period
          required: false
          schema:
            default: 1M
            description: Time range to return. Ignored when startDate is set.
            enum:
              - 1D
              - 1W
              - 1M
              - 3M
              - 6M
              - 1Y
              - YTD
              - ALL
            example: 1M
            type: string
        - description: Start of the range as an ISO date. Overrides period.
          in: query
          name: startDate
          required: false
          schema:
            description: Start of the range as an ISO date. Overrides period.
            example: '2025-01-01'
            type: string
        - description: End of the range as an ISO date. Defaults to now.
          in: query
          name: endDate
          required: false
          schema:
            description: End of the range as an ISO date. Defaults to now.
            example: '2025-06-30'
            type: string
        - description: >-
            Comma-separated benchmark symbols. Defaults to all: SPY.US (S&P
            500), QQQ.US (NASDAQ 100), EFA.US (MSCI EAFE), NIFTYBEES.NSE (Nifty
            50 ETF) and ISF.LSE (FTSE 100 ETF).
          in: query
          name: symbols
          required: false
          schema:
            description: >-
              Comma-separated benchmark symbols. Defaults to all: SPY.US (S&P
              500), QQQ.US (NASDAQ 100), EFA.US (MSCI EAFE), NIFTYBEES.NSE
              (Nifty 50 ETF) and ISF.LSE (FTSE 100 ETF).
            example: SPY.US,QQQ.US
            type: string
        - description: >-
            Set to portfolio to line timestamps up with 15-minute portfolio
            values.
          in: query
          name: alignTo
          required: false
          schema:
            default: benchmark
            description: >-
              Set to portfolio to line timestamps up with 15-minute portfolio
              values.
            enum:
              - portfolio
              - benchmark
            example: benchmark
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BenchmarkComparisonResponse'
          description: List benchmark index prices to compare performance
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Authentication required
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Server error
      security:
        - bearerAuth: []
components:
  schemas:
    BenchmarkComparisonResponse:
      additionalProperties: {}
      properties:
        error:
          type: string
        message:
          type: string
        ok:
          type: boolean
        status:
          type: string
        success:
          type: boolean
      type: object
    Error:
      properties:
        available:
          description: Optional available amount or value
          type: string
        billing_action:
          $ref: '#/components/schemas/BillingAction'
        code:
          description: Machine-readable error code
          type: string
        currentVersion:
          description: Current server-side version, when relevant
          type: number
        details:
          description: Optional structured error details
        error:
          description: Error type or code
          type: string
        expectedVersion:
          description: Client-provided expected version, when relevant
          type: number
        message:
          description: Human-readable error message
          type: string
        requested:
          description: Optional requested amount or value
          type: string
        usage:
          description: Optional usage metadata for limit errors
      required:
        - error
      type: object
    BillingAction:
      description: Action that resolves a billing-related rejection
      properties:
        href:
          type: string
        kind:
          enum:
            - upgrade
            - payment_method
            - spending_cap
            - billing
          type: string
        label:
          type: string
      required:
        - href
        - label
        - kind
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      description: Itoflow access token issued for the Itoflow API.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.