> ## 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 broker-authoritative active and recent order lifecycle

> Refresh the authenticated caller's discoverable OR-03 broker orders, then return an owner-scoped active/recent lifecycle projection. Cached rows are explicitly stale when broker refresh is disconnected, unavailable, or incomplete.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/execution/lifecycle
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/lifecycle:
    get:
      tags:
        - Execution
      summary: Get broker-authoritative active and recent order lifecycle
      description: >-
        Refresh the authenticated caller's discoverable OR-03 broker orders,
        then return an owner-scoped active/recent lifecycle projection. Cached
        rows are explicitly stale when broker refresh is disconnected,
        unavailable, or incomplete.
      operationId: get_execution_lifecycle_api_graph_v1_execution_lifecycle_get
      parameters:
        - name: symbol
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                minLength: 1
                maxLength: 16
              - type: 'null'
            title: Symbol
        - name: recent_limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Recent Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecutionLifecycleProjection'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ExecutionLifecycleProjection:
      properties:
        contract_version:
          type: string
          const: execution_lifecycle.v1
          title: Contract Version
          default: execution_lifecycle.v1
        connection:
          type: string
          enum:
            - connected
            - disconnected
            - unavailable
          title: Connection
        freshness:
          type: string
          enum:
            - current
            - stale
            - unavailable
          title: Freshness
        as_of:
          type: string
          format: date-time
          title: As Of
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
        items:
          items:
            $ref: '#/components/schemas/ExecutionLifecycleItem'
          type: array
          title: Items
      additionalProperties: false
      type: object
      required:
        - connection
        - freshness
        - as_of
        - reason
        - items
      title: ExecutionLifecycleProjection
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExecutionLifecycleItem:
      properties:
        execution_id:
          type: string
          title: Execution Id
        symbol:
          type: string
          title: Symbol
        instrument_type:
          type: string
          title: Instrument Type
        contract_symbol:
          anyOf:
            - type: string
            - type: 'null'
          title: Contract Symbol
        trading_mode:
          type: string
          enum:
            - paper
            - live
          title: Trading Mode
        lifecycle:
          type: string
          enum:
            - submitted
            - working
            - partially_filled
            - filled
            - rejected
            - cancelled
            - expired
            - replaced
            - recovery_required
          title: Lifecycle
        broker_status:
          type: string
          title: Broker Status
        authority:
          type: string
          enum:
            - broker_reconciled
            - cached_execution
          title: Authority
        as_of:
          type: string
          format: date-time
          title: As Of
        execution_identifier:
          anyOf:
            - type: string
            - type: 'null'
          title: Execution Identifier
        intent_hash:
          anyOf:
            - type: string
            - type: 'null'
          title: Intent Hash
        review_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Review Id
        review_revision:
          anyOf:
            - type: integer
            - type: 'null'
          title: Review Revision
        revision:
          type: integer
          title: Revision
        reason_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason Code
        reason_detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason Detail
        legs:
          items:
            $ref: '#/components/schemas/LifecycleLeg'
          type: array
          title: Legs
        recent_transitions:
          items:
            $ref: '#/components/schemas/LifecycleTransition'
          type: array
          title: Recent Transitions
      additionalProperties: false
      type: object
      required:
        - execution_id
        - symbol
        - instrument_type
        - contract_symbol
        - trading_mode
        - lifecycle
        - broker_status
        - authority
        - as_of
        - execution_identifier
        - intent_hash
        - review_id
        - review_revision
        - revision
        - reason_code
        - reason_detail
        - legs
        - recent_transitions
      title: ExecutionLifecycleItem
    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
    LifecycleLeg:
      properties:
        role:
          type: string
          title: Role
        client_order_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Order Id
        broker_order_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Broker Order Id
        lifecycle:
          type: string
          enum:
            - submitted
            - working
            - partially_filled
            - filled
            - rejected
            - cancelled
            - expired
            - replaced
            - recovery_required
          title: Lifecycle
        broker_status:
          type: string
          title: Broker Status
        total_qty:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Total Qty
        filled_qty:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Filled Qty
        remaining_qty:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Remaining Qty
        filled_avg_price:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Filled Avg Price
        side:
          anyOf:
            - type: string
            - type: 'null'
          title: Side
        order_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Order Type
        time_in_force:
          anyOf:
            - type: string
            - type: 'null'
          title: Time In Force
        limit_price:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Limit Price
        stop_price:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Stop Price
        eligible_actions:
          items:
            type: string
            enum:
              - replace
              - cancel
          type: array
          title: Eligible Actions
          default: []
      additionalProperties: false
      type: object
      required:
        - role
        - client_order_id
        - broker_order_id
        - lifecycle
        - broker_status
        - total_qty
        - filled_qty
        - remaining_qty
        - filled_avg_price
        - side
        - order_type
        - time_in_force
        - limit_price
        - stop_price
      title: LifecycleLeg
    LifecycleTransition:
      properties:
        event_id:
          type: string
          title: Event Id
        role:
          type: string
          title: Role
        lifecycle:
          type: string
          enum:
            - submitted
            - working
            - partially_filled
            - filled
            - rejected
            - cancelled
            - expired
            - replaced
            - recovery_required
          title: Lifecycle
        broker_sequence:
          type: integer
          title: Broker Sequence
        observed_at:
          type: string
          format: date-time
          title: Observed At
        applied:
          type: boolean
          title: Applied
        reason_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason Code
        reason_detail:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason Detail
        replacement_order_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Replacement Order Id
      additionalProperties: false
      type: object
      required:
        - event_id
        - role
        - lifecycle
        - broker_sequence
        - observed_at
        - applied
      title: LifecycleTransition

````