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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 1

stream stat and data state are not present in WebSocket API Refresh Message.

When making a request with WebSocket API, I see no stream or data state indication in the Refresh response message.

{
"QOS" : {
"Rate" : "TickByTick",
"Dynamic" : true,
"Timeliness" : "Realtime"
},
"Type" : "Refresh",
"Id" : 3,
"Fields" : {
"BID" : 0.01,
"BIDSIZE" : 1,
"ASK" : 9000
},
"Key" : {
"ServiceId" : 257,
"Name" : "TRI.N"
}
},

treprdp-apiwebsocketsrrtorefreshstream-state
icon clock
10 |1500

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

@michael.sherman

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
361 1 4 3
@michael.sherman

The doc is not clear on this, but if the Refresh does not include a State, it can be assumed that the StreamState is "Open" and the DataState is "Ok".

icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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