I'm trying to price a SOFR swap at intra-day time periods. The documentation implies that a datetime can be provided, however, responses from the service show no valuation differences if a different time is used. See below for example code and outputs.
response = rdf.Definitions(
universe=[swap.Definition(
instrument_tag="Example",
tenor="5Y",
legs=[swap.LegDefinition(direction=swap.Direction.PAID,
notional_ccy="USD",
interest_payment_frequency=swap.Frequency.QUARTERLY,
interest_type=swap.InterestType.FIXED,
fixed_rate_percent=4.0,
notional_amount=10000000,
),
swap.LegDefinition(direction=swap.Direction.RECEIVED,
notional_ccy="USD",
index_name="SOFR",
index_tenor = 'ON',
interest_payment_frequency=swap.Frequency.QUARTERLY,
interest_type=swap.InterestType.FLOAT,
notional_amount=10000000,
spread_bp=0
)])
],
pricing_parameters=swap.PricingParameters(valuation_date="2024-07-31T13:00:00Z",
report_ccy='USD',
use_legs_signing=True),
fields=[
"LegDescription",
"InstrumentDescription",
"ValuationDate",
"FixedRate",
"Tenor",
"MarketValueInReportCcy",
"ErrorMessage"
],
).get_data()
response.data.df
Same code, but with
valuation_date="2024-07-31T17:00:00Z"