I am looking for a way to resolve a security CUSIP/SEDOL/ISIN into a RIC published by a specific pricing source. From the DSS Java examples I see the /Extractions/InstrumentSearch request returns this information but provides a list of RICs with different sources. I am interested only in one specific source. From the DSS API reference I see that the Source field is available, but whenever I add it to my REST call I get back a "Bad request" response.
Any idea what I am doing wrong? The snippet below shows the REST call construction.
HttpPost httppost = new HttpPost(urlHost + "/Extractions/InstrumentSearch/");
httppost.addHeader("content-type", "application/json;odata.metadata=minimal");
httppost.addHeader("Authorization", "Token "+sessionToken);
JSONObject searchJSONObject = new JSONObject();
searchJSONObject.put("IdentifierType", "Cusip");
searchJSONObject.put("Identifier", "912803AK9");
searchJSONObject.put("Source", "TWB");
JSONArray jsonArray = new JSONArray();
jsonArray.put("GovCorp");
searchJSONObject.put("InstrumentTypeGroups", jsonArray);
searchJSONObject.put("PreferredIdentifierType", "Ric");
searchJSONObject.put("MaxSearchResult", 10);
Thanks.