Пример #1
0
        public static Order ToOrder(jsonOrder _Order)
        {
            Order tmpOrder = new Order()
            {
                Price  = decimal.Parse(_Order.price, System.Globalization.NumberFormatInfo.InvariantInfo),
                Volume = decimal.Parse(_Order.volume, System.Globalization.NumberFormatInfo.InvariantInfo)
            };

            return(tmpOrder);
        }
Пример #2
0
        public static jsonOrder FromOrder(Order _Order)
        {
            jsonOrder tmpOrder = new jsonOrder()
            {
                price  = _Order.Price.ToString(System.Globalization.NumberFormatInfo.InvariantInfo),
                volume = _Order.Volume.ToString(System.Globalization.NumberFormatInfo.InvariantInfo)
            };

            return(tmpOrder);
        }
Пример #3
0
 public static Order FromJsonOrder(jsonOrder _Order)
 {
     return(_Order.ToOrder());
 }