[GNC] gnucash-user Digest, Vol 189, Issue 2

Daniel Rosenberg dnlrsnbrg at gmail.com
Sun Dec 2 08:20:47 EST 2018


> Thank you so much for that. I added the line and now I am able to retrieve
> quotes. I missed the original message in september, so thank you very much
> for repeating it. I added a screenshot with the modification.


[image: grafik.png]


>
> ---------- Forwarded message ----------
> From: nvsoar <nvsoar at charter.net>
> To: gnucash-user at gnucash.org, eric.coates at sky.com
> Cc:
> Bcc:
> Date: Sat, 1 Dec 2018 15:29:28 -0800
> Subject: Re: [GNC] When will there be a new Finance::Quote version on CPAN?
> On 12/01/18 10:47, Eric Coates wrote:
> > Hi
> >
> > I am about to expose my ignorance - sensitive people should look away
> > now!
> >
> > I have found the file referred to (I think); on my Ubuntu system I
> > found it at
> >
> > ~/.cpan/build/Finance-Quote-1.47-JrEF3h/lib/Finance/quote
> >
> > The last few lines of the file are:
> >
> >           # divide USD quotes by 100 if suffix is '.IL'
> >                 if ( ($suffix eq '.IL') && ($info{$stock,'currency'}
> > eq 'USD') ) {
> >                     foreach my $field (
> > $quoter->default_currency_fields ) {
> >                         next unless ( $info{ $stock, $field } );
> >                         $info{ $stock, $field } =
> >                             $quoter->scale_field( $info{ $stock,
> > $field },
> >                                                   0.01 );
> >                     }
> >                 }
> >             }
> >         }
> >         else {
> >             $info{ $stock, 'currency' } = 'USD';
> >         }
> >
> >         $info{ $stock, "currency_set_by_fq" } = 1;
> >
> >         $quantity--;
> >         select(undef, undef, undef, .7) if ($quantity); sleep(15);
> >     }
> >
> >     return wantarray() ? %info : \%info;
> > }
> >
> > Unfortunately I am completely ignorant of Perl (I guess that's what it
> > is). Could you please indicate exactly where the 'sleep 15' should be
> > entered. And, if it's to be indented, is the indentation done with
> > spaces or tabs and is the number of spaces/tabs critical.
> >
> > Many thanks
> >
> > Eric
> >
> > And, because I enjoy coincidences, , best wishes from the Soar Valley
> > - the Soar being our local river
>
> snip
>
> Eric,
>
> See the mod I made in your message above at the "select(undef, undef,
> undef, .7) if ($quantity); line".
>
> Attached to this message are: a modified version of AlphaVantage.pm ( a
> text file) for my Win10 system; and an image of Ameet Sengar's message
> of last Sept.  Check and set the properties of AlphaVantage.pm to read
> only if you choose to replace that file as a unit.
>
> Have no idea why Sengar's message wasn't included in the 29Nov note.
>
> Please be aware that while I have an Ubuntu system, I have had no
> experience with Gnucash on that system.
>
> All the best, nvsoar
>
> _______________________________________________
>
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grafik.png
Type: image/png
Size: 4342 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20181202/b12a02ae/attachment.png>


More information about the gnucash-user mailing list