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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 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 5.0 MiB each and 10.0 MiB total.

1 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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea