How to retrieve the holiday dates of all these instruments ESc1, HGc1, CLc1, USc1, GCc1 via Eikon Py
I have ESc1, HGc1, CLc1, USc1, and GCc1 contracts. I'm using the Eikon Python API. I need to retrieve the holiday dates of all these instruments. Please tell me the command to do so
Similar to this in Eikon Chart
Best Answer
-
As far as we are aware, there is no specific API that allows you to retrieve the holiday for a specific RIC - the suggestion above will allow you to pull down the holiday schedule within a specific country. I would suggest you reach out to the desktop "Help & Support" (F1) option within the desktop - they can confirm if such a feature is available for users to access via an API.
0
Answers
-
Hello Team,
Any update on this please?
0 -
Hi @jeremiemae.celajes ,
The Eikon Data API get_data and get_timeseries functions return data to the application as the Pandas DataFrame object. Then the application can use Pandas to_excel or to_csv function to export data to Excel/CSV file format.
I suggest you check the Eikon Data API tutorials page which will give you an idea of how to get data from the API.
If you want to export the "Graph" to Excel, you can draw the Pandas DataFrame object to be a graph with any libraries (such as matplotlib.pyplot) and use other 3rd party Python-Excel libraries to export Dataframe and Graph to Excel. You can find more examples of how to export data and graphs to Excel with the xlwing library in the following articles:
- How to integrate Financial Data from Refinitiv to Excel with Xlwings - Part 1
- How to integrate Financial Data from Refinitiv to Excel with Xlwings - Part 2
The articles use Refinitiv Data Platform Library for Python as an example API, but it should be adapted to Eikon Data API easily.
Hope this helps and please let me know in case you have any further questions.
0 -
Hello @raksina.samasiri
Thanks for the update.
Not a graph but code to get Holiday Dates similar to the Chart screenshot shared. I have tried this
df, error = ek.get_data("ESc1", ["TR.ClosePrice.Date","TR.ClosePrice"],
{'SDate':'2022-01-01', 'EDate':'2022-05-01','Frq':'C'})
But getting an error.
How to retrieve the holiday dates of all these instruments ESc1, HGc1, CLc1, USc1, GCc1 via Eikon Python API?
Is this possible?
Thanks in advance
0 -
@raksina.samasiri Is this possible in Eikon Python API0
-
Please refer to this discussion.0
-
Hello Team @raksina.samasiri @Jirapongse
Please see the below from the client.
Please have a look at the list of holidays that is listed in the screenshot I shared with you. That is SPECIFIC for a given instrument. Now try changing the chart from ESc1 to GCc1 and so on. Click on chart properties and navigate to the holiday's tab.
Notice how the list of holidays is different (A difference of a couple of days here and there.). That difference is the reason why I am asking for an API so that I may automate it. This is different from what you've replied to me just now. THIS IS SPECIFIC FOR EACH INSTRUMENT.
Please advise if this is possible in Eikon Python API
Thank you in advance
0 -
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛