How to get full data image immediately when there is no update on the specified chain or RIC?

Hello, As I known, JET.Quotes can subscribe updates from chain or RIC, but how to get the initial data through JET? For example, how to get the initial value of the RIC ".DJI" immediately when there is no update on it? Thanks a lot in advance. Bo

Best Answer

  • When using Thomson Reuters Market data API's such as RFA, SFC, JET, etc, subscriptions will provide a complete list of interested fields as an initial update. Any subsequent updates will contain only those fields of interest that have changed.

    For example, when you open a subscription to the chain 0#.DJI like this:

    JET.Quotes.create()
    .chain("0#.DJI")
    .formattedFields("CF_LAST")
    .onNewRow(function(subscription, ric, fieldValues, rowN)
    {
    console.log("onNewRow. Ric: " + ric + ", row: " + rowN);
    })
    .onRemoveRow(function(subscription ric, fieldValues, rowN)
    {
    console.log("onRemoveRow ric: " + ric + ", row: " + rowN);
    })
    .start();

    You will immediately get 30 updates within the .onNewRow callback. For Chains, a new row is either added or removed. So if the chain changes, you will see an update to one of these callbacks.