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

# Check risk gates for an order without placing it

> Runs the same daily-loss latch, kill switch, and chart paper rule as start-from-card, but places nothing. Returns whether the order would pass and, if not, the verbatim block reasons.



## OpenAPI

````yaml /api/openapi.json post /api/graph/v1/execution/preflight
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/preflight:
    post:
      tags:
        - Execution
      summary: Check risk gates for an order without placing it
      description: >-
        Runs the same daily-loss latch, kill switch, and chart paper rule as
        start-from-card, but places nothing. Returns whether the order would
        pass and, if not, the verbatim block reasons.
      operationId: preflight_api_graph_v1_execution_preflight_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PreflightRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PreflightResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PreflightRequest:
      properties:
        symbol:
          type: string
          title: Symbol
          description: Ticker symbol
        instrument_type:
          type: string
          enum:
            - equity
            - option
          title: Instrument Type
          default: equity
        contract_symbol:
          anyOf:
            - type: string
              pattern: ^[A-Z]{1,6}\d{6}[CP]\d{8}$
            - type: 'null'
          title: Contract Symbol
          description: OCC contract identity required for an option review
        side:
          type: string
          enum:
            - buy
            - sell
          title: Side
          description: Order side
        qty:
          type: number
          exclusiveMinimum: 0
          title: Qty
          description: Order quantity
        order_type:
          type: string
          enum:
            - market
            - limit
            - stop
            - stop_limit
          title: Order Type
          description: Order type
        limit_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Limit Price
          description: Limit price when applicable
        stop_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Stop Price
          description: Stop trigger when applicable
        reference_price:
          anyOf:
            - type: number
              exclusiveMinimum: 0
            - type: 'null'
          title: Reference Price
          description: Current quote for market-order risk
        strategy:
          type: string
          enum:
            - single
            - bracket
            - oco
            - oto
          title: Strategy
          default: single
        take_profit_price:
          anyOf:
            - type: number
              exclusiveMinimum: 0
            - type: 'null'
          title: Take Profit Price
        stop_loss_price:
          anyOf:
            - type: number
              exclusiveMinimum: 0
            - type: 'null'
          title: Stop Loss Price
        time_in_force:
          type: string
          enum:
            - day
            - gtc
          title: Time In Force
          default: day
        idempotency_key:
          anyOf:
            - type: string
              maxLength: 128
              minLength: 1
            - type: 'null'
          title: Idempotency Key
          description: >-
            Stable chart intent identity; required to issue an OR-03 submit
            approval
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
          description: >-
            Origin tag; a value starting with 'chart' triggers the paper-lock
            rule
        order_handoff_id:
          anyOf:
            - type: string
              pattern: ^handoff_[a-f0-9]{24}$
            - type: 'null'
          title: Order Handoff Id
          description: Durable OR-06 Review lineage; valid only for chart_agent_proposal
      type: object
      required:
        - symbol
        - side
        - qty
        - order_type
      title: PreflightRequest
      description: >-
        Request to check risk gates for an order WITHOUT placing it (Slice 1 /
        C2).


        Mirrors the shape of a chart-lab order intent. BL-02 runs the same
        current

        deterministic Guardian adapter used immediately before submit for single

        orders. Multi-leg broker strategies remain fail-closed pending OR-03.
    PreflightResponse:
      properties:
        passed:
          type: boolean
          title: Passed
          description: True when no gate blocked the order
        blocked_reasons:
          items:
            type: string
          type: array
          title: Blocked Reasons
          description: >-
            Human-readable reasons the order would be blocked (empty when
            passed)
        effective_trading_mode:
          type: string
          title: Effective Trading Mode
          description: >-
            The trading mode that would be used (from the user profile): 'paper'
            or 'live'
        approval_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Approval Id
          description: >-
            Server-issued approval bound to the immutable intent; absent when
            blocked
        intent_hash:
          anyOf:
            - type: string
              pattern: ^[a-f0-9]{64}$
            - type: 'null'
          title: Intent Hash
        approval_expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Approval Expires At
        risk_decision_id:
          anyOf:
            - type: string
              pattern: ^[a-f0-9]{64}$
            - type: 'null'
          title: Risk Decision Id
        risk_policy_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Risk Policy Version
        order_handoff_id:
          anyOf:
            - type: string
              pattern: ^handoff_[a-f0-9]{24}$
            - type: 'null'
          title: Order Handoff Id
        order_review:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Order Review
          description: >-
            Immutable owner-scoped executable review; absent for legacy advisory
            calls
      type: object
      required:
        - passed
        - effective_trading_mode
      title: PreflightResponse
      description: Result of a non-placing risk-gate check (Slice 1 / C2).
    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

````