void OnExecutionReport(object sender, ExecutionReportEventArgs e) { lock (this.SyncRoot) { this.processor.WakeUp(); } }
private void OnExecutionReport(object sender, ExecutionReportEventArgs e) { OpenOrderResult res = null; TradeResults.Results.TryGetValue(e.Report.ClientOrderId, out res); res?.Register(e.Report.OrderType == TradeRecordType.Position); //Console.WriteLine("{0} {1}", e.Report.ClientOrderId, e.Report.OrderStatus); }
void RaiseExecutionReport(FxMessage message) { var eh = this.ExecutionReport; if (eh != null) { var e = new ExecutionReportEventArgs (message); eh(this, e); } }
void OnExecutionReport(object sender, ExecutionReportEventArgs e) { Console.WriteLine("OnExecutionReport(): ExecutionType = {0}; OrderStatus = {1}; OrderType = {2}", e.Report.ExecutionType, e.Report.OrderStatus, e.Report.OrderType); }