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

# SSE stream for execution updates

> Server-Sent Events stream for real-time execution updates.

Emits events:
- `state_change`: When execution status changes
- `snapshot`: Periodic position snapshot (price, P&L, Greeks)
- `risk_alert`: Risk threshold warnings
- `error`: Error events

The stream polls the database at 1-second intervals and emits events
when state changes or new snapshots are available.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/execution/{execution_id}/stream
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/execution/{execution_id}/stream:
    get:
      tags:
        - Execution
      summary: SSE stream for execution updates
      description: |-
        Server-Sent Events stream for real-time execution updates.

        Emits events:
        - `state_change`: When execution status changes
        - `snapshot`: Periodic position snapshot (price, P&L, Greeks)
        - `risk_alert`: Risk threshold warnings
        - `error`: Error events

        The stream polls the database at 1-second intervals and emits events
        when state changes or new snapshots are available.
      operationId: stream_execution_api_graph_v1_execution__execution_id__stream_get
      parameters:
        - name: execution_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Execution Id
      responses:
        '200':
          description: SSE stream
          content:
            application/json:
              schema: {}
            text/event-stream: {}
        '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

````