Eikon Python API - option prices after market closes for sugar No.11 (SBC) and sugar No.5 (LSUc)

Hi, what code do I use to get the option prices for sugar No.11 (SBC) and sugar No.5 (LSUc) after the market closes using eikon api in python ?

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @BSeed

    You may need to contact the Eikon Excel support team via MyRefinitiv and ask for RICs and fields that can be used with the =TR function in Eikon Excel to retrieve the required data.

    After that, if RICs and fields are available, you can use them with Eikon Data API to retrieve the same data.


Answers

  • hi @BSeed ,

    You can use the code below to retrieve their daily prices.

    import eikon as 
    ek.set_app_key('#### YOUR APP KEY ####')

    df = ek.get_timeseries(['SBc1','LSUc1'])
    df

    1658461819115.png

    To retrieve daily close price, the field CLOSE can be added to the code

    df = ek.get_timeseries(['SBc1','LSUc1'], 'CLOSE')
    df

    1658461862599.png

    Here's the Eikon Data API Quick Start guide. Please let us know in case you have any further questions.

  • Hi thank you, i am looking to get the option prices like below. I know how to get the close price but not options.1658764964046.png