%% Workflow Example for Enterprise Platform from Refinitiv.

%   Copyright 1999-2019 The MathWorks, Inc.

% Using Enterprise Platform from Refinitiv 

sec = 'GOOG.O'; % Google(R) equity
fromdate = '06/01/2012'; % beginning of date range for historical data 
todate = '12/31/2012'; % ending of date range for historical data 
period = 'm'; % monthly period for data

% Connect to with delayed connection
c = reuters('myNS::remoteSession','dIDN_RDF');

% Fetch Current Data
d = fetch(c,sec);

% Show data
d

% Close Connection
close(c);

% Connect using non-delayed connection for historical data
c = reuters('myNS::remoteSession','IDN_RDF');

% Retrieve Historical Data
d = history(c,sec,fromdate,todate,period);

% Show data
d

% Close Connection
close(c);