On Wednesday, November 28, 2018 at 5:43:07 AM UTC+7, Patrick Ruckstuhl
wrote:
> 3) I'm planing to fetch prices on a daily basis and write them out as
> price directives so that if a price source disappears I still have all the
> previously fetched prices, does that make sense? Any easy way to do this
> with bean-price? Especially with updated intraday prices where I can't
> simply append the output of bean-price
>
Yes, it is easy. Simply append the output of bean-price. Don't run
bean-price when markets are open :). Problem solved: no intraday prices
used. I use the power of computers to run bean-price at 3am.
Anyway, there's nothing wrong with just using intraday prices, too.
Intraday prices aren't "wrong" and closing prices aren't "right". The
closing price is just the intraday price at 4:30.
1) I specify the price ccy twice, on the one hand in the lookup expression
> and on the other hand the Source needs to also fill this in when creating
> the SourcePrice. As far as I can tell only the one from the lookup is used,
> which makes sense for me as often the source will not know the price ccy.
> Should this get dropped from SourcePrice?
>
Dunno. Since the currency is required ("Supported format is
CCY:module/SYMBOL") I see what you're saying. I'm not sure if there's some
other entry point to SourcePrice or not.
> 2) I would like to convert all my prices into a base ccy. Is there any
> infrastructure around for something like this? I'm not talking about
> transitive prices, all I would need is to be able to convert a price into
> my base ccy based on an other conversion. What I'm thinking is something
> like
> * fetch price from Source in USD
> * using existing price data convert USD price into CHF
>
I'm not sure I understand what you're trying to do. Where do you want to
see this CHF? In bean-web or...? Don't you just set your operating_currency
to CHF? Anyway, it *does* sound like you're talking about transitive
prices. How is this different from transitive prices?
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/2a441de5-9a78-4fa7-8c94-1be7e5f20337%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.