go-rebalance
assists in rebalancing an investment portfolio towards a desired distribution.
go install ./cmd/rebalance
Refer to the upstream documentation for installation instructions. See https://www.coin-or.org/downloading/.
- Fetch your data from Avanza, e.g.:
rebalance avanza --username 1111111 fetch
- Calculate transfers for rebalancing, e.g.:
rebalance avanza --username 1111111 calculate --account-id 2222222
The account id is normally the same as the account number.
-
Sanity check the suggested transfers.
-
Carry out the transfers using your favorite Avanza UI.
GNU General Public License v3.0 or later
See COPYING to see the full text.