Skip to content

transaction_history_controller

Controller for transaction history view — subscribes to TransactionsRecorded.

Classes:

TransactionHistoryController

TransactionHistoryController(
    view: BRMSTransactionHistoryWidget,
    event_bus: EventBus,
    transaction_log: TransactionLog,
    inspector_ctrl: InspectorController,
    start_date: date | None = None,
    end_date: date | None = None,
)

Bases: BRMSController

Subscribes to TransactionsRecorded, transforms transactions to view-ready tuples.

Methods:

  • filter_by_instrument

    Set the instrument filter and trigger search.

  • load_initial

    Load all existing transactions from the log into the view.

  • reset

    Clear all transaction data from the view.

filter_by_instrument

filter_by_instrument(instrument_id: str) -> None

Set the instrument filter and trigger search.

load_initial

load_initial() -> None

Load all existing transactions from the log into the view.

reset

reset() -> None

Clear all transaction data from the view.