Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by generatedbyseed · Oct 23, 2018 at 09:23 AM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikoneikon-com-apiexceltime-stamp

RHistory Excel - Receive multiple Instruments without redundant TIMESTAMP

I'm currently working with the Thomson Reuters Excel Add-In to fetch data using the TRHistory function.

=RHistory("EUR=;EURPLN=","BID.Timestamp;BID.Close";"START:cell_ref END:cell_ref Interval:1D",,"Sort:ASC CH:In;FD DAY:A NULL:NA", B4)

This code does indeed receive the data, but unfortunately adds TIMESTAMP columns for every single instrument (in this case "EUR=", "EURPLN="). I'm required to fetch the data in the following format:

DATA       EUR= EURPLN= ...01.01.2018 ...  ...     ...

Dates with missing data in any of the instruments may be skipped or "NA" as data would be fine as well. My current approach was to use the "RHistory" function two times - once to receive the dates, another to download the actual data.

Sadly the approach fails, since it's not possible to receive the data excluding the TIMESTAMP field.

You must specify the TIMESTAMP field when you specify NULL for interday intervals.

How can I change my approach to get the desired outcome?

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 Zhenya Kovalyov · Oct 23, 2018 at 09:35 AM

@e209120f-b953-40e3-b871-df76718a1c1f there is something not right with your sample request, as in, I do not recognize the field names.

You can use a 'TSREPEAT:NO" not to repeat the timestamp column. Here is the function:

=RHistory("EUR=;EURPLN=","BID.Timestamp;BID.Close","INTERVAL:1D",,"TSREPEAT:NO Sort:ASC CH:In;FD DAY:A NULL:NA")

DAY:A shows all days including the weekend. Are you sure that you need that as well?

In future, it is better if you address the questions not related to the API functionality to your local product support desk.


screenshot-2018-10-23-at-143500.png (52.8 KiB)
Comment
generatedbyseed
SupDev1

People who like this

2 Show 1 · 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.

avatar image
generatedbyseed · Oct 23, 2018 at 09:42 AM 1
Share

Thank you for the support. I fixed the field names to not further confuse future readers.

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 >
7 People are following this question.

Related Questions

RHistory in Python

On repeated dates inside a request

Exchange Specific RIC

Can I retrieve the P/E and Auditor datapoint of a Fund (Unit Trust) in Excel using the API?

Eikon Excel API formulas disappeared

  • 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