Hi there,
Iam calling DSS api, but can I serialize EndOfDayPricingExtractionRequest object to odata json before sending using HTTPClient ?
e.g. equivalent of calling this code but in HTTPclient
EndOfDayPricingExtractionRequest extractionEod = new EndOfDayPricingExtractionRequest
{
IdentifierList = InstrumentIdentifierList.Create(instrumentIdentifiers),
ContentFieldNames = tickerFields.ToArray()
};
extractionsContext.ExtractWithNotes(extractionEod);
I want to serialize extractionEod to this format below:
{""ExtractionRequest"": {
""@odata.type"": ""#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.EndOfDayPricingExtractionRequest"",
""ContentFieldNames"": [
""Exchange Code"",
""High Price"",
""Low Price"",
""Official Close Price"",
""Open Price"",
""Trade Date"",
""Volume""
],
""IdentifierList"": {
""@odata.type"": ""#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList"",
""InstrumentIdentifiers"": [{
""Identifier"": ""438516AC0"",
""IdentifierType"": ""Cusip""
},{
""Identifier"": ""IBM.N"",
""IdentifierType"": ""Ric""
}],
""ValidationOptions"": null,
""UseUserPreferencesForValidationOptions"": false
},
""Condition"": null
}
}";
If you got tutorial doc, please point that to me as well. That will be great
Thanks
Zohan