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

# Get Terrain Calendar

> Terrain 1.0 rung history over a date window (for a rung strip / calendar).

Returns one entry per emitted `regime_archive` day in the inclusive
`[start, end]` window, each rendered through the SAME
`terrain_state.label(surface="app")` the `/current` endpoint uses -- so a
history cell and the live chip speak one vocabulary. Direction-free by
construction (the rung is a risk-severity axis).

`start`/`end` are `YYYY-MM-DD`; both optional. Defaults to a trailing
~90-day window ending today; the span is hard-capped at 366 days to bound the
ClickHouse scan. Reads only `variant='emitted'` rows (never `corrected` --
see `read_emitted_range`'s replay guard). An empty window (no emitted rows
yet) returns `days: []` with a 200 -- the same honest, non-500 degrade
`/current` uses -- never a fabricated value (zero-mock policy).



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/terrain/calendar
openapi: 3.1.0
info:
  title: Sequency Graph API
  description: >

    # Sequency Graph-Native Trading API


    Graph-native API for trading intelligence, built on FalkorDB.


    ## Features


    - **Screener**: Filter stocks using graph-native queries with relationship
    expansion

    - **Stock Detail**: Complete stock context with all relationships

    - **Confluence Scoring**: Setup quality assessment with weighted components

    - **Strategy Matching**: Find matching options strategies via graph
    traversal

    - **Market Context**: Current market-wide context for trading decisions


    ## Data Sources


    All data is sourced from the FalkorDB knowledge graph, populated by:

    - Pattern detector (Go) - Technical indicators, patterns

    - Graph sync service - Levels, volume profiles, news, day classification
  version: 1.0.0
servers: []
security: []
paths:
  /api/graph/v1/terrain/calendar:
    get:
      tags:
        - terrain
      summary: Get Terrain Calendar
      description: >-
        Terrain 1.0 rung history over a date window (for a rung strip /
        calendar).


        Returns one entry per emitted `regime_archive` day in the inclusive

        `[start, end]` window, each rendered through the SAME

        `terrain_state.label(surface="app")` the `/current` endpoint uses -- so
        a

        history cell and the live chip speak one vocabulary. Direction-free by

        construction (the rung is a risk-severity axis).


        `start`/`end` are `YYYY-MM-DD`; both optional. Defaults to a trailing

        ~90-day window ending today; the span is hard-capped at 366 days to
        bound the

        ClickHouse scan. Reads only `variant='emitted'` rows (never `corrected`
        --

        see `read_emitted_range`'s replay guard). An empty window (no emitted
        rows

        yet) returns `days: []` with a 200 -- the same honest, non-500 degrade

        `/current` uses -- never a fabricated value (zero-mock policy).
      operationId: get_terrain_calendar_api_graph_v1_terrain_calendar_get
      parameters:
        - name: start
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Start
        - name: end
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: End
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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

````