Python API - Fi Option Adjusted Spread (get data)
Hi,
I'm trying to pull the Option Adjusted Spread (FiOptionAdjustedSpread) for a specific bond on a specific date. Can anyone help me with the python code for that? Thank you!
Best Answer
-
If you want to reference OAS via the get_timeseries() function you would reference "OAS" as the field (which is pulling from TR.OPTIONADJUSTEDSPREADBID) ; there are some slight differences required at times when using get_data() vs. get_timeseries() to pull hisotrical values since there are multiple databases for some data types.
oas_hist = ek.get_timeseries('075887BX6=',['Bid','Bid_yield','OAS'], start_date = "2019-08-06", end_date = "'2019-09-06", interval="taq")
0
Answers
-
The field TR.OPTIONADJUSTEDSPREAD does not appear to have a value available for 075887BX6=FINR . I recommend using TR.OPTIONADJUSTEDSPREADBID or TR.OASAnalytics;
ek.get_data('075887BX6=FINR','TR.OASAnalytics(ValuationDate=20190719)')
0 -
Thanks for your answer. I am trying to pull FiOptionAdjustedSpread specifically since I need the spread based on the Treasury rates. I don't know how normal OptionAdjustedSpread function or OASAnalytics function are calculated but those values are different from what I'm looking for... is there a way to pull FiOptionAdjustedSpread? if not for this bond, other bonds?
0 -
Tkanks Nate; to be honest TR.OPTIONADJUSTEDSPREAD is a legacy analytics field. TR.OASAnalytics is a more modern analytic field and there are more details provided on methodology (see below). If you need/want more details on calc methodology feel free to email me at james.perkins@refinitiv.com .
0 -
Just wondering if these spreads can also be retrieved over time using ek.get_timeseries()
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛