;; -*- mode: org; mode: beancount; coding: utf-8 -*-option "operating_currency" "USD"plugin "beancount.plugins.auto_accounts"plugin "beancount.plugins.unrealized" "Unrealized"2005-05-24 * "Home Purchase"Assets:Home 1 HOUSE {100000.00 USD}Liabilities:Mortgage
<unrealized_gains>:0: A valid price for HOUSE/USD could not be found
--
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 post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/27f70f8b-694d-4f0e-bece-bf84c45904f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I had to use the add_implicit_prices plugin (https://bitbucket.org/blais/beancount/src/5e2dcbfc81b15cfbaa9d743ee87d8f4f26eaf0cb/src/python/beancount/plugins/implicit_prices.py?at=default&fileviewer=file-view-default) to turn entries like these into prices.
You should try out my unrealized_periodic plugin (https://github.com/xentac/beancount-plugins-xentac). Instead of a single transaction, I create monthly transactions tracking gains over time. It uses the same calculation code, it's just an extension to remove the old unrealized amount and add the new unrealized amount in the same transaction each month. I like it because it better represents gains over time. Ideally it would update gains every time the price changes, but that leads to too many transactions and the plugin goes really slowly.
On Thu, Oct 13, 2016 at 1:11 PM Matthew Harris <mharr...@gmail.com> wrote:
Hi, Martin. I know you claimed to have eliminated a bunch of "a valid price for … could not be found" errors from the unrealized gains plugin a year ago, but I'm still getting a bunch of them in my file. It's so many that I'm not even sure where to begin.--Okay, here's one that should be easy. It's not my common case, but it's easy to isolate because I only have one transaction with it:;; -*- mode: org; mode: beancount; coding: utf-8 -*-option "operating_currency" "USD"plugin "beancount.plugins.auto_accounts"plugin "beancount.plugins.unrealized" "Unrealized"2005-05-24 * "Home Purchase"Assets:Home 1 HOUSE {100000.00 USD}Liabilities:MortgageWhen I run bean-query on this file, I get<unrealized_gains>:0: A valid price for HOUSE/USD could not be foundAm I expressing this transaction correctly, and is it a bug that I'm still seeing this error?
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+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/27f70f8b-694d-4f0e-bece-bf84c45904f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAFFHUgscsNwrnZhSDHGS34_QeEBy3NFfjo0rz%3Dxo130usRG0hQ%40mail.gmail.com.
2005-05-24 * "Home Purchase"Assets:Home 1 HOUSE {100000.00 USD}
Liabilities:Mortgage -100000.00 USD
2005-05-24 * "Home Purchase"Assets:Home 1 HOUSE {100000.00 USD} @ 100000.00 USDLiabilities:Mortgage -100000.00 USD
2005-05-24 * "Home Purchase"Assets:Home 1 HOUSE {100000.00 USD}
Liabilities:Mortgage -100000.00 USD2005-05-24 price HOUSE 1000000.00 USD
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/27f70f8b-694d-4f0e-bece-bf84c45904f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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.
In the Language manual, you say a Price directive is synthesized when a posting has a cost or price. But I get the "A valid price for HOUSE/USD could not be found" warning with2005-05-24 * "Home Purchase"Assets:Home 1 HOUSE {100000.00 USD}Liabilities:Mortgage -100000.00 USD
and2005-05-24 * "Home Purchase"Assets:Home 1 HOUSE {100000.00 USD} @ 100000.00 USDLiabilities:Mortgage -100000.00 USD
but not2005-05-24 * "Home Purchase"Assets:Home 1 HOUSE {100000.00 USD}Liabilities:Mortgage -100000.00 USD2005-05-24 price HOUSE 1000000.00 USD
What am I doing wrong? A short example in the Cookbook would be helpful.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/9e4a9c17-5903-4656-a88b-1b1539af8249%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/5b6653dd-ce41-45ae-a10a-a74d75c5a93c%40googlegroups.com.