Eikon Data API - retrieve basis of SM-ARGUPR-P1

A client is looking to retrieve the basis of the RIC "SM-ARGUPR-P1"

The Excel formula works:

=RHistory("SM-ARGUPR-P1","BASIS.Timestamp;BASIS.Value","INTERVAL:1D",,"TSREPEAT:YES CH:Fd",B2)

image

But the Python code only returns NA's:

Secs=['SM-ARGUPR-P1']
Fields=['BASIS.Value']
StartDate='01-01-2010'
data=ek.get_timeseries(Secs,fields=Fields,start_date=StartDate,interval='daily')

Any suggestions please?

PS: I noticed we have field "GEN_VAL4" for BPV (basis point value). The latest value is 8 so maybe this field is related? Unfortunately I haven't been able to retrieve it's history.

Best Answer

  • Zhenya Kovalyov
    Answer ✓

    @Joris.Hoendervangers, get_timeseries() only supports the default view (or the data that you see in excel when you do not set the view, such as .Value, instead of BASIS.Value), so there is no way to get this data using the python API.

Answers