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

# Get market calendar by ID

> Handles `GET /v1/market-calendar/{market_calendar_id}` via `get.v1.market_calendar.by_market_calendar_id`.



## OpenAPI

````yaml /openapi/phoenix-public-api.json get /v1/market-calendar/{market_calendar_id}
openapi: 3.1.0
info:
  title: Phoenix Eternal API
  description: >-
    RESTful API for accessing Phoenix Eternal perpetual trading data. Provides
    real-time orderbook levels, asset information, and market metadata.
  termsOfService: https://www.phoenix.trade/terms-of-service
  contact:
    name: Phoenix Development Team
    url: https://github.com/Ellipsis-Labs/phoenix
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://perp-api.phoenix.trade
    description: Phoenix Eternal Perp API
security: []
tags:
  - name: Auth
    description: Wallet and session authentication.
  - name: Exchange
    description: Exchange, market, candle, and no-referral register-instruction workflows.
  - name: Invite
    description: Invite validation, referral activation, and wallet allowlist checks.
  - name: Notifications
    description: Trader notification reads and acknowledgement helpers.
  - name: Trader
    description: Trader state, account history, and transaction builders.
externalDocs:
  url: https://docs.phoenix.trade
  description: Phoenix developer documentation
paths:
  /v1/market-calendar/{market_calendar_id}:
    get:
      tags:
        - Exchange
      summary: Get market calendar by ID
      description: >-
        Handles `GET /v1/market-calendar/{market_calendar_id}` via
        `get.v1.market_calendar.by_market_calendar_id`.
      operationId: get.v1.market_calendar.by_market_calendar_id
      parameters:
        - name: market_calendar_id
          in: path
          description: Market calendar id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Market calendar
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketCalendarRecord'
        '404':
          $ref: '#/components/responses/ErrorResponse'
      security:
        - PhoenixBearerAuth: []
components:
  schemas:
    MarketCalendarRecord:
      type: object
      required:
        - marketCalendarId
        - kind
        - description
        - s3Path
        - calendarUri
        - contentSha256
        - loadedAt
        - updatedAt
        - rawJson
      properties:
        calendar:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/CommodityMarketCalendarView'
        calendarUri:
          type: string
        contentSha256:
          type: string
        description:
          type: string
        kind:
          type: string
        loadedAt:
          type: string
          format: date-time
        marketCalendarId:
          type: string
        rawJson:
          type: string
        s3Path:
          type: string
        updatedAt:
          type: string
          format: date-time
    CommodityMarketCalendarView:
      type: object
      required:
        - weeklySchedule
        - dateOverrides
      properties:
        dateOverrides:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/CommodityMarketDaySchedule'
          propertyNames:
            type: string
        weeklySchedule:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/CommodityMarketDaySchedule'
          propertyNames:
            type: string
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
    CommodityMarketDaySchedule:
      type: object
      required:
        - sessions
      properties:
        sessions:
          type: array
          items:
            $ref: '#/components/schemas/CommodityMarketSessionRange'
    CommodityMarketSessionRange:
      type: object
      description: A single named session within a [`CommodityMarketDaySchedule`].
      required:
        - start
        - end
        - mode
      properties:
        end:
          type: string
        mode:
          type: string
          description: Serialized calendar mode name, e.g. `"EXTERNAL"`, `"INTERNAL"`.
        start:
          type: string
  responses:
    ErrorResponse:
      description: Standard JSON error payload.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    PhoenixBearerAuth:
      type: http
      scheme: bearer
      description: Bearer access token issued by `/v1/auth/*` login endpoints.

````