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

# Receive Exit Signal

> Handle exit signal from Go trade-executor.

Closes position via Alpaca, transitions execution to closed,
and backfills action card outcome.



## OpenAPI

````yaml /api/openapi.json post /api/internal/v1/exit-signal
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/internal/v1/exit-signal:
    post:
      tags:
        - internal-signals
      summary: Receive Exit Signal
      description: |-
        Handle exit signal from Go trade-executor.

        Closes position via Alpaca, transitions execution to closed,
        and backfills action card outcome.
      operationId: receive_exit_signal_api_internal_v1_exit_signal_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExitSignalPayload'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Receive Exit Signal Api Internal V1 Exit Signal Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ExitSignalPayload:
      properties:
        execution_id:
          type: string
          title: Execution Id
        signal_type:
          type: string
          title: Signal Type
        current_price:
          type: number
          title: Current Price
        trigger_details:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Trigger Details
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
        - execution_id
        - signal_type
        - current_price
        - timestamp
      title: ExitSignalPayload
    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

````