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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 0 0 0

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 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
13k 32 12 18

@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 5.0 MiB each and 10.0 MiB total.

Upvotes
3 0 0 0
icon clock
10 |1500

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

Click below to post an Idea Post Idea