fava, unrealized PnL (plugin) & NAV

54 views
Skip to first unread message

nug get

unread,
Mar 27, 2022, 6:11:37 PM3/27/22
to Beancount
Dear all
playing with the unrealized.py plugin, with the "convert to <base_currency>" UI option in fava, I noticed that my net asset value changes depending on activating/deactivating the plugin. Is this intended behavior?

Se the minimal example below.

In this context I have not yet fully understood how the notation with round brackets works in fava. is there a documentation on this? In the below example, activating the plugin and showing the Balance "at Market Value" makes the (8) of UPnL propagate from STOCK to Assets account, which otherwise don't happen.

Thanks!
... like Z.Wei from 5 Dec 2017, 17:15:39  I'd like to compute monthly PnL but first I need to understand the basics^^
best,
nugget




option "title" "Test ledger"
option "operating_currency" "CHF"

; plugin "beancount.plugins.unrealized" "UPnL" ; <= switch this on & off and observe the net asset value in fava

2022-01-01 * "STOCK" "BUY 1 @ 100 USD"
  Assets:STOCK                           1 STOCK {100 USD, 2022-01-01}
  Assets:USD        

1970-01-01 open Assets:USD  USD
1970-01-01 open Assets:STOCK  STOCK
1970-01-01 open Income:STOCK:PnL  USD
1970-01-01 open Equity:Opening-Balance:USD  USD

2022-01-01 price STOCK                               100 USD
2022-03-01 price STOCK                               108 USD

2022-01-01 price USD                               1 CHF


Reply all
Reply to author
Forward
0 new messages