question

Upvotes
Accepted
1 0 0 0

How can i get market holidays history in Python API

I want to build a calendar for FX trading

So i need several market's holiday data, e.g. US,JP,CN,GB,

I also need the historical data such as 2020-2023 to backtest

How can i do this in Python?

I've try the methods in Market Holiday in Websocket with time range and Currency holidays but I doesnt work

#product#contentexchange-holidays
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.

@zhuhongmin

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

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

Thanks,


AHS

1 Answer

· Write an Answer
Upvotes
Accepted
24.8k 54 17 14

Hello @zhuhongmin

Can you try my colleague answer in this HOLIDAY LIST using Eikon API in Python Dataframe old post?

The answer uses Data Library for Python which possibly matched your requirement more than those 2 old posts that uses the WebSocket API for the Real-Time platform.

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.