Two-minute Tutorial (Real-Time Market Data)

If you are interested in testing or using the Coherent Datafeed: Thomson Reuters Eikon Edition please take this simple three-question survey and we will let you know when the product is available for testing.

Java Documentation | Bitbucket

Here’s an example R script that will login to Thomson Reuters, query for market price updates using Microsoft and Oracle symbols, and then loop forever, printing each update as it arrives.

    Login("*** ADD YOUR DACS ID HERE***")

    rics Query(symbols=rics)

    while (TRUE) {
        nextUpdate GetNextUpdate(timeout="120000")

That’s it!

Note that the timeout parameter is used to indicate the duration the R Gui will wait for an update to return in milliseconds — in the example above, this equates to two minutes. Keep in mind that if no timeout is declared the R Gui will wait forever for a result to be returned.

Once the timeout period has elapsed and no update has been issued, the package will return NULL — the user can check for NULL as follows:

    if (is.null (nextUpdate)) {/* handle null nextUpdate. */} else {/* handle non-null nextUpdate. */}

Example OutputExample Output

Leave a Reply

Your email address will not be published. Required fields are marked *