question

Upvotes
Accepted
196 30 51 55

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
eikoneikon-app-studiojavascriptjetapp
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
17.2k 82 39 63
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.
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.