Example #1
0
        public static OpenOrdersContainer CreateFromJObject(JArray array)
        {
            if (array == null)
            {
                return(null);
            }

            OpenOrdersContainer result = new OpenOrdersContainer();

            foreach (var item in array)
            {
                result.Orders.Add(OrderDetails.CreateFromJObject(item as JObject));
            }

            return(result);
        }
Example #2
0
 /// <summary>
 /// Gets a list of all the user's open orders
 /// </summary>
 /// <returns></returns>
 public CallResult <OpenOrdersContainer> GetOpenOrders()
 {
     return(MakeGetRequest("/orders", t => OpenOrdersContainer.CreateFromJObject(t as JArray)));
 }