I merged some stock quoting stuff I had into a Rails plugin today. If you’d like to be able to simply grab real time stock quotes in your Rails app, this will do the job. Pretty much any stock symbol will work and you can enter as many as you’d like, you’ll get a hash array of hashes containing each symbol’s current value, change since open, and volume.
http://github.com/johnyerhot/rquote/tree/master
Rquote
======
Gets realtime stock quotes from Yahoo Finance.
Its super simple to use.
Example
=======
quote = Rquote.new
quote.find("aapl", "msft")
=> [{:change=>"-4.02", :price=>"169.72", :volume=>"16105013", :symbol=>"aapl"}, {:change=>"-0.42", :price=>"27.52",
:volume=>"27024456", :symbol=>"msft"}]
Copyright (c) 2008 John Yerhot, released under the MIT license