finance.stock.google Obtaining indices data, namely hist. prices

asked 2013-06-10 13:19:09 -0500

ernestyalumni gravatar image

updated 2015-01-14 03:08:45 -0500

FrédéricC gravatar image

This is related to either the finance.stock.google() or sage.finance.stock.Stock().google() modular functions:

Is there a way to obtain data, namely historical prices, of indices, namely the S&P500?

I had tried the following:

sage.finance.stock.Stock("INDEXSP:INX", 626307).google(startdate="Jan+1,+1900")[:5]

But it didn't retrieve anything.

-ernestyalumni

Facebook : ernestyalumni gmail : ernestyalumni tumblr : ernestyalumni twitter : ernestyalumni weibo ?? : ernestyalumni youku : ernestyalumni youtube : ernestyalumni indiegogo : ernestyalumni

edit retag flag offensive close merge delete

Comments

See http://trac.sagemath.org/sage_trac/ticket/13884 for an issue with the change in how Google Finance did things, which could be directly related.

kcrisman gravatar imagekcrisman ( 2013-06-11 02:25:08 -0500 )edit

Thanks. I looked at that link. It doesn't address how it queries the specific equity. I'm looking to obtain data on an index.

ernestyalumni gravatar imageernestyalumni ( 2013-06-11 11:36:47 -0500 )edit