如何根据开发者指南的“A.3.4字段搜索请求”使用“类别”? Bloomberglp.Blpapi.dll来自blpapi_dotnet_3.4.8.1。,由C#.net开发。
我使用以下代码来获取信息,但它不起作用。
Service refDataSvc = session.GetService("//blp/refdata");
Request request = refDataSvc.CreateRequest("ReferenceDataRequest");
request.Append("securities", "/isin/CNE1000002Q2 HK");
Element element = request.GetElement("include");
element.SetElement("productType", "Equity");
element.SetElement("fieldType", "Static");
Element element1 = element.GetElement("category");
element1.AppendValue("Ratings");
element1.AppendValue("Analysis");
element1.AppendValue("Corporate Actions");
session.SendRequest(request, null);
我也尝试过其他方法
A)
Service refDataService = session.GetService("//blp/refdata");
Request request = refDataService.CreateRequest("ReferenceDataRequest");
Element securities = request.GetElement("securities");
securities.AppendValue("IBM US Equity");
Element fields = request.GetElement("fields");
fields.AppendValue("PX_LAST");
Element element1 = fields.GetElement("category");
element1.AppendValue("Corporate Actions");
session.SendRequest(request, null);
b)中
Service refDataService = session.GetService("//blp/refdata");
Request request = refDataService.CreateRequest("ReferenceDataRequest");
Element securities = request.GetElement("securities");
securities.AppendValue("IBM US Equity");
Element element1 = request.GetElement("category");
element1.AppendValue("Corporate Actions");
session.SendRequest(request, null);
两者都不成功。 有人可以就此提出建议吗?