Quesstion about RIC code of JGB

I cannnot take bid ask price of JGB by the code attached below. I would appreciate it if you could tell me the reason and solotions to correct this problem. I think this may happen because I cannot take appropriate RIC code of JGB.

import lseg.data as ld

from lseg.data.content import symbol_conversion

ld.open_session()

isin_list = ["US0378331005", "JP1201091939"]

resp = symbol_conversion.Definition(

symbols = isin_list,

from_symbol_type = symbol_conversion.SymbolTypes.ISIN,

to_symbol_types = [symbol_conversion.SymbolTypes.RIC]

).get_data()

display(resp.data.df)

ld.get_data(

universe = resp.data.df["RIC"].tolist(),

fields = ["BID","ASK"])

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Akira0426

    Thank you for reaching out to us.

    JP1201091939 is converted to JP1201091939=MKCP.

    image.png

    It could be a permission issue. You can enable the debug log to verify it.

    import lseg.data as ld
    from lseg.data.content import symbol_conversion
    config = ld.get_config()
    config.set_param("logs.transports.console.enabled", True)
    config.set_param("logs.level", "debug")

    ld.open_session()

    isin_list = ["US0378331005", "JP1201091939"]

    resp = symbol_conversion.Definition(
    symbols = isin_list,
    from_symbol_type = symbol_conversion.SymbolTypes.ISIN,
    to_symbol_types = [symbol_conversion.SymbolTypes.RIC]
    ).get_data()

    display(resp.data.df)

    ld.get_data(
    universe = resp.data.df["RIC"].tolist(),
    fields = ["BID","ASK"])
    image.png

    If you see this "'Access Denied' for the instrument 'JP1201091939=MKCP'" message, it is a permission issue.

    Please contact your LSEG account team or sales team directly to verify your permission.

  • Akira0426
    Akira0426 Newcomer

    Thank you for prompt reply! I executed your debug code and get the result below. This result mean I have any permittion issue?

    image.png
  • Jirapongse
    Jirapongse ✭✭✭✭✭

    I didn't see the request and response.

    Please use the log file instead by using the following code.

    import lseg.data as ld

    from lseg.data.content import symbol_conversion
    config = ld.get_config()
    config.set_param("logs.transports.file.enabled", True)
    config.set_param("logs.transports.file.name", "lseg-data-lib.log")
    config.set_param("logs.level", "debug")





    ld.open_session()



    isin_list = ["US0378331005", "JP1201091939"]


    resp = symbol_conversion.Definition(

    symbols = isin_list,

    from_symbol_type = symbol_conversion.SymbolTypes.ISIN,

    to_symbol_types = [symbol_conversion.SymbolTypes.RIC]

    ).get_data()


    display(resp.data.df)



    ld.get_data(

    universe = resp.data.df["RIC"].tolist(),

    fields = ["BID","ASK"])

    The lseg-data-lib.log file will be created.

    Please remove any private information from the log file and share it.