Could you please try running the code below on your end to see if the same issue occurs?

Options

Hi Team,

Client have raised the below query. Could you please assist on the request.

Query: May I ask you to try my code on your side, and see if the bug appears for you as well? It seems from your explanation that RDP is a more reliable backend platform. Why does this bug appear there then?

My code again, for your convenience:

import lseg.data as ld
import pandas as pd
ld.open_session()
ld.session.get_default().config.set_param("apis.data.datagrid.underlying-platform", "rdp")
# ld.get_config()["http.request-timeout"] = 120
ld.get_data(
       universe=['BMPS.MI'],
       fields=['TR.DivAdjustedGross','TR.DivUnadjustedGross','TR.DivExDate','TR.DivPayDate'],
       parameters = {'SDate': '2000-01-01','EDate':'2025-12-31','Curn': 'USD'}

Follow up: However, the screenshot that you have provided is also showing incorrect information. It is not possible for dividend ex-date to be 13 years after dividend pay date, as seen in the red rectangle. It seems as though your team is facing this issue as well. 

Is there an explanation as to why using RDP will cause this issue? Additionally, could we refer this to the tech team for the bug to be resolved?

image-27959261117bf8-9703.jpeg

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @shru_32_1

    Thank you for reaching out to us.

    The data from the Datagrid RDP can be misaligned.

    The client can use the default apis.data.datagrid.underlying-platform by removing the following code.

    ld.session.get_default().config.set_param("apis.data.datagrid.underlying-platform", "rdp")
    

    The code could be:

    import lseg.data as ld
    import pandas as pd
    ld.open_session()


    ld.get_data(
    universe=['BMPS.MI'],
    fields=['TR.DivAdjustedGross','TR.DivUnadjustedGross','TR.DivExDate','TR.DivPayDate'],
    parameters = {'SDate': '2000-01-01','EDate':'2025-12-31','Curn': 'USD'})