bank_book_controller
Classes:
-
BankBookController
–Controller for managing a bank's banking or trading book.
-
BankingBookController
–Controller for banking book.
-
TradingBookController
–Controller for trading book.
BankBookController
BankBookController(
bank_book: BankBook,
view: BRMSBankBookWidget,
inspector_ctrl: InspectorController,
)
Bases: BRMSController
Controller for managing a bank's banking or trading book.
Methods:
-
add_instrument
–Add an instrument to the tree model.
-
connect_signals
–Connect signals to their respective slots.
-
instrument_to_data
–Convert an instrument to data that can be used by the TreeModel.
-
on_instrument_selected
–Slot to handle selection changes.
-
remove_instrument
–Remove an instrument from the tree model.
-
set_id_column_visibility
–Set the visibility of the ID column in the tree view.
add_instrument
add_instrument(
instrument: Instrument, position: Position
) -> None
Add an instrument to the tree model.
connect_signals
connect_signals() -> None
Connect signals to their respective slots.
instrument_to_data
staticmethod
instrument_to_data(
instrument: Instrument, position: Position
) -> list[dict]
Convert an instrument to data that can be used by the TreeModel.
on_instrument_selected
on_instrument_selected(position: Position) -> None
Slot to handle selection changes.
remove_instrument
remove_instrument(
instrument: Instrument, position: Position
) -> None
Remove an instrument from the tree model.
set_id_column_visibility
set_id_column_visibility(*, visible: bool) -> None
Set the visibility of the ID column in the tree view.
BankingBookController
BankingBookController(
bank_book: BankingBook,
view: BRMSBankingBookWidget,
inspector_ctrl: InspectorController,
)
Bases: BankBookController
Controller for banking book.
Methods:
-
add_instrument
–Add an instrument to the tree model.
-
instrument_to_data
–Convert an instrument to data that can be used by the TreeModel.
-
on_btn_adjust_deposit_interest_rate
–Handle Adjust Deposit Interest Rate button click.
-
on_btn_asset_liability_matching
–Handle Asset-Liability Matching button click.
-
on_btn_banking_book_profitability
–Handle Banking Book Profitability button click.
-
on_btn_htm_portfolio_analysis
–Handle HTM Portfolio Analysis button click.
-
on_btn_liquidity_position
–Handle Liquidity Position button click.
-
on_btn_loan_portfolio_overview
–Handle Loan Portfolio Overview button click.
-
on_btn_loan_risk_assessment
–Handle Loan Risk Assessment button click.
-
on_btn_manage_debt_instruments
–Handle Manage Debt Instruments button click.
-
on_btn_market_value_assessment
–Handle Market Value Assessment button click.
-
on_btn_modify_loan_terms
–Handle Modify Loan Terms button click.
-
on_btn_process_loan_applications
–Handle Process Loan Applications button click.
-
on_btn_trade_corporate_securities
–Handle Trade Corporate Securities button click.
-
on_btn_trade_treasury_securities
–Handle Trade Treasury Securities button click.
-
on_instrument_selected
–Slot to handle selection changes.
-
remove_instrument
–Remove an instrument from the tree model.
-
set_id_column_visibility
–Set the visibility of the ID column in the tree view.
add_instrument
add_instrument(
instrument: Instrument, position: Position
) -> None
Add an instrument to the tree model.
instrument_to_data
staticmethod
instrument_to_data(
instrument: Instrument, position: Position
) -> list[dict]
Convert an instrument to data that can be used by the TreeModel.
on_btn_adjust_deposit_interest_rate
on_btn_adjust_deposit_interest_rate() -> None
Handle Adjust Deposit Interest Rate button click.
on_btn_asset_liability_matching
on_btn_asset_liability_matching() -> None
Handle Asset-Liability Matching button click.
on_btn_banking_book_profitability
on_btn_banking_book_profitability() -> None
Handle Banking Book Profitability button click.
on_btn_htm_portfolio_analysis
on_btn_htm_portfolio_analysis() -> None
Handle HTM Portfolio Analysis button click.
on_btn_liquidity_position
on_btn_liquidity_position() -> None
Handle Liquidity Position button click.
on_btn_loan_portfolio_overview
on_btn_loan_portfolio_overview() -> None
Handle Loan Portfolio Overview button click.
on_btn_loan_risk_assessment
on_btn_loan_risk_assessment() -> None
Handle Loan Risk Assessment button click.
on_btn_manage_debt_instruments
on_btn_manage_debt_instruments() -> None
Handle Manage Debt Instruments button click.
on_btn_market_value_assessment
on_btn_market_value_assessment() -> None
Handle Market Value Assessment button click.
on_btn_modify_loan_terms
on_btn_modify_loan_terms() -> None
Handle Modify Loan Terms button click.
on_btn_process_loan_applications
on_btn_process_loan_applications() -> None
Handle Process Loan Applications button click.
on_btn_trade_corporate_securities
on_btn_trade_corporate_securities() -> None
Handle Trade Corporate Securities button click.
on_btn_trade_treasury_securities
on_btn_trade_treasury_securities() -> None
Handle Trade Treasury Securities button click.
on_instrument_selected
on_instrument_selected(position: Position) -> None
Slot to handle selection changes.
remove_instrument
remove_instrument(
instrument: Instrument, position: Position
) -> None
Remove an instrument from the tree model.
set_id_column_visibility
set_id_column_visibility(*, visible: bool) -> None
Set the visibility of the ID column in the tree view.
TradingBookController
TradingBookController(
bank_book: TradingBook,
view: BRMSTradingBookWidget,
inspector_ctrl: InspectorController,
)
Bases: BankBookController
Controller for trading book.
Methods:
-
add_instrument
–Add an instrument to the tree model.
-
instrument_to_data
–Convert an instrument to data that can be used by the TreeModel.
-
on_btn_mark_to_market_analysis
–Handle Mark-to-Market Analysis button click.
-
on_btn_risk_assessment
–Handle Market Risk Assessment button click.
-
on_btn_trade_corporate_securities
–Handle Trade Corporate Securities button click.
-
on_btn_trade_derivatives
–Handle Trade Derivatives button click.
-
on_btn_trade_treasury_securities
–Handle Trade Treasury Securities button click.
-
on_btn_trading_portfolio_overview
–Handle Trading Portfolio Overview button click.
-
on_btn_trading_profitability
–Handle Trading Profitability button click.
-
on_instrument_selected
–Slot to handle selection changes.
-
remove_instrument
–Remove an instrument from the tree model.
-
set_id_column_visibility
–Set the visibility of the ID column in the tree view.
add_instrument
add_instrument(
instrument: Instrument, position: Position
) -> None
Add an instrument to the tree model.
instrument_to_data
staticmethod
instrument_to_data(
instrument: Instrument, position: Position
) -> list[dict]
Convert an instrument to data that can be used by the TreeModel.
on_btn_mark_to_market_analysis
on_btn_mark_to_market_analysis() -> None
Handle Mark-to-Market Analysis button click.
on_btn_risk_assessment
on_btn_risk_assessment() -> None
Handle Market Risk Assessment button click.
on_btn_trade_corporate_securities
on_btn_trade_corporate_securities() -> None
Handle Trade Corporate Securities button click.
on_btn_trade_derivatives
on_btn_trade_derivatives() -> None
Handle Trade Derivatives button click.
on_btn_trade_treasury_securities
on_btn_trade_treasury_securities() -> None
Handle Trade Treasury Securities button click.
on_btn_trading_portfolio_overview
on_btn_trading_portfolio_overview() -> None
Handle Trading Portfolio Overview button click.
on_btn_trading_profitability
on_btn_trading_profitability() -> None
Handle Trading Profitability button click.
on_instrument_selected
on_instrument_selected(position: Position) -> None
Slot to handle selection changes.
remove_instrument
remove_instrument(
instrument: Instrument, position: Position
) -> None
Remove an instrument from the tree model.
set_id_column_visibility
set_id_column_visibility(*, visible: bool) -> None
Set the visibility of the ID column in the tree view.