Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TRTH /
avatar image
Question by mdt · Oct 03, 2019 at 09:33 AM · TRTH429

Error429 in ElektronTimeseriesExtractionRequest

Hi, I make 22 requests to the API every 10 seconds. And do this twice a day.

~~~~~~~~~~~~

  • API URL : https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes
  • request_headers :
    • "Prefer": "respond-async",
    • "Content-Type": "application/json",
    • "Authorization": "token " + MyToken
  • body :
"ExtractionRequest": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions"
".ExtractionRequests."
"ElektronTimeseriesExtractionRequest",
"ContentFieldNames": [
"Trade Date", "Open", "High", "Low",
"Last", "Ask", "Bid", "Volume"
],
"IdentifierList": {
"@odata.type": "#ThomsonReuters.Dss.Api.Extractions."
"ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{
"Identifier": {
  {product}}, #For example .SPX .N225 ....
"IdentifierType": "Ric"
}
],
"UseUserPreferencesForValidationOptions": "false"
},
"Condition": {
"StartDate": "{0:%Y-%m-%dT00:00:00.000Z}".format(datetime(1985, 1, 1)),
"EndDate": "{0:%Y-%m-%dT00:00:00.000Z}".format(datetime.now())
}
}

But rarely "HTTP 202 StatusCode" or "HTTP 429 Error" is returned. For 202code, it is solved by repeating the retry, but for 429error, the retry also fails.

Error code 429 | Client Error: Too Many Requests - Too many requests, please try again later.

Looking at other questions, there seems to be a limit (For example, 5 times per second). Please tell me all other limits.

Many thanks in advance.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Christiaan Meihsl · Oct 03, 2019 at 09:57 AM

@mdt,

Yes, there are limits that apply to the API calls. If you exceed a limit, then you receive an HTTP status 429. To understand the limits I suggest you start by looking at the TRTH Best Practices and Limits document, as well as the extractions limit page.

That said, I am a bit intrigued by this statement: "For 202 code, it is solved by repeating the retry". A 202 is not an error, it is a normal message that occurs when a request takes longer than 30 seconds to extract all the data (which is a frequent occurrence). If you receive a 202 you should not repeat the request, as that adds an additional request in parallel that burdens the server. When you receive a 202 you should poll the location URL to detect when the extraction is complete. The workflow is described in the TRTH REST Tutorial 3. This is because requests are asynchronous (for more details, see the async help page).

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

TRTHv1 Qualifier in TimeAndSales/Trade for NSQ and NYQ

About GMT display issue

TRTH license and Multiple usage

Difference in bahaviour if instruments are validated before before populating a request

How to parse downloaded elektron timeseries?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges