> ## 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 exit status for a position

> Get comprehensive exit status for an open position.

## Response Includes

- **Position Info**: symbol, entry_price, current_price, unrealized P/L
- **Time Tracking**: entry_time, time_in_trade, DTE tier
- **Targets**: Active profit targets with levels and exit percentages
- **Stops**: Current stop, trailing stop configuration
- **Invalidations**: Active invalidation triggers
- **DTE Rules**: Applicable DTE-based exit rules and actions

## DTE Tiers (v3.1 spec)

| DTE | No Progress Window | Action |
|-----|-------------------|--------|
| 0-2 | 30 min | Exit 100% |
| 3-7 | 60 min | Reduce 50% |
| 8-14 | 90 min | Reduce 50% |
| 15-29 | 4 hours | Review |
| 30-60 | 1 day | Assess D2/D5/D10 |
| 60+ | 5 days | Assess W2/W4 |

## Performance Target

<200ms response time.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/positions/{position_id}/exit-status
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/positions/{position_id}/exit-status:
    get:
      tags:
        - Exit Status
      summary: Get exit status for a position
      description: |-
        Get comprehensive exit status for an open position.

        ## Response Includes

        - **Position Info**: symbol, entry_price, current_price, unrealized P/L
        - **Time Tracking**: entry_time, time_in_trade, DTE tier
        - **Targets**: Active profit targets with levels and exit percentages
        - **Stops**: Current stop, trailing stop configuration
        - **Invalidations**: Active invalidation triggers
        - **DTE Rules**: Applicable DTE-based exit rules and actions

        ## DTE Tiers (v3.1 spec)

        | DTE | No Progress Window | Action |
        |-----|-------------------|--------|
        | 0-2 | 30 min | Exit 100% |
        | 3-7 | 60 min | Reduce 50% |
        | 8-14 | 90 min | Reduce 50% |
        | 15-29 | 4 hours | Review |
        | 30-60 | 1 day | Assess D2/D5/D10 |
        | 60+ | 5 days | Assess W2/W4 |

        ## Performance Target

        <200ms response time.
      operationId: >-
        get_position_exit_status_api_graph_v1_positions__position_id__exit_status_get
      parameters:
        - name: position_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: UUID of the position
            title: Position Id
          description: UUID of the position
      responses:
        '200':
          description: Exit status details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PositionExitStatusResponse'
        '404':
          description: Position not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '504':
          description: Query timeout
components:
  schemas:
    PositionExitStatusResponse:
      properties:
        position_id:
          type: string
          format: uuid
          title: Position Id
        status:
          additionalProperties: true
          type: object
          title: Status
          description: Position exit status from view
        profit_targets:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Profit Targets
        stop_losses:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Stop Losses
      type: object
      required:
        - position_id
        - status
      title: PositionExitStatusResponse
      description: Response for single position exit status.
    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

````