Crates.io | etf_balancer |
lib.rs | etf_balancer |
version | 1.1.0 |
source | src |
created_at | 2018-06-10 19:45:59.127491 |
updated_at | 2020-05-29 18:47:36.732849 |
description | Balance a portfolio of ETFs across multiple accounts |
homepage | |
repository | https://github.com/gnmerritt/etf-balancer |
max_upload_size | |
id | 69517 |
size | 76,184 |
Try and optimally balance an account of Vanguard ETFs given a target allocation. Runs as an API for easy use from google sheets.
Balances funds to a target percentage across multiple accounts.
Describe your target allocation, your accounts and provide current market quotes for the funds you're interested in balancing, something like this (via the excellent httpie):
http POST https://etf.gnmerritt.net/balance target:='{"VEU":0.7,"VOO":0.3}' accounts:='[{"name":"taxed", "tax_sheltered":false,"cash":1000, "positions":{"VEU":2, "VOO":2}}]' market:='[{"symbol":"VEU", "price":54.33},{"symbol":"VOO", "price":254.77}]' no_sale_accounts:='["taxed"]'
I talk to the API via a google sheet which contains my account info, you can find a template here: Google Sheet Template. If you make yourself a copy you can start using it to balance your own accounts.