0

我目前使用 BDS 的方式如下:

=BDS("FDS US Equity","TOP_20_HOLDERS_PUBLIC_FILINGS","cols=10;rows=20")

我有具有以下功能的 BBG VBA 类模块:

Public Function ReferenceDataRequest(security As String, fields() As String) As Variant

Public Function HistoricalDataRequest(securities() As String, fields() As String, startDate As String, endDate As String, periodicity As String, nonTradingDayFillOption As String, nonTradingDayFillValue As String) As Variant

Public Function IntradayTickRequest(security As String, startDate As String, endDate As String, eventTypes() As String) As Variant

Public Function IntradayBarRequest(security As String, startDate As String, endDate As String, eventType As String, interval As Integer) As Variant

我无法弄清楚要使用哪个函数以及使用什么参数。

帮助!

4

1 回答 1

5

我对BDS()Bloomberg 函数不太熟悉,但我使用 Bloomberg API 并与 Bloomberg 一起使用 VBA。

您的BDS()通话将“FDS US Equity”作为安全参数,将“TOP_20_HOLDERS_PUBLIC_FILINGS”作为字段。但是,您列出的函数中的“fields()”参数需要一个数组。

你有没有尝试过这样的事情?

Dim varData As Variant
Dim strFieldsArray(0) as string

strFieldsArray(0) = "TOP_20_HOLDERS_PUBLIC_FILINGS"   

varData = ReferenceDataRequest("FDS US Equity", strFieldsArray)

我正在假设(我认为这并不重要)此方法正在调用BlpSubscribe()Bloomberg 数据类型库。

于 2012-04-10T12:23:28.423 回答