How to retrieve each feauture found in the data item browser functionality?

Hello, I'm new to the lseg data library. I'm trying to retrieve information with get_history() but have a hard time finding all possible field values. When I search for input CF_CLOSE which can be found for RIC: "0#.SPX" in the data item browser functionality I get error.

When I make query for "TR.PE" field which is not in the data item browser, like in the following example, I do get data.

df1 = ld.get_history(    universe=["0#.SPX"],    fields=["TR.PE"],    interval="1D",    start="2021-10-01",    end="2021-10-03",)df1

How can I know which function allows me to retrieve each parameter found in the data item browser functionality and where can I found the correct codes for the fields?

Thanks

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @unisalibrary20

    Thank you for reaching out to us.

    You can try this one:

    df1 = ld.get_history(    universe=["0#.SPX"],    fields=["TR.PriceClose"],    interval="1D",    start="2021-10-01",    end="2021-10-03",)
    df1
    

    If you are unable to find the correct fields, please contact the helpdesk team directly via MyAccount.