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.
Best Answer
-
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\tsconsoleAn
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.0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛