Given a stock RIC, how can I discover the corresponding option chains on that stock via an API?

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @halljon

    Thank you for reaching out to us.

    This could be the search API. You can use the search API from the LSEG Data Library for Python. For example:

    df = ld.discovery.search(
        view = ld.discovery.Views.EQUITY_QUOTES,
        filter = "UnderlyingQuoteRIC eq 'AAPL.O' and IsChain eq true and RCSAssetCategoryLeaf eq 'Equity Cash Option'",
        top=10
    )
        
    df
    
    image.png

    The examples are on GitHub. For more information regarding the search API, please refer to the Building Search into your Application Workflow article.

    I am not sure if this will work for all stocks. You need to contact the helpdesk team via MyAccount to verify this.

    However, this forum is dedicated to software developers using LSEG APIs. The moderators on this forum do not have deep expertise in every bit of content available through LSEG products, which is required to answer content questions such as this one.

    The best resource for content questions is the Helpdesk support team, which can be reached by submitting queries through MyAccount. The support team will either have the required content expertise ready available or can reach out to relevant content experts to get the answer for you.