首页 > 解决方案 > MATLAB 2018b - Datafeed Toolbox:从 ​​Bloomberg 检索特定时间范围的刻度数据

问题描述

我正在尝试使用 MATLAB 2018b 及其 Datafeed 工具箱从 Bloomberg 检索特定时间范围内特定代码的刻度数据。在 Datafeed Toolbox 中“timeseries”函数的文档中,我找到了一个完全符合我需要的示例:

https://nl.mathworks.com/help/datafeed/blp.timeseries.html#mw_8b6c8864-9224-4345-973a-086c90603948

但是,在运行示例代码时,也可以使用以下命令在 MATLAB 中打开示例本身

openExample('datafeed/RetrieveTimeSeriesTickDataForDateTimeRangeWithFieldExample') 

我收到以下错误:

Error using blp/timeseries (line 463)
Java exception occurred:
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
    at java.util.Vector.elementAt(Unknown Source)
Error in deleteme (line 9)
d = timeseries(c,s,{startdate:enddate,starttime,endtime},interval,field);

有没有人熟悉这个错误和可能的修复?或者有没有可用的解决方法?

提前感谢您的回复!

标签: matlabbloombergblpapidatafeed

解决方案


推荐阅读