DDS REST API - HttpResponseException: Service Unavailable

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.

Best Answer

  • Guor-Huar.Lu
    Answer ✓

    @erik.gomersbach Hi Erik, sorry for the delay but after looking at the code I can confirm pagination for those calls are not implemented fully as indicated by Troy. May I know what your use cases are so I can bring this up to product management team to see if we can put in an enhanecment request?

Answers