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 tp_x930 · Oct 26, 2020 at 12:00 PM · get_dataeikondataapi

Get historical shares outstanding include date

I am using the following api call


df, err = ek.get_data(
    instruments = ['MSFT.O'],
    fields = ['TR.SharesOutstanding'],
    parameters = {'Frq' : 'D','SDate': '2020-05-01', 'EDate' : '2020-08-25','CH' : 'Fd','RH' : 'date'}
)


I am getting data in the following manner:

   Instrument  Outstanding Shares
0      MSFT.O          7583440247
1      MSFT.O          7583440247
2      MSFT.O          7583440247
3      MSFT.O          7583440247
4      MSFT.O          7583440247
..        ...                 ...
76     MSFT.O          7567652935
77     MSFT.O          7567652935
78     MSFT.O          7567652935
79     MSFT.O          7567652935
80     MSFT.O          7567652935


This is very hard to work with as I don't know the date, it needs a date column as well so I can match the index up. How can I add a date column

People who like this

0 Show 2
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.

avatar image
lorenzo.cerreta · Oct 26, 2020 at 12:16 PM 0
Share

Not a refinitiv employee, but have you tried


df, err = ek.get_data(instruments = ['MSFT.O'],

fields = ['TR.SharesOutstanding', 'TR.SharesOutstanding.Date'],

parameters = {'Frq' : 'D','SDate': '2020-05-01', 'EDate' : '2020-08-25','CH' : 'Fd','RH' : 'date'})

avatar image
tp_x930 lorenzo.cerreta · Oct 26, 2020 at 12:19 PM 0
Share

Thanks that works!

1 Reply

  • Sort: 
avatar image
Best Answer
Answer by lorenzo.cerreta · Oct 26, 2020 at 12:35 PM

Not a refinitiv employee, but have you tried

df, err = ek.get_data(instruments = ['MSFT.O'],
fields = ['TR.SharesOutstanding', 'TR.SharesOutstanding.Date'],
parameters = {'Frq' : 'D','SDate': '2020-05-01', 'EDate' : '2020-08-25','CH' : 'Fd','RH' : 'date'})
Comment
jason.ramchandani

People who like this

1 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 >
10 People are following this question.

Related Questions

Efficient retrieval of a series of returns data around a date

Inconsistency b/w ek.get_data() and ek.get_timeseries()

Missing datas with two dates (EDate, SDate)

Client Requests.

Get US 13 weeks close prices

  • 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