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

# Get Market Location

> The stored master-data history (time slices) of one market location —
for checking which data was valid when, and why a day was skipped.



## OpenAPI

````yaml /setup/internal-openapi.json get /v1/process/market-locations/{malo}
openapi: 3.1.0
info:
  title: n:lead Scheduling Bridge — Internal API
  version: 0.4.0
  description: >-
    Internal API of the n:lead scheduling bridge: the process endpoints that
    drive the day-ahead pipeline (aggregate, publish the open position, submit
    schedules, generate forecasts, orchestrate) and the operator console
    endpoints. Requires the process API key; not for customer use.
servers:
  - url: https://{your-service-host}
    description: Deployed service
  - url: http://localhost:8000
    description: Local development
security: []
paths:
  /v1/process/market-locations/{malo}:
    get:
      summary: Get Market Location
      description: |-
        The stored master-data history (time slices) of one market location —
        for checking which data was valid when, and why a day was skipped.
      operationId: get_market_location_v1_process_market_locations__malo__get
      parameters:
        - name: malo
          in: path
          required: true
          schema:
            type: string
            title: Malo
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketLocationOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    MarketLocationOut:
      properties:
        malo:
          type: string
          title: Malo
        slices:
          items:
            $ref: '#/components/schemas/MasterDataSliceOut'
          type: array
          title: Slices
      type: object
      required:
        - malo
        - slices
      title: MarketLocationOut
      description: A market location with its full stored master-data history.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    MasterDataSliceOut:
      properties:
        valid_from:
          type: string
          format: date
          title: Valid From
          description: First day this data applies (inclusive)
        valid_to:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Valid To
          description: First day it no longer applies (exclusive); null = open-ended
        active:
          type: boolean
          title: Active
          description: >-
            False marks a period without supply (de-registration); supply may
            resume with a later active slice
          default: true
        control_area:
          anyOf:
            - $ref: '#/components/schemas/ControlArea'
            - type: 'null'
        mga:
          anyOf:
            - type: string
            - type: 'null'
          title: Mga
          description: Metering grid area / Bilanzierungsgebiet
        metering_type:
          anyOf:
            - type: string
              enum:
                - profiled
                - quarter_hourly
            - type: 'null'
          title: Metering Type
        profile_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Profile Code
          description: Load profile code (H0, G0, TLP code, ...)
        annual_consumption_kwh:
          anyOf:
            - type: number
              minimum: 0
            - type: 'null'
          title: Annual Consumption Kwh
          description: Jahresverbrauchsprognose in kWh
      type: object
      required:
        - valid_from
      title: MasterDataSliceOut
      description: A stored master-data slice as held by the service.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ControlArea:
      type: string
      enum:
        - 50Hertz
        - Amprion
        - TenneT
        - TransnetBW
      title: ControlArea
      description: The four German TSO control areas (Regelzonen).
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````