cannot find etf ticker in codebk

I am attempting to download the historical prices for the following assets: GDAXIEX.DE, IBTLl.DAp^G21, LP68048431. I am using the usual command:

rd.get_history(universe=asset_name, fields="BID", interval="1D", start=start_date, end=end_date)

However, I am encountering an issue. It seems that the asset names I need to use as input might differ from how they are listed on the Portfolio & List Manager page. As a result, the system is not retrieving any prices. Could you please assist me in resolving this?

Best Answer

  • @a.melo

    If you don't specify the fields parameter, it will return all available real-time fields.

    start_date = "2008-01-01"
    end_date = "2023-10-22"
    #rd.get_history(["GDAXIEX.DE"],start=start_date, end=end_date)
    #rd.get_history(["IBTLl.DAp^G21"],start=start_date, end=end_date)
    rd.get_history(["LP68048431"],start=start_date, end=end_date)

    GDAXIEX.DE supports BID field. IBTLl.DAp^G21 supports TRDPRC_1 field. LP68048431 supports NAVALUE field.


Answers