2020-03-10 * "EUNL sold" Assets:Nordnet:EUNL -20 EUNL @ 47.996 EUR Expenses:Financial:Commissions 15 EUR Assets:Nordnet:Cash 944.92 EUR
2020-03-21 price EUNL 42.536 EUR
2020-04-30 * "EUNL purchase" Assets:Nordnet:EUNL 8 EUNL {45.9998 EUR} Assets:Nordnet:Cash -368.00 EUR
No position matches "Posting(account='Assets:Nordnet:EUNL', units=5 EUNL, cost=CostSpec(number_per=Decimal('45.9998'), number_total=None, currency='EUR', date=None, label=None, merge=False), price=None, flag=None, meta={'filename': '/home/tuomas/ledger/ledger.beancount', 'lineno': 5847})" against balance (-20 EUNL, 80 EUNL {45.10 EUR, 2018-04-30}, 6 EUNL {45.5980 EUR, 2018-05-07}, 2 EUNL {46.62 EUR, 2018-12-05}, 11 EUNL {46.6660 EUR, 2018-07-05}, 4 EUNL {46.8219 EUR, 2018-11-05}, 3 EUNL {47.0850 EUR, 2019-02-05}, 10 EUNL {47.2815 EUR, 2018-06-05}, 10 EUNL {48.5568 EUR, 2018-08-06}, 4 EUNL {48.6140 EUR, 2019-03-05}, 4 EUNL {49.2354 EUR, 2018-10-05}, 2 EUNL {49.3720 EUR, 2019-06-05}, 4 EUNL {50.49 EUR, 2019-04-05}, 3 EUNL {50.5220 EUR, 2019-08-05}, 4 EUNL {50.6877 EUR, 2019-05-06}, 3 EUNL {52.19 EUR, 2019-07-05}, 4 EUNL {52.436 EUR, 2019-10-07}, 3 EUNL {52.50 EUR, 2019-09-05}, 7 EUNL {52.9177 EUR, 2020-03-05}, 5 EUNL {54.5880 EUR, 2019-11-05}, 4 EUNL {55.14 EUR, 2019-12-05}, 4 EUNL {56.8213 EUR, 2020-01-07}, 3 EUNL {58.5676 EUR, 2020-02-05})
2020-03-10 * "EUNL sold" Assets:Nordnet:EUNL -20 EUNL {} @ 47.996 EUR Expenses:Financial:Commissions 15 EUR Assets:Nordnet:Cash 944.92 EUR Income:Capital-Gains XXX.XX EUR
Thanks. Didn't get it yet but I have few questions.1) After reading the doc it seems to me that I should specify which lots I sold by using {} syntax, am I right? When I sell a part of my position, my bank does not let me to select which lots I'll sell. So I have difficulty in understanding how to apply the lot's price to the transaction. Based on my bank's report I only know that I sold 20 shares. And to clarify I sold only a part of my total position.
2) Is the booking method (strict, fifo, lifo, average, none) somehow relevant in this and if so, what implications each one has? Since I can't manage which lots I sell from by bank, to me it seems like it would make sense to use average method. Or is this completely unrelated to my problem?
3) In the example transaction you gave I don't understand the point of the Income row. I sold 20 shares with price 47.996 EUR, and in return I had to pay 15 EUR commissions and I got 944.92 EUR to my Cash account. While this transaction would likely result in capital gain or loss, I don't understand how I would calculate that when I don't know the prices of lots I sold. Again I guess this is just a result of my confusion with the first question.
Finally I'm not shorting and this is the first transaction I'm selling this ETF so afaik the balance should not be negative in any part of the ledger as seems to be the case in some other threads. Anyway, I'll try to keep reading and figuring out what I should do.
--
Martin Michlmayr
https://www.cyrius.com/
--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/20200501013225.GA29967%40jirafa.cyrius.com.
2018-01-01 open Assets:Nordnet:EUNL EUNL "FIFO"2020-03-10 * "EUNL sold" Assets:Nordnet:EUNL -20 EUNL {} @ 47.996 EUR Expenses:Financial:Commissions 15 EUR Assets:Nordnet:Cash 944.92 EUR Income:Capital-Gain--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/38500063-a534-480c-a68a-e47ca6d34aa1%40googlegroups.com.