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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 0 0 2

fx rate extraction

Hi ,
my use-case is to extract FX rates for some currencies.

i am using the Rest-Api for /Extractions/Extract

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

and with field "Mid Price" .

can you please advice to me regarding the following questions :
1) should I ask for authorization token each time ? How can I know the token expiration ?

2) should i use /ExtractWithNotes ?

Thank you , Roy.

dss-rest-apidatascope-selectdsshistoricalauthenticationforex
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.

1 Answer

Upvotes
Accepted
13.7k 26 8 12

@shai.kritz,

1) An authorization token is valid 24 hours. It is more efficient to request it once and then reuse it, until it expires, at which point you can re-request one. See this help page for more information.

2) Yes you should use ExtractWithNotes, because Extract is deprecated. It still works, but will be removed in the second half of 2019, as per this advisory. I also recommend you save and analyse all extraction notes, they contain useful information, warnings and errors.

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