Last active
May 10, 2024 17:06
-
-
Save fdw/822cf84ed78d323b9017f8664e25c5bc to your computer and use it in GitHub Desktop.
portfolio returns reproduction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
investments { | |
investment { | |
asset_account: "Assets:Depot1" | |
cash_accounts: "Assets:Cash1" | |
dividend_accounts: "Income:Dividends" | |
} | |
investment { | |
asset_account: "Assets:Depot2" | |
cash_accounts: "Assets:Cash2" | |
dividend_accounts: "Income:Dividends" | |
} | |
} | |
groups { | |
group { | |
name: "Example Investment" | |
investment: "Assets:Depot1" | |
investment: "Assets:Depot2" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2010-01-01 commodity EUR | |
2010-01-01 commodity FOOBAR | |
option "operating_currency" "EUR" | |
plugin "beancount.plugins.coherent_cost" | |
plugin "beancount.plugins.implicit_prices" | |
2024-05-09 custom "fava-extension" "fava_portfolio_returns" "{ | |
'beangrow_config': '/beans/beangrow.bean', | |
}" | |
2010-01-01 open Assets:Depot1 | |
2010-01-01 open Income:Dividends | |
2010-01-01 open Assets:Cash1 | |
2011-01-01 * "Buy some FOOBAR" | |
Assets:Depot1 100.00 FOOBAR {{ 20.00 EUR }} | |
Assets:Cash1 -20.00 EUR | |
2015-01-01 open Assets:Depot2 | |
2015-01-01 open Assets:Cash2 | |
2017-01-01 * "Buy more FOOBAR" | |
Assets:Depot2 100.00 FOOBAR {{ 15.00 EUR }} | |
Assets:Cash2 -15.00 EUR | |
2018-01-01 * "Move depots" | |
Assets:Depot1 -100.00 FOOBAR {{ 20.00 EUR, 2011-01-01 }} | |
Assets:Depot2 100.00 FOOBAR {{ 20.00 EUR, 2011-01-01 }} | |
2018-01-01 * "Move debt" | |
Assets:Cash1 20.00 EUR | |
Assets:Cash2 -20.00 EUR | |
2019-01-01 close Assets:Depot1 | |
2019-01-01 close Assets:Cash2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment