private void CommissionReportEvent() { int msgVersion = ReadInt(); CommissionReport commissionReport = new CommissionReport(); commissionReport.ExecId = ReadString(); commissionReport.Commission = ReadDouble(); commissionReport.Currency = ReadString(); commissionReport.RealizedPNL = ReadDouble(); commissionReport.Yield = ReadDouble(); commissionReport.YieldRedemptionDate = ReadInt(); parent.Wrapper.commissionReport(commissionReport); }
public override bool Equals(Object p_other) { bool l_bRetVal = false; if (p_other == null) { l_bRetVal = false; } else if (this == p_other) { l_bRetVal = true; } else { CommissionReport l_theOther = (CommissionReport)p_other; l_bRetVal = ExecId.Equals(l_theOther.ExecId); } return(l_bRetVal); }
public virtual void commissionReport(CommissionReport commissionReport) { //Console.WriteLine("CommissionReport. " + commissionReport.ExecId + " - " + commissionReport.Commission + " " + commissionReport.Currency + " RPNL " + commissionReport.RealizedPNL); Utils.Logger.Info("CommissionReport. " + commissionReport.ExecId + " - " + commissionReport.Commission + " " + commissionReport.Currency + " RPNL " + commissionReport.RealizedPNL); }
public virtual void commissionReport(CommissionReport commissionReport) { MyLogger.Instance.CreateEntry("CommissionReport. " + commissionReport.ExecId + " - " + commissionReport.Commission + " " + commissionReport.Currency + " RPNL " + commissionReport.RealizedPNL + "\n"); Console.WriteLine("CommissionReport. " + commissionReport.ExecId + " - " + commissionReport.Commission + " " + commissionReport.Currency + " RPNL " + commissionReport.RealizedPNL + "\n"); foreach (var tmpPosPair in PairPosDict.Values) { // save price and share to PosPair obj tmpPosPair.saveCommPNL(commissionReport.ExecId, commissionReport.Commission, commissionReport.RealizedPNL); } }
public virtual void commissionReport(CommissionReport commissionReport) { }
public void commissionReport(CommissionReport commissionReport) { MessageHandler.messageBox.Enqueue(new GeneralMessage { DateTime = DateTime.Now, Text = "COMISSION REPORT: Comission= " + commissionReport.Commission + commissionReport.RealizedPNL }); }
public virtual void commissionReport(CommissionReport commissionReport) { Console.WriteLine("CommissionReport. "+commissionReport.ExecId+" - "+commissionReport.Commission+" "+commissionReport.Currency+" RPNL "+commissionReport.RealizedPNL+"\n"); }
public virtual void commissionReport(CommissionReport commissionReport) { parentUI.HandleMessage(new CommissionMessage(commissionReport)); }
public void commissionReport(CommissionReport commissionReport) { throw new NotImplementedException(); }
/// <summary> /// Initializes a new instance of the <see cref="CommissionReportEventArgs"/> class /// </summary> public CommissionReportEventArgs(CommissionReport commissionReport) { CommissionReport = commissionReport; }
public CommissionMessage(CommissionReport commissionReport) { Type = MessageType.CommissionsReport; CommissionReport = commissionReport; }
public virtual void commissionReport(CommissionReport commissionReport) { String str; str = "CommissionReport, id = " + commissionReport.ExecId + " commision = " + commissionReport.Commission; AddTextToResponseListWindow(str); }
/// <summary> /// This callback returns the commission report portion of an execution and is triggered immediately after a trade execution, or by calling reqExecution(). /// </summary> /// <param name="commissionReport">The structure that contains commission details.</param> public void commissionReport(CommissionReport commissionReport) { OnCommissionReport(new CommissionReportEventArgs(commissionReport)); }
//! [execdetailsend] //! [commissionreport] public virtual void commissionReport(CommissionReport commissionReport) { Console.WriteLine("CommissionReport. " + commissionReport.ExecId + " - " + commissionReport.Commission + " " + commissionReport.Currency + " RPNL " + commissionReport.RealizedPNL); }