TimeSeries in PythonAPI

I was trying to get time series data of Mid Close for some interest rate instruments through Python API but only to find that 'Close' and other fields in 'get_timeseries' are only available for 'Bid'. Is there any way to get Mid Close in forms of time series?
I also tried 'get_data', but not result was found under the field names that I have tried.
Here are the attemps I made, none of which has worked..
ek.get_timeseries('J1YSXOISL=TRDT',fields='CLOSE')#only bid is available
data = ek.get_data(['J1YSXOISL=TRDT'],['TR.MID_PRICE.Close'])#field does not exist
data = ek.get_data(['J1YSXOISL=TRDT'],['TR.ClosePrice.Value'])#field does not exist
And I would also like to confirm if all fields and parameters in Excel API are also available in Python API(or if the building of Python API is still in progress), especially the 'TimeZone' parameter in 'Parameters&Quick Functions.
Thanks in advance.
Best Answer
-
There are two functions created by the Eikon Excel formula builder.
- RHistory: Not all fields in RHistory are available in Eikon Data APIs (get_timeseries). Currently, Eikon Data APIs can only retrieve the default time-series view for any given RIC. For this RIC, the default time-series view is BID. Therefore, you are unable to get the MID_PRICE time-series view with Eikon Data APIs
- TR: all fields in the TR function can be retrieved by the get_data method in Eikon Data APIs. Moreover, you can also apply parameters to the get_data method
0
Answers
-
jirapongse.phuriphanvichai Thank you for your reply.
・For RHistory, is it decided when everything in RHistory will also be available in Eikon Data APIs.
・For TR, I managed to get Bid&Ask for RICs that have valid 'BIDPRICE' in excel function builder, which can be found in API with 'TR.BidPrice'. But for RICs like 'J1YSXOISL=TRDT ', whose valid field value in excel is 'CF_BID', could you please confirm the corresponding field in API. I tried a couple of times, but couldn't find anything working.
0 -
To retrieve all RHistrory fields with Eikon Data APIs, I will raise this requirement to the product team.
For the TR function, I can use get_data to retrieve CF_BID of J1YSXOISL=TRDT.
CF_BID is realtime data while TR.BIDPRICE is Time Series Data. From the Formula Builder, TR.BIDPRICE is not available for J1YSXOISL=TRDT.
0 -
Thank you for the quick confirmation.
It was a bit confusing as I actually found 'BIDPRICE' under 'RealTime & Fundamentals' rather than 'TimeSeries' in function builder. But as you pointed out, it is possible to name start/end date for BIDPRICE while not for CF_Bid. So the current situation is that, in terms of Timeseries MidPrice, while get_timeseries is basically not to count on, some is possible through TR.BIDPRICE, but nothing works for RICs like J1YSXOISL=TRDT?
Will really appreciate it if the product team can look into this situation and find at least one way that covers all RICs.
Thank you.
0 -
Eikon Data APIs can not retrieve the historical BID Price for J1YSXOISL=TRDT. The API that can retrieve this data is:
- .NET APIs for use in custom applications: I use ITimesSeriesDataService. For more information, please refer to the Time series tutorial
0 -
Where can I find the default time-series fields of rhistory for specific RICs?
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.8K Refinitiv Data Platform
- 625 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 83 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛