public void Sample(string clientCode) { // Create query and add event handler query = new AccountQuery(null); query.QueryResponse += query_QueryResponse; // Create filter and add criterion to filter by client code AccountFilter filter = new AccountFilter(); filter.AddFilterCriteria(AccountFilter.FilterBy.Client, clientCode); // Start query to start receiving data query.Start(filter); }