How to get real time data for a few currencies with AdxRtList simultaneously?

Hello! I am writing application on C#. To get real time data for one currency I writing this:
AdxRtList.Source = "IDN";
AdxRtList.RegisterItems("GPB=", "BID");
AdxRtList.StartUpdates(RT_RunMode.RT_MODE_ONUPDATE);
and this
void adxRtList_OnUpdate(string a_itemName, object a_userTag, RT_ItemStatus a_itemStatus)
{
//use item name to get the data
object temp = AdxRtList.get_ListFields(a_itemName, RT_FieldRowView.RT_FRV_ALL, RT_FieldColumnView.RT_FCV_VALUE);
object[,] l_fields = (object[,])Convert.ChangeType(temp, typeof(object[,]));
label5.Text = a_itemName + ": " + l_fields[0, 1];
AdxRtList.StopUpdates();
}
But I need to get data for 30 currencies, how can I do it? I tried to write
AdxRtList.RegisterItems("GPB=, AUD=, RUB=", "BID");
but it doesn't work.
Best Answer
-
I found solution - simple array
0
Answers
-
Hi @aidynchik_84, you are correct! We would support a variant or a param array both for the list of instruments or the list of fields.
0 -
Tell me please when I can stop AdxRtList updates? I need to launch AdxRtList only once, and then I need to stop it. But I can't do that on adxRtList_OnUpdate, because I don't know how many currencies did I get
0 -
This will do:
mRtList.StopUpdates
You can also consider using rtList in the snapshot mode. When requesting the updates, select this:
With mRtList
.Source = "IDN"
.RegisterItems instrumentList, fields
.StartUpdates RT_MODE_IMAGE
End WithAs a result, rt list will not subscribe to the updates but only get a snapshot of values. Make sure that you use an appropriate event handler for this:
Private Sub mRtList_OnImage(ByVal a_dataStatus As AdfinXRtLib.RT_DataStatus)
End Sub0 -
I wrote as you said
AdxRtList.StartUpdates(RT_RunMode.RT_MODE_IMAGE);
....
void adxRtList_OnImage(RT_DataStatus a_itemStatus)
{
//use item name to get the data
string a_itemName = "";
object temp = AdxRtList.get_ListFields(a_itemName, RT_FieldRowView.RT_FRV_ALL, RT_FieldColumnView.RT_FCV_VALUE);now I'm getting an error {"ERROR #360f - AdxRtList : invalid item "} on
object temp = AdxRtList.get_ListFields(a_itemName, RT_FieldRowView.RT_FRV_ALL, RT_FieldColumnView.RT_FCV_VALUE);
0 -
according to your code, a_itemName is an empty string, it should be a RIC, for instance:
object temp = AdxRtList.get_ListFields("RUB=", RT_FieldRowView.RT_FRV_ALL, RT_FieldColumnView.RT_FCV_VALUE);
0 -
oh, thank you very much! It works!
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.5K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 560 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 724 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛