Tag Archives: php

Yahoo stock to RSS converter


Update June 2010: I haven’t used this for a while and as you probably have noticed it’s no longer working. It did it’s thing, while there was not such service, but now at least Google financial provides some of the same services. Anyway, the source is still here, if you want to run it…

Inspired by Xanadb’ RSS Stock Ticker (which in turn was inspired by the now defunct Yahoo Finance RSS), I decided to try to make my own. I wanted to add a few things, mainly the ability to calculate loss/win for each stock and a total loss/win for all stocks.

The data for the feed is gotten from finance.yahoo.com

and you need the stock symbols that they use to build up a URL string that you can feed to your RSS program. But here’s an example:


This will give you two rss items with the current stock price of Microsoft (msft) and Cisco (csco). The total value of a 100 Microsoft stocks is calculated and the win/loss if you paid 20us$ for them is calculated. The same is done for 200 Cisco stocks brought at 20.90us$.
Here’s an example of how Thunderbird will show the data:
stock rss view
Continue reading