How to get exchange/venue holidays?

Hello,
I would like to get the list of holidays given a specific exchange, wondering where and how I can find this information.
Alternatively, it would also be fine if I can retrieve whether it is a trading day given a specific stock and a specific date.
I ask this because during my discovery, I can only find calendars based on ccy and reigon and historical data for in instrument's activity.
Best Answer
-
For that one, the code will be like this:
fields = [] for i in range(1,26): fields.append(f"ROW80_{i}") df = ld.get_data( universe = ['US/HOLIDAY'], fields = fields) df.transpose()
However, the holiday is in a string format. It may be difficult to parse those dates.
0
Answers
-
Thank you for reaching out to us.
Please confirm the LSEG products or APIs that you are using.
If you use the LSEG Workspace, you can use the LSEG Data Library for Python to get holidays. The Dates and Calendars API in the LSEG Data Library for Python can return holidays between a start date and an end date using calendar or/and currency codes. For example:
holidays = ld.dates_and_calendars.holidays( start_date="2023-01-01", end_date="2023-12-31", calendars=["USA", "FRA"] ) holidays.df
You can also to the sample code on GitHub.
0 -
Hi @Jirapongse,
Thanks for your answer, I'm using the LSEG Workspace and api (trapi), but what you showed with LSEG Data Library for Python will also work for me.
However, I problem I'm facing is that I'm not sure if this is the exchange holiday schedule I'm looking for, it seems to be the national holiday?
so really the two kinds of corner cases for me would be:- Stock exchange holidays differ from national or public holidays
NSE: Columbus Day & Veterans Day; SGX: Hari Raya Haji - Exchanges that don't follow the calendar of their country
HKEX; NYSE Euronext; BIST
0 - Stock exchange holidays differ from national or public holidays
-
Hi @dqw ,
Thank you for posting the question in this forum. However, this forum is dedicated to an API usage question hence, the moderators on this forum do not have deep expertise in every type of content available through our products, such as the exchange holiday schedule. Such expertise is available through the Helpdesk, which can be reached via MyAccount then the support team is going to contact you directly to assist with this.
0 -
Hi @raksina.samasiri @Jirapongse,
After communicating with helpdesk, allow me to rephrase my questions, how do I get the equivalent data of the 'World Exchange Holidays' app, and especially for Partial day closure and Full day closure holiday type, and not public holidays.
I suppose it would also work if the above data could include data holiday type.
for your reference: https://myaccount.lseg.com/en/faqs/2019/08/000178233
1 -
You may check the answers on this discussion.
1 -
@Jirapongse
Thanks again for the answer,
what I'm looking for is something more like this:
https://community.developers.refinitiv.com/discussion/65255/is-there-a-way-to-get-holiday-calendar-for-markets-instrumen-wise-or-general-using-java-apibut this page is really old, anything more recent?
0 -
Hi @Jirapongse,
Thanks for the help! This is really useful. one last question, will it be possible to fetch not just the current year, in this format(with GENERAL INFORMATION)?0 -
With this method (US/HOLIDAY), it appears that it only returns data for the current year
0 -
@Jirapongse in that case, would you mind providing the endpoint for the elektron API for this data? I don't seem to find it in the api playground
0 -
The data is from the streaming real-time service.
It is the same data displayed in the Quote App.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 697 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 2.9K Elektron
- 1.5K EMA
- 256 ETA
- 564 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 283 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2.1K Refinitiv Data Platform
- 779 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 122 Open DACS
- 1.1K RFA
- 107 UPA
- 194 TREP Infrastructure
- 231 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 98 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛