To get the list of vwd codes permissioned for the user the following steps must be done:
- Initialize the API
- Use Routing Data Store
- Create a instance of the required request message.
- Execute the request.
Get VWD Codes
using System;
using System.Collections.Generic;
{
class CodesHelper
{
private MessageSerializer serializer;
private RoutingDataStore rds;
public void Main()
{
if (!ConfigurationHelper.Initialize())
{
return;
}
rds = ConfigurationHelper.RoutingDataStore;
serializer = new MessageSerializer();
MyVwdCodesHelper myVwdCodesHelper = new MyVwdCodesHelper(rds);
if (myVwdCodesHelper != null)
{
int myVwdCodesCount = myVwdCodesHelper.GetMyVwdCodesCount();
Console.WriteLine("Permission for " + myVwdCodesCount + " vwdCodes.");
List<string> vwdCodes = myVwdCodesHelper.GetMyVwdCodes(1, 100);
Console.WriteLine("List of 100 permissioned instruments(vwdCodes):");
foreach (string vwdCode in vwdCodes)
{
Console.WriteLine(vwdCode);
}
string exchange = "ETR";
List<string> codeListByExchange = myVwdCodesHelper.GetMyVwdCodesByExchange(exchange, 1, 100);
Console.WriteLine("List of 100 authorized instruments(vwdCodes) by exchange: " + exchange);
foreach (string vwdCode in codeListByExchange)
{
Console.WriteLine(vwdCode);
}
}
}
}
}
Note: Example available in samples folder in Data Manager Connect - Client Distribution".