Example #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);
            }
        }
Example #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);
 }