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 /
avatar image
Question by HeikoRR · Mar 22, 2020 at 11:56 PM · reikonapirbloombergsample codescript

Bloomberg R user switching to Eikon/eikonapir - sample R scripts/field mappings

R, eikonapir

I switched from many years as Bloomberg R user to Eikon, installed the R eikonapir library and used get_timeseries() to retrieve historical data mainly equity related.

My problem: Mapping of Bloomberg fields to Eikon. I use the Eikon Excel formula builder, but these fields don't seem to work. Example, in Excel Eikon shows for Closing Price the field TR.PriceClose but there is no data using (only using get_data() for last price).

get_timeseries(list("MSFT.O","VOD.L"),

list("TIMESTAMP","TR.PriceClose"),

"2020-01-01T00:00:00",

"2020-01-10T00:00:00")

Replacing TR.PriceClose with Close does work:

get_timeseries(list("MSFT.O","VOD.L"),

list("TIMESTAMP","CLOSE"),

"2020-01-01T15:04:05",

"2020-01-10T15:04:05")

Question: Does anyone has a reasonable R sample script downloading the usual items, like volume, 30 days ADV, shares outstanding, PE ratios

Many thanks!

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.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by jirapongse.phuriphanvichai · Mar 23, 2020 at 03:02 AM

@HeikoRR

When using the TR function in Eikon Excel to retrieve the data, you need to use the get_data method in the R eikonapir library to get the same data. For example:

data_frame2 <- get_data(list("MSFT.O","VOD.L"), 
                        list("TR.PriceClose.Date","TR.PriceClose","TR.Volume","TR.SharesOutstanding","TR.PE","TR.AvgDailyVolume30D"),
                        list("Frq"="D","SDate"="2020-01-01","EDate"="2020-01-10"))
data_frame2

However, you need to contact the Eikon Excel support team via MyRefinitiv and ask for fields that can be used with the TR function to get the required data.



1584932286553.png (46.2 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.

avatar image
Answer by HeikoRR · Mar 24, 2020 at 09:39 PM

Many thanks - works perfectly!

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

Related Questions

eikonapir setting without need for API proxy

R eikonapir: returns data.frame with NA only

R eikonapir - Proxy

Eikon API HTTP errors in previously working scripts

how to use eikonapi fetching Bond data in R?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges