New posts are disabled while we improve the user experience.

You can browse the site, or for urgent issues, raise a query at MyAccount.

question

Upvotes
Accepted
0 0 1 2

Guidance summary (python)

Hi,

I'm trying to download the guidance summary (within "estimates") of corporations (like, e.g. MSFT.O). To do so, I use eikon.get_data function on python. However, I don't know what to include in "fields" and I don't find anything. Could you please help me on this? Thanks!

eikon-data-apiapi#content
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvotes
Accepted
166 2 1 3

Hi Ruben,


You may try following codes:


df,err = ek.get_data("MSFT.O",['TR.GuidanceDate','TR.GuidancePeriodYear','TR.GuidancePeriodMonth',

'TR.GuidanceLowValue','TR.GuidanceHighValue',

'TR.GuidanceMeasure','TR.GuidanceSegmentName'],

parameters = {'SDate':'-1','EDate':'6',

'Period':'FQ1','Frq':'FQ',

'Scale':'6','GuidAcctType':'GAA'})

df.dropna(inplace=True)

df.drop_duplicates(inplace=True)

df

api.png



api.png (102.0 KiB)
icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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