question

Upvotes
Accepted
1 0 1 1

Rsponse every 1 second using AdxRtList

Hello ,

I am seeking to create a Winform Application with Eikon API, and here is how I am retrieving data :

l_temp = m_adxRtList.get_ListFields(a_itemName, RT_FieldRowView.RT_FRV_ALL, RT_FieldColumnView.RT_FCV_VALUE);


is there any way to retrieve data every 1 second instead of streaming on every update ?


Cheers.

eikoneikon-data-apieikon-com-apic#
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 78 11 27

Yes, this is possible. You need to change 3 things in your code:

  1. Set
    m_AdxRtList.Mode = "FRQ:1S";
    Here the value of the "FRQ" keyword is the frequency with which you want the OnTime event to be raised.
  2. Instead of calling m_AdxRtList.StartUpdates(RT_RunMode.RT_MODE_ONUPDATE), call m_AdxRtList.StartUpdates(RT_RunMode.RT_MODE_ONTIME) or m_AdxRtList.StartUpdates(RT_RunMode.RT_MODE_ONTIME_IF_UPDATED).
  3. Replace the callback for OnUpdate event with the callback for OnTime event.

Alternatively you could simply remove the callback for OnUpdate event and create your own timer to grab the values from m_AdxRtList object. The ListFields method you use to extract market data from m_AdxRtList object can be used outside of any event callbacks.

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.

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.