Hi,
I tried searching a bit in the documentation and this forum but not sure
how to handle this case and carry forward cost-basis information. Imagine
you buy some stock at institution 1 and transfer it to institution 2 and
then sell. How should one record all this? I tried the following but I'm
getting an error related to no positions found.
Thanks,
Jonathan
2015-02-01 open Assets:Invest:ATrade
2015-02-01 open Assets:Invest:ATrade:Cash
2015-04-01 * "Buy some shares of Hooli in April 2015"
Assets:Invest:ATrade 25 HOOL {10.00
USD, "first-lot"}
Assets:Invest:ATrade:Cash -250 USD
2017-03-01 open Assets:Invest:ZTrade
2017-03-01 open Assets:Invest:ZTrade:Cash
2017-04-01 * "Transfer from ATrade to ZTrade"
Assets:Invest:ATrade -25 HOOL
Assets:Invest:ZTrade 25 HOOL
2017-05-01 close Assets:Invest:ATrade
2018-05-03 * "Sell some shares of Hooli in May 2018"
Assets:Invest:ZTrade -25 HOOL {} @
22.00 USD
Assets:Invest:ZTrade:Cash
No position matches "Posting(account='Assets:Invest:ZTrade', units=-25
HOOL, cost=CostSpec(number_per=<class 'beancount.core.number.MISSING'>,
number_total=None, currency='USD', date=None, label=None, merge=False),
price=22.00 USD, flag=None, meta={'filename':
'/Users/jonathan/Documents/Finances/beandata/test.beancount', 'lineno':
22})" against balance (25 HOOL)
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/b3efe67c-a858-4c2c-af6b-26e7444dd9e1n%40googlegroups.com.