The underlying technology for the Coherent Datafeed: Thomson Reuters Edition is written in Java and relies on the popular Maven software project management and comprehension tool to build the project.

We have configured the build script to use the Maven Shade Plugin so that the contents of all dependencies can be combined into one single Java archive (jar) file.

Below is an example where we query Thomson Reuters for Market Price updates for several Reuters Instument Codes (RICS); note that this script is 40 lines of code and is written in the Groovy scripting language.

import com.coherentlogic.coherent.datafeed.client.Client
import static com.coherentlogic.coherent.datafeed.misc.Constants.DACS_ID
import com.reuters.rfa.common.Handle
import org.slf4j.LoggerFactory

def log = LoggerFactory.getLogger(;

Client client = new Client ()


def dacsId = System.getenv(DACS_ID)

def loginHandle = client.login(dacsId)


def marketPriceService = client.getMarketPriceService ()

def itemHandles = marketPriceService.query(

long ctr = 0;

while (true) {
    def nextMarketPriceUpdate =
        marketPriceService.getNextUpdateAsJSON(); ("nextMarketPriceUpdate[" + (ctr++) + "]: " +

The jar files required for this demonstraction application are:

  • coherent-datafeed-assembly-0.9.3-SNAPSHOT.jar
  • rfa-7.4.1.L1.jar

The following image demonstrates some output which was captured when the application was running in the Groovy Console.

Java Documentation | Bitbucket

Leave a Reply

Close Menu
Close Panel