Re: State of average cost booking?

2018-01-23 Thread Martin Blais
Actually, it gets parsed, but it doesn't get used, as the general lot
merging functionality should be common in AVERAGE booking and that's the
one booking method not implemented.
I'll make it generate an error for now.

On Mon, Jan 22, 2018 at 1:15 PM, Dennis Megaffin 
wrote:

> Hi Martin,
>
> I am a new beancount user. Just wondering if average cost booking is
> working yet?
>
> Is the merge flag now working? {*}
>
> Thanks for any and all update!
>
> -Dennis M
>
> P.S. Thanks for all your contributions!
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/f4297c13-f4c4-4d20-8026-cb134dd26871%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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhM06e6k49_R27aKENf6ACFC8LOHb-DK%3DmJAjWn%2BEQQSyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Currently having a problem with beanprice

2018-01-23 Thread Martin Blais
Are you running python3 setup.py install?
Are you using the same version of Python which runs bean-price?


On Tue, Jan 23, 2018 at 1:22 PM, keesjochem via Beancount <
beancount@googlegroups.com> wrote:

> I'm having some trouble getting the morningstar source to work. I'm
> probably doing something stupid, but can't really find what, so maybe
> someone can give a pointer.
> I installed the library by cloning https://github.com/hoostus/
> beancount-price-sources.git and then running python setup.py install.
>
> But when I try to run the examples I get an error:
>
> $ bean-price -e 'USD:hoostus_sources.morningstar/etfs:XASX:VEU'
>
> usage: bean-price [-h] [-e] [-v] [-d DATE] [-i] [-u] [-c] [-a] [-s] [-n]
>
>   [--cache CACHE_FILENAME] [--no-cache] [--clear-cache]
>
>   sources [sources ...]
>
> bean-price: error: Invalid source "USD:hoostus_sources.
> morningstar/etfs:XASX:VEU"
>
> Any ideas?
>
> cheers,
> Kees
>
> On Tuesday, January 16, 2018 at 8:13:27 AM UTC-8, Martin Blais wrote:
>>
>> https://bitbucket.org/blais/beancount/issues/210/add-option-
>> to-set-default-price-source-for
>>
>> On Tue, Jan 16, 2018 at 11:11 AM, Martin Blais  wrote:
>>
>>> On Sun, Jan 14, 2018 at 9:28 PM,  wrote:
>>>
 Thanks, and sorry if I didn't make this clear: I prefer not to use
 commodity directives, so everything can be automatically picked up by using
 --undeclared with bean-price.

 It seems like the price source has been hardcoded to default to yahoo
 if I'm not mistaken. So perhaps I'd have to do something like do some
 parsing to automatically produce commodity directives, and then get prices
 on those?

>>>
>>> There's no option to change the default at the moment, but one could
>>> easily be added. I think it should.
>>>
>>>
>>>


 On Sunday, January 14, 2018 at 6:12:26 PM UTC-8, Martin Blais wrote:
>
> The commodity directive allows you to specify the price source.
> e.g.
>
> 2001-05-24 commodity XSP
>   name: "iShares S&P 500 Index Fund (CAD Hedged)"
>   assets: "Stock"
>   price: "CAD:google/TSE:XSP"
>   export: "TSE:XSP"
>   quote: CAD
>
> So instead of "google/" here you'd use the name of the morningstar
> Python library.
>
>
> On Sun, Jan 14, 2018 at 8:51 PM,  wrote:
>
>> Thanks for this, very useful! A couple questions:
>>
>> 1) How do I get bean-price to use this by default? I don't use
>> commodity directives in my sources
>>
>> 2) Is there a way to automatically determine exchange and ticker with
>> morningstar so I don't have to manually find it for each ticker I have?
>>
>> Thanks again for sharing this!
>>
>> On Sunday, December 10, 2017 at 5:21:07 AM UTC-8,
>> jus...@ego-pulse.com wrote:
>>>
>>> I written a Morningstar price fetcher which I've been using for a
>>> few weeks: https://github.com/hoostus/beancount-price-sources
>>>
>>> One nice benefit (for me) is they aggregate multiple exchanges,
>>> especially non-US ones.
>>>
>> --
>> 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/18853291-34f2-4e
>> fd-adee-e77edd66dd87%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.
 To post to this group, send email to bean...@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/ms
 gid/beancount/e377cf48-fb23-47ce-8f7c-d55cef5ed5be%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+unsubscr...@googlegroups.com.
> To post to this group, send email to beancount@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/2b62ee12-ddc3-4093-97be-aadb21387567%40googlegroups.com
> 

Re: Currently having a problem with beanprice

2018-01-23 Thread keesjochem via Beancount
I'm having some trouble getting the morningstar source to work. I'm 
probably doing something stupid, but can't really find what, so maybe 
someone can give a pointer.
I installed the library by cloning 
https://github.com/hoostus/beancount-price-sources.git and then running 
python setup.py install.

But when I try to run the examples I get an error:

$ bean-price -e 'USD:hoostus_sources.morningstar/etfs:XASX:VEU'

usage: bean-price [-h] [-e] [-v] [-d DATE] [-i] [-u] [-c] [-a] [-s] [-n]

  [--cache CACHE_FILENAME] [--no-cache] [--clear-cache]

  sources [sources ...]

bean-price: error: Invalid source 
"USD:hoostus_sources.morningstar/etfs:XASX:VEU"

Any ideas?

cheers,
Kees

On Tuesday, January 16, 2018 at 8:13:27 AM UTC-8, Martin Blais wrote:
>
>
> https://bitbucket.org/blais/beancount/issues/210/add-option-to-set-default-price-source-for
>
> On Tue, Jan 16, 2018 at 11:11 AM, Martin Blais  > wrote:
>
>> On Sun, Jan 14, 2018 at 9:28 PM, > 
>> wrote:
>>
>>> Thanks, and sorry if I didn't make this clear: I prefer not to use 
>>> commodity directives, so everything can be automatically picked up by using 
>>> --undeclared with bean-price.
>>>
>>> It seems like the price source has been hardcoded to default to yahoo if 
>>> I'm not mistaken. So perhaps I'd have to do something like do some parsing 
>>> to automatically produce commodity directives, and then get prices on those?
>>>
>>
>> There's no option to change the default at the moment, but one could 
>> easily be added. I think it should.
>>
>>  
>>
>>>
>>>
>>> On Sunday, January 14, 2018 at 6:12:26 PM UTC-8, Martin Blais wrote:

 The commodity directive allows you to specify the price source.
 e.g.

 2001-05-24 commodity XSP
   name: "iShares S&P 500 Index Fund (CAD Hedged)"
   assets: "Stock"
   price: "CAD:google/TSE:XSP"
   export: "TSE:XSP"
   quote: CAD

 So instead of "google/" here you'd use the name of the morningstar 
 Python library.


 On Sun, Jan 14, 2018 at 8:51 PM,  wrote:

> Thanks for this, very useful! A couple questions:
>
> 1) How do I get bean-price to use this by default? I don't use 
> commodity directives in my sources
>
> 2) Is there a way to automatically determine exchange and ticker with 
> morningstar so I don't have to manually find it for each ticker I have?
>
> Thanks again for sharing this!
>
> On Sunday, December 10, 2017 at 5:21:07 AM UTC-8, jus...@ego-pulse.com 
> wrote:
>>
>> I written a Morningstar price fetcher which I've been using for a few 
>> weeks: https://github.com/hoostus/beancount-price-sources
>>
>> One nice benefit (for me) is they aggregate multiple exchanges, 
>> especially non-US ones.
>>
> -- 
> 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/18853291-34f2-4efd-adee-e77edd66dd87%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 .
>>> 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/e377cf48-fb23-47ce-8f7c-d55cef5ed5be%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+unsubscr...@googlegroups.com.
To post to this group, send email to beancount@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/2b62ee12-ddc3-4093-97be-aadb21387567%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.