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 marcelo.hiroki · Nov 29, 2019 at 12:26 PM · get_timeseriesdatetime

R doesnt recognize datetime.now on get_timeseries

Im testing the eikon kibrary in r and get_timeseries returns an error because R doesnt recognize datetime.now. I couldnt find a package with this function. Does anyone knows how to fix it?

message error:

df =get_timeseries (as.list ('MSFT.O'),
+                     "2016-01-04",
+                     "2016-01-06",
+                     debug = FALSE)
Error in datetime.now(tzlocal()) : could not find function "datetime.now"

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 jirapongse.phuriphanvichai · Dec 02, 2019 at 03:05 AM

@marcelo.hiroki

Refer to the eikonapir page, the usage of get_timeseries is:

get_timeseries(rics, fields = "*", start_date = NULL,
  end_date = NULL, interval = "daily", normalize = FALSE,
  count = NULL, calendar = NULL, corax = NULL, raw_output = FALSE,
  debug = FALSE)

The second parameter is fields, not date, and the date format is "2016-01-04T00:00:00". Therefore, the working code is:



1575255851652.png (34.7 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 >
10 People are following this question.

Related Questions

get_timeseries returns full DataFrame when queried for holidays

Swaption bp vol time series data retreival in python

Requested field values from get_timeseries into different currencies.

Eikon API Income Statement Original Announcement Date and TIME

How to get final OHLCV on a day after the business date rolls (e.g. after 6pm New York)

  • 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