Python RDP: IPA Financial Contracts: Caps/Floors, how to add "firstRegularPaymentDate" argument

Hi, I am trying to add an argument for "firstRegularPaymentDate" to the definition of a CAP instrument. I can see on the API that this argument is permitted, however, I can't work out how to add this argument in Python RDP. I need to use the RDP not API to perform this calculation.

Documentation of available term in the Refinitiv guide:

1697827725343.png

In RDP, I do not see this argument? Does it go under "extended_params"? If so, what is the correct way to pass in this argument?

1697828262888.png


Tagged:

Best Answer

  • Hi @Dan.Camp1,


    Please note that the default use of IPA parameters is to pass them through the `extended_params` dict. as such:

    response = rdf.cap_floor.Definition(
        extended_params={
            "instrumentType": "CapFloor",
            "instrumentDefinition": {
                "buySell": "Sell",
                "floorStrikePercent": 1,
                "indexTenor": "1M",
                "notionalCcy": "EUR",
                "startDate": "2019-02-11T00:00:00Z",
                "tenor": "5Y",
            },
            "pricingParameters": {},
        }
    ).get_data()

    You can find the variable names & details here.


    However, for ease of use, we implemented the most commonly used parameters directly as argument in `rdf.cap_floor.Definition`:

    response = rdf.cap_floor.Definition(
        notional_ccy="EUR",
        start_date="2019-02-11",
        tenor="5Y",
        index_tenor="1M",
        buy_sell="Sell",
        floor_strike_percent=1,
        pricing_parameters=rdf.cap_floor.PricingParameters(),
    ).get_data()


    For what youy're after, I believe that you'd want something as such:

    response = rdf.cap_floor.Definition(
        notional_ccy="EUR",
        start_date="2019-02-11",
        tenor="5Y",
        index_tenor="1M",
        buy_sell="Sell",
        floor_strike_percent=1,
        pricing_parameters=rdf.cap_floor.PricingParameters(),
        extended_params={
            "instrumentType": "CapFloor",
            "instrumentDefinition": {
                "firstRegularPaymentDate": "2019-02-11T00:00:00Z",
            },
            "pricingParameters": {},
        },
    ).get_data()


Answers