question

Upvotes
Accepted
646 21 32 41

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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 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 512.0 KiB each and 1.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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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