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

# Audit log for a trade card

> Return the full audit log for a card, sourced from ClickHouse.
Entries are ordered by timestamp descending (newest first).



## OpenAPI

````yaml /api/openapi.json get /api/graph/v1/trade/cards/{card_id}/audit
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}/audit:
    get:
      tags:
        - trade-cards
      summary: Audit log for a trade card
      description: |-
        Return the full audit log for a card, sourced from ClickHouse.
        Entries are ordered by timestamp descending (newest first).
      operationId: get_card_audit_api_graph_v1_trade_cards__card_id__audit_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/TradeCardAuditResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    TradeCardAuditResponse:
      properties:
        card_id:
          type: string
          format: uuid
          title: Card Id
        entries:
          items:
            $ref: '#/components/schemas/AuditEntry'
          type: array
          title: Entries
        total:
          type: integer
          title: Total
      type: object
      required:
        - card_id
        - entries
        - total
      title: TradeCardAuditResponse
      description: Audit log for a single card.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
    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.

````