Hello community,
here is the log from the commit of package octave-forge-financial for
openSUSE:Factory checked in at 2018-11-26 10:29:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/octave-forge-financial (Old)
and /work/SRC/openSUSE:Factory/.octave-forge-financial.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "octave-forge-financial"
Mon Nov 26 10:29:08 2018 rev:4 rq:651314 version:0.5.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/octave-forge-financial/octave-forge-financial.changes
2018-07-28 12:40:21.360420417 +0200
+++
/work/SRC/openSUSE:Factory/.octave-forge-financial.new.19453/octave-forge-financial.changes
2018-11-26 10:29:22.201093863 +0100
@@ -1,0 +2,7 @@
+Wed Nov 21 10:58:20 UTC 2018 - [email protected]
+
+- Update to version 0.5.3:
+ * Due to Google retiring the option to download financial data,
+ the `fetch` function has been removed entirely.
+
+-------------------------------------------------------------------
Old:
----
financial-0.5.1.tar.gz
New:
----
financial-0.5.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ octave-forge-financial.spec ++++++
--- /var/tmp/diff_new_pack.5rVmiq/_old 2018-11-26 10:29:23.149092751 +0100
+++ /var/tmp/diff_new_pack.5rVmiq/_new 2018-11-26 10:29:23.153092746 +0100
@@ -18,7 +18,7 @@
%define octpkg financial
Name: octave-forge-%{octpkg}
-Version: 0.5.1
+Version: 0.5.3
Release: 0
Summary: Financial instruments for Octave
License: GPL-3.0-or-later
++++++ financial-0.5.1.tar.gz -> financial-0.5.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/financial-0.5.1/DESCRIPTION
new/financial-0.5.3/DESCRIPTION
--- old/financial-0.5.1/DESCRIPTION 2017-12-14 21:15:40.764385134 +0100
+++ new/financial-0.5.3/DESCRIPTION 2018-11-16 08:59:29.695825759 +0100
@@ -1,12 +1,12 @@
Name: financial
-Version: 0.5.1
-Date: 2017-12-14
+Version: 0.5.3
+Date: 2018-10-22
Author: Bill Denney, Kurt Hornik
Maintainer: Parsiad Azimzadeh <[email protected]>
Title: Financial
Description: Monte Carlo simulation, options pricing routines, financial
manipulation, plotting functions and additional date manipulation tools.
-Depends: octave (>= 4.0.0), io (>= 1.0.18)
+Depends: octave (>= 4.4.0), io (>= 2.4.11), statistics (>= 1.4.0)
Autoload: no
License: GPLv3+
Url: http://octave.sf.net
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/financial-0.5.1/INDEX new/financial-0.5.3/INDEX
--- old/financial-0.5.1/INDEX 2017-12-14 21:15:40.764385134 +0100
+++ new/financial-0.5.3/INDEX 2018-11-16 08:59:29.695825759 +0100
@@ -5,10 +5,8 @@
corr2cov
cov2corr
effrr
- fetch
fvl
fv
- google
hhigh
irr
llow
@@ -28,7 +26,6 @@
rsindex
taxedrr
vol
- yahoo
Chart Financial Data
bolling
candle
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/financial-0.5.1/NEWS new/financial-0.5.3/NEWS
--- old/financial-0.5.1/NEWS 2017-12-14 21:15:40.767718468 +0100
+++ new/financial-0.5.3/NEWS 2018-11-16 08:59:29.699825734 +0100
@@ -1,3 +1,9 @@
+Summary of important user-visible changes for financial 0.5.3:
+--------------------------------------------------------------
+
+ ** Due to Google retiring the option to download financial
+ data, the `fetch` function has been removed entirely.
+
Summary of important user-visible changes for financial 0.5.1:
--------------------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/financial-0.5.1/inst/fetch.m
new/financial-0.5.3/inst/fetch.m
--- old/financial-0.5.1/inst/fetch.m 2017-12-14 21:15:40.784385139 +0100
+++ new/financial-0.5.3/inst/fetch.m 1970-01-01 01:00:00.000000000 +0100
@@ -1,157 +0,0 @@
-## Copyright (C) 2008 Bill Denney <[email protected]>
-##
-## This program is free software; you can redistribute it and/or modify it
under
-## the terms of the GNU General Public License as published by the Free
Software
-## Foundation; either version 3 of the License, or (at your option) any later
-## version.
-##
-## This program is distributed in the hope that it will be useful, but WITHOUT
-## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more
-## details.
-##
-## You should have received a copy of the GNU General Public License along with
-## this program; if not, see <http://www.gnu.org/licenses/>.
-
-## -*- texinfo -*-
-## @deftypefn {@var{data} =} fetch (@var{conn}, @var{symbol})
-## @deftypefnx {@var{data} =} fetch (@dots{}, @var{fields})
-## @deftypefnx {@var{data} =} fetch (@dots{}, @var{date})
-## @deftypefnx {@var{data} =} fetch (@dots{}, @var{fromdate}, @var{todate})
-## @deftypefnx {@var{data} =} fetch (@dots{}, @var{period})
-## @deftypefnx {[@var{data}, @var{fields}] =} fetch (@dots{})
-##
-## Download stock data from a connection.
-##
-## @var{fields} are the data fields to download and must come from the
-## set
-## @itemize
-## @item "Symbol"
-## @item "Last"
-## @item "Date"
-## @item "Time"
-## @item "Change"
-## @item "Open"
-## @item "High",
-## @item "Low"
-## @item "Volume"
-## @end itemize
-##
-## As an output, @var{fields} may be different than your request. This
-## is because there is mapping of field names from the data source to
-## the output, and what is returned is the source mapping to allow
-## validation.
-##
-## @var{date} is the date string or datenum for the requested data. If
-## you enter today's date, you will get yesterday's data. @var{fromdate}
-## and @var{todate} allow you to specify a date range for the data.
-##
-## @var{period} (default: "d") allows you to select the period for the
-## data which can be any of the below as long as they are supported by
-## the associated backend.
-## @itemize
-## @item 'd': daily
-## @item 'w': weekly (Yahoo only)
-## @item 'm': monthly (Yahoo only)
-## @item 'v': dividends (Yahoo only)
-## @end itemize
-##
-## @example
-## fetch(google(), "SNE", "01-Jan-2016", "31-Dec-2016", "d");
-## @end example
-##
-## @seealso{yahoo, google}
-## @end deftypefn
-
-## FIXME: Actually use the proxy info if given in the connection.
-## FIXME: Do not ignore the fields input.
-
-function [data fields] = fetch (conn=[], symbol="", varargin)
-
- fields = {"Symbol", "Last", "Date", "Time", "Change", "Open", ...
- "High", "Low", "Volume"};
- fromdate = [];
- todate = [];
- period = "d";
-
- firstdate = datenum (1900, 1, 1);
- lastdate = today ();
-
- if isempty (conn)
- ## By default, use yahoo now since it's the only connection
- ## currently available.
- conn = yahoo ();
- endif
- if isempty (symbol)
- error ("The ticker symbol must be given")
- elseif ! ischar (symbol)
- error ("The symbol must be either a string")
- endif
- for i = 1:numel (varargin)
- if ischar (varargin{i}) && (length (varargin{i}) == 1)
- period = varargin{i};
- elseif iscellstr (varargin{i}) || ischar (varargin{i})
- ## if it's a character and it's a valid date, make it into our
- ## dates
- if ischar (varargin{i})
- thisdate = [];
- try
- thisdate = datenum (varargin{i});
- if isempty (fromdate)
- fromdate = thisdate;
- endif
- todate = thisdate;
- end_try_catch
- endif
- if isempty (thisdate)
- fields = varargin{i};
- warning ("Fields are currently ignored and all data is returned")
- endif
- thisdate = [];
- elseif isnumeric (varargin{i})
- ## it must be our dates
- if isempty (fromdate)
- fromdate = varargin{i};
- endif
- todate = varargin{i};
- else
- error ("Invalid input for argument %d", i + 2)
- endif
- endfor
-
- if isempty (fromdate)
- fromdate = firstdate;
- todate = lastdate;
- endif
-
- if strcmpi (conn.url, "http://quote.yahoo.com")
- [data fields] = fetch_yahoo (conn, symbol, fromdate, todate, period);
- elseif strcmpi (conn.url, "http://finance.google.com")
- [data fields] = fetch_google (conn, symbol, fromdate, todate, period);
- else
- error ("Unrecgonized connection type")
- endif
-
-endfunction
-
-%!shared fgood, dgood, wgood
-%! fgood = {"Date", "Open", "High", "Low", "Close", "Volume"};
-%! dgood = [732501,34.77,34.87,34.25,34.62,15520553;
-%! 732500,33.87,34.77,33.72,34.63,16360297;
-%! 732499,34.64,34.97,34.03,34.12,13694806;
-%! 732498,34.25,35.08,34.20,34.60,16103029;
-%! 732494,34.76,34.85,34.22,34.44,9875220];
-%! wgood = [732501,34.25,35.08,33.72,34.62,60859400;
-%! 732494,35.88,36.24,34.22,34.44,67132100];
-%!test
-%! [d f] = fetch (google(), "yhoo", 732494, 732501, "d");
-%! assert(d, dgood, eps);
-%! assert(f, fgood, eps);
-## test that the automatic period works
-%!test
-%! [d f] = fetch (google(), "yhoo", 732494, 732501);
-%! assert(d, dgood, eps);
-%! assert(f, fgood, eps);
-## Test that weekly fails
-%!test
-%! fail ('fetch (google(), "yhoo", 732494, 732501, "w")', ".*weekly.*")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/financial-0.5.1/inst/google.m
new/financial-0.5.3/inst/google.m
--- old/financial-0.5.1/inst/google.m 2017-12-14 21:15:40.784385139 +0100
+++ new/financial-0.5.3/inst/google.m 1970-01-01 01:00:00.000000000 +0100
@@ -1,44 +0,0 @@
-## Copyright (C) 2008 Bill Denney <[email protected]>
-##
-## This program is free software; you can redistribute it and/or modify it
under
-## the terms of the GNU General Public License as published by the Free
Software
-## Foundation; either version 3 of the License, or (at your option) any later
-## version.
-##
-## This program is distributed in the hope that it will be useful, but WITHOUT
-## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more
-## details.
-##
-## You should have received a copy of the GNU General Public License along with
-## this program; if not, see <http://www.gnu.org/licenses/>.
-
-## -*- texinfo -*-
-## @deftypefn {Function File} {@var{conn} =} google ()
-## @deftypefnx {Function File} {@var{conn} =} google (@var{URL},
@var{ipaddress}, @var{port})
-##
-## Prepare a Google connection for the fetch command to get Google
-## historical quote data.
-##
-## If given, the @var{URL} must be "http://finance.google.com". The
-## @var{ipaddress} and @var{port} is the proxy ipaddress and port. These
-## parameters are currently ignored (with a warning if given).
-##
-## @seealso{fetch, yahoo}
-## @end deftypefn
-
-## FIXME: Actually use the proxy info if given.
-
-function conn = google (url="http://finance.google.com", ipaddr="", port=[])
-
- if ! strcmpi (url, "http://finance.google.com")
- error ("url must be 'http://finance.google.com'")
- elseif ! (isempty (ipaddr) && isempty (port))
- warning ("Proxy information is currently ignored")
- endif
-
- conn.url = url;
- conn.ip = ipaddr;
- conn.port = port;
-
-endfunction
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/financial-0.5.1/inst/private/fetch.m
new/financial-0.5.3/inst/private/fetch.m
--- old/financial-0.5.1/inst/private/fetch.m 1970-01-01 01:00:00.000000000
+0100
+++ new/financial-0.5.3/inst/private/fetch.m 2018-11-16 08:59:29.719825609
+0100
@@ -0,0 +1,157 @@
+## Copyright (C) 2008 Bill Denney <[email protected]>
+##
+## This program is free software; you can redistribute it and/or modify it
under
+## the terms of the GNU General Public License as published by the Free
Software
+## Foundation; either version 3 of the License, or (at your option) any later
+## version.
+##
+## This program is distributed in the hope that it will be useful, but WITHOUT
+## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more
+## details.
+##
+## You should have received a copy of the GNU General Public License along with
+## this program; if not, see <http://www.gnu.org/licenses/>.
+
+## -*- texinfo -*-
+## @deftypefn {@var{data} =} fetch (@var{conn}, @var{symbol})
+## @deftypefnx {@var{data} =} fetch (@dots{}, @var{fields})
+## @deftypefnx {@var{data} =} fetch (@dots{}, @var{date})
+## @deftypefnx {@var{data} =} fetch (@dots{}, @var{fromdate}, @var{todate})
+## @deftypefnx {@var{data} =} fetch (@dots{}, @var{period})
+## @deftypefnx {[@var{data}, @var{fields}] =} fetch (@dots{})
+##
+## Download stock data from a connection.
+##
+## @var{fields} are the data fields to download and must come from the
+## set
+## @itemize
+## @item "Symbol"
+## @item "Last"
+## @item "Date"
+## @item "Time"
+## @item "Change"
+## @item "Open"
+## @item "High",
+## @item "Low"
+## @item "Volume"
+## @end itemize
+##
+## As an output, @var{fields} may be different than your request. This
+## is because there is mapping of field names from the data source to
+## the output, and what is returned is the source mapping to allow
+## validation.
+##
+## @var{date} is the date string or datenum for the requested data. If
+## you enter today's date, you will get yesterday's data. @var{fromdate}
+## and @var{todate} allow you to specify a date range for the data.
+##
+## @var{period} (default: "d") allows you to select the period for the
+## data which can be any of the below as long as they are supported by
+## the associated backend.
+## @itemize
+## @item 'd': daily
+## @item 'w': weekly (Yahoo only)
+## @item 'm': monthly (Yahoo only)
+## @item 'v': dividends (Yahoo only)
+## @end itemize
+##
+## @example
+## fetch(google(), "SNE", "01-Jan-2016", "31-Dec-2016", "d");
+## @end example
+##
+## @seealso{yahoo, google}
+## @end deftypefn
+
+## FIXME: Actually use the proxy info if given in the connection.
+## FIXME: Do not ignore the fields input.
+
+function [data fields] = fetch (conn=[], symbol="", varargin)
+
+ fields = {"Symbol", "Last", "Date", "Time", "Change", "Open", ...
+ "High", "Low", "Volume"};
+ fromdate = [];
+ todate = [];
+ period = "d";
+
+ firstdate = datenum (1900, 1, 1);
+ lastdate = today ();
+
+ if isempty (conn)
+ ## By default, use yahoo now since it's the only connection
+ ## currently available.
+ conn = yahoo ();
+ endif
+ if isempty (symbol)
+ error ("The ticker symbol must be given")
+ elseif ! ischar (symbol)
+ error ("The symbol must be either a string")
+ endif
+ for i = 1:numel (varargin)
+ if ischar (varargin{i}) && (length (varargin{i}) == 1)
+ period = varargin{i};
+ elseif iscellstr (varargin{i}) || ischar (varargin{i})
+ ## if it's a character and it's a valid date, make it into our
+ ## dates
+ if ischar (varargin{i})
+ thisdate = [];
+ try
+ thisdate = datenum (varargin{i});
+ if isempty (fromdate)
+ fromdate = thisdate;
+ endif
+ todate = thisdate;
+ end_try_catch
+ endif
+ if isempty (thisdate)
+ fields = varargin{i};
+ warning ("Fields are currently ignored and all data is returned")
+ endif
+ thisdate = [];
+ elseif isnumeric (varargin{i})
+ ## it must be our dates
+ if isempty (fromdate)
+ fromdate = varargin{i};
+ endif
+ todate = varargin{i};
+ else
+ error ("Invalid input for argument %d", i + 2)
+ endif
+ endfor
+
+ if isempty (fromdate)
+ fromdate = firstdate;
+ todate = lastdate;
+ endif
+
+ if strcmpi (conn.url, "http://quote.yahoo.com")
+ [data fields] = fetch_yahoo (conn, symbol, fromdate, todate, period);
+ elseif strcmpi (conn.url, "http://finance.google.com")
+ [data fields] = fetch_google (conn, symbol, fromdate, todate, period);
+ else
+ error ("Unrecgonized connection type")
+ endif
+
+endfunction
+
+%!shared fgood, dgood, wgood
+%! fgood = {"Date", "Open", "High", "Low", "Close", "Volume"};
+%! dgood = [732501,34.77,34.87,34.25,34.62,15520553;
+%! 732500,33.87,34.77,33.72,34.63,16360297;
+%! 732499,34.64,34.97,34.03,34.12,13694806;
+%! 732498,34.25,35.08,34.20,34.60,16103029;
+%! 732494,34.76,34.85,34.22,34.44,9875220];
+%! wgood = [732501,34.25,35.08,33.72,34.62,60859400;
+%! 732494,35.88,36.24,34.22,34.44,67132100];
+%!test
+%! [d f] = fetch (google(), "yhoo", 732494, 732501, "d");
+%! assert(d, dgood, eps);
+%! assert(f, fgood, eps);
+## test that the automatic period works
+%!test
+%! [d f] = fetch (google(), "yhoo", 732494, 732501);
+%! assert(d, dgood, eps);
+%! assert(f, fgood, eps);
+## Test that weekly fails
+%!test
+%! fail ('fetch (google(), "yhoo", 732494, 732501, "w")', ".*weekly.*")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/financial-0.5.1/inst/private/fetch_google.m
new/financial-0.5.3/inst/private/fetch_google.m
--- old/financial-0.5.1/inst/private/fetch_google.m 2017-12-14
21:15:40.797718475 +0100
+++ new/financial-0.5.3/inst/private/fetch_google.m 2018-11-16
08:59:29.723825584 +0100
@@ -40,6 +40,8 @@
function [data fields] = fetch_google (conn=[], symbol="",
fromdate, todate, period="d")
+ error ("Google Finance no longer supports downloading stock data");
+
pkg load io;
if strcmpi(period, "w")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/financial-0.5.1/inst/private/google.m
new/financial-0.5.3/inst/private/google.m
--- old/financial-0.5.1/inst/private/google.m 1970-01-01 01:00:00.000000000
+0100
+++ new/financial-0.5.3/inst/private/google.m 2018-11-16 08:59:29.723825584
+0100
@@ -0,0 +1,44 @@
+## Copyright (C) 2008 Bill Denney <[email protected]>
+##
+## This program is free software; you can redistribute it and/or modify it
under
+## the terms of the GNU General Public License as published by the Free
Software
+## Foundation; either version 3 of the License, or (at your option) any later
+## version.
+##
+## This program is distributed in the hope that it will be useful, but WITHOUT
+## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more
+## details.
+##
+## You should have received a copy of the GNU General Public License along with
+## this program; if not, see <http://www.gnu.org/licenses/>.
+
+## -*- texinfo -*-
+## @deftypefn {Function File} {@var{conn} =} google ()
+## @deftypefnx {Function File} {@var{conn} =} google (@var{URL},
@var{ipaddress}, @var{port})
+##
+## Prepare a Google connection for the fetch command to get Google
+## historical quote data.
+##
+## If given, the @var{URL} must be "http://finance.google.com". The
+## @var{ipaddress} and @var{port} is the proxy ipaddress and port. These
+## parameters are currently ignored (with a warning if given).
+##
+## @seealso{fetch, yahoo}
+## @end deftypefn
+
+## FIXME: Actually use the proxy info if given.
+
+function conn = google (url="http://finance.google.com", ipaddr="", port=[])
+
+ if ! strcmpi (url, "http://finance.google.com")
+ error ("url must be 'http://finance.google.com'")
+ elseif ! (isempty (ipaddr) && isempty (port))
+ warning ("Proxy information is currently ignored")
+ endif
+
+ conn.url = url;
+ conn.ip = ipaddr;
+ conn.port = port;
+
+endfunction
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/financial-0.5.1/inst/private/yahoo.m
new/financial-0.5.3/inst/private/yahoo.m
--- old/financial-0.5.1/inst/private/yahoo.m 1970-01-01 01:00:00.000000000
+0100
+++ new/financial-0.5.3/inst/private/yahoo.m 2018-11-16 08:59:29.723825584
+0100
@@ -0,0 +1,44 @@
+## Copyright (C) 2008 Bill Denney <[email protected]>
+##
+## This program is free software; you can redistribute it and/or modify it
under
+## the terms of the GNU General Public License as published by the Free
Software
+## Foundation; either version 3 of the License, or (at your option) any later
+## version.
+##
+## This program is distributed in the hope that it will be useful, but WITHOUT
+## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more
+## details.
+##
+## You should have received a copy of the GNU General Public License along with
+## this program; if not, see <http://www.gnu.org/licenses/>.
+
+## -*- texinfo -*-
+## @deftypefn {Function File} {@var{conn} =} yahoo ()
+## @deftypefnx {Function File} {@var{conn} =} yahoo (@var{URL},
@var{ipaddress}, @var{port})
+##
+## Prepare a Yahoo connection for the fetch command to get Yahoo
+## historical quote data.
+##
+## If given, the @var{URL} must be "http://quote.yahoo.com". The
+## @var{ipaddress} and @var{port} is the proxy ipaddress and port. These
+## parameters are currently ignored (with a warning if given).
+##
+## @seealso{fetch, google}
+## @end deftypefn
+
+## FIXME: Actually use the proxy info if given.
+
+function conn = yahoo (url="http://quote.yahoo.com", ipaddr="", port=[])
+
+ if ! strcmpi (url, "http://quote.yahoo.com")
+ error ("url must be 'http://quote.yahoo.com'")
+ elseif ! (isempty (ipaddr) && isempty (port))
+ warning ("Proxy information is currently ignored")
+ endif
+
+ conn.url = url;
+ conn.ip = ipaddr;
+ conn.port = port;
+
+endfunction
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/financial-0.5.1/inst/yahoo.m
new/financial-0.5.3/inst/yahoo.m
--- old/financial-0.5.1/inst/yahoo.m 2017-12-14 21:15:40.804385144 +0100
+++ new/financial-0.5.3/inst/yahoo.m 1970-01-01 01:00:00.000000000 +0100
@@ -1,44 +0,0 @@
-## Copyright (C) 2008 Bill Denney <[email protected]>
-##
-## This program is free software; you can redistribute it and/or modify it
under
-## the terms of the GNU General Public License as published by the Free
Software
-## Foundation; either version 3 of the License, or (at your option) any later
-## version.
-##
-## This program is distributed in the hope that it will be useful, but WITHOUT
-## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more
-## details.
-##
-## You should have received a copy of the GNU General Public License along with
-## this program; if not, see <http://www.gnu.org/licenses/>.
-
-## -*- texinfo -*-
-## @deftypefn {Function File} {@var{conn} =} yahoo ()
-## @deftypefnx {Function File} {@var{conn} =} yahoo (@var{URL},
@var{ipaddress}, @var{port})
-##
-## Prepare a Yahoo connection for the fetch command to get Yahoo
-## historical quote data.
-##
-## If given, the @var{URL} must be "http://quote.yahoo.com". The
-## @var{ipaddress} and @var{port} is the proxy ipaddress and port. These
-## parameters are currently ignored (with a warning if given).
-##
-## @seealso{fetch, google}
-## @end deftypefn
-
-## FIXME: Actually use the proxy info if given.
-
-function conn = yahoo (url="http://quote.yahoo.com", ipaddr="", port=[])
-
- if ! strcmpi (url, "http://quote.yahoo.com")
- error ("url must be 'http://quote.yahoo.com'")
- elseif ! (isempty (ipaddr) && isempty (port))
- warning ("Proxy information is currently ignored")
- endif
-
- conn.url = url;
- conn.ip = ipaddr;
- conn.port = port;
-
-endfunction