Hi Team,
We are trying to replicate the formula and result below in Codebook API
Formula: =@TR("MSFT.O","TR.CategoryOwnershipPct","SDate=0CY EDate=-5CY StatType=1 CH=categoryvalue RH=effectiveTo")
The closest we were able to get is by using this syntax and result:
import refinitiv.dataplatform.eikon as ek
ek.set_app_key('DEFAULT_CODE_BOOK_APP_KEY')
df, err = ek.get_data(
instruments = ['MSFT.O'],
fields = [
'TR.InstrStatTypeValue(Stattype=1)',
'TR.CategoryOwnershipPct(SDate=-1D,EDate=31-Dec-2022)', 'TR.InstrStatTypeValue.calcdate',
]
)
display(df.transpose())
Please help with syntax on how to replicate the exact result as shown on the excel file. Thank you