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




Best Answer

  • 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?