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/eeb72567-8e59-4965-8c17-2b32352e5122%40googlegroups.com.

Reply via email to