;; -*- mode: org; mode: beancount; coding: utf-8; fill-column: 400; -*-
option "operating_currency" "USD"
plugin "beancount.plugins.unrealized" "PnL"
; initiate VTI (=Fund) commodity
1970-01-01 commodity VTI
name: "VTI"
price: "USD:yahoo/VTI"
; open USD, VTI & PnL Accounts
1970-01-01 open Assets:VTI VTI
1970-01-01 open Assets:VTI:PnL USD
1970-01-01 open Assets:Cash USD
; open the money press
1970-01-01 open Equity:Opening-Balance:USD USD
; give me some toy-money
2018-12-31 pad Assets:Cash Equity:Opening-Balance:USD
2019-01-01 balance Assets:Cash 10000.00 USD
;Some VTI we bough a while ago
2019-07-11 * "Buying some VTI for test purpose"
Assets:VTI 10 VTI { 152.83 USD}
Assets:Cash
; now, what's my current net worth? I.E. what's my PnL?