Simple instructions to add my own quote source
Ken Farley
farleykj at gmail.com
Wed Nov 27 23:39:05 EST 2013
gnc-fq-dump does not list my module, "usbonds". So that would appear to
be the immediate problem.
I've looked at about a dozen of the different F::Q modules, particularly
those that work, like Yahoo, Fidelity, Fool, etc. I truly don't see
anything that I am missing.
I have a "methods" subroutine, which consists of one statement: "return
(usbonds=>\&usbonds) ;"
I have a "labels" subroutine, which returns a list of the labels used in
my return hash.
I have the subroutine of interest, "usbonds" which is supposedly what's
going to do all my stuff and return either %quotes or \%quotes,
depending on how things go.
I have the (presumably?) required documentation stuff at the end, with
NAME, SYNOPSIS, etc. sections, same format as all the other modules.
I don't see anything else that is common to all the "working" modules
that is missing in mine.
Is there anyplace that actually documents what is needed to interface
with Gnucash?
Ken
On 11/27/13 2:30 PM, Derek Atkins wrote:
> farleykj <farleykj at gmail.com> writes:
>
>> Ah, I attempted to obtain a quote for a sample bond with the command
>>
>> "gnc-fq-dump usbonds \$100-EE-1993-10"
>>
>> and get the response
>>
>> "No results found for stock $100-EE-1993-10"
>>
>> Which would seem to indicate that gnucash is not aware of all the offerings
>> of my particular installation of Finance::Quote. At least that's what I
>> interpret this response to be.
> I would not interpret it that way at all. I would interpret it as the
> input code '$100-EE-1993-10' isn't found correctly.
>
> You can verify that GnuCash/F::Q can see your grabber by just running
> "gnc-fq-dump" without any arguments. Does 'usbonds' show up there? If
> so, then the bug is in your grabber and/or input values.
>
>> So, where do I go from here? I thought the difficult part of this would be
>> writing the Perl stuff to do it.
> That is the hard part.
>
>> Is there anywhere I can look for an example of something that works to do
>> this? I must be missing something crucial.
> Look at any of the other grabbers.
> Run gnc-fq-dump (by itself) to make sure F::Q sees it
> Then get gnc-fq-dump working; figure out what input you need to provide.
>
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
> -derek
>
More information about the gnucash-user
mailing list