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
1
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
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛