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.
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.