get exchange rate on a certain time

Hi,

May I ask how to get the traded exchange rate of EUR/USD on 5:00 P.M. by ek.get_timeseries?

Thank you

Best Answer

  • @YanHan Please try the following - I hope this can help

    df1 = ek.get_timeseries('EUR=','CLOSE',interval='hour')
    df1['hour'] = df1.index.hour
    df1[df1['hour']== 17]

    1624289436995.png