Bloomberg API - using .Net API to get the FUT_CHAIN on an underlying security

此生再无相见时 提交于 2019-12-07 00:07:25

For the v3 API, you need to use request overrides.

Request request = refDataService.createRequest("ReferenceDataRequest");

request.append("securities", "ERA Comdty");

request.append("fields","FUT_CHAIN");

Element overrides = request.getElement("overrides");
Element override1 = overrides.appendElement();
override1.setElement("fieldId", "CHAIN_DATE");
override1.setElement("value", "20120103");
Element override2 = overrides.appendElement();
override2.setElement("fieldId", "INCLUDE_EXPIRED_CONTRACTS);
verride2.setElement("value", 'Y');

session.sendRequest(request);
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!