Code covered by the BSD License
-
builduniverse(y,s,d1,d2,p)
BUILDUNIVERSE Portfolio matrix with total return price data from Yahoo.
-
close(c)
CLOSE Close connection to Yahoo.
-
display(c)
DISPLAY Yahoo connection object display method.
-
get(c,p)
GET Get YahooRT connection properties.
-
isconnection(c)
ISCONNECTION True if valid YahooRT connection.
-
subsref(a,s)
SUBSREF Subscripted reference for Datafeed Toolbox object.
-
trpdata(y,s,d1,d2,p)
TRPDATA Data needed to generate total return price series.
-
yahooRT(varargin)
YAHOORT Extends the YAHOO datafeed to allow real-time access for Yahoo Premium
-
Contents.m
-
yahooRTdemo.m
-
View all files
from
Real-Time Datafeed from Yahoo!
by Eric Johnson
Extension of Datafeed Toolbox's Yahoo object, allowing real-time data to be fetched
|
| get(c,p) |
function v = get(c,p)
%GET Get YahooRT connection properties.
% V = GET(C,'PropertyName') returns the value of the specified
% properties for the Yahoo connection object. 'PropertyName' is
% a string or cell array of strings containing property names.
%
% V = GET(C) returns a structure where each field name is the name
% of a property of C and each field contains the value of that
% property.
%
% The property names are:
%
% url
%
% See also YAHOO, CLOSE, FETCH, ISCONNECTION.
% Author(s): C.F.Garvin, 02-25-00
% Copyright 1999-2003 The MathWorks, Inc.
% $Revision: 1.6.2.2 $ $Date: 2004/04/06 01:06:08 $
if nargin > 1
try
%First try this object
v = c.(p);
catch
%Maybe the property belongs to the parent YAHOO object
try
v = get(c.yahoo,p);
catch
error('datafeed:yahooRT:invalidProperty','Invalid %s connection property: '' %s ''.',class(c),p)
end
end
else
% Return structure of entire object
v = struct(c);
v.yahoo = struct(v.yahoo);
end
|
|
Contact us at files@mathworks.com