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

1 次查看(过去 30 天)
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));

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Bloomberg B-PIPE 的更多信息

标签

尚未输入任何标签。

产品


版本

R2009a

Community Treasure Hunt

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

Start Hunting!

Translated by