On November 29, 2018 3:13:13 PM GMT+01:00, Martin Blais <[email protected]> wrote:
>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.
>

Let my try to explain what I'm trying to do, 
maybe I'm looking at things wrongly.
I would like to have a local price database. I do this with beancount files 
with price directives. What I'm now looking at is how to update this price 
files. They basically contain one entry per day and are updated daily. But on a 
daily run it can return a price date which already exists and I'm looking at a 
way to update (or maybe ignore) that entry.

I would also like all the price directives be in my base ccy as this then 
allows me simple reports as I know that I have prices to base ccy for 
everything. Here the problem is that some price sources will return the price 
in another ccy and I have to first convert it into my base ccy before creating 
the price entry.

I can create a script which does all that thing, I wad just wondering if there 
is a better/easier way than to create my own script.

-- 
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/47B71B9B-C082-41A7-AB6B-67E40504D6C5%40ch.tario.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to