Exemplo n.º 1
0
 public OrderFillTransaction(TransactionID transactionID, DateTime time, int userID, AccountID accountID, TransactionID batchID, RequestID requestID, TransactionType type, OrderID orderID, ClientID clientOrderID, InstrumentName instrument, double units, double gainQuoteHomeConversionFactor, double lossQuoteHomeConversionFactor, ClientPrice fullPrice, OrderFillReason reason, AccountUnits pL, AccountUnits financing, AccountUnits commission, AccountUnits guaranteedExecutionFee, AccountUnits accountBalance, TradeOpen tradeOpened, List <TradeReduce> tradesClosed, TradeReduce tradeReduced, AccountUnits halfSpreadCost)
 {
     this.TransactionID = transactionID;
     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.GainQuoteHomeConversionFactor = gainQuoteHomeConversionFactor;
     this.LossQuoteHomeConversionFactor = lossQuoteHomeConversionFactor;
     this.FullPrice              = fullPrice;
     this.Reason                 = reason;
     this.PL                     = pL;
     this.Financing              = financing;
     this.Commission             = commission;
     this.GuaranteedExecutionFee = guaranteedExecutionFee;
     this.AccountBalance         = accountBalance;
     this.TradeOpened            = tradeOpened;
     this.TradesClosed           = tradesClosed;
     this.TradeReduced           = tradeReduced;
     this.HalfSpreadCost         = halfSpreadCost;
 }
Exemplo n.º 2
0
 public OrderFillTransaction(
     string id,
     DateTime time,
     int?userID,
     string accountID,
     string?batchID,
     string?requestID,
     TransactionType type,
     string orderID,
     string?clientOrderID,
     string instrument,
     decimal units,
     HomeConversionFactors homeConversionFactors,
     decimal fullVWAP,
     decimal fullPrice,
     OrderFillReason reason,
     decimal pL,
     decimal quotePL,
     decimal financing,
     decimal baseFinancing,
     decimal quoteFinancing,
     decimal commission,
     decimal?guaranteedExecutionFee,
     decimal?quoteGuaranteedExecutionFee,
     decimal accountBalance,
     TradeOpen?tradeOpened,
     ImmutableList <TradeReduce>?tradesClosed,
     TradeReduce?tradeReduced,
     decimal halfSpreadCost)
     : base(
         id,
         time,
         userID,
         accountID,
         batchID,
         requestID,
         type)
 {
     OrderID               = orderID;
     ClientOrderID         = clientOrderID;
     Instrument            = instrument;
     Units                 = units;
     HomeConversionFactors = homeConversionFactors;
     FullVWAP              = fullVWAP;
     FullPrice             = fullPrice;
     Reason                = reason;
     PL                          = pL;
     QuotePL                     = quotePL;
     Financing                   = financing;
     BaseFinancing               = baseFinancing;
     QuoteFinancing              = quoteFinancing;
     Commission                  = commission;
     GuaranteedExecutionFee      = guaranteedExecutionFee;
     QuoteGuaranteedExecutionFee = quoteGuaranteedExecutionFee;
     AccountBalance              = accountBalance;
     TradeOpened                 = tradeOpened;
     TradesClosed                = tradesClosed;
     TradeReduced                = tradeReduced;
     HalfSpreadCost              = halfSpreadCost;
 }
Exemplo n.º 3
0
 public OrderFillTransaction()
 {
     this.TransactionID          = new TransactionID();
     this.Time                   = new DateTime();
     this.AccountID              = new AccountID();
     this.BatchID                = new TransactionID();
     this.RequestID              = new RequestID();
     this.Type                   = new TransactionType(ETransactionType.ORDER_FILL);
     this.OrderID                = new OrderID();
     this.ClientOrderID          = new ClientID();
     this.Instrument             = new InstrumentName();
     this.FullPrice              = new ClientPrice();
     this.Reason                 = new OrderFillReason();
     this.PL                     = new AccountUnits();
     this.Financing              = new AccountUnits();
     this.Commission             = new AccountUnits();
     this.GuaranteedExecutionFee = new AccountUnits();
     this.AccountBalance         = new AccountUnits();
     this.TradeOpened            = new TradeOpen();
     this.TradesClosed           = new List <TradeReduce>();
     this.TradeReduced           = new TradeReduce();
     this.HalfSpreadCost         = new AccountUnits();
 }