Exemplo n.º 1
0
 private NewOrderMessage CreateNewOrderMessage(NewOrder newOrder)
 {
     return(new NewOrderMessage
     {
         Id = GenerateOrderId(),
         OrderType = OrderType.ToOrderType(newOrder.OrderType),
         Price = DoubleToLong(newOrder.Price),
         Quantity = DoubleToLong(newOrder.Quantity),
         Sender = Wallet.Address,
         Side = OrderSide.ToOrderSide(newOrder.Side),
         Symbol = newOrder.Symbol,
         TimeInForce = TimeInForce.ToTimeInForce(newOrder.TimeInForce),
     });
 }