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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 3

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

1 Answer

Upvotes
Accepted
23k 22 9 14

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

Click below to post an Idea Post Idea