> ## 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 market status

> Get the current open/close status for each market.



## OpenAPI

````yaml /api-reference/openapi.json get /api/market-data/market/status
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/market/status:
    get:
      tags:
        - Market
      summary: Get market status
      description: Get the current open/close status for each market.
      responses:
        '200':
          description: Market status
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    $ref: '#/components/schemas/MarketStatus'
        '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:
    MarketStatus:
      type: object
      properties:
        marketTime:
          type: array
          items:
            type: object
            additionalProperties: true
            properties:
              market:
                type: integer
              tradeStatus:
                type: integer
              timestamp:
                type: string
              delayTradeStatus:
                type: integer
      additionalProperties: true
    Error:
      type: object
      description: Standard error response.
      additionalProperties: true
      properties:
        error:
          type: string
          description: Human-readable error message.
  responses:
    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.

````