Get FinancialData price history?

I’m running 11.0.1 under Linux. Here’s what I get:

DateListPlot[
  Entity["Financial", "NASDAQ:FB"]["Close", 
   "Date" -> Interval[{DateObject[{2005}], Today}]]];

DateListPlot::ldata: Missing[RetrievalFailure] is not a valid dataset or list of datasets.

FinancialData["NASDAQ:FB", "Lookup"]

{}

Many stocks work, but some do not (FB, SNAP, KHC for example)

Thanks,
Joe

I found another way on the web to get ticker price data (even intraday is possible with this approach as unit of time is 1 sec. 1800=30minutes)

In[20]:= GetPriceData[stocksymbol_, exchangesymbol_, interval_, 
   numperiod_, parameters_] := 
  "http://www.google.com/finance/getprices?q=" <> 
   ToString[stocksymbol] <> "&x=" <> ToString[exchangesymbol] <> 
   "&i=" <> ToString[interval] <> "&p=" <> ToString[numperiod] <> 
   "&f=" <> ToString[parameters] <> "";

In[21]:= PriceData = 
  Import[GetPriceData["QQQ", "NASDAQ", "1800", "10d", "d,c"]];

In[22]:= PriceData[[9 ;; Length[PriceData], 2]]

Out[22]= {138.391, 138.52, 138.39, 138.395, 138.31, 138.385, 138.321, \
138.16, 138.26, 138.22, 138.245, 138.355, 138.32, 138.4, 138.11, \
137.97, 137.96, 138.255, 138.195, 138.26, 138.341, 138.36, 138.38, \
138.29, 138.37, 138.32, 138.4, 138.01, 137.635, 137.54, 137.54, \
137.7, 137.68, 137.84, 137.84, 137.97, 138.2, 138.26, 138.15, 138.15, \
138.29, 138.41, 138.38, 138.312, 138.34, 138.48, 138.6, 138.52, \
138.52, 138.5, 138.63, 138.53, 138.57, 138.441, 138.6, 138.64, \
138.91, 138.9, 139.06, 138.89, 138.79, 138.76, 138.77, 138.9, 138.97, \
138.81, 138.92, 138.94, 139.04, 139.38, 139.37, 139.06, 139.2, \
139.287, 139.39, 139.481, 139.47, 139.465, 139.395, 139.395, 139.4, \
139.46, 139.62, 138.53, 138.12, 137.99, 137.26, 137.4, 137.66, \
137.405, 137.64, 137.411, 137.16, 136.83, 136.71, 136.65, 136.07, \
136.05, 136.53, 137.19, 137.121, 137.22, 136.71, 136.879, 136.9, \
136.86, 137.23, 137.54, 137.33, 137.309, 137.26, 137.72, 138.04, \
138.19, 138.21, 138.14, 138.22, 138.26, 138.34, 138.29, 138.24, \
138.255, 138.26, 137.92, 137.825, 138.145, 138.58, 138.62, 138.55, \
138.69, 138.8, 138.886, 138.86, 138.86, 138.793, 138.87, 138.918, \
138.94, 139}

Please note that I’m still having issues today with

DateListPlot[
 Entity["Financial", "NASDAQ:FB"]["Close", 
  "Date" -> Interval[{DateObject[{2005}], Today}]]]

about 40 equities work, but the following fail as mentioned above (basically there is no data):

KHC, FB, FSRVX, MWEMX, MWTSX, SNAP.

Could it be the data server that I’m drawing from?? Is there a way to change servers?

Hi Sridev, Thanks for the pointer! It looks like about 80 days is as far as you can look back (or am I confused?) Also, I can’t figure out how to look up mutual funds.

-Joe

FinancialData appears to work again. i havent tried all the options and settings..For example, when i tried FinancialData[“GE”,{2016}], it gives daily data starting from jan 1, 2016 as expected. Thanks to wolfram team to make the function work again. it will be nice to know details of where they are sourcing it..(is yahoo api back on or is it a different source?)

thanks
SR

The Yahoo! Finance API is still (permanently, as far as anyone knows) gone.

I’m glad it’s meeting your needs right now — overall, FinancialData is in decent shape, but not as robust as we want it to be. We’re in the process of switching it over to use WolframAlpha financial sources under the hood, and will announce when that transition is complete.

Are you finding that financial data functions work for you now? (i.e. using FinancialData[])

Jeff Lapides

Are you finding that FinancialData works? I continue to have problems with it.

Jeff Lapides

daily price data from a start date to end date is what i normally use this function for. and it appears to work normally again since i posted that update on this thread earlier…

Yahoo finance API is not available anymore. I have moved to MarketXLS after this change, much more reliable data.

FinancialData[sym, “Close”, startdate]

worked for the past few weeks, but is failing again as of yesterday.

agree. was failing 1 or 2 days ago…it seems to work ok today, if you want to check

Hi Sridev, Confirmed working today (July 14). Thanks so much for letting me know. This kind of functionality if why I purchased Mathematica. It is important to me to have access to this type of data without having to write my own scrapers, etc.

Yahoo finance API is not available anymore. I have moved to MarketXLS after this change, much more reliable data.

Joe:

Agreed. Seems to go in and out. Not working today, July 15.

Jeff

As of about July 17, FinancialData has been working fine for me. Thanks Wolfram (and Wolfram Community).

Is it possible to download data directly into Mathematica using MarketXLS?

Bad news, for the past two weeks all historical queries (such as the following) return an empty list

FinancialData["FDSSX", "Close", {2017, 1, 1}]

Also some equities are not found.

I don’t see the same:

In[33]:= FinancialData["FDSSX", "Close", {2017, 1, 1}][[;; 5]]
Out[33]= {{{2017, 1, 3}, 36.71}, {{2017, 1, 4}, 37.07}, {{2017, 1, 5}, 37.06}, {{2017, 1, 6}, 37.19}, {{2017, 1, 9}, 37.08}}

What version are you running, and does this problem persist if you quit your kernel and try again in a fresh one?

Just tried:
FinancialData[“FDSSX”, “Close”, {2017, 1, 1}]
Got expected results.

I have not been monitoring for many months so I don’t know what has been going on since my post.

Jeff