On Thu, Nov 29, 2018 at 9:06 AM Justus Pendleton <[email protected]> wrote:

> On Thursday, November 29, 2018 at 6:49:30 PM UTC+7, Patrick Ruckstuhl
> wrote:
>>
>> 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.
>>
>
> Sure, I do that, too. I'm still not seeing the problem. Run bean-price and
> use the price at that time. Why does it matter if you store an intraday
> price? What do you think happens when you buy or sell something in
> beancount? The intraday price gets added to the price map. I don't think
> beancount is really meant for use cases where the difference between the
> price at 3pm and 4:30pm is material.
>

That's correct.
(Well, the correct price will be attached to the Posting object, but for
computing market value, there's one price/day.)


Anyway, it is really bothers you to have intraday prices then wait a day,
> or a week, and then use bean-price to get the prices from 2 or 3 days using
> the -d parameter once everything is closed & finalized.
>

For intra-day values you can upload your portfolio contents to a google
sheets doc and feed live prices.
That's what I do.
My code for it is located here (it's a little bit custom, you may need to
add similar metadata fields):
https://bitbucket.org/blais/beancount/src/tip/beancount/projects/export.py


>
> Or run bean-price twice a day (or four times a day) and only fetch prices
> for markets that are closed when you run it.
>
> I'm honestly kind of struggling to understand what explicit support you're
> looking for from bean-price here. Can you elaborate on that a bit? What's
> the exact usage you envision from beancount?
>

I'm also a little bit confused.


>

-- 
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/CAK21%2BhPP_6Z0MX-Su3-%3DdHBR4REU-WUgd6PLmmxN-wTrE26E6g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to