...ward at once
fwd_contract = cross.Definition(fx_cross_code='GBPCNY',
fx_cross_type='FxForward',
legs = [cross.LegDefinition(start_date='2024-06-30T00:00:00Z', tenor='3M')])
response = fc.get_cross_analytics(fwd_contract,
fields = ['StartDate',
'EndDate',
'FxSwapsCcy1Ccy2',
'FxOutrightCcy1Ccy2'])
print(response.data.df)
I read the documentation and isn't start_date suppose to be in legdefinition, but when i run the code it turns into error
TypeError: LegDefinition.__init__() got an unexpected keyword argument 'start_date'
also can I only search 1 result in a time? I want to achieve a similar effect of exporting all the tenors available of an exchange when I search it on SPO. Many Thanks!!