How can I filter tick data in python eikon.get_timeseries() on basis of tradingHours of exchange sim

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"

Best Answer

  • 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)]