I am trying to fetch historical ETF holding of EWG ric using below python code but not getting valid entries. kindly suggest required changes to be done to fetch historical holdings of EWG ETF
df, err = ek.get_data(
['EWG'],
fields=[
'TR.ETPConstituentWeightPercent.constituentric',
'TR.ETPConstituentWeightPercent'
],
parameters={
'SDate': '2015-01-01'
}
)
also, I tired with below fields,
fields=["TR.ETFConstituentRIC", "TR.ETFConstituentName", "TR.ETFConstituentWeight"]