For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 3

30 Day API

I'm pulling 30 days of price using historical tick data. 30 Days prior to my issue request was Juneteenth (6.20), a holiday, so the price came out to 0, for example with GOOGL, it was off when we tried to calculate.

I know I can likely change our process to look back on the previous active business day and that solution will solve that, but I also noticed on my eikon desktop that there was period data in eikon.

Is this available via API pull today?

eikon-data-apiapirrtoprice-historyholiday
icon clock
10 |1500

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

@Spencer.Dixon

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@Spencer.Dixon

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
32.2k 40 11 20

Hello @Spencer.Dixon,

I think this is in reference to something like:

dfResult = ek.get_timeseries(['GOOG.O'], 
start_date = '2022-06-15',
interval = 'daily')
dfResult

Resulting in:

resgoog.gif

I believe what is happening is API is pulling content as is, unadjusted, and for interday time series requests, weekends and holidays are omitted, whereas in Eikon it is being presented differently, the missing data points are extrapolated and filled in.

See this previous discussion thread with insightful answer from Alex about the same. The adjustment that is done depends on the type of instrument and the market and so it is best to check with Refinitiv content if you would like to know what is done for a specific instrument.

Next, pandas can be used to implement backfilling, similar to what is described in Handling Missing Data in Pandas.


resgoog.gif (25.9 KiB)
icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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