And if I add the cost manually, it shows a "Transaction does not balance" 
error.

On Sunday, September 29, 2019 at 6:07:09 PM UTC+3, Dennis Golomazov wrote:
>
> Hi,
>
> I have a question. Imagine you buy bitcoins, so they are held at cost. 
> Then later you use them to buy something (so they go to Expenses: 
> subaccount nominated in bitcoins).
> How do you record that transaction? Ideally I want the gains/losses to be 
> realized.
> But If I do something like:
>
>    2013-06-01 * "Buy pizza"
>      Assets:Cryptocurrency:Coinbase:Bitcoin            -10000 BTC {}
>      Expenses:Pizza               10000 BTC
>
> beancount shows an error "No position matches...". 
> I assume that's because BTC were bought with USD, but now are "sold" to 
> BTC and not back to USD?
>
> This works:
>
>    2013-06-01 * "Buy pizza"
>      Assets:Cryptocurrency:Coinbase:Bitcoin            -10000 BTC {}
>      Expenses:Pizza               100 USD
>
> the cost gets imputed correctly. But the thing is that pizza might haven't 
> had a price in USD, it was nominated in bitcoins :) 
> What's the best way to handle these situations?
>

-- 
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/a7aa91f9-4042-4bfb-bdc1-01b50e04b645%40googlegroups.com.

Reply via email to