Infront Data Manager Connect Client (.NET)

Vwd Codes Helper

To get the list of vwd codes permissioned for the user the following steps must be done:

1. Initialize the API
2. Use Routing Data Store
3. Create a instance of the required request message.
4. Execute the request.

Get VWD Codes

using System;
using System.Collections.Generic;
using Gevasys.DataCore.Configuration;
using Gevasys.DataCore.RequestData.ProtoBuf.V2;
using Gevasys.DataCore.StaticData.Http;
using Gevasys.DataCore.StaticData.MyVwdCodesHelper;
namespace Examples
{
class CodesHelper
{
private MessageSerializer serializer;
private RoutingDataStore rds;
public void Main()
{
if (!ConfigurationHelper.Initialize())
{
// Initialization failed, fatal!
return;
}
rds = ConfigurationHelper.RoutingDataStore;
serializer = new MessageSerializer();
MyVwdCodesHelper myVwdCodesHelper = new MyVwdCodesHelper(rds);
if (myVwdCodesHelper != null)
{
// test GetMyVwdCodesCount -> returns all VwdCodes where the user is permissioned for
int myVwdCodesCount = myVwdCodesHelper.GetMyVwdCodesCount();
Console.WriteLine("Permission for " + myVwdCodesCount + " vwdCodes.");
// test GetMyVwdCodes(int pageNumber, int codesPerPage)->returns the vwdCodes by using paging
List<string> vwdCodes = myVwdCodesHelper.GetMyVwdCodes(1, 100);
Console.WriteLine("List of 100 permissioned instruments(vwdCodes):");
foreach (string vwdCode in vwdCodes)
{
Console.WriteLine(vwdCode);
}
// test GetMyVwdCodesByExchange(String exchange, int pageNumber, int codesPerPage) -> returns the vwdCodes for the given exchange by using paging
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".

Gevasys.DataCore
Definition: BinaryUpstreamClient.cs:5
Gevasys.DataCore.Configuration
Definition: ClassFactory.cs:17
Gevasys.DataCore.StaticData
Definition: AsyncFileDownloader.cs:10
Gevasys
Definition: BinaryUpstreamClient.cs:5
Examples
Definition: apiinitialize.cs:11
Gevasys.DataCore.StaticData.Http
Definition: AsyncFileDownloader.cs:10

Copyright (C) 2021 Infront Financial Technology GmbH
Mainzer Landstrasse 178 – 190
60327 Frankfurt am Main
Infront Data Manager Connect V4.1