Skip to main content

Value Channel

CHANNEL

value

The value channel provides real-time value updates for indices.

Subscribe Request

MESSAGE BODY

type string required
Value: subscribe
stream string required
Value: value
id string required
stream ID

Responses

No ack response if successful. The most recent value will be sent, and subsequent values until the unsubscribe command is sent.

MESSAGE BODY

type string
Value: value
id string
Stream ID
time string
Calculation time of value in milliseconds since Unix epoch
value string
Index value
amendTime number conditional
Condition: If the value has been amended after being previously published
This field indicates the time of the amendment in milliseconds since Unix epoch
repeatOfPreviousValue boolean conditional
Condition: If an error has occurred during calculation such that an index value could not be calculated for that day, and it has been replaced with the value from the previous day.
Value: true

Unsubscribe Request

No direct response if successful. Messages for the subscription will cease.

MESSAGE BODY

type string required
Value: unsubscribe
stream string required
Value: value
id string required
stream ID