How do I display the date of all price data?

image


Hi? 
I would like to receive a close prcie of 005930.KS as in the picture above.
I would like to display the date next to all the price data, but now only the price of April 26th is showing the date.
What do I need to fix to get the date displayed next to all price data?

Best Answer

  • chavalit-jintamalit
    Answer ✓

    Hi @H_U

    You can try these codes:

    field-level parameters:

    rics = ['005930.KS','GPPL.CA']
    fields = ['TR.CLOSEPRICE(SDate=2021-01-04,EDate=2021-04-26,Frq=WD,FILL=PREVIOUS).date',
              'TR.CLOSEPRICE(SDate=2021-01-04,EDate=2021-04-26,Frq=WD,FILL=PREVIOUS)',
              'TR.ACCUMULATEDVOLUME(SDate=2021-01-04,EDate=2021-04-26,Frq=WD,FILL=PREVIOUS)']

    df,e = ek.get_data(rics, fields)
    df


    Or function-call-level parameters:

    rics = ['005930.KS','GPPL.CA']
    fields = ['TR.CLOSEPRICE.date','TR.CLOSEPRICE','TR.ACCUMULATEDVOLUME']
    parameters = {'SDate':'2021-01-04','EDate':'2021-04-26','Frq':'WD','FILL':'PREVIOUS'}

    df,e = ek.get_data(rics, fields, parameters)
    df

Answers