New Canadian source for price quotes

Linas Vepstas linas@linas.org
Fri, 29 Jun 2001 00:38:28 -0500


On Fri, Jun 29, 2001 at 01:07:20AM -0400, James A. Treacy was heard to remark:
> Are you refering to the mods needed for gnucash to recognize this new
> source? 

Yes.

> If you want, I can send in a patch which will enable this source,
> as well as the other new ones implemented in the latest version of

Yes, that would be great!  Unless someone else volunteers and says 'its
so easy I've done it already.'


> The maintainer of finance::quote added a method to the latest version
> which returns a list of all the quote sources. This could be used
> to generate the list of quote source in gnucash at runtime. Since

Ohh, that's great!

> only the short names of the sources is returned, the full name of
> the source would not be available. It would be better if
> finance::quote returned a hash of with the keys pointing to the full
> name of the source.

Hmm, sounds like we need to add that.

> I may not have explained that well, but an example should make it
> clear. The method could return a hash like the following:
> ('troweprice' =>  'T. Rowe Price',
>  'fidelity'   =>  'Fidelity Investments',
> )

Yep.

> I haven't put much time into this so still am not positive this is all
> that is needed from finance::quote to implement this. Do you feel
> this would be a useful change? 

Yes.

> One potential trouble spot is what to
> do if a quote source disappears from finance::quote. This is something
> that could also be a problem with the current setup.

Hmmm . Urghhh.
-- 
Linas Vepstas -- linas@gnumatic.com -- http://www.gnumatic.com/