Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
5 1 1 5

How do I retrieve financial data for an irregular account settlement?

How do I retrieve financial data for the fiscal year with irregular settlements?

For example, <4812.T>

On EIKON desktop, it shows the data seems to be correct,

reuter-171213-2.png

Whereas API returns period end date wrong, missing 2015-03-31、2014-12-31、and 2014-09-30.

reuter-171213-1.png

「Reuter_question1.csv」
import eikon as ek
from datetime import datetime as dt
import pandas as pd


ek.set_app_id('8A74283D221E74D48347816')


fields = ['TR.Revenue.date', 'TR.Revenue', 'TR.GrossProfit']
param = {'SDate': 0, 'EDate': -3, 'FRQ': 'FS'}


if __name__ == '__main__':


    start_date = str(20170701)
    end_date = str(20171005)
    chunk = ['1730.T']


    fields = ['TR.ISOriginalAnnouncementDate', 'TR.ISPeriodEndDate', 'TR.TotalOperatingExpense', 'TR.CostofRevenueTotal', 'TR.SgaExpenseTotal', 'TR.ResearchAndDevelopment', 'TR.UnusualExpense']
    data, error = ek.get_data(chunk, fields, {"SDate": start_date, "EDate": end_date, "FRQ": "FQ", "Period": "FQ0", "ReportingState": "Orig"})


    data.to_csv(path + "Reuter_question1.csv", index=None)
    print(data)
eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apidata
reuter-171213-1.png (117.7 KiB)
reuter-171213-2.png (112.2 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.

Hello @mariko.kataoka

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,
AHS

Upvotes
Accepted
78.8k 250 52 74

You should contact Eikon team for the Eikon Excel formula (=TR function) used to retrieve the required financial data.

After getting arguments for =TR function, you can apply those to ek.get_data, as mentioned in this question.

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.

Upvotes
5 1 1 5

Thank you for your swift help!

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.