Use python API to acquire Bond KEEPWELL provider and SBLC provider information

Hi, I'm new in using LSEG Python API. I tried to acquire Bond KEEPWELL provider and SBLC provider information in my project, but stilll not know how to find them.

How can I do this in Python with LSEG Python API? Or do we actually have these information in Daabase? Thanks!

Tagged:

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @sunxiangge

    Thank you for reaching out to us.

    I found that you have submitted this issue to the Excel suppport team. The support team shared the Excel formula used to retrieve the requried data.

    I converted the Excel formula to the LSEG Data Library for Python code, as shown below.

    df = ld.get_data(
    universe = ['XS2182296892'],
    fields = [
    'TR.GN.Note.Date',
    'TR.GN.Note',
    'TR.GN.NoteType',
    'TR.GN.NoteTypeDescription'
    ],
    parameters={
    'SDate':'2020-01-01',
    'EDate':'2025-01-01',
    }
    )

    df

    The output is:

    image.png

    You can refer to other examples on GitHub.

    To get other data, please contact the Excel support team via MyAccount to provide other Excel formulas. Then, I can convert the Excel formulas to Python code.