For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 2 1

Swaption bp vol time series data retreival in python

In excel using the formula

=RHistory("GBP20YX20Y=ICAP",".Close;.Timestamp","START:01-Jan-2019 END:18-Aug-2020 INTERVAL:1D",,"TSREPEAT:NO CH:IN;Fd",H10)

does not retreive data back to presant day.

Equivalenty using python it returns the same data using the following:

df = ek.get_timeseries(['GBP20YX20Y=ICAP'],

start_date="2019-01-01",

end_date="2020-08-18")


I can solve the excel issue by adding additional parameters (answer supplied by Reuters helpdesk):

=RHistory("GBP20YX20Y=ICAP","BP_VOLT.Timestamp;BP_VOLT.Value","START:01-Jan-2019 END:18-Aug-2020 INTERVAL:1D",,"TSREPEAT:NO CH:IN;Fd",B2)


The question is how I change the python function to bring me back the equivaent of this?

These RICS are the 20Y20Y atm vol on ICAP broker screen

Any guidance would be most appreciated.



eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonhistoricalvolatility
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
18k 21 12 20

Hi @paul67

It is not possible to use Eikon Data API to retrieve different data view on timeseries.

Eikon Data API - get_timeseries() can only retrieve data from the instrument default view.


You may consider using RDP Library in CodeBook for now.

To launch CodeBook, please type in "CodeBook" on Eikon Search Bar and press enter or https://developers.refinitiv.com/article/use-eikon-data-api-or-rdp-library-python-codebook-web-browser

(RDP Library will be released soon to PyPi so you can use pip install to install it) https://pypi.org/project/refinitiv-dataplatform/

Here is the sample code using RDP Library and the data field is BPV_OCM_CA


ahs1.png (100.0 KiB)
ahs2.png (44.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

FYI - RDP Library is released today (19th Aug 2020)

Click below to post an Idea Post Idea