question

Upvotes
Accepted
11 4 7 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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvote
Accepted
39.4k 77 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 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.