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

# Current risk budget status

> Return the current session's risk budget state: exposure, caps,
round-trip counts, and any active blocking rules.

This is a read-only status check (new_card_risk=0). The same logic
runs on every arm action (queue → pending) to enforce blocking.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/trade/risk-budget
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/trade/risk-budget:
    get:
      tags:
        - trade-cards
      summary: Current risk budget status
      description: |-
        Return the current session's risk budget state: exposure, caps,
        round-trip counts, and any active blocking rules.

        This is a read-only status check (new_card_risk=0). The same logic
        runs on every arm action (queue → pending) to enforce blocking.
      operationId: get_risk_budget_api_graph_v1_trade_risk_budget_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RiskBudgetStatusResponse'
components:
  schemas:
    RiskBudgetStatusResponse:
      properties:
        day_risk_dollars:
          type: number
          title: Day Risk Dollars
          default: 0
        day_pnl:
          type: number
          title: Day Pnl
          default: 0
        realized_pnl:
          type: number
          title: Realized Pnl
          default: 0
        unrealized_pnl:
          type: number
          title: Unrealized Pnl
          default: 0
        global_round_trips:
          type: integer
          title: Global Round Trips
          default: 0
        strategy_round_trips:
          additionalProperties:
            type: integer
          type: object
          title: Strategy Round Trips
        daily_dollars_at_risk_cap:
          type: number
          title: Daily Dollars At Risk Cap
          default: 0
        max_percent_equity_at_risk:
          type: number
          title: Max Percent Equity At Risk
          default: 0
        daily_loss_cap:
          type: number
          title: Daily Loss Cap
          default: 0
        global_round_trip_cap:
          type: integer
          title: Global Round Trip Cap
          default: 0
        blocks:
          items:
            $ref: '#/components/schemas/RiskBlockResponse'
          type: array
          title: Blocks
        is_blocked:
          type: boolean
          title: Is Blocked
          default: false
      type: object
      title: RiskBudgetStatusResponse
      description: Current risk budget state for the session.
    RiskBlockResponse:
      properties:
        rule:
          type: string
          title: Rule
        message:
          type: string
          title: Message
        current_value:
          type: number
          title: Current Value
        limit_value:
          type: number
          title: Limit Value
      type: object
      required:
        - rule
        - message
        - current_value
        - limit_value
      title: RiskBlockResponse
      description: A single blocking rule that fired.

````