/// <summary> /// Initializes a new instance of the <see cref="OrderFillTransaction" /> class. /// </summary> /// <param name="Id">The Transaction's Identifier..</param> /// <param name="Time">The date/time when the Transaction was created..</param> /// <param name="UserID">The ID of the user that initiated the creation of the Transaction..</param> /// <param name="AccountID">The ID of the Account the Transaction was created for..</param> /// <param name="BatchID">The ID of the \"batch\" that the Transaction belongs to. Transactions in the same batch are applied to the Account simultaneously..</param> /// <param name="RequestID">The Request ID of the request which generated the transaction..</param> /// <param name="Type">The Type of the Transaction. Always set to \"ORDER_FILL\" for an OrderFillTransaction..</param> /// <param name="OrderID">The ID of the Order filled..</param> /// <param name="ClientOrderID">The client Order ID of the Order filled (only provided if the client has assigned one)..</param> /// <param name="Instrument">The name of the filled Order's instrument..</param> /// <param name="Units">The number of units filled by the Order..</param> /// <param name="Price">The average market price that the Order was filled at..</param> /// <param name="Reason">The reason that an Order was filled.</param> /// <param name="Pl">The profit or loss incurred when the Order was filled..</param> /// <param name="Financing">The financing paid or collected when the Order was filled..</param> /// <param name="AccountBalance">The Account's balance after the Order was filled..</param> /// <param name="TradeOpened">TradeOpened.</param> /// <param name="TradesClosed">The Trades that were closed when the Order was filled (only provided if filling the Order resulted in a closing open Trades)..</param> /// <param name="TradeReduced">TradeReduced.</param> public OrderFillTransaction(string Id = default(string), string Time = default(string), int?UserID = default(int?), string AccountID = default(string), string BatchID = default(string), string RequestID = default(string), TypeEnum?Type = default(TypeEnum?), string OrderID = default(string), string ClientOrderID = default(string), string Instrument = default(string), string Units = default(string), string Price = default(string), ReasonEnum?Reason = default(ReasonEnum?), string Pl = default(string), string Financing = default(string), string AccountBalance = default(string), TradeOpen TradeOpened = default(TradeOpen), List <TradeReduce> TradesClosed = default(List <TradeReduce>), TradeReduce TradeReduced = default(TradeReduce)) { this.Id = Id; this.Time = Time; this.UserID = UserID; this.AccountID = AccountID; this.BatchID = BatchID; this.RequestID = RequestID; this.Type = Type; this.OrderID = OrderID; this.ClientOrderID = ClientOrderID; this.Instrument = Instrument; this.Units = Units; this.Price = Price; this.Reason = Reason; this.Pl = Pl; this.Financing = Financing; this.AccountBalance = AccountBalance; this.TradeOpened = TradeOpened; this.TradesClosed = TradesClosed; this.TradeReduced = TradeReduced; }