-2

Is there a way to download and parse stock quotes from yahoo or google using the android platform?

Thanks

locoboy
  • 38,002
  • 70
  • 184
  • 260

5 Answers5

2

Yes. Android includes an http client and Xml + Json libraries.

Robby Pond
  • 73,164
  • 16
  • 126
  • 119
1

You could also do it with straight HTTP using YQL

YQL console is useful for testing. The example above uses the google.igoogle.stock table

slf
  • 22,595
  • 11
  • 77
  • 101
1

Redistribution of Yahoo Finance data is only allowed if you are using the badges the team has created: http://finance.yahoo.com/badges. Using YQL for non-personal use would be a breach of terms of service.

Google Finance APIs and Tools (Terms)

Sheng Jiang 蒋晟
  • 15,125
  • 2
  • 28
  • 46
0

I think this blog post could help you:

http://benjisimon.blogspot.com/2009/01/truly-simple-stock-api.html

It uses Yahoo Finance to retrieve stock quotes.

This uses the same service, but does it download into a spreadsheet

http://www.gummy-stuff.org/Yahoo-data.htm

However it could be useful since there is a lot of explanaiton.

0

Have a look to the BuzzBox SDK for android and in particular to the example here:

http://hub.buzzbox.com/android-sdk/quickstart

The example is using the Yahoo weather api to build a notification weather app. If you simply adapt it to get stock data using YQL as suggesed before YQL

It's a very similar JSON parsing problem.

robsf
  • 1,713
  • 3
  • 14
  • 26