Beispiel #1
0
 public Order(JToken token, string orderType)
 {
     type = getOrderType(orderType);
     Amount _Amount = new Amount{ value = token["amount"].Value<Decimal>(), value_int = token["amount_int"].Value<Int64>() };
     Price _Price = new Price { value = token["price"].Value<Decimal>(), value_int = token["price_int"].Value<Int64>() };
     _price = _Price.value;
     _volume = _Amount.value;
     stamp = new DateTime((token["stamp"].Value<long>() * 10) + 621355968000000000);
 }
Beispiel #2
0
 public Order(Price price, Amount amount)
 {
     this.price = price;
     this.amount = amount;
 }