Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
11 1 2 4

Get data for weekends and holidays

Hi Team,


Please advise what can we add to include weekends and holidays for the script below,


df, err = ek.get_data(

['GIVN.S'],

['TR.priceclose','TR.closeprice', 'TR.fundnav', 'TR.PriceCloseDate'],

{'SDate': '2022-11-04', 'EDate':'2022-11-06','CURN':'USD' }

)

eikon-data-apipython
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.

1 Answer

· Write an Answer
Upvote
Accepted
80.1k 257 52 75

@kenley.macandog123

Sorry for the issue you are facing, let me see if I can help you in resolving this.

You can try the following code.

df, err = ek.get_data(
    ['GIVN.S'],
    ['TR.priceclose.calcdate','TR.priceclose','TR.closeprice', 'TR.fundnav', 'TR.PriceCloseDate'],
    {'Frq':'C','SDate': '2022-11-04', 'EDate':'2022-11-06','CURN':'USD' }
)
df

The output is:

1667963818025.png


'Frq':'C' represents "Calendar Days".

I hope this will help.


1667963818025.png (56.4 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.