modulepackage
0.0.0-20250105120352-8f8eac945ca4
Repository: https://github.com/andreaskaempf/portfolio.git
Documentation: pkg.go.dev
# README
Portfolio System
This will be a simple portfolio management system for personal investors. It will allow you to define assets such as stocks, funds, etc., and record transactions to buy/sell shares. You can update the prices, record dividends, and update currency exchange rates. The tool will then allow you to see to the total value of your portfolio over time, and report the ROI coming from asset value changes, dividend income, and currency movements.
This is written 100% in Go, including the front end, which is just static HTML.
To build and run:
go mod init portfolio
go build
./portfolio
Then, you can browse to http://localhost:8080
Note that you need to create a database first, using SQLite3:
sqlite3 data.db
.read schema.sql
.exit
AK, July & August 2024
# Structs
Record format for one cash transaction.
Record format for one currency.
Record format for one dividend.
Portfolio holding a particular date.
Record format for a price.
Record format for a currency rate.
Record format for one stock.
Time series point.
Record format for one transaction Amount and fees are in local currency TODO: How do we back out the currency value vs.
# Type aliases
A Time series is a list of date/value pairs.