How to get TR.PE at a historical date?


Suppose I want to get the TR.PE for AAPL.O on 12/31/2018, only for that day, no other time series data needed. How to do that? where am i


Thanks!

Best Answer

  • nick.zincone
    Answer ✓

    Hi @ashking0198,

    Try this:

    df, err = ek.get_data("AAPL.O", ["TR.PE", "TR.PE.date"], {'SDate': '2018-12-31', 'EDate': '2018-12-31'})
    df

    image