Version 1.0.9 Release Details

Home | Bitbucket | Example | Commits | Javadocs

Download the R Package for the Thomson Reuters Elektron Platform

RTN.N RPackage Yahoo Finance ComparisonBA.N R Package Yahoo Finance ComparisonVZ.N R Package Yahoo Finance ComparisonDeutsche Bank (DBKGn.DE) Yahoo Finance ComparisonCS.N YFinance Java Comparison

Click below for more information

For R Project Users

The R Package offers functions for querying historic timeseries and real-time market price data from the Thomson Reuters Elektron Platform.

TRI.N Screen CaptureMSFT.O Screen CaptureGOOG.O Screen CaptureAMZN.O R Package / Yahoo Finance Comparison

Historic Time Series


Market Price Example

cdatafeedtrep::QueryMarketPrice(symbols = c("MSFT.O", "ORCL.O", "GOOG.O", "ILMN.O", "TRI.N"))

while (TRUE) {
    nextUpdate GetNextMarketPriceUpdate()

Market By Price Example

Note that for the following example, nextUpdate is a reference to a Java object.

cdatafeedtrep::QueryMarketByPrice(symbols = c("MSFT.O", "ORCL.O", "GOOG.O", "ILMN.O", "TRI.N", "DBSM.SI"))

while (TRUE) {
    nextUpdate GetNextMarketByPriceUpdateAsJavaObject()

Market By Order Example

cdatafeedtrep::QueryMarketByOrder(symbols = c("MSFT.O", "ORCL.O", "GOOG.O", "ILMN.O", "TRI.N", "DBSM.SI"))

while (TRUE) {
    nextUpdate GetNextMarketByOrderUpdateAsJavaObject()

Market Maker Example

cdatafeedtrep::QueryMarketMaker(symbols = c("MSFT.O", "ORCL.O", "GOOG.O", "ILMN.O", "TRI.N"))

while (TRUE) {
    nextUpdate GetNextMarketMakerUpdateAsJavaObject()

Performance Testing

The following table contains the JConsole performance metrics collected during ~19 hours of execution time for the example R script below.

OverviewVM SummaryMemoryThreadsMessages AddedClasses
RPackage OverviewRPackage VM SummaryRPackage MemoryRPackage ThreadsRPackage MBeansRPackage Classes

R Package Example Script With 100 RICs



For Java Developers

Maven Central Details:

Group: com.coherentlogic.coherent.datafeed.client

coherent-datafeed-client-{core, example}
coherent-datafeed-{db-int, jms-int, spark-int (pending)}

Version: 1.0.9-RELEASE

Elektron Time Series ExampleGBP/USD Spot Rate

Version 1.0.9 includes implementations for the following services:

- Authentication
- Directory
- Dictionary
- Market Price
- Market by Order
- Market by Price
- Market Maker
- Historic Time Series Data


A complete and working example can be found here.

Performance Testing

Please find an example application here, which was used for the performance test, below.

Note that when running the example application, an RFA session entry with the name "mySession" must exist in your configuration OR you must override this value -- see here for an example of the configuration we use. You may override this value using the following VM parameter: -DCDATAFEED_SESSION_NAME="yourSession"

OverviewThreadsVM SummaryMemory
CDTREP V 1.0.7 jconsole-overviewCDTREP V 1.0.7 jconsole-threadsCDTREP V 1.0.7 jconsole-vm-summaryCDTREP V 1.0.7 jconsole-memory

The framework includes the JAMon performance interceptor and can be configured to track performance statistics. In the examples below we have the performance interceptor applied to the EventDrivenEndpoint's processEvent method, which is the point by which the RFA API connects with our framework in order to process incoming messages.

JAMon Label=performanceMonitorService, Units=ms.: (LastValue=2.0, Hits=3606222.0, Avg=1.0194796659773027, Total=3676470.0, Min=0.0, Max=6739.0, Active=0.0, Avg Active=1.0, Max Active=1.0, First Access=Fri Aug 05 09:19:38 EDT 2016, Last Access=Fri Aug 05 15:55:49 EDT 2016)

These tests require Java 8 and were run on a Dell Precision T7500 with an Intel Xeon CPU (E5645 @ 2.40GHz) with 24GB of memory and Windows 7 64-bit operating system.

If you have questions about this product or need more information, feel free to send us an email.

Github Tree Master

Dependencies (Required for both R Package / Java API)

RFA version 8.0.1.E3.all, which can be found here, is not open-source and must be acquired from Thomson Reuters directly.

Maven users can install the dependency as follows:

mvn install:install-file -Dfile=./rfa.jar -DgroupId=com.reuters -DartifactId=rfa -Dversion=8.0.1.E3.all -Dpackaging=jar

This dependency is required for both the R Package and the Java API.

Be Advised

This framework uses the Google Analytics Measurement API (GAM) to track framework usage information. As this software is open-source, you are welcomed to review our use of GAM -- please see the class named and feel free to send us an email if you have further questions.

We do NOT recommend disabling this feature however we offer the option below, just add the following VM parameter and tracking will be disabled:


See Also