title: How do I call this function in c#?
body: <p>I am trying to use an API from BTC-E. I can already do some requests, but thisone gets me puzzled: <code>var orderList = btceApi.GetOrderList();</code></p>
  
  <p>I don't know how I can use orderList to display my orderhistory and when I run this this it throws an exception (declared in code below).</p>
  
  <p>I am using an <a href="https://github.com/DmT021/BtceApi" rel="nofollow noreferrer">example by DmT021</a> and trying to get some functionallity to work in my Form application.</p>
  
  <p>The function is declared as:</p>
  
  <pre><code>public OrderList GetOrderList(int? from = null, int? count = null, int? fromId = null,
   int? endId = null, bool? orderAsc = null, DateTime? since = null, DateTime? end = null,
   BtcePair? pair = null, bool? active = null)
  
  
      {
          var args = new Dictionary&lt;string, string&gt;()
          {
              { "method", "OrderList" }
          };
  
          if (from != null) args.Add("from", from.Value.ToString());
          if (count != null) args.Add("count", count.Value.ToString());
          if (fromId != null) args.Add("from_id", fromId.Value.ToString());
          if (endId != null) args.Add("end_id", endId.Value.ToString());
          if (orderAsc != null) args.Add("order", orderAsc.Value ? "ASC" : "DESC");
          if (since != null) args.Add("since", UnixTime.GetFromDateTime(since.Value).ToString());
          if (end != null) args.Add("end", UnixTime.GetFromDateTime(end.Value).ToString());
          if (pair != null) args.Add("pair", BtcePairHelper.ToString(pair.Value));
          if (active != null) args.Add("active", active.Value ? "1" : "0");
          var result = JObject.Parse(Query(args));
          if (result.Value&lt;int&gt;("success") == 0)
              throw new Exception(result.Value&lt;string&gt;("error"));
          return OrderList.ReadFromJObject(result["return"] as JObject);
      }
  </code></pre>