When I buy a bond, there is the clean price as quoted by the exchange/broker and there is the dirty price including the accrued interest in the bond since the last coupon was paid out.
How do I best reflect this transaction in PP?
When I buy a bond, there is the clean price as quoted by the exchange/broker and there is the dirty price including the accrued interest in the bond since the last coupon was paid out.
How do I best reflect this transaction in PP?
There is a useful thread in German started by KlaPau which explains a workaround.
Summary in English:
“How do I record the purchase and sale of a bond with accrued interest and percentage-based execution prices?”
Sebasbaumh explains a workaround for recording a bond purchase:
This method helps align bond accounting with how brokers report trades, especially when accrued interest is involved. If you’d like, I can help you adapt this logic into a Python script for automated transaction logging.