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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonapi
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
6.7k 8 6 7

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea