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

Help with TR.MIDPRICE for API Python

df, err = ek.get_data("AUDQM3AB5Y=",
[ 'TR.MIDPRICE.date',{'TR.MIDPRICE.value':{'params':{'SDate': '20171228','CALCMETHOD': 'CLOSE'}}},{'TR.MIDPRICE.value':{'params':{'SDate': '20180110','CALCMETHOD': 'CLOSE'}}},{'TR.MIDPRICE.value'{'params'{'SDate': '1D','CALCMETHOD': 'CLOSE'}}},]) Where is my mistake?

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apiapi
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 @Emmanuelle Jerome.Cadahing,

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

Hello @Emmanuelle Jerome.Cadahing,

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

Thanks,

-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
10.2k 18 6 9

Hi @Emmanuelle Jerome.Cadahing - much simpler than you think - try this:

df, err = ek.get_data("AUDQM3AB5Y=",['TR.MIDPRICE.date','TR.MIDPRICE(SDate=20171228,CALCMETHOD=CLOSE)',
 'TR.MIDPRICE(SDate=20180110,CALCMETHOD=CLOSE)',
 'TR.MIDPRICE(SDate=1D,CALCMETHOD=CLOSE)'])
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.