Exemplo n.º 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;
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Gets a list of all the user's open orders
 /// </summary>
 /// <returns></returns>
 public CallResult <OpenOrdersContainer> GetOpenOrders()
 {
     return(MakePostRequest("open_orders/", t => OpenOrdersContainer.CreateFromJObject(t as JArray)));
 }