> ## 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 a single trade card

> Return full card state including position, costs, and audit summary.



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/trade/cards/{card_id}
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/cards/{card_id}:
    get:
      tags:
        - trade-cards
      summary: Get a single trade card
      description: Return full card state including position, costs, and audit summary.
      operationId: get_card_api_graph_v1_trade_cards__card_id__get
      parameters:
        - name: card_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Card Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TradeCardResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TradeCardResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        session_id:
          type: string
          format: uuid
          title: Session Id
        user_id:
          type: string
          format: uuid
          title: User Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        source:
          $ref: '#/components/schemas/CardSource'
        source_ref:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Ref
        strategy_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Strategy Id
        strategy_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Strategy Name
        strategy_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Strategy Version
        paper_live_mode:
          $ref: '#/components/schemas/PaperLiveMode'
        mode:
          $ref: '#/components/schemas/CardMode'
        instrument:
          $ref: '#/components/schemas/CardInstrument-Output'
        column_state:
          $ref: '#/components/schemas/CardColumn'
        substate:
          anyOf:
            - $ref: '#/components/schemas/CardSubstate'
            - type: 'null'
        sizing:
          $ref: '#/components/schemas/CardSizing-Output'
        entry_triggers:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Entry Triggers
        exit_rules:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Exit Rules
        broker_order_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Broker Order Id
        fill_ladder:
          items:
            $ref: '#/components/schemas/Fill-Output'
          type: array
          title: Fill Ladder
        position:
          anyOf:
            - $ref: '#/components/schemas/CardPosition'
            - type: 'null'
        fitness:
          anyOf:
            - $ref: '#/components/schemas/CardFitness'
            - type: 'null'
        costs:
          anyOf:
            - $ref: '#/components/schemas/CardCosts-Output'
            - type: 'null'
        reconcile_state:
          $ref: '#/components/schemas/ReconcileState'
          default: ok
        audit_log_count:
          type: integer
          title: Audit Log Count
          default: 0
        latest_audit_entry:
          anyOf:
            - $ref: '#/components/schemas/AuditEntry'
            - type: 'null'
        schema_version:
          type: integer
          title: Schema Version
          default: 1
      type: object
      required:
        - id
        - session_id
        - user_id
        - created_at
        - updated_at
        - source
        - paper_live_mode
        - mode
        - instrument
        - column_state
        - sizing
      title: TradeCardResponse
      description: Full trade card state returned by the API.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CardSource:
      type: string
      enum:
        - strategy_lib
        - order_builder
        - auto_respawn
        - thesis_promote
        - backtest_promote
      title: CardSource
    PaperLiveMode:
      type: string
      enum:
        - paper
        - live
      title: PaperLiveMode
    CardMode:
      type: string
      enum:
        - autonomous
        - supervised
        - monitor
        - manual
      title: CardMode
    CardInstrument-Output:
      properties:
        kind:
          $ref: '#/components/schemas/InstrumentKind'
          description: Equity or option
        symbol:
          type: string
          maxLength: 32
          title: Symbol
          description: Ticker symbol (OCC for options)
        underlying:
          type: string
          maxLength: 16
          title: Underlying
          description: Underlying symbol (same as symbol for equities)
        option_details:
          anyOf:
            - $ref: '#/components/schemas/OptionDetails-Output'
            - type: 'null'
          description: Populated for option cards
      type: object
      required:
        - kind
        - symbol
        - underlying
      title: CardInstrument
    CardColumn:
      type: string
      enum:
        - queue
        - pending
        - open
        - closed
      title: CardColumn
    CardSubstate:
      type: string
      enum:
        - hunting
        - working
        - partial
        - exited
        - cancelled
        - invalidated
        - confirm_pending
      title: CardSubstate
    CardSizing-Output:
      properties:
        type:
          type: string
          title: Type
          description: 'Sizing strategy: fixed_shares, fixed_dollars, risk_percent'
        value:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Value
          description: Sizing parameter value
        computed_shares:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Computed Shares
          description: Resolved shares at arm time
          default: '0'
        computed_risk_dollars:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Computed Risk Dollars
          description: Stop distance * shares
          default: '0'
      type: object
      required:
        - type
        - value
      title: CardSizing
    Fill-Output:
      properties:
        ts:
          type: string
          format: date-time
          title: Ts
          description: Fill timestamp
        shares:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Shares
          description: Shares filled
        price:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Price
          description: Fill price
        side:
          $ref: '#/components/schemas/FillSide'
          description: Buy or sell
        broker_fill_id:
          type: string
          maxLength: 128
          title: Broker Fill Id
          description: Broker-reported fill ID
      type: object
      required:
        - ts
        - shares
        - price
        - side
        - broker_fill_id
      title: Fill
    CardPosition:
      properties:
        shares:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Shares
          description: 'Signed: positive = long, negative = short'
        avg_price:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Avg Price
          description: Average entry price
        unrealized_pnl:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Unrealized Pnl
          description: Mark-to-market P&L
          default: '0'
        realized_pnl:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Realized Pnl
          description: Closed P&L
          default: '0'
      type: object
      required:
        - shares
        - avg_price
      title: CardPosition
    CardFitness:
      properties:
        regime_match:
          $ref: '#/components/schemas/FitnessRegimeMatch'
          description: How well the current regime fits the strategy
        fitness_score:
          type: integer
          maximum: 100
          minimum: 0
          title: Fitness Score
          description: 0-100 fitness score
        ripe:
          type: boolean
          title: Ripe
          description: Intraday trigger threshold crossed
          default: false
        last_computed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Computed At
          description: Last fitness recomputation
      type: object
      required:
        - regime_match
        - fitness_score
      title: CardFitness
    CardCosts-Output:
      properties:
        expected_commission:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Expected Commission
          description: Pre-submission estimate
        expected_slippage_bps:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Expected Slippage Bps
          description: Pre-submission slippage estimate in basis points
        realized_commission:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Realized Commission
          description: Broker-reported after fill
        realized_slippage_bps:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Realized Slippage Bps
          description: 'Computed: quote at submit vs fill price'
        expected_fill_price:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Expected Fill Price
          description: Mid/bid/ask at submission time
        realized_fill_price:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Realized Fill Price
          description: VWAP of fill ladder
      type: object
      title: CardCosts
    ReconcileState:
      type: string
      enum:
        - ok
        - reconciling
        - unreconciled
        - requires_manual_review
      title: ReconcileState
    AuditEntry:
      properties:
        ts:
          type: string
          format: date-time
          title: Ts
          description: Event timestamp
        actor:
          $ref: '#/components/schemas/AuditActor'
          description: Who triggered the action
        action:
          type: string
          title: Action
          description: >-
            Action type: create, arm, submit, fill, modify, cancel, close,
            invalidate, ...
        reason:
          type: string
          title: Reason
          description: Human-readable justification (agent provides)
          default: ''
        correlation_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Correlation Id
          description: Links to signal_delivery signal_id
        market_snapshot:
          anyOf:
            - $ref: '#/components/schemas/MarketSnapshot-Output'
            - type: 'null'
          description: Market state at decision time (agent actions only)
        before:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Before
        after:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: After
        strategy_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Strategy Id
        strategy_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Strategy Version
      type: object
      required:
        - ts
        - actor
        - action
      title: AuditEntry
    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
    InstrumentKind:
      type: string
      enum:
        - equity
        - option
      title: InstrumentKind
    OptionDetails-Output:
      properties:
        strike:
          type: string
          pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
          title: Strike
          description: Strike price
        expiration:
          type: string
          format: date
          title: Expiration
          description: Expiration date
        type:
          $ref: '#/components/schemas/OptionType'
          description: Call (C) or Put (P)
      type: object
      required:
        - strike
        - expiration
        - type
      title: OptionDetails
    FillSide:
      type: string
      enum:
        - buy
        - sell
      title: FillSide
    FitnessRegimeMatch:
      type: string
      enum:
        - active
        - partial
        - neutral
        - adverse
      title: FitnessRegimeMatch
    AuditActor:
      type: string
      enum:
        - user
        - agent
        - broker
        - system
      title: AuditActor
    MarketSnapshot-Output:
      properties:
        ts:
          type: string
          format: date-time
          title: Ts
          description: Snapshot timestamp (matches AuditEntry.ts)
        bar_symbol:
          type: string
          title: Bar Symbol
          default: ''
        bar_open:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Bar Open
        bar_high:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Bar High
        bar_low:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Bar Low
        bar_close:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Bar Close
        bar_volume:
          anyOf:
            - type: integer
            - type: 'null'
          title: Bar Volume
        bar_vwap:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Bar Vwap
        quote_bid:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Quote Bid
        quote_ask:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Quote Ask
        quote_bid_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Quote Bid Size
        quote_ask_size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Quote Ask Size
        indicators:
          additionalProperties:
            type: number
          type: object
          title: Indicators
        regime_dominant:
          type: string
          title: Regime Dominant
          default: ''
        regime_confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Regime Confidence
        signals:
          additionalProperties:
            type: number
          type: object
          title: Signals
        risk_day_dollars:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Risk Day Dollars
        risk_pct_cap:
          anyOf:
            - type: number
            - type: 'null'
          title: Risk Pct Cap
        risk_loss_remaining:
          anyOf:
            - type: string
              pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
            - type: 'null'
          title: Risk Loss Remaining
      type: object
      required:
        - ts
      title: MarketSnapshot
      description: |-
        Frozen picture of the market state at the moment an agent made a
        decision. Required on audit entries where actor=agent and the action
        changes card state. See spec §4.5.
    OptionType:
      type: string
      enum:
        - C
        - P
      title: OptionType

````