Skip to Main Content Skip to Search
Product Documentation

rdth.status - Status of FTP request for Thomson Reuters Tick History data

Syntax

[s,qp] = status(r,x)

Description

[s,qp] = status(r,x) returns the status and queue position of the Thomson Reuters Tick History (TRTH) FTP request handle, x. When s is equal to 'Complete', download the file from the TRTH server manually or programmatically.

Examples

Check the status of your FTP request:

x = submitftp(r,'GOOG.O',{'Exchange ID','Price','Volume'}, ...
   {(floor(now))-10,(floor(now))},'TimeAndSales','Trade', ...
   'NSQ','EQU') 

s = []; 
while ~strcmp(s,'Complete') 
[s,qp] = status(r,x); 
end 

Optionally, download the file from the TRTH server programmatically. The data file is generated in a directory, api-results, on the server. The file has extension csv.gz.

filename = ['/api-results/' char(x) '-report.csv.gz'];
urlwrite(['https://tickhistory.thomsonreuters.com/HttpPull/Download?'...
          'user=' username '&pass=' password '&file=' filename''],...
          'rdth_results.csv.gz');

This call to urlwrite saves the downloaded file with the name rdth_results.csv.gz in the current directory.

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS