C
Christoph Jasinski
[Note: parts of this message were removed to make it a legal post.]
Hi all,
I wanted to write a program that request stock quotes say every second. So I
started to write a thread like this:
require 'rubygems'
require 'yahoofinance'
thread=Thread.new do
YahooFinance::get_historical_quotes_days( 'goog', 10 ) do |row|
puts "YHOO,#{row.join(',')}"
end
end
When I run this I don't get any results. Which is really weird. Got all the
gems and so on.
But when I do the same code run in IRB it works! without any surprises. I
don't get it. Really.
Thanks for any help.
Chris
Hi all,
I wanted to write a program that request stock quotes say every second. So I
started to write a thread like this:
require 'rubygems'
require 'yahoofinance'
thread=Thread.new do
YahooFinance::get_historical_quotes_days( 'goog', 10 ) do |row|
puts "YHOO,#{row.join(',')}"
end
end
When I run this I don't get any results. Which is really weird. Got all the
gems and so on.
But when I do the same code run in IRB it works! without any surprises. I
don't get it. Really.
Thanks for any help.
Chris