Skip to content Skip to sidebar Skip to footer

Problem With Stock Quote From Google Finance

Below is the example I got from google finance for a stock quote. But it doesnt seem to be working. Stock price isnt displayed. Thanks Hello world! Here is your portfo

Solution 1:

It looks like you are using the example at http://code.google.com/apis/finance/docs/finance-gadgets.html#JS_API . If I understand right, that API is only available to gadgets. It says,

"Gadgets that use the Market Data API can only run in iGoogle--either production iGoogle, or the iGoogle sandbox."

The regular Google Finance JS API only allows you to get data associated with a user's portfolio.

Solution 2:

You probably need Authenticating to the Google Finance service first.

The AuthSubRequest URL might look like this:

https://www.google.com/accounts/AuthSubRequest?
scope=http%3A%2F%2Ffinance.google.com%2Ffinance%2Ffeeds%2F&session=1&secure=0
&next=http%3A%2F%2Fwww.example.com%2Fwelcome.

http://code.google.com/apis/finance/docs/2.0/developers_guide_protocol.html#Authenticating

Solution 3:

Have you tried surrounding the span id attributes with quotes?

Post a Comment for "Problem With Stock Quote From Google Finance"