ek.get_timeseries method returning value error

Arguments are : list(ric_code),fields = ['CLOSE'], interval='daily', start_date=curr_date, end_date=2019-01-01, calendar="tradingdays"

Best Answer

  • Alex Putkov.1
    Alex Putkov.1 ✭✭✭✭✭
    Answer ✓

    @subarini

    It seems you missed an important point in both answers by @chavalit-jintamalit and @wasin.w. The type of the start_date argument must be either a datetime or a string. In your case it's neither. Make sure you enclose the value of 2019-01-01 in quotes, i.e. make sure you use

    start_date='2019-01-01'

    and not

    start_date=2019-01-01

    If indeed you are using quotes to enclose the value of the start_date argument and all your previous posts were missing the quotes by mistake, then please provide the full traceback of the error you experience.

Answers