For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
9.7k 49 38 60

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.

elektron-sdktreprdp-apiwebsocketsrrtostatusrefresh
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
361 1 4 3

@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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Thanks Jim. Yes, I was already assuming Òpen and OK just wanted to confirm if this was intentional.

Click below to post an Idea Post Idea