How to retrieve the same data from RDP Libraries in Codebook in RDP API Playground


I am checking Codebook app in Workspace. I was hoping that you can assist me regarding some Codebook examples available in the Refinitiv Data Platform Library. I am just checking if the below examples correspond to an endpoint in the RDP API Playground?


In Codebook, I see that the data can be retrieved using python codes. In the below python code examples from Codebook, may you kindly advise how I can retrieve the same data in RDP API Playground and which endpoint should I use in API Playground?


1. For Single Bond


rdp.get_bond_analytics(

universe = "13063CUV0",

fields = [

"InstrumentDescription",

"MarketDataDate",

"Price",

"YieldPercent",

"GovernmentSpreadBp",

"SectorRatingSpreadBp"

]

)




2. For Multiple Bonds


rdp.get_bond_analytics(

universe = ["US1YT=RR", "US5YT=RR", "US10YT=RR"],

fields = ["InstrumentDescription","MarketDataDate","Price","YieldPercent","ZSpreadBp"]

)


3. For Global pricing parameters


rdp.get_bond_analytics(

universe = [

"US1YT=RR",

"US5YT=RR",

"US10YT=RR"

],

calculation_params = bond.CalculationParams(

market_data_date="2020-07-05",

price_side = ipa.enum_types.PriceSide.BID

),

fields = [

"InstrumentDescription",

"MarketDataDate",

"Price",

"YieldPercent",

"ZSpreadBp"]

)


4. For Single ETI Option


rdp.get_option_analytics(

universe = "FCHI560000L0.p",

fields = [

"ValuationDate",

"OptionType",

"ExerciseType",

"ExerciseStyle",

"EndDate",

"StrikePrice",

"VolatilityPercent",

"DeltaPercent",

"GammaPercent"

]

)



Thank you.


Best Answer

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.