Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

status

(To be removed) Status of FTP request for Thomson Reuters Tick History data

status will be removed in a future release.

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.

See Also

| |

Introduced in R2011a

Was this topic helpful?