Global Directory
Global Directory
EXPLORE OUR SITES
London Stock Exchange Group
LSEG Data & Analytics
MyAccount
LSEG Perspectives
London Stock Exchange
FTSE Russell
LCH
Contact Us
Home
App Studio
How to get full data image immediately when there is no update on the specified chain or RIC?
Bo Feng
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
Find more posts tagged with
javascript
eikon
jet
app
eikon-app-studio
Accepted answers
nick.zincone
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.
All comments
nick.zincone
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.
Quick Links
All Forums
Recent Questions
Terms of use
Privacy & Cookie Statement
Cookies settings
Do not sell my info
Whistleblowing
UK Bribery Act
Modern Slavery Act