Skip to main content

Returns calculations on portfolios in Beancount Resources

Project description

Compute Returns

This directory contains code which computes investment returns on a variety of assets, as recorded by Beancount, fed directly from a Beancount file.

See this document for details: https://docs.google.com/document/d/1nPsMIunLnDvdsg6TSsd0PZb7jngojNpFlqnaX36WRp8/

Scripts

There are three related scripts:

  • configure.py: This attempts to automatically infer and generate configuration to compute returns from an existing Beancount ledger.

  • compute_returns.py: This extracts data for each of the investments defined in the configuration and computes the returns and generates output for each requested returns report.

  • download_prices.py: The compute_returns.py script outputs a list of missing (or inadequately dated) price directives to properly do its job as a side-product. This script can read that file and fetch those missing dates, which you can insert in your ledger and then rerun compute_returns.py for a more precise calculation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beangrow-1.0.0.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

beangrow-1.0.0-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file beangrow-1.0.0.tar.gz.

File metadata

  • Download URL: beangrow-1.0.0.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.1

File hashes

Hashes for beangrow-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9dd54258ae783c5809191d27e234e8f0b7f807b08c7bc2500439cfd91db69ddb
MD5 e08b7534fb3291a8b2602515affa1db6
BLAKE2b-256 5742006457fcde27ae97c7b2fceaa1cdd14f2f4511f3fc5b55a5738c4f257718

See more details on using hashes here.

File details

Details for the file beangrow-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: beangrow-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.1

File hashes

Hashes for beangrow-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c01d44d8b151ab3eb20cc29eb1b10a1b51dedfafc8fad1980773cda8842eb296
MD5 2a3ed9b0db16436388701eedd88c47e9
BLAKE2b-256 03cb7a322a63028cbb2cf93eb341d78208e8c4d47fc6a29813987f39e1644830

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page