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

# Order Builder mount data

> Aggregates stock context, regime, scores, levels, debate cache, account info, and optional options context into a single response.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/order-builder/{symbol}
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/order-builder/{symbol}:
    get:
      tags:
        - Order Builder
      summary: Order Builder mount data
      description: >-
        Aggregates stock context, regime, scores, levels, debate cache, account
        info, and optional options context into a single response.
      operationId: get_order_builder_mount_api_graph_v1_order_builder__symbol__get
      parameters:
        - name: symbol
          in: path
          required: true
          schema:
            type: string
            title: Symbol
        - name: contract
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: OCC option symbol for options mode context
            title: Contract
          description: OCC option symbol for options mode context
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderBuilderMountResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OrderBuilderMountResponse:
      properties:
        stock:
          $ref: '#/components/schemas/OBStockContext'
        regime:
          anyOf:
            - $ref: '#/components/schemas/OBRegime'
            - type: 'null'
        scores:
          anyOf:
            - $ref: '#/components/schemas/OBScores'
            - type: 'null'
        debate:
          anyOf:
            - $ref: '#/components/schemas/OBDebateCache'
            - type: 'null'
        account:
          anyOf:
            - $ref: '#/components/schemas/OBAccount'
            - type: 'null'
        levels:
          anyOf:
            - $ref: '#/components/schemas/OBLevels'
            - type: 'null'
        position:
          anyOf:
            - $ref: '#/components/schemas/OBPosition'
            - type: 'null'
        patterns:
          items:
            $ref: '#/components/schemas/OBPattern'
          type: array
          title: Patterns
        options:
          anyOf:
            - $ref: '#/components/schemas/OBOptionsContext'
            - type: 'null'
        hv_20d:
          anyOf:
            - type: number
            - type: 'null'
          title: Hv 20D
          description: 20-day historical volatility (annualized)
        iv_hv_ratio:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv Hv Ratio
          description: IV / HV ratio (requires both IV and HV)
        source:
          type: string
          title: Source
          description: >-
            Feed access for stock.last_price / levels.current_price:
            'realtime_sip' | 'delayed' | 'byok'
          default: realtime_sip
        fetched_at:
          type: string
          format: date-time
          title: Fetched At
      type: object
      required:
        - stock
      title: OrderBuilderMountResponse
      description: |-
        Bundled response for GET /api/graph/v1/order-builder/{symbol}.

        Aggregates all data the Order Builder needs on mount into a single
        request, avoiding waterfall fetches on the frontend.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    OBStockContext:
      properties:
        symbol:
          type: string
          title: Symbol
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        last_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Last Price
        change:
          anyOf:
            - type: number
            - type: 'null'
          title: Change
          description: Absolute $ change
        change_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Change Pct
          description: Percent change
        volume:
          anyOf:
            - type: integer
            - type: 'null'
          title: Volume
        rvol:
          anyOf:
            - type: number
            - type: 'null'
          title: Rvol
          description: Relative volume
        atr_14:
          anyOf:
            - type: number
            - type: 'null'
          title: Atr 14
          description: Legacy ATR(14). See daily_atr_14_eod.
        daily_atr_14_eod:
          anyOf:
            - type: number
            - type: 'null'
          title: Daily Atr 14 Eod
          description: EOD-frozen daily ATR(14)
        sector:
          anyOf:
            - type: string
            - type: 'null'
          title: Sector
      type: object
      required:
        - symbol
      title: OBStockContext
      description: Core stock data for Order Builder Layer 1.
    OBRegime:
      properties:
        regime_dominant:
          anyOf:
            - type: string
            - type: 'null'
          title: Regime Dominant
          description: e.g. mild_bull, vol_expand
        regime_confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Regime Confidence
        vix_level:
          anyOf:
            - type: number
            - type: 'null'
          title: Vix Level
        vix_regime:
          anyOf:
            - type: string
            - type: 'null'
          title: Vix Regime
        day_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Day Type
      type: object
      title: OBRegime
      description: Regime context for intelligence badges.
    OBScores:
      properties:
        conviction_v5:
          anyOf:
            - type: number
            - type: 'null'
          title: Conviction V5
        confluence_bull_v45:
          anyOf:
            - type: number
            - type: 'null'
          title: Confluence Bull V45
        confluence_bear_v45:
          anyOf:
            - type: number
            - type: 'null'
          title: Confluence Bear V45
        pulse_net:
          anyOf:
            - type: number
            - type: 'null'
          title: Pulse Net
        entry_score:
          anyOf:
            - type: number
            - type: 'null'
          title: Entry Score
        momentum_health:
          anyOf:
            - type: number
            - type: 'null'
          title: Momentum Health
      type: object
      title: OBScores
      description: Scoring context for badges and agent config.
    OBDebateCache:
      properties:
        verdict:
          anyOf:
            - type: string
            - type: 'null'
          title: Verdict
          description: STRONG_BUY, BUY, HOLD, AVOID, SHORT
        confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Confidence
        thesis_bull:
          anyOf:
            - type: string
            - type: 'null'
          title: Thesis Bull
        thesis_bear:
          anyOf:
            - type: string
            - type: 'null'
          title: Thesis Bear
        target_1:
          anyOf:
            - type: number
            - type: 'null'
          title: Target 1
        target_2:
          anyOf:
            - type: number
            - type: 'null'
          title: Target 2
        target_3:
          anyOf:
            - type: number
            - type: 'null'
          title: Target 3
        suggested_stop:
          anyOf:
            - type: number
            - type: 'null'
          title: Suggested Stop
        suggested_direction:
          anyOf:
            - type: string
            - type: 'null'
          title: Suggested Direction
        debate_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Debate Id
        debated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Debated At
      type: object
      title: OBDebateCache
      description: Cached debate verdict for pre-fill context.
    OBAccount:
      properties:
        equity:
          anyOf:
            - type: number
            - type: 'null'
          title: Equity
        buying_power:
          anyOf:
            - type: number
            - type: 'null'
          title: Buying Power
        portfolio_heat_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Portfolio Heat Pct
        open_positions:
          type: integer
          title: Open Positions
          default: 0
      type: object
      title: OBAccount
      description: Account context for sizing and risk gates.
    OBLevels:
      properties:
        current_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Current Price
        session_high:
          anyOf:
            - type: number
            - type: 'null'
          title: Session High
        session_low:
          anyOf:
            - type: number
            - type: 'null'
          title: Session Low
        levels:
          items:
            $ref: '#/components/schemas/OBLevel'
          type: array
          title: Levels
      type: object
      title: OBLevels
      description: Institutional levels for range bar and ghost markers.
    OBPosition:
      properties:
        execution_id:
          type: string
          title: Execution Id
        direction:
          type: string
          title: Direction
        entry_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Entry Price
        current_stop:
          anyOf:
            - type: number
            - type: 'null'
          title: Current Stop
        quantity:
          anyOf:
            - type: integer
            - type: 'null'
          title: Quantity
        unrealized_pnl:
          anyOf:
            - type: number
            - type: 'null'
          title: Unrealized Pnl
        unrealized_pnl_pct:
          anyOf:
            - type: number
            - type: 'null'
          title: Unrealized Pnl Pct
        instrument_type:
          type: string
          title: Instrument Type
          default: equity
        instrument_symbol:
          anyOf:
            - type: string
            - type: 'null'
          title: Instrument Symbol
      type: object
      required:
        - execution_id
        - direction
      title: OBPosition
      description: Active position for this symbol (if any).
    OBPattern:
      properties:
        name:
          type: string
          title: Name
        detected:
          type: boolean
          title: Detected
          default: true
      type: object
      required:
        - name
      title: OBPattern
      description: Detected pattern for badge display.
    OBOptionsContext:
      properties:
        occ_symbol:
          type: string
          title: Occ Symbol
        underlying:
          type: string
          title: Underlying
        expiration:
          anyOf:
            - type: string
            - type: 'null'
          title: Expiration
        strike:
          anyOf:
            - type: number
            - type: 'null'
          title: Strike
        option_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Option Type
          description: call or put
        bid:
          anyOf:
            - type: number
            - type: 'null'
          title: Bid
        ask:
          anyOf:
            - type: number
            - type: 'null'
          title: Ask
        last:
          anyOf:
            - type: number
            - type: 'null'
          title: Last
        delta:
          anyOf:
            - type: number
            - type: 'null'
          title: Delta
        gamma:
          anyOf:
            - type: number
            - type: 'null'
          title: Gamma
        theta:
          anyOf:
            - type: number
            - type: 'null'
          title: Theta
        vega:
          anyOf:
            - type: number
            - type: 'null'
          title: Vega
        iv:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv
        iv_rank:
          anyOf:
            - type: number
            - type: 'null'
          title: Iv Rank
        volume:
          anyOf:
            - type: integer
            - type: 'null'
          title: Volume
        open_interest:
          anyOf:
            - type: integer
            - type: 'null'
          title: Open Interest
        dte:
          anyOf:
            - type: integer
            - type: 'null'
          title: Dte
      type: object
      required:
        - occ_symbol
        - underlying
      title: OBOptionsContext
      description: Options-specific context when contract query param is provided.
    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
    OBLevel:
      properties:
        type:
          type: string
          title: Type
          description: 'Level type key: vwap, ib_high, pivot_r1, etc.'
        label:
          type: string
          title: Label
          description: Display label
        price:
          type: number
          title: Price
        side:
          type: string
          title: Side
          description: support, resistance, or neutral
        freshness:
          type: string
          title: Freshness
          description: live, daily, or structural
          default: daily
      type: object
      required:
        - type
        - label
        - price
        - side
      title: OBLevel
      description: Single institutional level.

````