Hi,
I want to fetch the historical data for below fields. What is the correct way to fetch the historical data for a specified Date from history? Please find below the fields and code to replicate the results-
fields = ['SetLabel(TR.InstrStatLocationId(StatType=3),location),SetLabel(TR.InstrStatLocation(StatType=3),locationName)',
'SetLabel(TR.CategoryInvestorCount(StatType=3),investorCount),SetLabel(TR.CategoryOwnershipPct(StatType=3),os)',
'SetLabel(TR.InstrStatCatSharesHeld(StatType=3),position)','SetLabel(TR.InstrStatCatShrsHldVal(StatType=3),heldValue)','Curn=USD']
ric = ['GE', 'TT']
def fetch_refinitv_data(universe, field_input):
rd.open_session()
df = rd.get_data(universe=universe, fields=field_input)
rd.close_session()
return df
df = fetch_refinitv_data('GE',fields)
df
Would appreciate any help on the necessary changes to the above code required to fetch the historical data.
Thanks in advance