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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 1

How can I filter tick data in python eikon.get_timeseries() on basis of tradingHours of exchange similar to eikon excel plugin parameter "tradingHours:Yes"

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonexcelparameters
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.

1 Answer

Upvotes
Accepted
4.6k 26 7 22

I guess the answer is no, however, you can do it manually if you know the trading hours for the specific instrument. Use this if df is the name of your pandas data frame, and index is DatetimeIndex

df.loc[np.logical_and(df.index.hour >= 8, df.index.hour <= 16)]
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