Code covered by the BSD License  

Highlights from
Real-Time Datafeed from Yahoo!

Real-Time Datafeed from Yahoo!

by

 

30 Jun 2008 (Updated )

Extension of Datafeed Toolbox's Yahoo object, allowing real-time data to be fetched

isconnection(c)
function x = isconnection(c) 
%ISCONNECTION True if valid YahooRT connection.
%   X = ISCONNECTION(C) returns 1 if C is a valid Yahoo connection
%   and 0 otherwise.  This function is a placeholder for consistency
%   with other Datafeed Toolbox method directories.
%
%   See also YAHOORT, CLOSE, FETCH, GET.

%   Adapted from YAHOO by Eric C. Johnson, 29-Jun-2008
%   Author(s): C.F.Garvin, 02-25-00
%   Copyright 1999-2002 The MathWorks, Inc.
%   $Revision: 1.3 $   $Date: 2002/04/14 16:23:37 $

%Check for url field
t = struct(c.yahoo);
if isfield(t,'url') && ~isempty(c.session)
  x = 1;
else
  x = 0;
end

Contact us