How to fetch data from SIT/CDIT through JET API?

Hello, It seems that the JET API only can fetch data from the default source. Is there a way to specify a source(e.g. SIT, CDIT) when subscribing chain/RIC's update? Thanks, Bo

Best Answer

  • Yes. You can use the **feedName** specification within your request. For example:

    JET.Quotes.create()
    .feedName('Q')
    .rics(item)
    .formattedFields("CF_LAST")
    .onUpdate(function(subscription, ric, updatedValues)
    {
    if ( updatedValues.CF_LAST )
    console.log("onUpdate: ric: " + ric + ", last: " + updatedValues.CF_LAST.formatted);
    })
    .start();

    So long as your running Eikon environment is aware of the feed, i.e. 'SIT', 'CDIT', etc, you should be able to access your content.

Answers