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.