Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon COM /
avatar image
Question by aidynchik_84 · Oct 04, 2017 at 06:07 AM · eikonrefinitiv-realtimeeikon-com-api

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.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
Best Answer
Answer by aidynchik_84 · Oct 04, 2017 at 06:35 AM

I found solution - simple array =)

Comment
Zhenya Kovalyov

People who like this

1 Show 5 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
REFINITIV
Zhenya Kovalyov ♦♦ · Oct 04, 2017 at 06:42 AM 0
Share

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.

avatar image
aidynchik_84 · Oct 04, 2017 at 06:48 AM 0
Share

Hi @zhenyakovalyov

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

avatar image
aidynchik_84 · Oct 04, 2017 at 07:05 AM 0
Share

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);
avatar image
REFINITIV
Zhenya Kovalyov ♦♦ aidynchik_84 · Oct 04, 2017 at 07:17 AM 0
Share

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);
avatar image
aidynchik_84 Zhenya Kovalyov ♦♦ · Oct 04, 2017 at 07:26 AM 0
Share

oh, thank you very much! It works!

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

Excel API: formula builder - retreive data from local server

What do the numbers returned in FID 259, RECORDTYPE mean? What information are they giving?

Eikon: Missing millisecond in Real Time Tick Data with view TRDPRC_1

.net realtime example

How to make faster the speed of stream data when used .net c#?

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges