question

Upvotes
Accepted
11 3 5 9

Is there a JET Field that indicates if a RIC's data is delayed or real time?

There are several fields that indicate a time of last update, bid, ask, etc. But those can't be used directly to determine if the instrument is receiving delayed market data or not, since the last bid price could have legitimately come in some time ago. What I'm looking for is a simple way to determine if the data coming in for RIC is being delayed at all or if it's real time live market data.

jet
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

Upvote
Accepted
39.2k 75 11 27

Hi @mbarr,

The first update received for the RIC is the status update. For delayed RICs the raw value of "STATUS" is 5, the formatted value is "DELAYED". In the handler for onUpdate event you could do something like

function onUpdateHandler(subscription, ric, updatedValues) {
	if (updatedValues["STATUS"]) {
		if (updatedValues["STATUS"].formatted === "DELAYED") {
			console.log("RIC " + ric + " is delayed");
		}
	}
}
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