Our client would like to get FX data,e.g. "JPY=".Is codebook provide data with interval=minute、field

data = ek.get_timeseries('JPY=',

fields=['Timestamp','Close'],

start_date = '2021-09-13',

end_date = '2021-10-14',

interval='hour')

data.head()

Best Answer

  • raksina.samasiri
    Answer ✓

    Hi @Olivia.Zhang ,

    I'd like to add that get_timeseries() function also supports 'minute' interval. (please adjust the end_date to get the data because as mentioned by my colleague, it maintains only one year of intraday summary data)

    1669969779365.png

    The code below can be used to check the available parameters of this function, for example,

    help(ek.get_timeseries)

    the output is as below

     interval: string
    Data interval.
    Possible values: 'tick', 'minute', 'hour', 'daily', 'weekly', 'monthly', 'quarterly', 'yearly' (Default 'daily')
    Default: 'daily'
    1669969907474.png

Answers