Simple instructions to add my own quote source

Derek Atkins warlord at MIT.EDU
Mon Nov 25 09:40:45 EST 2013


Hi,

Ken Farley <farleykj at gmail.com> writes:

> Hey, Derek.
>
> I did in fact write a quick script to execute the query you suggested. It
> shows my added source, "usbonds" in the long list of names.
> So this still befuddles me as to why GNUcash doesn't see it. I've even killed
> all the daemon processes for gnucash and restarted it, in the hopes it would
> update the sources, but to no avail.
>
> Is there some odd little thing I need to do with GNUcash itself to get it to
> see my amateurish quote source? Maybe there's some sort of interface
> declaration I botched up?

I don't know.  Try using gnc-fq-dump to see if it can get quotes that
gnucash can use?

-derek


> On 11/24/13 1:41 PM, Derek Atkins wrote:
>
>     Hi,
>     
>     On Sun, November 24, 2013 12:35 pm, farleykj wrote:
>     
>         I'd like to be able to automatically download prices for my EE series US
>         Federal Bonds. I've put together a perl module that obtains these prices
>         for
>         me, given the issue date, series, etc.
>         The problem is, I can't, despite all my efforts and a lot of searching,
>         get
>         Gnucash to "see" this new source.
>         I've added the module to the Quote::Finance script directory structure, as
>         "Quote::Finance::USBonds".
>         Issuance of the command "perl -e 'use Finance::Quote::USBonds'" doesn't
>         return any errors.
>         
>         I'm running Gnucash 2.4.13 on Mac OSX.
>         Perl is v5.12.4
>         
>         Are there any instructions as to how to get Gnucash to know about a new
>         quote source I've added? Is there some esoteric inclusions I need to get
>         the
>         code to work or be recognized?
>         
>     You need to update F::Q to make sure it knows about your new source.
>     Most likely right now it doesn't, and therefore is not reporting its
>     presence to GnuCash.
>     
>     For example, this code needs to report your quote grabber:
>     
>     my $q = Finance::Quote->new;
>     my @sources = $q->sources();
>     printf "Available sources are: \n     %s\n\n", join(' ', @sources);
>     
>     Once it does, GnuCash can see it and will be able to use it.
>
>         Would it be advisable for me to post the actual Perl code?
>
>         -----
>         Ken Farley
>         
>         Please remember to CC this list on all your replies.
>         You can do this by using Reply-To-List or Reply-All.
>         
>     -derek
>

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-user mailing list