What API endpoints aside from datagrid can replicate this SCREENER?

=@TR("SCREEN(U(IN(DEALS)/UNV:DEALSLOAN/),IN(TR.LNParticipant(LNPartRole=LNB:LNBIP:LNBUP:LNBMP:LNR:LNRIP:LNRUP:LNRMP:LNAB:LNABIP:LNABUP:LNABMP:LNG:LNGIP:LNGUP:LNGMP:LNLBO:LNLBOIP:LNLBOUP:LNLBOMP:LNPG:LNPGIP:LNPGUP:LNPGMP),4296949406), BETWEEN(TR.LNMaturityDate,20250319,20750319)/dt:Date/, CURN=USD)","TR.LNDealId,TR.LNIssuer,TR.LNIssuerPermId,TR.LNIssuerShortBusDesc,TR.LNIssuerPriSIC,TR.LNI"&"ssuerNation,TR.LNFinancialCloseDate,TR.LNTotalFacilityAmount,TR.LNMaturityDate","CH=Fd Null=-")

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @RC_Alvarez_RDP

    Thank you for reaching out to us.

    As far as I know, it requires the datagrid endpoint to run the screener.

    You can use the get_data method in the LSEG Data Library for Python to run the screener.

    field_list = ['TR.LNDealId','TR.LNIssuer','TR.LNIssuerPermId','TR.LNIssuerShortBusDesc','TR.LNIssuerPriSIC','TR.LNIssuerNation',
                       'TR.LNFinancialCloseDate','TR.LNTotalFacilityAmount','TR.LNMaturityDate']
    
    
    screener_text = 'SCREEN(U(IN(DEALS)),IN(TR.LNParticipant(LNPartRole=LNB:LNBIP:LNBUP:LNBMP:LNR:LNRIP:LNRUP:LNRMP:LNAB:LNABIP:LNABUP:LNABMP:LNG:LNGIP:LNGUP:LNGMP:LNLBO:LNLBOIP:LNLBOUP:LNLBOMP:LNPG:LNPGIP:LNPGUP:LNPGMP),4296949406), BETWEEN(TR.LNMaturityDate,20250319,20750319), CURN=USD)'
    
    response = ld.get_data(screener_text, field_list)
    response
    

    The output is:

    image.png

    The examples are on GitHub.