From a529cb720a00d3daaa618f0a0cb164062d0bc419 Mon Sep 17 00:00:00 2001 From: JaredF Date: Mon, 7 Jul 2014 23:13:48 -0700 Subject: [PATCH 1/2] Fixes Stocks.pl 'Missing Symbols List' Error --- code/common/stocks.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/common/stocks.pl b/code/common/stocks.pl index bf4430ced..7c8b4d9b8 100644 --- a/code/common/stocks.pl +++ b/code/common/stocks.pl @@ -25,7 +25,7 @@ # More info on how this magic url was derived can be found here: # http://www.padz.net/~djpadz/YahooQuote/ -my $stock_url = 'http://quote.yahoo.com/d?f=snl1d1t1c1p2va2bapomwerr1dyj1x\&s=' . join('%20', @stock_symbols); +my $stock_url = 'http://download.finance.yahoo.com/d?f=snl1d1t1c1p2va2bapomwerr1dyj1x\&s=' . join('%20', @stock_symbols); my @stock_keys = ('SName', 'LName', 'Last', 'Date', 'Time', 'Change', 'PChange', 'Volume', 'Avg Volume', 'Bid', 'Ask', 'Prev Close', 'Open', 'Day Range', '52-Week Range', 'EPS', 'P/E Ratio', 'Div Pay Date', From ae138ba388b7481f491c47b438cc30d0ebce7bf4 Mon Sep 17 00:00:00 2001 From: JaredF Date: Mon, 7 Jul 2014 23:13:48 -0700 Subject: [PATCH 2/2] Fixes Stocks.pl 'Missing Symbols List' Error --- code/common/stocks.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/common/stocks.pl b/code/common/stocks.pl index bf4430ced..97878b037 100644 --- a/code/common/stocks.pl +++ b/code/common/stocks.pl @@ -25,7 +25,7 @@ # More info on how this magic url was derived can be found here: # http://www.padz.net/~djpadz/YahooQuote/ -my $stock_url = 'http://quote.yahoo.com/d?f=snl1d1t1c1p2va2bapomwerr1dyj1x\&s=' . join('%20', @stock_symbols); +my $stock_url = 'http://download.finance.yahoo.com/d?f=snl1d1t1c1p2va2bapomwerr1dyj1x\&s=' . join('%20', @stock_symbols); my @stock_keys = ('SName', 'LName', 'Last', 'Date', 'Time', 'Change', 'PChange', 'Volume', 'Avg Volume', 'Bid', 'Ask', 'Prev Close', 'Open', 'Day Range', '52-Week Range', 'EPS', 'P/E Ratio', 'Div Pay Date', @@ -198,6 +198,8 @@ unless &trigger_get('get stocks'); } +# 07 Jul 14, Jared J. Fernandez +# Updated stocks URL due to change by Yahoo. # 27 Dec 05, David Norwood # Someone else also added back the stock alerts in the last release. I removed the duplicate code.