The WebSocket API doesn't always return the State information within a REFRESH

I noticed when requesting for market data using the WebSocket API, the REFRESH doesn't always include the State information. Specifically, if I submit a streaming request, which is the default, no State information is returned. However, I can see State details when I make a Non-streaming request.

Reading the documentation, it states:

"The state of the event stream when using the request/response with interest paradigm. All nonstreaming requests will contain a stream state of non-streaming."

It is not clear from this description if the above behavior is intentional. In fact, I'm not sure what the above is actually saying.

Best Answer

  • jim.carroll
    Answer ✓

    @nick.zincone.1

    If the Refresh does not include the State, it can be assumed that the StreamState is "Open" and the DataState is "Ok". We will work to clarify the description.

Answers