Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 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);
 }
Example #4
0
 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);
     }
 }
Example #5
0
 public virtual void commissionReport(CommissionReport commissionReport)
 {
 }
Example #6
0
 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");
 }
Example #8
0
 public virtual void commissionReport(CommissionReport commissionReport)
 {
     parentUI.HandleMessage(new CommissionMessage(commissionReport));
 }
Example #9
0
 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);
 }
Example #10
0
 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;
 }
Example #12
0
 public CommissionMessage(CommissionReport commissionReport)
 {
     Type = MessageType.CommissionsReport;
     CommissionReport = commissionReport;
 }
Example #13
0
 public virtual void commissionReport(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));
 }
Example #16
0
        //! [execdetailsend]

        //! [commissionreport]
        public virtual void commissionReport(CommissionReport commissionReport)
        {
            Console.WriteLine("CommissionReport. " + commissionReport.ExecId + " - " + commissionReport.Commission + " " + commissionReport.Currency + " RPNL " + commissionReport.RealizedPNL);
        }