Hy everyoane,
I have this jurnal entries:
$ ledger -f start.j print --limit 'commodity =~ /TSLA 210820P00560000/'
2021/06/04 * Sell -1 TSLA 20AUG21 560.0 P
Assets:nnnnnnnn:OPT -100.0 "TSLA 210820P00560000" @
USD42.49000000000
Expenses:nnnnnnnn:Fees USD0.73146990000
Assets:nnnnnnnn:Cash
2021/06/18 * Buy 1 TSLA 20AUG21 560.0 P
Assets:nnnnnnnn:OPT 100.0 "TSLA 210820P00560000" @
USD28.00000000000
Expenses:nnnnnnnn:Fees USD0.62780000000
Assets:nnnnnnnn:Cash
and I have USD1,449.00 profit:
$ ledger -f start.j bal --limit 'commodity =~ /TSLA 210820P00560000/'
--gain
USD1,449.00000000000 Assets:nnnnnnnn:OPT
I am aware that the documentation recommands adding the opening lot price
to the closing transaction like this
Assets:nnnnnnnn:OPT 100.0 "TSLA 210820P00560000"
{USD42.49} @ USD 28.0
and the entry for PnL like this:
Income:nnnnnnnn:PnL USD1,449.00
The question is can this be rewritten in a such thing that I do not have to
change the closing transaction above? I need a jurnal entry with
Income:nnnnnnnn:PnL USD1,449.00
but how do I balance it?
TIA.
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ledger-cli/94238d3a-7b42-472f-bae3-2d0c875e5903n%40googlegroups.com.