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
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-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.

Upvotes
Accepted
10.2k 18 6 9

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 512.0 KiB each and 1.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 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.