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

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

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

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.