Why do I receive a timeout error when using the BLOOMBERG.TIMESERIES function in Datafeed Toolbox 3.3 (R2009a)?

2 views (last 30 days)
I am using the TIMESERIES function in Datafeed Toolbox 3.4 (R2009a) and I receive a timeout error when I execute the following command
c = bloomberg;
d = timeseries(c,'7267 JT Equity','VOLUME',floor(now));

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Oct 2013
One can resolve this issue by increasing the timeout property of the Bloomberg-MATLAB connection an then issuing the TIMESERIES function call.
c = bloomberg;
x = c.bbrt;
x.TimeOut = 100000;
d = timeseries(c,'7267 JT Equity','VOLUME',floor(now));
*UPDATE***
This is deprecated in the latest version of MATLAB.
The 'bloomberg' function is outdated and now MATLAB uses 'blp' to make connection with bloomberg. So the 'timeout' property in 'blp' function can be set as follows:
>> c = blp(p,ip,timeout);
where ‘p’ is the port number which can be set to ‘[]’ as default,
‘ip’ is the IP address which can be set to ‘[]’ as default and
‘timeout’ is the scalar parameter.
So, in above code, ‘blp’ creates a Bloomberg connection object c and return its properties.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2009a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!