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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
18 0 0 0

TR.MIDPRICE not work with API Python

Hi,


I would like this formula with python, but my code doesn't work.


This is my code : df = ek.get_data("FR0012993103=RRPS", ["TR.MidPrice"], {'sdate':'17/02/2020', 'edate':'17/02/2020'})


Do you have an idea why it doesn't work ?


Thanks you,

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
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.

Upvotes
Accepted
6.7k 8 6 7

Hi @florian.carpentey49 - this should work

df, err = ek.get_data("FR0012993103=RRPS", ['TR.MIDPRICE.date','TR.MIDPRICE(SDate=20200217,CALCMETHOD=CLOSE)'])
df
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.

Upvote
18 0 0 0

Thnks for your help ! It's work

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