Ejemplo n.º 1
0
		public void AddOperation(OrderLogItem item)
		{
			_lastOperationTime = item.Order.Time;

			_operationCount++;
			_operationCountPerSecond++;

			if (item.Order.State == OrderStates.Active && item.Order.IsMatchedEmpty())
			{
				_orderCount++;
				_orderCountPerSecond++;
			}
			else if (item.Trade != null)
			{
				_tradeCount++;
				_tradeCountPerSecond++;
			}
		}
Ejemplo n.º 2
0
		private void RaiseNewOrderLogItem(OrderLogItem item)
		{
			NewOrderLogItem.SafeInvoke(item);

			var multiEvt = NewOrderLogItems;

			if (multiEvt == null)
				return;

			multiEvt.SafeInvoke(new[] { item });
		}