> ## 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 trading session summary

> Return the current trading session: session_id, card counts per
column, and aggregated day P&L.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/trade/sessions/current
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/sessions/current:
    get:
      tags:
        - trade-cards
      summary: Current trading session summary
      description: |-
        Return the current trading session: session_id, card counts per
        column, and aggregated day P&L.
      operationId: get_current_session_api_graph_v1_trade_sessions_current_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CurrentSessionResponse'
components:
  schemas:
    CurrentSessionResponse:
      properties:
        session_id:
          type: string
          format: uuid
          title: Session Id
        started_at:
          type: string
          format: date-time
          title: Started At
        cards_by_column:
          additionalProperties:
            type: integer
          type: object
          title: Cards By Column
          description: >-
            Count of cards per column: {queue: N, pending: N, open: N, closed:
            N}
        day_pnl:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Day Pnl
          description: Realized + unrealized
          default: '0'
        day_pnl_pct:
          type: number
          title: Day Pnl Pct
          description: Day P&L as % of equity
          default: 0
        realized_pnl:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Realized Pnl
          description: Sum of closed card P&L
          default: '0'
        unrealized_pnl:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Unrealized Pnl
          description: Sum of open card P&L
          default: '0'
        equity:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Equity
          description: Alpaca account equity (null if unavailable)
        buying_power:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Buying Power
          description: Alpaca buying power (null if unavailable)
        day_risk_dollars:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Day Risk Dollars
          description: Sum of risk across Open+Pending cards
          default: '0'
        daily_risk_cap:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Daily Risk Cap
          description: Risk Profile daily $ cap
          default: '0'
        risk_pct_used:
          type: number
          title: Risk Pct Used
          description: day_risk / daily_risk_cap * 100
          default: 0
        paper_live_mode:
          type: string
          title: Paper Live Mode
          description: Active trading mode
          default: paper
      type: object
      required:
        - session_id
        - started_at
      title: CurrentSessionResponse
      description: Current trading session summary with P&L header strip data (spec §8).

````