https://github.com/andreasgerstmayr/fava-portfolio-returns
fava-portfolio-returns shows portfolio returns in Fava
https://github.com/andreasgerstmayr/fava-portfolio-returns
beancount beangrow fava portfolio returns
Last synced: about 2 months ago
JSON representation
fava-portfolio-returns shows portfolio returns in Fava
- Host: GitHub
- URL: https://github.com/andreasgerstmayr/fava-portfolio-returns
- Owner: andreasgerstmayr
- License: gpl-2.0
- Created: 2022-02-18T15:37:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-22T16:28:21.000Z (3 months ago)
- Last Synced: 2025-03-29T00:23:32.701Z (2 months ago)
- Topics: beancount, beangrow, fava, portfolio, returns
- Language: Python
- Homepage:
- Size: 15.1 MB
- Stars: 55
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Fava Portfolio Returns
[](https://github.com/andreasgerstmayr/fava-portfolio-returns/actions/workflows/continuous-integration.yaml)
[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/andreasgerstmayr/fava-portfolio-returns)fava-portfolio-returns shows portfolio returns in the [Fava](https://github.com/beancount/fava) web interface. It leverages [beangrow](https://github.com/beancount/beangrow) to categorize transactions and calculate the portfolio returns of a beancount ledger.
[](frontend/tests/e2e/__image_snapshots__/portfolio.png)
[](frontend/tests/e2e/__image_snapshots__/performance.png)
[](frontend/tests/e2e/__image_snapshots__/returns.png)
[](frontend/tests/e2e/__image_snapshots__/dividends.png)
[](frontend/tests/e2e/__image_snapshots__/cash_flows.png)
[](frontend/tests/e2e/__image_snapshots__/groups.png)## Installation
```
pip install git+https://github.com/andreasgerstmayr/fava-portfolio-returns.git
```## Usage
Please setup [beangrow](https://github.com/beancount/beangrow) first, using this guide: https://beancount.github.io/docs/calculating_portolio_returns.html.Enable this plugin in Fava by adding the following lines to your ledger:
```
2010-01-01 custom "fava-extension" "fava_portfolio_returns" "{
'beangrow_config': 'beangrow.pbtxt',
}"
```## View Example Ledger
`cd example; fava example.beancount`## Building from Source
Run `make build-js` to compile the frontend. The compiled and bundled code will be placed in `src/fava_portfolio_returns/FavaPortfolioReturns.js`.Run `make dev` to start a development server and automatically rebuild the frontend for any changes.
## Related Projects
* [Fava Portfolio Summary](https://github.com/PhracturedBlue/fava-portfolio-summary)
* [Fava Classy Portfolio](https://github.com/seltzered/fava-classy-portfolio)
* [Fava Investor](https://github.com/redstreet/fava_investor)
* [Fava Dashboards](https://github.com/andreasgerstmayr/fava-dashboards)## Acknowledgements
Thanks to Martin Blais and all contributors of [beancount](https://github.com/beancount/beancount) and [beangrow](https://github.com/beancount/beangrow),
Jakob Schnitzer, Dominik Aumayr and all contributors of [Fava](https://github.com/beancount/fava),
and to all contributors of [Apache ECharts](https://echarts.apache.org).