Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by varun.divakar · Apr 09, 2020 at 07:54 AM · eikonoption open interest

Open Interest data is lagging

Hi,


I am trying to fetch the current open interest data for an option chain using the code below.


df, ek = e.get_data('0#BL2K0+',

['DSPLY_NAME'])



df.fillna(method='ffill',inplace=True)

df.dropna(inplace=True)

data,err= e.get_data(df.Instrument[1:].to_list(),

['DSPLY_NAME','PUTCALLIND','STRIKE_PRC',

'CF_CLOSE','TR.OPENINTEREST','IMP_VOLT',

'NET_CHG(TR.OPENINTEREST(0d),TR.OPENINTEREST(-1d))','EXPIR_DATE'])


( Check the open interest values of the 200 call option, if we consider the OI change values then it would seem to be showing previous days value, but the close price is that of the current price in both data)

Eikon API values:

Terminal values:

The values that I am getting are different from those which are shown on the terminal. How can I get the current values displayed on the terminal.

1586418590046.png (21.7 KiB)
1586418641473.png (28.6 KiB)

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by zoya.farberov · Apr 17, 2020 at 09:12 PM

Hello @varun.divakar,

Apologies for the belated response.

Unfortunately, I was not able to reproduce the discrepancy. Let me discuss how I proceeded, so we can converge on where teh gap may originate?

First I did Python call same as you, and selected a couple of results:

df, err = ek.get_data('0#BL2K0+',['DSPLY_NAME'
df.fillna(method='ffill',inplace=Tru
df.dropna(inplace=Tru
data,err= ek.get_data(df.Instrument[1:].loc[120:140].to_list(
['DSPLY_NAME','PUTCALLIND','STRIKE_PRC','CF_CLOSE','TR.OPENINTEREST','IMP_VOLT','NET_CHG(TR.OPENINTEREST(0d),TR.OPENINTEREST(-1d))','EXPIR_DATE'])
data

Results for 199-200:

Then I requested the same 4 instruments from Eikon Excel:

=TR("BL219900E0;BL219900Q0;BL220000E0;BL220000Q0","DSPLY_NAME;PUTCALLIND;STRIKE_PRC;CF_CLOSE;TR.OPENINTEREST;IMP_VOLT;NET_CHG(TR.OPENINTEREST(0d),TR.OPENINTEREST(-1d));EXPIR_DATE",,B7:J1817)

The result for interest appears to look the same:

Are these the right values? Were they retrieved at the same time in your case ( I did one right after the other)?


20200417-interest.gif (38.6 KiB)
20200417-excel.gif (10.4 KiB)
Comment
wasin.waeosri
clangevin

People who like this

2 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

How to find field names in Eikon Python API?

Retrieving minutely bid prices

Data Item returning NaN.

Does Eikon Python API support ADC functions in get_data or get_timeseries? e.g. PERCENT_CHG

Excel Add-in not working: Runtime error during loading of COM add-in

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges