> ## 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 DTE exit rule

> Get the exit rule for a given days-to-expiration.

## DTE Tiers

| DTE Range | Tier | No Progress Window | Default Action |
|-----------|------|-------------------|----------------|
| 0-2 | ultra_short | 30 minutes | exit_100 |
| 3-7 | short | 60 minutes | reduce_50 |
| 8-14 | medium_short | 90 minutes | reduce_50 |
| 15-29 | medium | 4 hours | review |
| 30-60 | medium_long | 1 day | review |
| 60+ | long | 5 days | review |

## Performance Target

<50ms response time.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/exit-rules/dte/{dte}
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/exit-rules/dte/{dte}:
    get:
      tags:
        - Exit Status
      summary: Get DTE exit rule
      description: |-
        Get the exit rule for a given days-to-expiration.

        ## DTE Tiers

        | DTE Range | Tier | No Progress Window | Default Action |
        |-----------|------|-------------------|----------------|
        | 0-2 | ultra_short | 30 minutes | exit_100 |
        | 3-7 | short | 60 minutes | reduce_50 |
        | 8-14 | medium_short | 90 minutes | reduce_50 |
        | 15-29 | medium | 4 hours | review |
        | 30-60 | medium_long | 1 day | review |
        | 60+ | long | 5 days | review |

        ## Performance Target

        <50ms response time.
      operationId: get_dte_exit_rule_api_graph_v1_exit_rules_dte__dte__get
      parameters:
        - name: dte
          in: path
          required: true
          schema:
            type: integer
            maximum: 365
            minimum: 0
            description: Days to expiration
            title: Dte
          description: Days to expiration
      responses:
        '200':
          description: DTE exit rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DTEExitRuleResponse'
        '404':
          description: No rule found for DTE
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DTEExitRuleResponse:
      properties:
        dte_requested:
          type: integer
          title: Dte Requested
        dte_tier:
          type: string
          title: Dte Tier
        no_progress_window:
          type: string
          title: No Progress Window
          description: Time interval as string
        action:
          type: string
          title: Action
          description: 'Required action: exit_100, reduce_50, review'
        assessment_schedule:
          anyOf:
            - type: string
            - type: 'null'
          title: Assessment Schedule
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
      type: object
      required:
        - dte_requested
        - dte_tier
        - no_progress_window
        - action
      title: DTEExitRuleResponse
      description: Response for DTE exit rule lookup.
    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

````