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:
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?
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()1
Answers
-
Thanks, this was exactly what I was after. Thanks for the explanation!0
-
Short related question: are you talking about RDP or RD here? As far as I understood the RDP shouldn't be used anymore. Sorry, but I always mix these up.
0 -
Hi @Anufriyev, Yes it's very confusing, that's actually why we moved from the RDP (Refinitiv Data Platform) Libs. to the RD (Refinitiv Data) Libs.; but even though the former is deprecated, it does lead to confusion.
For clarity, the above relates to the RD Lib.
Also for clarity: note that as it stands today, RDP stads for the Refinitiv Data Platform, not the Libraries; the differnece between the two is that the Platform hosts many diferent API Families that are accessible via RESTfull Endpoints, and the RD Libs. are wrappers (in Python, .Net or TypeScript) that send data requests to the RDP via these Endpoints.
1 -
Thank you very much for clarification, @jonathan.legrand ! So earlier it was RDP SDK for RDP API and now it is RD SDK for RDP API . And also as far as I understand now RD SDK is for Eikon API
0 -
Hi @Anufriyev , Yes that's right. Very complicated indeed. It is true that you can access the old EDAPI (Eikon Data API) functions through the RD Libs. as you point out.0
-
Hi again @jonathan.legrand It became even more stranger: now I get this "FutureWarning":
So I shouldn't use RD for Eikon API?
0 -
Hi @Anufriyev, Yes, it is true that we are phasing out Eikon and all its related tech, and replacing it with a new stack. You can find out more about this here. In truth, the best way to future proof one's code is to use the RD Lib., not the EDAPI, as per the warning.0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛