Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
Question by gaurav.gupta2 · Apr 04, 2018 at 07:13 AM · treprfarfa-apieikon-com-api

Need an example to retreive RHistory Data using RFA jar

Need an example to retreive RHistory Data using RFA jar.

I need an equivalent of RHistory function present in EIKON in RFA/Elektron.

Need the example in Java/Scala.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by pimchaya.wongrukun01 · Apr 04, 2018 at 11:13 PM

Hello @gaurav.gupta2

RFA Java can consume history data i.e. Time Series One (TS1). However, it cannot provide the function equivalent to RHistory e.g. specific the fields or Start date and End date. RFA Java will retrieve all fields received from the feed according to the request with specific frequency i.e. daily, weekly, and monthly. To do the equivalent RHistory function, the application has to implement by itself after it receives historical data from RFA Java.

For detail of TS1; historical data that RFA Java consumes, please refer to TS1 Reference manual document,[RFAJ package]\Docs\TS1Data.pdf.

RFA Java provides the console application, TimeSeriesConsole , shows how to retrieve TS1 historical data from a remote service, decode it, and print it to the console. The source code and its help is in [RFAJ package]\Examples\com\reuters\rfa\example\omm\idn\tsconsole

An example command line running TimeSeriesConsole at [RFAJ package]\Examples to consume RIC PTT.BK in daily for 3 samples:

java -cp .;..\Libs\rfa.jar com.reuters.rfa.example.omm.idn.tsconsole.TimeSeriesConsole -session myNamespace::consSession -serviceName ELEKTRON -itemName PTT.BK -user pimchaya -count 3

For detail of each application’s parameter, please refer to package.html in the TimeSeriesConsole source code folder.

An example output:

The result is 3 days back from now. I run in the morning 5 Apr. Hence, it showed the history data of 4,3 and 2 Apr.

To set the frequency to be the other e.g. monthly or weekly, change the period in TS1TimeSeries parameter in processComplete() method of TimeSeriesConsole.java for example:

Set to monthly:

TS1TimeSeries timeseries = new TS1TimeSeries(_appContext, itemName,
			TS1Constants.MONTHLY_PERIOD, count);

Set to weekly:

TS1TimeSeries timeseries = new TS1TimeSeries(_appContext, itemName,
			TS1Constants.WEEKLY_PERIOD, count);

Then, compile and run it.

Unfortunately, there is no Scala example to retrieve historical data TS1. However, you can develop a Scala application by following TimeSeriesConsole application.


sampleresult.png (11.4 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

No data in CF_VOLUME and ACVOL_1 for Chilean exchange

Provider accepting state interaction with ADH with discourageRequestsOnOutage enabled

When will you release new RFA package which include the latest appendix_a, enumtype.def, RDMFieldDictionary and so on?

RFAJ8.0 ConfigDb, unable to acquire a Session

Borsa Instanbul ISE 30 Index price feed

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges