For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 0 0 4

Im using DSS REST API for PriceHistoryExtractionRequest and getting an error msg: { "error": { "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"

}

}

}

dss-rest-apidatascope-selectdss
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @Shwetha.Krishnaiah,

Can you please re-test, as this request works for me, no errors, result is created.

Made the question public. Private posts are reserved when client identifying information is included.

Upvotes
Accepted
22k 58 14 21

@Shwetha.Krishnaiah,

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
3 0 0 4
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.