RSearch screener in COM API

Is it possible to use 'SCREENER' formula in RSearch C++ COM API?

If so, how would the parameters look like?

Excel formula:

TR("SCREEN(U(IN(Equity(active,public,primary,countryprimaryquote))/*UNV:Public*/), IN(TR.ExchangeMarketIdCode,""XTAI""), CURN=USD)","TR.CommonName;TR.ExchangeName;TR.ISIN","curn=USD RH=In CH=Fd")

Best Answer

  • Alex Putkov.1
    Alex Putkov.1 ✭✭✭✭✭
    Answer ✓

    You can use Screener expressions in DEX2 library, e.g.

    myRData = myDEX2Mgr.CreateRData(lCookie);
    myRData.InstrumentIDList = "SCREEN(U(IN(Equity(active,public,primary,countryprimaryquote))/*UNV:Public*/), IN(TR.ExchangeMarketIdCode,\"XTAI\"), CURN=USD)";
    myRData.FieldList = {"TR.CompanyName", "TR.CompanyMarketCap"};
    myRData.RequestParam = "CURN:USD";
    myRData.DisplayParam = "RH:In CH:Fd";
    myRData.Subscribe(false);

Answers

  • it works fine. Thanks.

    And now I remember why we don't use it.. The results do not have FUNDs. And they are available in RSearch.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.