Skip to content

Instantly share code, notes, and snippets.

@zoranzaric
Last active August 15, 2018 05:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zoranzaric/4da6033001d4b5eb44651e84408a9f5b to your computer and use it in GitHub Desktop.
commodity EUR
format 9,999.00 EUR
= Assets:Depot:LyxorACWI
[Assets:Depot:LyxorACWI] *-1
[Assets:Savings] *1
2018/01/01 * Opening
Assets:Checking 10,000.00 EUR
Opening:Balance
2018/01/01 * Buying Shares
Assets:Depot:LyxorACWI:20180101 0.43346 LyxorACWI @@ 100.00 EUR
Assets:Checking
2018/02/01 * Buying Shares
Assets:Depot:LyxorACWI:20180201 0.42265 LyxorACWI @@ 100.00 EUR
Assets:Checking
; $ hledger bal --alias='/assets:Depot:([^:]+):(.*)/'='Assets:Depot:\1' --auto
; 9,800.00 EUR
; 0.85611 LyxorACWI Assets
; 9,800.00 EUR Checking
; 0.85611 LyxorACWI Savings
; -10,000.00 EUR Opening:Balance
; --------------------
; -200.00 EUR
; 0.85611 LyxorACWI
; $ hledger bal --alias='/assets:Depot:([^:]+):(.*)/'='Assets:Depot:\1' --auto -R
; 9,800.00 EUR
; 0.85611 LyxorACWI Assets
; 9,800.00 EUR Checking
; 0.85611 LyxorACWI Depot:LyxorACWI
; -10,000.00 EUR Opening:Balance
; --------------------
; -200.00 EUR
; 0.85611 LyxorACWI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment