When I first got my query code working, the response was almost immediate. After reading the above comment I tried it again and ... slow! I then timed a response at 21 seconds. Later things got even worse with a failure and the following error report: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html>\n\t<...") at /usr/share/perl5/site_perl/Finance/Quote/AlphaVantage.pm line 73.
The code is running as desired. Thanks for the pointers. As a reference for others, here is the code that solved my problems: $q = Finance::Quote->new(); %quotes = $q->alphavantage(@stocks); The following line from my old Yahoo code had to be removed or commented out: $q->require_labels(qw/date high low last/);
I've installed the AlphaVantage module, but am having trouble getting it to work. These would seem to be the relevant Perl instructions: $q = Finance::Quote->new("AlphaVantage"); %quotes = $q->fetch("alphavantage",@stocks); Is there an obvious problem with these? Thanks for attacking the problem left by the abrupt departure of Yahoo!