question

Upvotes
Accepted
1 1 1 4

RFA_String ItemName = new RFA_String("EUR=") in C# ........... how can i get more than one currency

elektronrefinitiv-realtimetreprfac#.net
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
20.3k 73 10 20

Hi @mohamed.abdalrehim

RFA_String is an RFA implementation of a String object, in the above you are merely declaring a (RFA) String and populating it with the value of EUR=

If you follow through the example code, you will note at some point later the ItemName variable is used to set part of the attributes of a ReqMsg, which is used to create an Interest Specification, and the Interest Specification is then used to register a client to handle the events that correspond to that interest specification.

If you have not already done so, I strongly recommend that you work through the RFA.NET tutorials on this website. In the tutorials, when you get to step 6, you will see the code I describe above and further explanation of the various steps involved.

In summary you will need to specify interest in each currency you are interested in and then call registerClient for each of those currencies interest specifications.

I should add that you can also perform a Batch Request for multiple instruments as demonstrated in the StarterConsumer_BatchView example that comes with the RFA.NET API installation.

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