rd.getHistory with Interval = tas and Conditions

I am trying to retrieve the 'CONDITIONS' data when calling rd_getHistory with the Time and Sales ("tas") interval for equity instruments:

df = rd.get_history(universe, start = "2024-07-18T13:30:00.000", end = "2024-07-18T20:00:00.000", fields=["TRDPRC_1","TRDVOL_1","CONDITIONS"], interval = "tas")

In Workspace if I display the Time and Sales on screen the "Conditions" can be seen. When I run the above code I get no data in the conditions column:

Timestamp,TRDPRC_1,TRDVOL_1,CONDITIONS
2024-07-18 13:30:00.199,170.13,37,
2024-07-18 13:30:02.472,170.15,200,
2024-07-18 13:30:02.472,170.08,1,
2024-07-18 13:30:02.472,170.13,1,
2024-07-18 13:30:02.472,170.13,1,


Thank you



Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @dgarrard

    Thank you for reaching out to us.

    Please share RICs that you are using. Therefore, I can test it.

    You can remove the fields parameter to get all available fields.

    df = rd.get_history(["IBM.N"], 
                        start = "2024-07-18T13:30:00.000", 
                        end = "2024-07-18T20:00:00.000", 
                        #fields=["TRDPRC_1","TRDVOL_1","CONDITIONS"],
                        interval = "tas")


    df.columns

    1721372330335.png


Answers