question

Upvotes
Accepted
646 6 13 25

Verify that RIC is valid

How can I confirm that given symbol is a valid RIC, using COM API ? (if this is not possible, python Data API)

I tried to use Dex2 API and request some fields, but it returns the empty fields even for invalid RIC.

eikoneikon-com-api
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 AdfinX Real-Time COM library. When retrieving an invalid RIC using AdxRtList object, the object will return ItemStatus value of RT_ITEM_INVALID. E.g. if your register the list of RICs with the object and use StartUpdates method with RunMode parameter value of RT_MODE_IMAGE, you can use ItemStatus method of AdxRtList object in OnImage event handler. For an invalid RIC ItemStatus method will return RT_ITEM_INVALID.

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.

Click below to post an Idea Post Idea