Exemplo n.º 1
0
        public void OnPositionOpened(Portfolio portfolio, Position position, bool queued)
        {
            var e = new OnPositionOpened(portfolio, position);

            if (queued)
            {
                this.queue.Enqueue(e);
            }
            else
            {
                OnEvent(e);
            }
        }
Exemplo n.º 2
0
 public void OnPositionOpened(Portfolio portfolio, Position position, bool queued)
 {
     var e = new OnPositionOpened(portfolio, position);
     if (queued)
         this.queue.Enqueue(e);
     else
         OnEvent(e);
 }