Get data for weekends and holidays

Hi Team,


Please advise what can we add to include weekends and holidays for the script below,


df, err = ek.get_data(

['GIVN.S'],

['TR.priceclose','TR.closeprice', 'TR.fundnav', 'TR.PriceCloseDate'],

{'SDate': '2022-11-04', 'EDate':'2022-11-06','CURN':'USD' }

)

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @kenley.macandog123

    Sorry for the issue you are facing, let me see if I can help you in resolving this.

    You can try the following code.

    df, err = ek.get_data(
    ['GIVN.S'],
    ['TR.priceclose.calcdate','TR.priceclose','TR.closeprice', 'TR.fundnav', 'TR.PriceCloseDate'],
    {'Frq':'C','SDate': '2022-11-04', 'EDate':'2022-11-06','CURN':'USD' }
    )
    df

    The output is:

    1667963818025.png


    'Frq':'C' represents "Calendar Days".

    I hope this will help.