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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
5 1 1 3

get_data properties

does get_data have a calendar property similar to get_timeseries? I'm looking to use get_data to return NAV history but want to limit it to trading days only.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikon
icon clock
10 |1500

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

Upvotes
Accepted
23k 22 9 14

Hi @jason.miller,

From what I am seeing, all weekends, 1/2, 1/3, etc, are excluded as expected?

This should correspond to the same content as provided by Eikon/RW Excel?

However, you make a good point about 1/1.

How about filtering out any holidays that did not result in any values, something like:

df, err = ek.get_data('AT0000675665',['TR.NETASSETVAL.Date','TR.NETASSETVAL'],{'SDate':'2021/01/01', 'EDate':'2021/02/02', 'Frq':'D'})
df.loc[df['Net Asset Value'] != '<NA>']

from the result?

icon clock
10 |1500

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

Upvotes
23k 22 9 14

Hello @jason.miller,

Would this be what your are looking for:

ek.get_data('AT0000675665',['TR.NETASSETVAL.Date','TR.NETASSETVAL'],{'SDate':'2021/01/01', 'EDate':'2021/02/02', 'Frq':'D'})

Resulting in

Please find additional relevant info on Net Asset Values in this previous discussion thread and additional info on DIB and frequency lookup in this previous discussion thread.


nav.gif (18.2 KiB)
icon clock
10 |1500

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

Upvotes
5 1 1 3

Hi, that didn't quite work for the fund in question, SVDHX. Even including the parameter argument, i still see NAVs on non trading days (e.g., 1/1/21), which is what I'm trying to avoid


icon clock
10 |1500

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

Upvotes
5 1 1 3

Ok, yes, I can do that. I was just checking to see if there was an argument I could use that might be a little cleaner

icon clock
10 |1500

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

Click below to post an Idea Post Idea