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.

Tagged:

Best Answer

  • 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");
    }
    }
    }