> ## 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.

# Mark as Closed (monitor mode, close phase)

> During the close phase, mark a position as closed with fill details. Used in monitor mode when the user closes the position externally.



## OpenAPI

````yaml /api/openapi.json post /api/graph/v1/intraday/{symbol}/mark-closed
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/intraday/{symbol}/mark-closed:
    post:
      tags:
        - Intraday
      summary: Mark as Closed (monitor mode, close phase)
      description: >-
        During the close phase, mark a position as closed with fill details.
        Used in monitor mode when the user closes the position externally.
      operationId: mark_closed_time_stop_api_graph_v1_intraday__symbol__mark_closed_post
      parameters:
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            title: Symbol
        - name: position_id
          in: query
          required: true
          schema:
            type: string
            description: Position UUID to mark closed
            title: Position Id
          description: Position UUID to mark closed
        - name: trading_mode
          in: query
          required: false
          schema:
            type: string
            pattern: ^(paper|live)$
            title: Trading Mode
            default: paper
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarkClosedTimeStopBody'
      responses:
        '200':
          description: Position marked closed
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: >-
                  Response Mark Closed Time Stop Api Graph V1 Intraday  Symbol 
                  Mark Closed Post
        '404':
          description: No active session
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MarkClosedTimeStopBody:
      properties:
        exit_price:
          type: number
          exclusiveMinimum: 0
          title: Exit Price
          description: Exit fill price
      type: object
      required:
        - exit_price
      title: MarkClosedTimeStopBody
      description: Body for mark-closed during close phase (monitor mode).
    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

````