I'm trying to perform an "FuturesAndOptionsSearch" for all options on the exchange "OPQ", using the REST HTTP API (e.g. I'm not using C#).
Ideally I would like to make an asynchronous request, but that doesn't seem to be possible for search? Now I'm using pagination, and am running into the following issue:
- If I set the "maxpagesize" to 200k, I get "HttpResponseException: Service Unavailable" (HTTP status: 503)
- If I set the "maxpagesize" to 50k, I get 5 pages, but the 6th fails with "HttpResponseException: Service Unavailable" (after approximatel 4 minutes)
I'm looking for any reccomendation on how I can get this to work reliably.