question

Upvotes
Accepted
646 6 13 25

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")
eikoneikon-com-apiscreener
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
39.2k 75 11 27

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);
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

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.

Click below to post an Idea Post Idea