# ---------------------------------------------------------
# Test for Index weights (only works for current date, no historical data available)
# ---------------------------------------------------------
target_date = "2026-01-27"
df = ld.get_data('.FTSE',
fields=[
"TR.IndexConstituentRIC",
"TR.IndexConstituentName",
"TR.IndexConstituentWeightPercent"
],
parameters={
"SDate": target_date,
"EDate": target_date
}
)
I am connected via the API in VS Code (Python, ld.open(session)) through workspace app