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
3 1 2 5

Time Series of Analytics / Python

Hi Everyone I am using the python function ek.get_data to source the field TR.AccruedAmountAnalytics. However, I can only source the accrued amount for one valuation date. Is there a possibility to source multiply valuation dates beside creating a loop? Thanks Jurij
eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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.

@jurij.reichenecker

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS

Upvotes
Accepted
10.2k 18 6 9

@jurij.reichenecker yes so this field takes a number of parameters - ValuationDate and SettlementDate, amongst others (you can see all of these in the Parameters section of the Data Item Browser app (type DIB into eikon search bar).

ValD = ['2021-02-03','2021-02-04','2021-02-05']
data1 = pd.DataFrame()

for d in ValD:

    df,err = ek.get_data('34540TKR2', ['TR.AccruedAmountAnalytics'],
                        parameters={"ValuationDate": d, "SettlementDate": d})
    df['Date'] = d
    if len(df):
        data1 = pd.concat([df, data1], axis=0)
    else:
        data1 = df
            
data1

Is this the kind of thing you were looking for? Obviously you can adjust the parameters as you like. I hope this can help.


1612796732218.png (26.5 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.

Upvote
22k 58 14 21

Hi @jurij.reichenecker,

The Data Item Browser shows that TR.AccruedAmountAnalytics is not a series field, so you won't be able to request it with a date range. Using a loop, seems to be the only plausible option.

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.