-1

使用 Bloomberg API,我如何请求 HTUSMOML 和 GSTHHVIP 指数的价格信息。

下面列出了我正在使用的部分基本代码:

session.OpenService("//blp/refdata");
Service refDataService = session.GetService("//blp/refdata");
Request request = refDataService.CreateRequest("ReferenceDataRequest");
request.Set("security", "HTUSMOML US INDEX");
request.Set("security", "GSTHHVIP US INDEX");
request.Append("fields", "PX_LAST");
request.Append("fields", "OPEN");

我收到“符号在服务中不可用:ReferenceDataRequest。

谢谢

钢筋混凝土

4

2 回答 2

1

Have you tried using the same syntax and asking for a well-known index, like INDU or QQQQ or something? That would eliminate a lot of possibilities.

If that works, then are you sure there is reference data available for these indices? Sometimes they only have pricing data, not reference data.

Next, are you sure you are permissioned to get this data? Either you may not be allowed, or your API setup may not be providing proper authentication for an account that does have permission.

If none of that works, you really need to follow Help Help and call the analytics desk for assistance.

于 2010-07-20T16:49:20.947 回答
0

您的代码存在一些问题,您应该解决:

  1. 您设置了两次安全性,第二次覆盖了第一次
  2. 你可能应该做

    request.Append("证券", ...);

  3. 您指定的黄色键应以小写形式给出。

  4. 指数证券没有以他们的名义进行交易所——输掉美国,它只是“HTUSMOML 指数”
  5. 我建议完全不要使用黄色键,而是使用以下格式的 Bloomberg Global Identifier:

    request.Append("证券", "/bbgid/BBG000RGBSK8");

(顺便说一句,BBG000RGBSK8 是 HTUSMOML 指数的实际彭博全球标识符)

于 2013-01-23T21:29:50.417 回答