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
1 2 2 4

Ho do I get Specific Close price?

Hi Guys

I am trying to pull historical Ldn specific close prices from certain Curves in Python.

this is my Python code based on how it seems to be required in Excel and my previous question.

ek.get_data('DUBSGSWMc2',['TR.TRADEPRICEEUROPE.Timestamp', 'TR.TRADEPRICEEUROPE.Close'],parameters={'SDate': "2021-01-01", 'EDate': reportDate}

however if get this as a result.


1634663883803.png


This is the code I used in Excel to pull the data which worked using the formula builder.

=RHistory("DUBSGSWMc1","TRADE PRICE EUROPE.Timestamp;TRADE PRICE EUROPE.Close","INTERVAL:1D",,"TSREPEAT:NO CH:Fd",B2)

Thanks




eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-data-platform-eikon
1634663883803.png (5.0 KiB)
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.

@joe.wright

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,
AHS

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
32.2k 40 11 20

Hello @joe.wright ,

Used Data Item Browser to look up:

dib1.gif

And came up with roughly this:

ek.get_data('DUBSGSWMc1',['TR.EUROPECLOSINGTRADEPRICE.timestamp','TR.EUROPECLOSINGTRADEPRICE.value'],
           {'SDate':'2021-10-01','EDate':'2021-10-19','Frq':'D'})

For me this results in:

dub1.gif

Is this what you would be looking for?


dib1.gif (154.1 KiB)
dub1.gif (12.1 KiB)
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.