public TradeSummary() { this.Id = new TradeID(); this.Instrument = new InstrumentName(); this.Price = new PriceValue(); this.OpenTime = new DateTime(); this.State = new TradeState(); this.InitialMarginRequired = new AccountUnits(); this.RealizedPL = new AccountUnits(); this.UnrealizedPL = new AccountUnits(); this.MarginUsed = new AccountUnits(); this.AverageClosePrice = new PriceValue(); this.ClosingTransactionIDs = new List <TransactionID>(); this.Financing = new AccountUnits(); this.CloseTime = new DateTime(); this.ClientExtensions = new ClientExtensions(); this.TakeProfitOrderID = new OrderID(); this.StopLossOrderID = new OrderID(); this.TrailingStopLossOrderID = new OrderID(); }
public TradeSummary(TradeID id, InstrumentName instrument, PriceValue price, DateTime openTime, TradeState state, double initialUnits, AccountUnits initialMarginRequired, double currentUnits, AccountUnits realizedPL, AccountUnits unrealizedPL, AccountUnits marginUsed, PriceValue averageClosePrice, List <TransactionID> closingTransactionIDs, AccountUnits financing, DateTime closeTime, ClientExtensions clientExtensions, OrderID takeProfitOrderID, OrderID stopLossOrderID, OrderID trailingStopLossOrderID) { this.Id = id; this.Instrument = instrument; this.Price = price; this.OpenTime = openTime; this.State = state; this.InitialUnits = initialUnits; this.InitialMarginRequired = initialMarginRequired; this.CurrentUnits = currentUnits; this.RealizedPL = realizedPL; this.UnrealizedPL = unrealizedPL; this.MarginUsed = marginUsed; this.AverageClosePrice = averageClosePrice; this.ClosingTransactionIDs = closingTransactionIDs; this.Financing = financing; this.CloseTime = closeTime; this.ClientExtensions = clientExtensions; this.TakeProfitOrderID = takeProfitOrderID; this.StopLossOrderID = stopLossOrderID; this.TrailingStopLossOrderID = trailingStopLossOrderID; }