-
Notifications
You must be signed in to change notification settings - Fork 5
/
testfile2
75 lines (63 loc) · 2.87 KB
/
testfile2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
require "yahoofinance"
File.open('test.out','w') do |s|
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-01-24' ),
Date.parse( '2011-01-24' )) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-02-24' ),
Date.parse( '2011-02-24' )) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-03-24' ),
Date.parse( '2011-03-24') ) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-04-24' ),
Date.parse( '2011-04-24' ) ) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-05-24' ),
Date.parse( '2011-05-24' ) ) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-06-24' ),
Date.parse( '2011-06-24' )) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-07-24' ),
Date.parse( '2011-07-24' )) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-08-24' ),
Date.parse( '2011-08-24' ) ) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-09-24' ),
Date.parse( '2011-09-24' ) ) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-10-24' ),
Date.parse( '2011-10-24' ) ) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-11-24' ),
Date.parse( '2011-11-24' ) ) do |row|
s.puts "YHOO,#{row.join(',')}"
end
YahooFinance::get_historical_quotes( 'YHOO',
Date.parse( '2011-12-24' ),
Date.parse( '2011-12-24' ) ) do |row|
s.puts "YHOO,#{row.join(',')}"
end
end