Disclaimer: I'm not an expert with this and may be wrong
In your case I understand that you don't want to keep cost basis
in expenses accounts. What I would do is sell BTC at a cost and
keep it without cost in Expenses. This is minimal beancount file
that shows it:
plugin "beancount.plugins.auto_accounts"
2018-08-07 * "Buy BTC"
Income:Salary -20 USD
Assets:Bitcoin 2 BTC {10 USD}
2019-08-07 * "Buy Pizza"
Assets:Bitcoin -1 BTC {10 USD}
Expenses:Pizza 1 BTC @ 20 USD
Income:Gains -10 USD
If you wanted to keep cost basis in the other account:
I think this topic was raised earlier this year. You can search
for "Moving assets with cost basis" in the mailing list to see a
solution.
The short answer is that when you do the transfer you have to put
cost basis explicitly inside {} (even if there is only one lot)
--
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/a7aa91f9-4042-4bfb-bdc1-01b50e04b645%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Beancount" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beancount/JT_wfZaUcbY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhN3GqQg3fo3yrMXoY3JAxOf2Rgm_-k7oiPb1ZVg6CYi8A%40mail.gmail.com.