Im using DSS REST API for PriceHistoryExtractionRequest and getting an error msg: { "error": ...

Options

...{ "message": "Malformed request payload: Syntax error at Line 2, Char 1: expected '}' " } } Can you please assist

{

"ExtractionRequest": {

"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.PriceHistoryExtractionRequest",

"ContentFieldNames": ["File Code",

"RIC",

"Trade Date",

"Last Trade Price",

"Universal Close Price",

"Alternate Close Price",

"High Price",

"Low Price",

"Open Price",

"Volume Weighted Average Price",

"Turnover",

"Volume",

"Accumulated Volume Unscaled",

"Bid Price",

"Asset Type",

"Quote ID",

"Bid Yield",

"Exchange Code",

"Currency Code"

],

"IdentifierList": {

"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",

"InstrumentIdentifiers": [

{ "Identifier": "438516AC0", "IdentifierType": "Cusip" },

{ "Identifier": "AMEFOR=ARG", "IdentifierType": "Ric" },

{ "Identifier": "LCOc1", "IdentifierType": "Ric" }

]

},

"Condition": {

"AdjustedPrices": true,

"QueryStartDate": "2021-01-01T00:00:00.000Z",

"QueryEndDate": "2021-03-01T00:00:00.000Z"

}

}

}

Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    @shwetha.krishnaiah02,

    As mentioned by Zoya, your request works fine for me as well. I used python sample for this.

    I have experienced this kind of error with certain version of Postman tool. Please ensure there are no extra characters like extra spaces ot tabs or unicode chars in your request and try again.

Answers