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.

1 Answer

· Write an Answer
Upvotes
Accepted
10.1k 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.