This is machine translation

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

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


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

status will be removed in a future release.


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


[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.


Check the status of your FTP request:

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

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

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'];
          'user=' username '&pass=' password '&file=' filename''],...

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?