While F::Q is being actively maintained, development moved to https://github.com/finance-quote/finance-quote some years back.
Sorry, but your code is using Finance::QuoteHist. This is the SourceForge project site for Finance::Quote, which is an entirely different module. See the Finance::QuoteHist module's README file for information on reporting bugs and issues.
When I attempt to pull a quote on symbol GSUM, my script throws this error and stops executing the main program: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/local/share/perl5/5.32/Finance/QuoteHist/Yahoo.pm line 227. Here's the code in question: sub { my $data = shift; $data = decode_json($data); my $data_result = $data->{chart}{result}[0] || {}; if ($target_mode eq "quote") { return $json_quote_parse->($data_result);...
Thank you for your response Martin. There has been recent work done in preparation for releasing v1.50. This included attempting to identify those modules that are no longer working. Some of those have been updated, while some have been removed. In testing v1.50, I was able to get data for GB00B4XB7L79 from the FTFunds.pm module. Odd, since it was not one of the modules updated. I would like to update the test file, since most of the funds used as test cases are no longer valid. - Bruce S
I was the original author of UK funds (which includes FT funds) but since I sold all my funds and shares several years ago I no longer need this functionality and have not maintained it. As it works basically by screen-scraping, any change to the underlying web-pages potentially requires a change to the FT funds module. It will now be hopelessly out of date and most likely needs a fundamental rewrite from scratch. I’m now fully occupied with other projects and don’t have the time nor the need for...
Funds can tricky to get quotes for. While taking a quick look at this, the FT Funds module in Finance::Quote has not been modified since 2010 and likely needs to be updated. For instance to get the data from markets.ft.com, the suffix :GBP needs to be appended to the ISIN for this fund. Suggest you go to https://github.com/finance-quote/finance-quote and open an issue. We are getting ready to release Finance::Quote v1.50, but this may be an easy enough fix to be included in v1.51.
Hi, I'm trying to retrieve a quote for "GB00B4XB7L79". If you google it you find it in many pages including yahoo, FT, morningstar etc... so I would assume that it should be easy to find. Any ideas ? thanks
Hello, Don't let your bank balance stop you. get the personal loan for bad credit Get personal loans for bad credit for short term credits. Apply now for the instant money you need without credit card check. Fill the quick application form and get a loan up to $ 10000.
Hello, Don't let your bank balance stop you. get the personal loan for bad credit for short term credits. Apply now for the instant money you need without credit card check. Fill the quick application form and get a loan up to $ 10000.
Hello, Don't let your bank balance stop you. get the personal loan for bad credit (/http://shorttermcredits.com/personal-loans-for-bad-credit/)for short term credits. Apply now for the instant money you need without credit card check. Fill the quick application form and get a loan up to $ 10000.
Thank you Paul. I was not able to get Yahoo JSON to work. I will revisit it after hearing of your success. Were you (or any other users) able to get it to work with any other content provider?
I ditched fetching from AlphaVantage for the same reasons you mentioned. I'm finding success with Yahoo JSON (for now).
Initially I had much success with the AlphaVantage service, however over the last 60 days I am getting mostly timeouts. My success rate is only about 5% of the requests get back a response. I suspect the service is overwhelmed. I am wondering if others are experiencing the same problem. Is there a work around? Finance::Quote seems to support many data services, but I am unable to get any of them to work reliability. According to the Quote.pm file I am using version 1.42. Thank you, James.
Perry Leopold, I have added open, high, low + close to YahooJSON.pm. Also div_yield eps pe year_range. The Pull Reqest asking for this mod to be included in Finance::Quote is: https://github.com/finance-quote/finance-quote/pull/79 If you'd like to test without having to wait for it to be included in the official Finance::Quote module available from CPAN: Enter in a browser: https://github.com/goodvibes2/finance-quote/blob/FqIss78YahooJson/lib/Finance/Quote/YahooJSON.pm click on the Raw button which...
Hello, following the demise of Yahoo - it looks like currency quotes are still not working with the new version. Is there a plan to re-implement the feature? I can try to have a crack at it if someone has pointers regarding a good / free price source on FX. Thanks,
I noticed v1.47 tweaked the Yahoo_JSON module and gave it a try. It works, but the only price data it returns is the last price. Is there a way to get the open/high/low/close data as well? e.g. calling for data on TLT with Yahoo_JSON, I get: 'TLTcurrency' => 'USD', 'TLTname' => 'TLT (iShares 20+ Year Treasury Bond )', 'TLTlast' => '124.36', 'TLTvolume' => 4991029, 'TLTisodate' => '2017-11-13', 'TLTtype' => 'ETF', 'TLTexchange' => 'Sourced from Yahoo Finance (as JSON)', 'TLTdate' => '11/13/2017',...
I set up Alpha Vantage with script v1.42 and it seems to be working for my stocks and Vanguard mutual funds and ETFs. I'll report back if I see any glitches. Thanks!
Seems to be working fine today. Data output is correct so far. Will continue testing.
I was checking GLD. Won't be able to see if I can repeat this until tomorrow now that the market is closed and the call returns today's data correctly. Will see how it behaves after the market opens tomorrow.
Perry Leopold perryleopold@users.sf.net writes: v1.43. hmm... shouldn't happen. Can you give me the symbol you checked ? best erik colson
v1.43.
Et voila! You are correct, sir. Mea culpa. Thank you!
Perry Leopold perryleopold@users.sf.net writes: I can get the current day's data after the market closes using the default TIME_SERIES_DAILY, but during the day while the market is open the data returned is for the previous day. No joy there. which version of F::Q are you using? I ckecked the code / api json returned and this shouldn't happen. best erik colson
Perry Leopold perryleopold@users.sf.net writes: OK. FYI, editiing the URL doesn't seem to work for some reason. When I change TIME_SERIES_DAILY to TIME_SERIES_INTRADAY I get the following err msg: 'Invalid API call. Please retry or visit the documentation (https://www.alphavantage.co/documentation/) for TIME_SERIES_INTRADAY This is odd, as it is passing a valid function according to the docs. The AV doc page offers no additional insight. you need to add the 'interval' parameter in the call. Check...
OK. FYI, editiing the URL doesn't seem to work for some reason. When I change TIME_SERIES_DAILY to TIME_SERIES_INTRADAY I get the following err msg: 'Invalid API call. Please retry or visit the documentation (https://www.alphavantage.co/documentation/) for TIME_SERIES_INTRADAY This is odd, as it is passing a valid function according to the docs. The AV doc page offers no additional insight. I can get the current day's data after the market closes using the default TIME_SERIES_DAILY, but during the...
Perry Leopold perryleopold@users.sf.net writes: AlphaVantage seems great in theory, but pretty unreliable in practice. I contacted AlphaVantage by email. I hope we can figure something out with them.. Is GOOGLE an alternative? AFAIK not. The Google finance API has been shut down in 2012. best erik colson
Perry Leopold perryleopold@users.sf.net writes: Erik, any suggestion for how to set the function and datatype parameters passed without having to edit the URL hard-coded in AlphaVantage.pm? It would be good to be able to toggle between TIME_SERIES_DAILY and TIME_SERIES_INTRADAY on the fly, get TIME_SERIES_MONTHLY, etc.. Getting data in CSV format on-demand would be useful as well. TIA! This would be out of purpose for F::Q. But probably would be cool for a new cpan module "AlphaVantage::QuoteHist",...
Erik, any suggestion for how to set the function and datatype parameters passed without having to edit the URL hard-coded in AlphaVantage.pm? It would be good to be able to toggle between TIME_SERIES_DAILY and TIME_SERIES_INTRADAY on the fly, get TIME_SERIES_MONTHLY, etc.. Getting data in CSV format on-demand would be useful as well. TIA!
Paul Polak linux_slacker@users.sf.net writes: Re: GOOGLE I had the same thought. I threw something together last night that parses from HTML google finance (the JSON unfortunately had some malformed errors). I can submit to the repository if people would like? I'm also working on a module for finance.yahoo.com ever since Yahoo removed the previous funcationality. I checked for Google some years ago and their terms of service explicitely denied scraping page contents... It might work some time, but...
Re: GOOGLE I had the same thought. I threw something together last night that parses from HTML google finance (the JSON unfortunately had some malformed errors). I can submit to the repository if people would like? I'm also working on a module for finance.yahoo.com ever since Yahoo removed the previous funcationality.
I also get that "malformed JSON" error on certain symbol requests. This morning I got a new one: errormsg' => 'json_data doesn\'t contain Last Refreshed'. This occured after doing a symbol request, which was successful, and then repeating the exact same request, which then yielded the errormsg. AlphaVantage seems great in theory, but pretty unreliable in practice. Is GOOGLE an alternative?
yep... we reached the servers limit..
The slowness is due to the API not allowing to query multiple symbols at once. Also we have reached the server request limit which makes requests fail.. I have contacted alpavantage about this issue.
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.
This works, but.... it's very slow to get a response from AlphaVantage, like 10 to 15 seconds. Any ideas on how to get a faster response? TIA.
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/);
Please check out the test file t/alphavantage.t for correct querying of quotes. You will need to set ONLINE_TEST=1 to actually run tests
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!
A new module AlphaVantage.pm has been added today, which supports quite a bunch of stocks, but not funds nor currencies. Upgrade to version 1.40 and try it out.
Finance::Quote fails to get any quotes on GnuCash, I think following Yahoo's discontinuation of the quotes service. Any suggestion on how to fix it?
There is a claim on this yahoo forum that the service has been discontinued. https://forums.yahoo.net/t5/Yahoo-Finance-help/http-download-finance-yahoo-com-d-quotes-csv-s-GOOG-amp-f/td-p/387096
Same here, but just for the past day. Prior to that it was working fine. Looks like a change or temporary outage at Yahoo.
Same here. Looks like a change or outage at Yahoo.
Perl 5.18 on Ubuntu 14.04. Finance::Quote v1.37 I implemented a quote program via Perl and I'm not getting any data back for these symbols since Aug 22, 2017. The error messages are: Using /home/chuck/perl/chuck/quote/quoteprod.db getquote ERROR: No data found for GOOGL () getquote ERROR: No data found for AAPL () getquote ERROR: No data found for IBM () getquote ERROR: No data found for DLPH () getquote ERROR: No data found for FPHAX () getquote ERROR: No data found for PFE () getquote ERROR: No...
Perl 5.18 on Ubuntu 14.04. Finance::Quote v1.37 I implemented a quote program via Perl and I'm not getting any data back for these symbols since Aug 22, 2017. The error messages are: Using /home/chuck/perl/chuck/quote/quoteprod.db getquote ERROR: No data found for GOOGL () getquote ERROR: No data found for AAPL () getquote ERROR: No data found for IBM () getquote ERROR: No data found for DLPH () getquote ERROR: No data found for FPHAX () getquote ERROR: No data found for PFE () getquote ERROR: No...
Perl 5.18 on Ubuntu 14.04. I implemented a quote program via Perl and I'm not getting any data back for these symbols since Aug 22, 2017. The error messages are: Using /home/chuck/perl/chuck/quote/quoteprod.db getquote ERROR: No data found for GOOGL () getquote ERROR: No data found for AAPL () getquote ERROR: No data found for IBM () getquote ERROR: No data found for DLPH () getquote ERROR: No data found for FPHAX () getquote ERROR: No data found for PFE () getquote ERROR: No data found for SPHIX...
I implemented a quote program via Perl and I'm not getting any data back for these symbols since Aug 22, 2017. The error messages are: Using /home/chuck/perl/chuck/quote/quoteprod.db getquote ERROR: No data found for GOOGL () getquote ERROR: No data found for AAPL () getquote ERROR: No data found for IBM () getquote ERROR: No data found for DLPH () getquote ERROR: No data found for FPHAX () getquote ERROR: No data found for PFE () getquote ERROR: No data found for SPHIX () getquote ERROR: No data...
Hi - I've just posted a Bloomberg module on https://github.com/alex314159/PerlFinanceQuoteBloomberg...
I want to write my own custom module. Is there a way I can force F:Q to load my module...
On 23 Jun 2014, at 20:40, stupac8908 stupac8908@users.sf.net wrote: Good Afternoon,...
Good Afternoon, I have recently inherited a perl codebase that leans on Finance::Quote...
Hi, I'm surprised that support for Google Finance isn't included in Finance::Quote...
Apparently there isn't enough in the title for anyone to help. Maybe you'd like to...