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',...
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.
v1.43.
Et voila! You are correct, sir. Mea culpa. Thank you!
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...
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!
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?