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?

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, <[email protected] <javascript:>> 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, [email protected] 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beancount/18853291-34f2-4efd-adee-e77edd66dd87%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/beancount/18853291-34f2-4efd-adee-e77edd66dd87%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> 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 [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/e377cf48-fb23-47ce-8f7c-d55cef5ed5be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to