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

asked 11 years ago

ernestyalumni gravatar image

updated 10 years ago

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

Preview: (hide)

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 ( 11 years ago )

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 ( 11 years ago )