Hi, I am trying to source FX Forward curves via Python. The first step is obviously to get the constituents of the curve under consideration. If we consider RIC= "ZAROR=FMD", the following is working:
from datetime
import datetime, date
import json
import lseg.data as rdp
import pandas as pd
import ref
rom lseg.data.content import historical_pricing
def get_curve(ric):# Connect to the Refinitiv Data Platform rdp.open_session()
# Define the fields to retrieve fields = ['LONGLINK1', 'LONGLINK2', 'LONGLINK3', 'LONGLINK4', 'LONGLINK5', 'LONGLINK6', 'LONGLINK7', 'LONGLINK8', 'LONGLINK9', 'LONGLINK10', 'LONGLINK11', 'LONGLINK12', 'LONGLINK13', 'LONGLINK14', 'LONGNEXTLR']
# Retrieve the curve data df = rdp.get_data(universe=ric, fields=fields)
# Close the session rdp.close_session()
return df
# Example usage:ric = "ZAROR=FMD"curve_data = get_curve(ric)print(curve_data.iloc[0,:])
However, it only source the underlying instrument up to 7 months. Could you please help me to get the longer maturity instruments as well?