Hey. I am calling the instrument pricing analytics serivce, specifically: https://api.refinitiv.com/data/quantitative-analytics/v1/financial-contracts
import refinitiv.dataplatform as rdp
...
endpoint = rdp.Endpoint(session, 'https://api.refinitiv.com/data/quantitative-analytics/v1/financial-contracts')
req = get_request_body(swap_name, currency, legs, valuation_date, forward_starting_date, tenor=tenor)
rsp = endpoint.send_request(method = rdp.Endpoint.RequestMethod.POST, body_parameters = req)
This works okay mostly but I get two different errors when trying to run this across several dates:
- ReadTimeout <- just fails with no more information.
- Too many requests <- fails seemingly because I issue too many requests.
I tried inserting some "sleep" commands but still get the same error. I am certainly issuing many requests, but does anyone know the policy so I can throttle this, if that is the case.
And, how can I avoid the "timeout" error? I don't care if it takes a long time to respond; I can happily just execute my code overnight if needed.