{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nordic-financial-news/json-schema/nordic-financial-news-exchange-detail-schema.json",
  "title": "ExchangeDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nordic-financial-news-exchanges-api-openapi.yml#/components/schemas/ExchangeDetail",
  "allOf": [
    {
      "$ref": "#/$defs/ExchangeSummary"
    },
    {
      "type": "object",
      "properties": {
        "operating_mic_code": {
          "type": [
            "string",
            "null"
          ],
          "description": "Parent operating MIC code (for segment exchanges)"
        },
        "currency": {
          "type": [
            "string",
            "null"
          ],
          "description": "Primary trading currency (ISO 4217)"
        },
        "ticker_suffix": {
          "type": [
            "string",
            "null"
          ],
          "description": "Ticker suffix used for this exchange"
        },
        "timezone": {
          "type": [
            "string",
            "null"
          ],
          "description": "Exchange timezone"
        },
        "city": {
          "type": [
            "string",
            "null"
          ],
          "description": "City where the exchange is located"
        },
        "indices": {
          "type": "array",
          "description": "Stock indices on this exchange",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "symbol": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "ExchangeSummary": {
      "type": "object",
      "required": [
        "id",
        "name",
        "mic_code"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique exchange identifier"
        },
        "name": {
          "type": "string",
          "description": "Exchange display name"
        },
        "mic_code": {
          "type": "string",
          "description": "ISO 10383 Market Identifier Code"
        },
        "acronym": {
          "type": [
            "string",
            "null"
          ],
          "description": "Exchange acronym"
        },
        "country": {
          "type": "object",
          "description": "Country where the exchange is located",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "iso2_code": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}