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.

    library("cdatafeedtre")
    Initialize()
    Login("*** ADD YOUR DACS ID HERE***")

    rics <- c("GOOG.O", "MSFT.O")

    Query(rics)

    while (TRUE) {
        nextUpdate <- GetNextUpdate()
        print(nextUpdate)
    }
    Logout()

That’s it!

Share on LinkedInShare on TwitterSave on DeliciousDigg ThisSubmit to redditSubmit to StumbleUponShare on XingShare via email