Пример #1
0
 public TradeMessage(ITrade trade)
     : this()
 {
     TradeId         = trade.TradeId;
     SymbolName      = trade.symbol.name;
     Price           = trade.price;
     Quantity        = trade.quantity;
     InitialQuantity = trade.InitialQuantity;
     Timestamp       = trade.timestamp;
     Type            = trade.type;
     Status          = trade.Status;
     PaidCommission  = trade.PaidCommission;
     TransactionId   = trade.TransactionId;
     RelatedTradeId  = trade.RelatedTradeId;
 }
Пример #2
0
 public TradeMessage(ITrade trade)
     : this()
 {
     TradeId = trade.TradeId;
     SymbolName = trade.symbol.name;
     Price = trade.price;
     Quantity = trade.quantity;
     InitialQuantity = trade.InitialQuantity;
     Timestamp = trade.timestamp;
     Type = trade.type;
     Status = trade.Status;
     PaidCommission = trade.PaidCommission;
     TransactionId = trade.TransactionId;
     RelatedTradeId = trade.RelatedTradeId;
 }