Parsing the command line in Objective-C

January 14th, 2009 | No Comments | Tagged as , ,

Decision into which platform to rewrite the shell script to retrieve the stock quotes using Google API was a simple one – I would like to use Objective-C to be able to run the program on a Mac (and later hopefully on my iPod touch too). I began exploring the Objective-C only recently so I considered to be a good exercise to learn about basic Foundation classes by writing a class to parse command line arguments (instead of using the obvious getopt choice).

Read more

How to get a real-time stock quote using Google API

January 5th, 2009 | 11 Comments | Tagged as , , , ,

After resolving the problem with authentication, I continued playing around with Google Finance API, using HTTP and XML. The API offers some nice functionality to retrieve user portfolio content, but it doesn’t take long to realize that there is no support for retrieving (real-time) stock quotes, probably for some good reason like licensing. But then, there is a way of getting real-time stock quotes on your Google Spreadsheet using the GoogleFinance() formula. Can this fact get us closer to retrieving real-time stock quotes using Google Data API?

Read more