On November 29, 2018 4:54:21 AM GMT+01:00, Justus Pendleton 
<[email protected]> wrote:
>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.

Not really I'm accessing different markets which have different times and some 
don't have a price every day, so the price date might be a previous day.

>
>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?

I'm looking at normalizing my "stored" prices instead of converting transitive 
afterwards which should be simpler.

Right now I'm creating my price db from an external system and just create a 
file with price statements and I'm now looking to get rid off that system and 
reuse as much existing functionality as possible.

-- 
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/A1CEDB61-6EA9-4709-82F8-ADC1342075EE%40ch.tario.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to