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

# Handle Entry Executed

> Handle a Go-originated entry execution notification.

Called by the Go trade-executor AFTER it places and fills an entry order.
Python uses this for:
1. Session state updates (trades_opened counter)
2. Signal snapshot assembly (JSONB audit trail)
3. SSE broadcast to frontend (trade_placed event)

This endpoint is fire-and-forget from Go's perspective.



## OpenAPI

````yaml /api/openapi.json post /api/internal/v1/entry-executed
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/entry-executed:
    post:
      tags:
        - internal-signals
      summary: Handle Entry Executed
      description: >-
        Handle a Go-originated entry execution notification.


        Called by the Go trade-executor AFTER it places and fills an entry
        order.

        Python uses this for:

        1. Session state updates (trades_opened counter)

        2. Signal snapshot assembly (JSONB audit trail)

        3. SSE broadcast to frontend (trade_placed event)


        This endpoint is fire-and-forget from Go's perspective.
      operationId: handle_entry_executed_api_internal_v1_entry_executed_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GoEntryExecutedPayload'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: >-
                  Response Handle Entry Executed Api Internal V1 Entry Executed
                  Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GoEntryExecutedPayload:
      properties:
        session_id:
          type: string
          title: Session Id
        symbol:
          type: string
          title: Symbol
        direction:
          type: string
          title: Direction
        signal_type:
          type: string
          title: Signal Type
        mode:
          type: string
          title: Mode
        contract_symbol:
          type: string
          title: Contract Symbol
        fill_price:
          type: number
          title: Fill Price
        fill_qty:
          type: integer
          title: Fill Qty
        order_id:
          type: string
          title: Order Id
        position_id:
          type: string
          title: Position Id
        risk_assessment:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Risk Assessment
        scores_snapshot:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Scores Snapshot
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        signal_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Signal Id
        limit_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Limit Price
      type: object
      required:
        - session_id
        - symbol
        - direction
        - signal_type
        - mode
        - contract_symbol
        - fill_price
        - fill_qty
        - order_id
        - position_id
        - timestamp
      title: GoEntryExecutedPayload
      description: >-
        Payload from Go trade-executor after it places an entry order directly.


        Go handles: risk checks, contract selection, order placement, fill
        confirmation.

        Python handles: signal snapshot assembly, session state updates, SSE
        broadcast.
    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

````